comparison configure @ 464:5aa1854ad537 r21-2-47

Import from CVS: tag r21-2-47
author cvs
date Mon, 13 Aug 2007 11:45:51 +0200
parents 0784d089fdc9
children 77c75d85635e
comparison
equal deleted inserted replaced
463:a158004111cd 464:5aa1854ad537
2756 fi 2756 fi
2757 2757
2758 if test "$cflags_specified" = "no"; then 2758 if test "$cflags_specified" = "no"; then
2759 if test "$GCC" = "yes"; then 2759 if test "$GCC" = "yes"; then
2760 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow" 2760 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2761 CFLAGS="$CFLAGS -Wsign-compare"
2761 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" 2762 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2762 elif test "$__SUNPRO_C" = "yes"; then 2763 elif test "$__SUNPRO_C" = "yes"; then
2763 case "$opsys" in 2764 case "$opsys" in
2764 sol2 ) CFLAGS="-v -xO4" ;; 2765 sol2 ) CFLAGS="-v -xO4" ;;
2765 sunos4* ) CFLAGS="-xO2";; 2766 sunos4* ) CFLAGS="-xO2";;
2772 CFLAGS="-O" ; fi 2773 CFLAGS="-O" ; fi
2773 fi 2774 fi
2774 2775
2775 if test "$GCC" = "yes"; then 2776 if test "$GCC" = "yes"; then
2776 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2777 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2777 echo "configure:2778: checking for buggy gcc versions" >&5 2778 echo "configure:2779: checking for buggy gcc versions" >&5
2778 GCC_VERSION=`$CC --version` 2779 GCC_VERSION=`$CC --version`
2779 case `uname -s`:`uname -m`:$GCC_VERSION in 2780 case `uname -s`:`uname -m`:$GCC_VERSION in
2780 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2781 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2781 case "$CFLAGS" in 2782 case "$CFLAGS" in
2782 *-O2*|*-O3*) 2783 *-O2*|*-O3*)
2895 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2896 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2896 echo " xemacs will be linked with \"dumper.o\"" 2897 echo " xemacs will be linked with \"dumper.o\""
2897 fi 2898 fi
2898 2899
2899 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2900 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2900 echo "configure:2901: checking for dynodump" >&5 2901 echo "configure:2902: checking for dynodump" >&5
2901 if test "$unexec" != "unexsol2.o"; then 2902 if test "$unexec" != "unexsol2.o"; then
2902 echo "$ac_t""no" 1>&6 2903 echo "$ac_t""no" 1>&6
2903 else 2904 else
2904 echo "$ac_t""yes" 1>&6 2905 echo "$ac_t""yes" 1>&6
2905 { test "$extra_verbose" = "yes" && cat << \EOF 2906 { test "$extra_verbose" = "yes" && cat << \EOF
2933 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2934 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2934 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2935 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2935 done 2936 done
2936 2937
2937 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2938 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2938 echo "configure:2939: checking for terminateAndUnload in -lC" >&5 2939 echo "configure:2940: checking for terminateAndUnload in -lC" >&5
2939 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2940 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2940 2941
2941 xe_check_libs=" -lC " 2942 xe_check_libs=" -lC "
2942 cat > conftest.$ac_ext <<EOF 2943 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure" 2944 #line 2945 "configure"
2944 #include "confdefs.h" 2945 #include "confdefs.h"
2945 /* Override any gcc2 internal prototype to avoid an error. */ 2946 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2 2947 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */ 2948 builtin and then its argument prototype would still apply. */
2948 char terminateAndUnload(); 2949 char terminateAndUnload();
2949 2950
2950 int main() { 2951 int main() {
2951 terminateAndUnload() 2952 terminateAndUnload()
2952 ; return 0; } 2953 ; return 0; }
2953 EOF 2954 EOF
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2955 rm -rf conftest* 2956 rm -rf conftest*
2956 eval "ac_cv_lib_$ac_lib_var=yes" 2957 eval "ac_cv_lib_$ac_lib_var=yes"
2957 else 2958 else
2958 echo "configure: failed program was:" >&5 2959 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5 2960 cat conftest.$ac_ext >&5
3057 esac 3058 esac
3058 fi 3059 fi
3059 3060
3060 if test "$add_runtime_path" = "yes"; then 3061 if test "$add_runtime_path" = "yes"; then
3061 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3062 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3062 echo "configure:3063: checking "for runtime libraries flag"" >&5 3063 echo "configure:3064: checking "for runtime libraries flag"" >&5
3063 case "$opsys" in 3064 case "$opsys" in
3064 sol2 ) dash_r="-R" ;; 3065 sol2 ) dash_r="-R" ;;
3065 decosf* | linux* | irix*) dash_r="-rpath " ;; 3066 decosf* | linux* | irix*) dash_r="-rpath " ;;
3066 *) 3067 *)
3067 dash_r="" 3068 dash_r=""
3079 esac 3080 esac
3080 shift 3081 shift
3081 done 3082 done
3082 fi 3083 fi
3083 cat > conftest.$ac_ext <<EOF 3084 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure" 3085 #line 3086 "configure"
3085 #include "confdefs.h" 3086 #include "confdefs.h"
3086 3087
3087 int main() { 3088 int main() {
3088 3089
3089 ; return 0; } 3090 ; return 0; }
3090 EOF 3091 EOF
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092 rm -rf conftest* 3093 rm -rf conftest*
3093 dash_r="$try_dash_r" 3094 dash_r="$try_dash_r"
3094 else 3095 else
3095 echo "configure: failed program was:" >&5 3096 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5 3097 cat conftest.$ac_ext >&5
3187 else 3188 else
3188 doug_lea_malloc=no 3189 doug_lea_malloc=no
3189 fi 3190 fi
3190 after_morecore_hook_exists=yes 3191 after_morecore_hook_exists=yes
3191 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3192 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3192 echo "configure:3193: checking for malloc_set_state" >&5 3193 echo "configure:3194: checking for malloc_set_state" >&5
3193 3194
3194 cat > conftest.$ac_ext <<EOF 3195 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure" 3196 #line 3197 "configure"
3196 #include "confdefs.h" 3197 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes, 3198 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char malloc_set_state(); below. */ 3199 which can conflict with char malloc_set_state(); below. */
3199 #include <assert.h> 3200 #include <assert.h>
3200 /* Override any gcc2 internal prototype to avoid an error. */ 3201 /* Override any gcc2 internal prototype to avoid an error. */
3213 malloc_set_state(); 3214 malloc_set_state();
3214 #endif 3215 #endif
3215 3216
3216 ; return 0; } 3217 ; return 0; }
3217 EOF 3218 EOF
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 rm -rf conftest* 3220 rm -rf conftest*
3220 eval "ac_cv_func_malloc_set_state=yes" 3221 eval "ac_cv_func_malloc_set_state=yes"
3221 else 3222 else
3222 echo "configure: failed program was:" >&5 3223 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5 3224 cat conftest.$ac_ext >&5
3233 echo "$ac_t""no" 1>&6 3234 echo "$ac_t""no" 1>&6
3234 doug_lea_malloc=no 3235 doug_lea_malloc=no
3235 fi 3236 fi
3236 3237
3237 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3238 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether __after_morecore_hook exists" >&5 3239 echo "configure:3240: checking whether __after_morecore_hook exists" >&5
3239 cat > conftest.$ac_ext <<EOF 3240 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure" 3241 #line 3242 "configure"
3241 #include "confdefs.h" 3242 #include "confdefs.h"
3242 extern void (* __after_morecore_hook)(); 3243 extern void (* __after_morecore_hook)();
3243 int main() { 3244 int main() {
3244 __after_morecore_hook = 0 3245 __after_morecore_hook = 0
3245 ; return 0; } 3246 ; return 0; }
3246 EOF 3247 EOF
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3248 rm -rf conftest* 3249 rm -rf conftest*
3249 echo "$ac_t""yes" 1>&6 3250 echo "$ac_t""yes" 1>&6
3250 else 3251 else
3251 echo "configure: failed program was:" >&5 3252 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5 3253 cat conftest.$ac_ext >&5
3298 3299
3299 3300
3300 # Extract the first word of "ranlib", so it can be a program name with args. 3301 # Extract the first word of "ranlib", so it can be a program name with args.
3301 set dummy ranlib; ac_word=$2 3302 set dummy ranlib; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5 3304 echo "configure:3305: checking for $ac_word" >&5
3304 3305
3305 if test -n "$RANLIB"; then 3306 if test -n "$RANLIB"; then
3306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3307 else 3308 else
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3356 # ./install, which can be erroneously created by make from ./install.sh. 3357 # ./install, which can be erroneously created by make from ./install.sh.
3357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3358 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3358 echo "configure:3359: checking for a BSD compatible install" >&5 3359 echo "configure:3360: checking for a BSD compatible install" >&5
3359 if test -z "$INSTALL"; then 3360 if test -z "$INSTALL"; then
3360 3361
3361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3362 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3362 for ac_dir in $PATH; do 3363 for ac_dir in $PATH; do
3363 # Account for people who put trailing slashes in PATH elements. 3364 # Account for people who put trailing slashes in PATH elements.
3407 for ac_prog in 'bison -y' byacc 3408 for ac_prog in 'bison -y' byacc
3408 do 3409 do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args. 3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2 3411 set dummy $ac_prog; ac_word=$2
3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_word" >&5 3413 echo "configure:3414: checking for $ac_word" >&5
3413 3414
3414 if test -n "$YACC"; then 3415 if test -n "$YACC"; then
3415 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3416 else 3417 else
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3439 3440
3440 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h 3441 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3441 do 3442 do
3442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_hdr" >&5 3445 echo "configure:3446: checking for $ac_hdr" >&5
3445 3446
3446 cat > conftest.$ac_ext <<EOF 3447 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure" 3448 #line 3449 "configure"
3448 #include "confdefs.h" 3449 #include "confdefs.h"
3449 #include <$ac_hdr> 3450 #include <$ac_hdr>
3450 EOF 3451 EOF
3451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3452 { (eval echo configure:3453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3453 { (eval echo configure:3454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3454 if test -z "$ac_err"; then 3455 if test -z "$ac_err"; then
3455 rm -rf conftest* 3456 rm -rf conftest*
3456 eval "ac_cv_header_$ac_safe=yes" 3457 eval "ac_cv_header_$ac_safe=yes"
3457 else 3458 else
3477 echo "$ac_t""no" 1>&6 3478 echo "$ac_t""no" 1>&6
3478 fi 3479 fi
3479 done 3480 done
3480 3481
3481 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3482 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3482 echo "configure:3483: checking for sys/wait.h that is POSIX.1 compatible" >&5 3483 echo "configure:3484: checking for sys/wait.h that is POSIX.1 compatible" >&5
3483 3484
3484 cat > conftest.$ac_ext <<EOF 3485 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure" 3486 #line 3487 "configure"
3486 #include "confdefs.h" 3487 #include "confdefs.h"
3487 #include <sys/types.h> 3488 #include <sys/types.h>
3488 #include <sys/wait.h> 3489 #include <sys/wait.h>
3489 #ifndef WEXITSTATUS 3490 #ifndef WEXITSTATUS
3490 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3491 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3496 int s; 3497 int s;
3497 wait (&s); 3498 wait (&s);
3498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3499 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3499 ; return 0; } 3500 ; return 0; }
3500 EOF 3501 EOF
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3502 rm -rf conftest* 3503 rm -rf conftest*
3503 ac_cv_header_sys_wait_h=yes 3504 ac_cv_header_sys_wait_h=yes
3504 else 3505 else
3505 echo "configure: failed program was:" >&5 3506 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5 3507 cat conftest.$ac_ext >&5
3520 } 3521 }
3521 3522
3522 fi 3523 fi
3523 3524
3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ANSI C header files" >&5 3526 echo "configure:3527: checking for ANSI C header files" >&5
3526 3527
3527 cat > conftest.$ac_ext <<EOF 3528 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure" 3529 #line 3530 "configure"
3529 #include "confdefs.h" 3530 #include "confdefs.h"
3530 #include <stdlib.h> 3531 #include <stdlib.h>
3531 #include <stdarg.h> 3532 #include <stdarg.h>
3532 #include <string.h> 3533 #include <string.h>
3533 #include <float.h> 3534 #include <float.h>
3534 EOF 3535 EOF
3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3537 { (eval echo configure:3538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then 3539 if test -z "$ac_err"; then
3539 rm -rf conftest* 3540 rm -rf conftest*
3540 ac_cv_header_stdc=yes 3541 ac_cv_header_stdc=yes
3541 else 3542 else
3548 rm -f conftest* 3549 rm -f conftest*
3549 3550
3550 if test $ac_cv_header_stdc = yes; then 3551 if test $ac_cv_header_stdc = yes; then
3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552 cat > conftest.$ac_ext <<EOF 3553 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure" 3554 #line 3555 "configure"
3554 #include "confdefs.h" 3555 #include "confdefs.h"
3555 #include <string.h> 3556 #include <string.h>
3556 EOF 3557 EOF
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "memchr" >/dev/null 2>&1; then 3559 egrep "memchr" >/dev/null 2>&1; then
3566 fi 3567 fi
3567 3568
3568 if test $ac_cv_header_stdc = yes; then 3569 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat > conftest.$ac_ext <<EOF 3571 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure" 3572 #line 3573 "configure"
3572 #include "confdefs.h" 3573 #include "confdefs.h"
3573 #include <stdlib.h> 3574 #include <stdlib.h>
3574 EOF 3575 EOF
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "free" >/dev/null 2>&1; then 3577 egrep "free" >/dev/null 2>&1; then
3584 fi 3585 fi
3585 3586
3586 if test $ac_cv_header_stdc = yes; then 3587 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 cat > conftest.$ac_ext <<EOF 3589 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure" 3590 #line 3591 "configure"
3590 #include "confdefs.h" 3591 #include "confdefs.h"
3591 #include <ctype.h> 3592 #include <ctype.h>
3592 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3593 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3594 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3595 int main () { int i; for (i = 0; i < 256; i++) 3596 int main () { int i; for (i = 0; i < 256; i++)
3596 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3597 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3597 exit (0); } 3598 exit (0); }
3598 3599
3599 EOF 3600 EOF
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3601 then 3602 then
3602 : 3603 :
3603 else 3604 else
3604 conftest_rc="$?" 3605 conftest_rc="$?"
3605 echo "configure: failed program was:" >&5 3606 echo "configure: failed program was:" >&5
3621 } 3622 }
3622 3623
3623 fi 3624 fi
3624 3625
3625 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3626 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3626 echo "configure:3627: checking whether time.h and sys/time.h may both be included" >&5 3627 echo "configure:3628: checking whether time.h and sys/time.h may both be included" >&5
3627 3628
3628 cat > conftest.$ac_ext <<EOF 3629 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure" 3630 #line 3631 "configure"
3630 #include "confdefs.h" 3631 #include "confdefs.h"
3631 #include <sys/types.h> 3632 #include <sys/types.h>
3632 #include <sys/time.h> 3633 #include <sys/time.h>
3633 #include <time.h> 3634 #include <time.h>
3634 int main() { 3635 int main() {
3635 struct tm *tp; 3636 struct tm *tp;
3636 ; return 0; } 3637 ; return 0; }
3637 EOF 3638 EOF
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639 rm -rf conftest* 3640 rm -rf conftest*
3640 ac_cv_header_time=yes 3641 ac_cv_header_time=yes
3641 else 3642 else
3642 echo "configure: failed program was:" >&5 3643 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5 3644 cat conftest.$ac_ext >&5
3657 } 3658 }
3658 3659
3659 fi 3660 fi
3660 3661
3661 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3662 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3663 echo "configure:3664: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3663 3664
3664 cat > conftest.$ac_ext <<EOF 3665 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure" 3666 #line 3667 "configure"
3666 #include "confdefs.h" 3667 #include "confdefs.h"
3667 #include <sys/types.h> 3668 #include <sys/types.h>
3668 #include <signal.h> 3669 #include <signal.h>
3669 /* NetBSD declares sys_siglist in unistd.h. */ 3670 /* NetBSD declares sys_siglist in unistd.h. */
3670 #ifdef HAVE_UNISTD_H 3671 #ifdef HAVE_UNISTD_H
3672 #endif 3673 #endif
3673 int main() { 3674 int main() {
3674 char *msg = *(sys_siglist + 1); 3675 char *msg = *(sys_siglist + 1);
3675 ; return 0; } 3676 ; return 0; }
3676 EOF 3677 EOF
3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3678 rm -rf conftest* 3679 rm -rf conftest*
3679 ac_cv_decl_sys_siglist=yes 3680 ac_cv_decl_sys_siglist=yes
3680 else 3681 else
3681 echo "configure: failed program was:" >&5 3682 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5 3683 cat conftest.$ac_ext >&5
3698 fi 3699 fi
3699 3700
3700 3701
3701 3702
3702 echo $ac_n "checking for utime""... $ac_c" 1>&6 3703 echo $ac_n "checking for utime""... $ac_c" 1>&6
3703 echo "configure:3704: checking for utime" >&5 3704 echo "configure:3705: checking for utime" >&5
3704 cat > conftest.$ac_ext <<EOF 3705 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure" 3706 #line 3707 "configure"
3706 #include "confdefs.h" 3707 #include "confdefs.h"
3707 #include <sys/types.h> 3708 #include <sys/types.h>
3708 #include <utime.h> 3709 #include <utime.h>
3709 int main() { 3710 int main() {
3710 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3711 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3711 ; return 0; } 3712 ; return 0; }
3712 EOF 3713 EOF
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714 rm -rf conftest* 3715 rm -rf conftest*
3715 echo "$ac_t""yes" 1>&6 3716 echo "$ac_t""yes" 1>&6
3716 { test "$extra_verbose" = "yes" && cat << \EOF 3717 { test "$extra_verbose" = "yes" && cat << \EOF
3717 Defining HAVE_UTIME 3718 Defining HAVE_UTIME
3718 EOF 3719 EOF
3727 rm -rf conftest* 3728 rm -rf conftest*
3728 echo "$ac_t""no" 1>&6 3729 echo "$ac_t""no" 1>&6
3729 for ac_func in utimes 3730 for ac_func in utimes
3730 do 3731 do
3731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3732 echo "configure:3733: checking for $ac_func" >&5 3733 echo "configure:3734: checking for $ac_func" >&5
3733 3734
3734 cat > conftest.$ac_ext <<EOF 3735 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure" 3736 #line 3737 "configure"
3736 #include "confdefs.h" 3737 #include "confdefs.h"
3737 /* System header to define __stub macros and hopefully few prototypes, 3738 /* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char $ac_func(); below. */ 3739 which can conflict with char $ac_func(); below. */
3739 #include <assert.h> 3740 #include <assert.h>
3740 /* Override any gcc2 internal prototype to avoid an error. */ 3741 /* Override any gcc2 internal prototype to avoid an error. */
3753 $ac_func(); 3754 $ac_func();
3754 #endif 3755 #endif
3755 3756
3756 ; return 0; } 3757 ; return 0; }
3757 EOF 3758 EOF
3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3759 if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3759 rm -rf conftest* 3760 rm -rf conftest*
3760 eval "ac_cv_func_$ac_func=yes" 3761 eval "ac_cv_func_$ac_func=yes"
3761 else 3762 else
3762 echo "configure: failed program was:" >&5 3763 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5 3764 cat conftest.$ac_ext >&5
3785 fi 3786 fi
3786 rm -f conftest* 3787 rm -f conftest*
3787 3788
3788 3789
3789 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3790 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3790 echo "configure:3791: checking return type of signal handlers" >&5 3791 echo "configure:3792: checking return type of signal handlers" >&5
3791 3792
3792 cat > conftest.$ac_ext <<EOF 3793 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure" 3794 #line 3795 "configure"
3794 #include "confdefs.h" 3795 #include "confdefs.h"
3795 #include <sys/types.h> 3796 #include <sys/types.h>
3796 #include <signal.h> 3797 #include <signal.h>
3797 #ifdef signal 3798 #ifdef signal
3798 #undef signal 3799 #undef signal
3805 3806
3806 int main() { 3807 int main() {
3807 int i; 3808 int i;
3808 ; return 0; } 3809 ; return 0; }
3809 EOF 3810 EOF
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 rm -rf conftest* 3812 rm -rf conftest*
3812 ac_cv_type_signal=void 3813 ac_cv_type_signal=void
3813 else 3814 else
3814 echo "configure: failed program was:" >&5 3815 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5 3816 cat conftest.$ac_ext >&5
3827 EOF 3828 EOF
3828 } 3829 }
3829 3830
3830 3831
3831 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3832 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for size_t" >&5 3833 echo "configure:3834: checking for size_t" >&5
3833 3834
3834 cat > conftest.$ac_ext <<EOF 3835 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure" 3836 #line 3837 "configure"
3836 #include "confdefs.h" 3837 #include "confdefs.h"
3837 #include <sys/types.h> 3838 #include <sys/types.h>
3838 #if STDC_HEADERS 3839 #if STDC_HEADERS
3839 #include <stdlib.h> 3840 #include <stdlib.h>
3840 #include <stddef.h> 3841 #include <stddef.h>
3861 } 3862 }
3862 3863
3863 fi 3864 fi
3864 3865
3865 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3866 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3866 echo "configure:3867: checking for pid_t" >&5 3867 echo "configure:3868: checking for pid_t" >&5
3867 3868
3868 cat > conftest.$ac_ext <<EOF 3869 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure" 3870 #line 3871 "configure"
3870 #include "confdefs.h" 3871 #include "confdefs.h"
3871 #include <sys/types.h> 3872 #include <sys/types.h>
3872 #if STDC_HEADERS 3873 #if STDC_HEADERS
3873 #include <stdlib.h> 3874 #include <stdlib.h>
3874 #include <stddef.h> 3875 #include <stddef.h>
3895 } 3896 }
3896 3897
3897 fi 3898 fi
3898 3899
3899 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3900 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3900 echo "configure:3901: checking for uid_t in sys/types.h" >&5 3901 echo "configure:3902: checking for uid_t in sys/types.h" >&5
3901 3902
3902 cat > conftest.$ac_ext <<EOF 3903 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure" 3904 #line 3905 "configure"
3904 #include "confdefs.h" 3905 #include "confdefs.h"
3905 #include <sys/types.h> 3906 #include <sys/types.h>
3906 EOF 3907 EOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 egrep "uid_t" >/dev/null 2>&1; then 3909 egrep "uid_t" >/dev/null 2>&1; then
3934 } 3935 }
3935 3936
3936 fi 3937 fi
3937 3938
3938 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3939 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3939 echo "configure:3940: checking for mode_t" >&5 3940 echo "configure:3941: checking for mode_t" >&5
3940 3941
3941 cat > conftest.$ac_ext <<EOF 3942 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure" 3943 #line 3944 "configure"
3943 #include "confdefs.h" 3944 #include "confdefs.h"
3944 #include <sys/types.h> 3945 #include <sys/types.h>
3945 #if STDC_HEADERS 3946 #if STDC_HEADERS
3946 #include <stdlib.h> 3947 #include <stdlib.h>
3947 #include <stddef.h> 3948 #include <stddef.h>
3968 } 3969 }
3969 3970
3970 fi 3971 fi
3971 3972
3972 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3973 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3973 echo "configure:3974: checking for off_t" >&5 3974 echo "configure:3975: checking for off_t" >&5
3974 3975
3975 cat > conftest.$ac_ext <<EOF 3976 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure" 3977 #line 3978 "configure"
3977 #include "confdefs.h" 3978 #include "confdefs.h"
3978 #include <sys/types.h> 3979 #include <sys/types.h>
3979 #if STDC_HEADERS 3980 #if STDC_HEADERS
3980 #include <stdlib.h> 3981 #include <stdlib.h>
3981 #include <stddef.h> 3982 #include <stddef.h>
4002 } 4003 }
4003 4004
4004 fi 4005 fi
4005 4006
4006 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4007 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4007 echo "configure:4008: checking for ssize_t" >&5 4008 echo "configure:4009: checking for ssize_t" >&5
4008 4009
4009 cat > conftest.$ac_ext <<EOF 4010 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure" 4011 #line 4012 "configure"
4011 #include "confdefs.h" 4012 #include "confdefs.h"
4012 #include <sys/types.h> 4013 #include <sys/types.h>
4013 #if STDC_HEADERS 4014 #if STDC_HEADERS
4014 #include <stdlib.h> 4015 #include <stdlib.h>
4015 #include <stddef.h> 4016 #include <stddef.h>
4037 4038
4038 fi 4039 fi
4039 4040
4040 4041
4041 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4042 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4042 echo "configure:4043: checking for socklen_t" >&5 4043 echo "configure:4044: checking for socklen_t" >&5
4043 cat > conftest.$ac_ext <<EOF 4044 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure" 4045 #line 4046 "configure"
4045 #include "confdefs.h" 4046 #include "confdefs.h"
4046 #include <sys/socket.h> 4047 #include <sys/socket.h>
4047 socklen_t x; 4048 socklen_t x;
4048 4049
4049 int main() { 4050 int main() {
4050 4051
4051 ; return 0; } 4052 ; return 0; }
4052 EOF 4053 EOF
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4054 rm -rf conftest* 4055 rm -rf conftest*
4055 echo "$ac_t""yes" 1>&6 4056 echo "$ac_t""yes" 1>&6
4056 else 4057 else
4057 echo "configure: failed program was:" >&5 4058 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5 4059 cat conftest.$ac_ext >&5
4059 rm -rf conftest* 4060 rm -rf conftest*
4060 4061
4061 cat > conftest.$ac_ext <<EOF 4062 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure" 4063 #line 4064 "configure"
4063 #include "confdefs.h" 4064 #include "confdefs.h"
4064 #include <sys/socket.h> 4065 #include <sys/socket.h>
4065 int accept (int, struct sockaddr *, size_t *); 4066 int accept (int, struct sockaddr *, size_t *);
4066 4067
4067 int main() { 4068 int main() {
4068 4069
4069 ; return 0; } 4070 ; return 0; }
4070 EOF 4071 EOF
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4072 rm -rf conftest* 4073 rm -rf conftest*
4073 4074
4074 echo "$ac_t""size_t" 1>&6 4075 echo "$ac_t""size_t" 1>&6
4075 { test "$extra_verbose" = "yes" && cat << \EOF 4076 { test "$extra_verbose" = "yes" && cat << \EOF
4076 Defining socklen_t = size_t 4077 Defining socklen_t = size_t
4098 rm -f conftest* 4099 rm -f conftest*
4099 fi 4100 fi
4100 rm -f conftest* 4101 rm -f conftest*
4101 4102
4102 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4103 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4103 echo "configure:4104: checking for struct timeval" >&5 4104 echo "configure:4105: checking for struct timeval" >&5
4104 cat > conftest.$ac_ext <<EOF 4105 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure" 4106 #line 4107 "configure"
4106 #include "confdefs.h" 4107 #include "confdefs.h"
4107 #ifdef TIME_WITH_SYS_TIME 4108 #ifdef TIME_WITH_SYS_TIME
4108 #include <sys/time.h> 4109 #include <sys/time.h>
4109 #include <time.h> 4110 #include <time.h>
4110 #else 4111 #else
4116 #endif 4117 #endif
4117 int main() { 4118 int main() {
4118 static struct timeval x; x.tv_sec = x.tv_usec; 4119 static struct timeval x; x.tv_sec = x.tv_usec;
4119 ; return 0; } 4120 ; return 0; }
4120 EOF 4121 EOF
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4122 if { (eval echo configure:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4122 rm -rf conftest* 4123 rm -rf conftest*
4123 echo "$ac_t""yes" 1>&6 4124 echo "$ac_t""yes" 1>&6
4124 HAVE_TIMEVAL=yes 4125 HAVE_TIMEVAL=yes
4125 { test "$extra_verbose" = "yes" && cat << \EOF 4126 { test "$extra_verbose" = "yes" && cat << \EOF
4126 Defining HAVE_TIMEVAL 4127 Defining HAVE_TIMEVAL
4138 HAVE_TIMEVAL=no 4139 HAVE_TIMEVAL=no
4139 fi 4140 fi
4140 rm -f conftest* 4141 rm -f conftest*
4141 4142
4142 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4143 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4143 echo "configure:4144: checking whether struct tm is in sys/time.h or time.h" >&5 4144 echo "configure:4145: checking whether struct tm is in sys/time.h or time.h" >&5
4144 4145
4145 cat > conftest.$ac_ext <<EOF 4146 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure" 4147 #line 4148 "configure"
4147 #include "confdefs.h" 4148 #include "confdefs.h"
4148 #include <sys/types.h> 4149 #include <sys/types.h>
4149 #include <time.h> 4150 #include <time.h>
4150 int main() { 4151 int main() {
4151 struct tm *tp; tp->tm_sec; 4152 struct tm *tp; tp->tm_sec;
4152 ; return 0; } 4153 ; return 0; }
4153 EOF 4154 EOF
4154 if { (eval echo configure:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 rm -rf conftest* 4156 rm -rf conftest*
4156 ac_cv_struct_tm=time.h 4157 ac_cv_struct_tm=time.h
4157 else 4158 else
4158 echo "configure: failed program was:" >&5 4159 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5 4160 cat conftest.$ac_ext >&5
4173 } 4174 }
4174 4175
4175 fi 4176 fi
4176 4177
4177 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4178 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4178 echo "configure:4179: checking for tm_zone in struct tm" >&5 4179 echo "configure:4180: checking for tm_zone in struct tm" >&5
4179 4180
4180 cat > conftest.$ac_ext <<EOF 4181 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure" 4182 #line 4183 "configure"
4182 #include "confdefs.h" 4183 #include "confdefs.h"
4183 #include <sys/types.h> 4184 #include <sys/types.h>
4184 #include <$ac_cv_struct_tm> 4185 #include <$ac_cv_struct_tm>
4185 int main() { 4186 int main() {
4186 struct tm tm; tm.tm_zone; 4187 struct tm tm; tm.tm_zone;
4187 ; return 0; } 4188 ; return 0; }
4188 EOF 4189 EOF
4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4190 rm -rf conftest* 4191 rm -rf conftest*
4191 ac_cv_struct_tm_zone=yes 4192 ac_cv_struct_tm_zone=yes
4192 else 4193 else
4193 echo "configure: failed program was:" >&5 4194 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5 4195 cat conftest.$ac_ext >&5
4207 EOF 4208 EOF
4208 } 4209 }
4209 4210
4210 else 4211 else
4211 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4212 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4212 echo "configure:4213: checking for tzname" >&5 4213 echo "configure:4214: checking for tzname" >&5
4213 4214
4214 cat > conftest.$ac_ext <<EOF 4215 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure" 4216 #line 4217 "configure"
4216 #include "confdefs.h" 4217 #include "confdefs.h"
4217 #include <time.h> 4218 #include <time.h>
4218 #ifndef tzname /* For SGI. */ 4219 #ifndef tzname /* For SGI. */
4219 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4220 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4220 #endif 4221 #endif
4221 int main() { 4222 int main() {
4222 atoi(*tzname); 4223 atoi(*tzname);
4223 ; return 0; } 4224 ; return 0; }
4224 EOF 4225 EOF
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4226 rm -rf conftest* 4227 rm -rf conftest*
4227 ac_cv_var_tzname=yes 4228 ac_cv_var_tzname=yes
4228 else 4229 else
4229 echo "configure: failed program was:" >&5 4230 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5 4231 cat conftest.$ac_ext >&5
4246 fi 4247 fi
4247 fi 4248 fi
4248 4249
4249 4250
4250 echo $ac_n "checking for working const""... $ac_c" 1>&6 4251 echo $ac_n "checking for working const""... $ac_c" 1>&6
4251 echo "configure:4252: checking for working const" >&5 4252 echo "configure:4253: checking for working const" >&5
4252 4253
4253 cat > conftest.$ac_ext <<EOF 4254 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure" 4255 #line 4256 "configure"
4255 #include "confdefs.h" 4256 #include "confdefs.h"
4256 4257
4257 int main() { 4258 int main() {
4258 4259
4259 /* Ultrix mips cc rejects this. */ 4260 /* Ultrix mips cc rejects this. */
4298 const int foo = 10; 4299 const int foo = 10;
4299 } 4300 }
4300 4301
4301 ; return 0; } 4302 ; return 0; }
4302 EOF 4303 EOF
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4304 if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4304 rm -rf conftest* 4305 rm -rf conftest*
4305 ac_cv_c_const=yes 4306 ac_cv_c_const=yes
4306 else 4307 else
4307 echo "configure: failed program was:" >&5 4308 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5 4309 cat conftest.$ac_ext >&5
4323 4324
4324 fi 4325 fi
4325 4326
4326 4327
4327 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4328 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4328 echo "configure:4329: checking whether ${MAKE-make} sets \${MAKE}" >&5 4329 echo "configure:4330: checking whether ${MAKE-make} sets \${MAKE}" >&5
4329 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4330 4331
4331 cat > conftestmake <<\EOF 4332 cat > conftestmake <<\EOF
4332 all: 4333 all:
4333 @echo 'ac_maketemp="${MAKE}"' 4334 @echo 'ac_maketemp="${MAKE}"'
4348 SET_MAKE="MAKE=${MAKE-make}" 4349 SET_MAKE="MAKE=${MAKE-make}"
4349 fi 4350 fi
4350 4351
4351 4352
4352 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4353 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4353 echo "configure:4354: checking whether byte ordering is bigendian" >&5 4354 echo "configure:4355: checking whether byte ordering is bigendian" >&5
4354 4355
4355 ac_cv_c_bigendian=unknown 4356 ac_cv_c_bigendian=unknown
4356 # See if sys/param.h defines the BYTE_ORDER macro. 4357 # See if sys/param.h defines the BYTE_ORDER macro.
4357 cat > conftest.$ac_ext <<EOF 4358 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure" 4359 #line 4360 "configure"
4359 #include "confdefs.h" 4360 #include "confdefs.h"
4360 #include <sys/types.h> 4361 #include <sys/types.h>
4361 #include <sys/param.h> 4362 #include <sys/param.h>
4362 int main() { 4363 int main() {
4363 4364
4364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4365 bogus endian macros 4366 bogus endian macros
4366 #endif 4367 #endif
4367 ; return 0; } 4368 ; return 0; }
4368 EOF 4369 EOF
4369 if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4370 if { (eval echo configure:4371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4370 rm -rf conftest* 4371 rm -rf conftest*
4371 # It does; now see whether it defined to BIG_ENDIAN or not. 4372 # It does; now see whether it defined to BIG_ENDIAN or not.
4372 cat > conftest.$ac_ext <<EOF 4373 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure" 4374 #line 4375 "configure"
4374 #include "confdefs.h" 4375 #include "confdefs.h"
4375 #include <sys/types.h> 4376 #include <sys/types.h>
4376 #include <sys/param.h> 4377 #include <sys/param.h>
4377 int main() { 4378 int main() {
4378 4379
4379 #if BYTE_ORDER != BIG_ENDIAN 4380 #if BYTE_ORDER != BIG_ENDIAN
4380 not big endian 4381 not big endian
4381 #endif 4382 #endif
4382 ; return 0; } 4383 ; return 0; }
4383 EOF 4384 EOF
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4385 if { (eval echo configure:4386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385 rm -rf conftest* 4386 rm -rf conftest*
4386 ac_cv_c_bigendian=yes 4387 ac_cv_c_bigendian=yes
4387 else 4388 else
4388 echo "configure: failed program was:" >&5 4389 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5 4390 cat conftest.$ac_ext >&5
4396 cat conftest.$ac_ext >&5 4397 cat conftest.$ac_ext >&5
4397 fi 4398 fi
4398 rm -f conftest* 4399 rm -f conftest*
4399 if test $ac_cv_c_bigendian = unknown; then 4400 if test $ac_cv_c_bigendian = unknown; then
4400 cat > conftest.$ac_ext <<EOF 4401 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure" 4402 #line 4403 "configure"
4402 #include "confdefs.h" 4403 #include "confdefs.h"
4403 main () { 4404 main () {
4404 /* Are we little or big endian? From Harbison&Steele. */ 4405 /* Are we little or big endian? From Harbison&Steele. */
4405 union 4406 union
4406 { 4407 {
4409 } u; 4410 } u;
4410 u.l = 1; 4411 u.l = 1;
4411 exit (u.c[sizeof (long) - 1] == 1); 4412 exit (u.c[sizeof (long) - 1] == 1);
4412 } 4413 }
4413 EOF 4414 EOF
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4415 then 4416 then
4416 ac_cv_c_bigendian=no 4417 ac_cv_c_bigendian=no
4417 else 4418 else
4418 conftest_rc="$?" 4419 conftest_rc="$?"
4419 echo "configure: failed program was:" >&5 4420 echo "configure: failed program was:" >&5
4436 4437
4437 fi 4438 fi
4438 4439
4439 4440
4440 echo $ac_n "checking size of short""... $ac_c" 1>&6 4441 echo $ac_n "checking size of short""... $ac_c" 1>&6
4441 echo "configure:4442: checking size of short" >&5 4442 echo "configure:4443: checking size of short" >&5
4442 4443
4443 cat > conftest.$ac_ext <<EOF 4444 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure" 4445 #line 4446 "configure"
4445 #include "confdefs.h" 4446 #include "confdefs.h"
4446 #include <stdio.h> 4447 #include <stdio.h>
4448 #include <sys/types.h>
4447 main() 4449 main()
4448 { 4450 {
4449 FILE *f=fopen("conftestval", "w"); 4451 FILE *f=fopen("conftestval", "w");
4450 if (!f) exit(1); 4452 if (!f) exit(1);
4451 fprintf(f, "%d\n", sizeof(short)); 4453 fprintf(f, "%d\n", sizeof(short));
4452 exit(0); 4454 exit(0);
4453 } 4455 }
4454 EOF 4456 EOF
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4456 then 4458 then
4457 ac_cv_sizeof_short=`cat conftestval` 4459 ac_cv_sizeof_short=`cat conftestval`
4458 else 4460 else
4459 conftest_rc="$?" 4461 conftest_rc="$?"
4460 echo "configure: failed program was:" >&5 4462 echo "configure: failed program was:" >&5
4478 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4480 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4479 echo "*** PANIC *** Please examine config.log for compilation errors." 4481 echo "*** PANIC *** Please examine config.log for compilation errors."
4480 exit 1 4482 exit 1
4481 fi 4483 fi
4482 echo $ac_n "checking size of int""... $ac_c" 1>&6 4484 echo $ac_n "checking size of int""... $ac_c" 1>&6
4483 echo "configure:4484: checking size of int" >&5 4485 echo "configure:4486: checking size of int" >&5
4484 4486
4485 cat > conftest.$ac_ext <<EOF 4487 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure" 4488 #line 4489 "configure"
4487 #include "confdefs.h" 4489 #include "confdefs.h"
4488 #include <stdio.h> 4490 #include <stdio.h>
4491 #include <sys/types.h>
4489 main() 4492 main()
4490 { 4493 {
4491 FILE *f=fopen("conftestval", "w"); 4494 FILE *f=fopen("conftestval", "w");
4492 if (!f) exit(1); 4495 if (!f) exit(1);
4493 fprintf(f, "%d\n", sizeof(int)); 4496 fprintf(f, "%d\n", sizeof(int));
4494 exit(0); 4497 exit(0);
4495 } 4498 }
4496 EOF 4499 EOF
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4498 then 4501 then
4499 ac_cv_sizeof_int=`cat conftestval` 4502 ac_cv_sizeof_int=`cat conftestval`
4500 else 4503 else
4501 conftest_rc="$?" 4504 conftest_rc="$?"
4502 echo "configure: failed program was:" >&5 4505 echo "configure: failed program was:" >&5
4514 EOF 4517 EOF
4515 } 4518 }
4516 4519
4517 4520
4518 echo $ac_n "checking size of long""... $ac_c" 1>&6 4521 echo $ac_n "checking size of long""... $ac_c" 1>&6
4519 echo "configure:4520: checking size of long" >&5 4522 echo "configure:4523: checking size of long" >&5
4520 4523
4521 cat > conftest.$ac_ext <<EOF 4524 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure" 4525 #line 4526 "configure"
4523 #include "confdefs.h" 4526 #include "confdefs.h"
4524 #include <stdio.h> 4527 #include <stdio.h>
4528 #include <sys/types.h>
4525 main() 4529 main()
4526 { 4530 {
4527 FILE *f=fopen("conftestval", "w"); 4531 FILE *f=fopen("conftestval", "w");
4528 if (!f) exit(1); 4532 if (!f) exit(1);
4529 fprintf(f, "%d\n", sizeof(long)); 4533 fprintf(f, "%d\n", sizeof(long));
4530 exit(0); 4534 exit(0);
4531 } 4535 }
4532 EOF 4536 EOF
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4534 then 4538 then
4535 ac_cv_sizeof_long=`cat conftestval` 4539 ac_cv_sizeof_long=`cat conftestval`
4536 else 4540 else
4537 conftest_rc="$?" 4541 conftest_rc="$?"
4538 echo "configure: failed program was:" >&5 4542 echo "configure: failed program was:" >&5
4550 EOF 4554 EOF
4551 } 4555 }
4552 4556
4553 4557
4554 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4558 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4555 echo "configure:4556: checking size of long long" >&5 4559 echo "configure:4560: checking size of long long" >&5
4556 4560
4557 cat > conftest.$ac_ext <<EOF 4561 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure" 4562 #line 4563 "configure"
4559 #include "confdefs.h" 4563 #include "confdefs.h"
4560 #include <stdio.h> 4564 #include <stdio.h>
4565 #include <sys/types.h>
4561 main() 4566 main()
4562 { 4567 {
4563 FILE *f=fopen("conftestval", "w"); 4568 FILE *f=fopen("conftestval", "w");
4564 if (!f) exit(1); 4569 if (!f) exit(1);
4565 fprintf(f, "%d\n", sizeof(long long)); 4570 fprintf(f, "%d\n", sizeof(long long));
4566 exit(0); 4571 exit(0);
4567 } 4572 }
4568 EOF 4573 EOF
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4570 then 4575 then
4571 ac_cv_sizeof_long_long=`cat conftestval` 4576 ac_cv_sizeof_long_long=`cat conftestval`
4572 else 4577 else
4573 conftest_rc="$?" 4578 conftest_rc="$?"
4574 echo "configure: failed program was:" >&5 4579 echo "configure: failed program was:" >&5
4586 EOF 4591 EOF
4587 } 4592 }
4588 4593
4589 4594
4590 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4595 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4591 echo "configure:4592: checking size of void *" >&5 4596 echo "configure:4597: checking size of void *" >&5
4592 4597
4593 cat > conftest.$ac_ext <<EOF 4598 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure" 4599 #line 4600 "configure"
4595 #include "confdefs.h" 4600 #include "confdefs.h"
4596 #include <stdio.h> 4601 #include <stdio.h>
4602 #include <sys/types.h>
4597 main() 4603 main()
4598 { 4604 {
4599 FILE *f=fopen("conftestval", "w"); 4605 FILE *f=fopen("conftestval", "w");
4600 if (!f) exit(1); 4606 if (!f) exit(1);
4601 fprintf(f, "%d\n", sizeof(void *)); 4607 fprintf(f, "%d\n", sizeof(void *));
4602 exit(0); 4608 exit(0);
4603 } 4609 }
4604 EOF 4610 EOF
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4606 then 4612 then
4607 ac_cv_sizeof_void_p=`cat conftestval` 4613 ac_cv_sizeof_void_p=`cat conftestval`
4608 else 4614 else
4609 conftest_rc="$?" 4615 conftest_rc="$?"
4610 echo "configure: failed program was:" >&5 4616 echo "configure: failed program was:" >&5
4623 } 4629 }
4624 4630
4625 4631
4626 4632
4627 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4633 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4628 echo "configure:4629: checking for long file names" >&5 4634 echo "configure:4635: checking for long file names" >&5
4629 4635
4630 ac_cv_sys_long_file_names=yes 4636 ac_cv_sys_long_file_names=yes
4631 # Test for long file names in all the places we know might matter: 4637 # Test for long file names in all the places we know might matter:
4632 # . the current directory, where building will happen 4638 # . the current directory, where building will happen
4633 # $prefix/lib where we will be installing things 4639 # $prefix/lib where we will be installing things
4669 4675
4670 fi 4676 fi
4671 4677
4672 4678
4673 echo $ac_n "checking for sin""... $ac_c" 1>&6 4679 echo $ac_n "checking for sin""... $ac_c" 1>&6
4674 echo "configure:4675: checking for sin" >&5 4680 echo "configure:4681: checking for sin" >&5
4675 4681
4676 cat > conftest.$ac_ext <<EOF 4682 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure" 4683 #line 4684 "configure"
4678 #include "confdefs.h" 4684 #include "confdefs.h"
4679 /* System header to define __stub macros and hopefully few prototypes, 4685 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char sin(); below. */ 4686 which can conflict with char sin(); below. */
4681 #include <assert.h> 4687 #include <assert.h>
4682 /* Override any gcc2 internal prototype to avoid an error. */ 4688 /* Override any gcc2 internal prototype to avoid an error. */
4695 sin(); 4701 sin();
4696 #endif 4702 #endif
4697 4703
4698 ; return 0; } 4704 ; return 0; }
4699 EOF 4705 EOF
4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4701 rm -rf conftest* 4707 rm -rf conftest*
4702 eval "ac_cv_func_sin=yes" 4708 eval "ac_cv_func_sin=yes"
4703 else 4709 else
4704 echo "configure: failed program was:" >&5 4710 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5 4711 cat conftest.$ac_ext >&5
4713 : 4719 :
4714 else 4720 else
4715 echo "$ac_t""no" 1>&6 4721 echo "$ac_t""no" 1>&6
4716 4722
4717 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4723 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4718 echo "configure:4719: checking for sin in -lm" >&5 4724 echo "configure:4725: checking for sin in -lm" >&5
4719 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4725 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4720 4726
4721 xe_check_libs=" -lm " 4727 xe_check_libs=" -lm "
4722 cat > conftest.$ac_ext <<EOF 4728 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure" 4729 #line 4730 "configure"
4724 #include "confdefs.h" 4730 #include "confdefs.h"
4725 /* Override any gcc2 internal prototype to avoid an error. */ 4731 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2 4732 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */ 4733 builtin and then its argument prototype would still apply. */
4728 char sin(); 4734 char sin();
4729 4735
4730 int main() { 4736 int main() {
4731 sin() 4737 sin()
4732 ; return 0; } 4738 ; return 0; }
4733 EOF 4739 EOF
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4735 rm -rf conftest* 4741 rm -rf conftest*
4736 eval "ac_cv_lib_$ac_lib_var=yes" 4742 eval "ac_cv_lib_$ac_lib_var=yes"
4737 else 4743 else
4738 echo "configure: failed program was:" >&5 4744 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5 4745 cat conftest.$ac_ext >&5
4773 EOF 4779 EOF
4774 } 4780 }
4775 4781
4776 4782
4777 cat > conftest.$ac_ext <<EOF 4783 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure" 4784 #line 4785 "configure"
4779 #include "confdefs.h" 4785 #include "confdefs.h"
4780 #include <math.h> 4786 #include <math.h>
4781 int main() { 4787 int main() {
4782 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4788 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4783 ; return 0; } 4789 ; return 0; }
4784 EOF 4790 EOF
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 rm -rf conftest* 4792 rm -rf conftest*
4787 { test "$extra_verbose" = "yes" && cat << \EOF 4793 { test "$extra_verbose" = "yes" && cat << \EOF
4788 Defining HAVE_INVERSE_HYPERBOLIC 4794 Defining HAVE_INVERSE_HYPERBOLIC
4789 EOF 4795 EOF
4790 cat >> confdefs.h <<\EOF 4796 cat >> confdefs.h <<\EOF
4797 cat conftest.$ac_ext >&5 4803 cat conftest.$ac_ext >&5
4798 fi 4804 fi
4799 rm -f conftest* 4805 rm -f conftest*
4800 4806
4801 echo "checking type of mail spool file locking" 1>&6 4807 echo "checking type of mail spool file locking" 1>&6
4802 echo "configure:4803: checking type of mail spool file locking" >&5 4808 echo "configure:4809: checking type of mail spool file locking" >&5
4803 for ac_func in lockf flock 4809 for ac_func in lockf flock
4804 do 4810 do
4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_func" >&5 4812 echo "configure:4813: checking for $ac_func" >&5
4807 4813
4808 cat > conftest.$ac_ext <<EOF 4814 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure" 4815 #line 4816 "configure"
4810 #include "confdefs.h" 4816 #include "confdefs.h"
4811 /* System header to define __stub macros and hopefully few prototypes, 4817 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func(); below. */ 4818 which can conflict with char $ac_func(); below. */
4813 #include <assert.h> 4819 #include <assert.h>
4814 /* Override any gcc2 internal prototype to avoid an error. */ 4820 /* Override any gcc2 internal prototype to avoid an error. */
4827 $ac_func(); 4833 $ac_func();
4828 #endif 4834 #endif
4829 4835
4830 ; return 0; } 4836 ; return 0; }
4831 EOF 4837 EOF
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 rm -rf conftest* 4839 rm -rf conftest*
4834 eval "ac_cv_func_$ac_func=yes" 4840 eval "ac_cv_func_$ac_func=yes"
4835 else 4841 else
4836 echo "configure: failed program was:" >&5 4842 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5 4843 cat conftest.$ac_ext >&5
4909 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4915 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4910 4916
4911 case "$opsys" in decosf*) 4917 case "$opsys" in decosf*)
4912 4918
4913 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4919 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4914 echo "configure:4915: checking for cma_open in -lpthreads" >&5 4920 echo "configure:4921: checking for cma_open in -lpthreads" >&5
4915 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4921 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4916 4922
4917 xe_check_libs=" -lpthreads " 4923 xe_check_libs=" -lpthreads "
4918 cat > conftest.$ac_ext <<EOF 4924 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure" 4925 #line 4926 "configure"
4920 #include "confdefs.h" 4926 #include "confdefs.h"
4921 /* Override any gcc2 internal prototype to avoid an error. */ 4927 /* Override any gcc2 internal prototype to avoid an error. */
4922 /* We use char because int might match the return type of a gcc2 4928 /* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */ 4929 builtin and then its argument prototype would still apply. */
4924 char cma_open(); 4930 char cma_open();
4925 4931
4926 int main() { 4932 int main() {
4927 cma_open() 4933 cma_open()
4928 ; return 0; } 4934 ; return 0; }
4929 EOF 4935 EOF
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 rm -rf conftest* 4937 rm -rf conftest*
4932 eval "ac_cv_lib_$ac_lib_var=yes" 4938 eval "ac_cv_lib_$ac_lib_var=yes"
4933 else 4939 else
4934 echo "configure: failed program was:" >&5 4940 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5 4941 cat conftest.$ac_ext >&5
4961 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4967 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4962 c_switch_site="$c_switch_site -threads" ;; 4968 c_switch_site="$c_switch_site -threads" ;;
4963 esac 4969 esac
4964 4970
4965 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4971 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4966 echo "configure:4967: checking whether the -xildoff compiler flag is required" >&5 4972 echo "configure:4973: checking whether the -xildoff compiler flag is required" >&5
4967 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4973 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4968 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4974 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4969 then echo "$ac_t""no" 1>&6; 4975 then echo "$ac_t""no" 1>&6;
4970 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 4976 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4971 fi 4977 fi
4973 fi 4979 fi
4974 4980
4975 if test "$opsys" = "sol2"; then 4981 if test "$opsys" = "sol2"; then
4976 if test "$os_release" -ge 56; then 4982 if test "$os_release" -ge 56; then
4977 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4983 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4978 echo "configure:4979: checking for \"-z ignore\" linker flag" >&5 4984 echo "configure:4985: checking for \"-z ignore\" linker flag" >&5
4979 case "`ld -h 2>&1`" in 4985 case "`ld -h 2>&1`" in
4980 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4986 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4981 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4987 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4982 *) echo "$ac_t""no" 1>&6 ;; 4988 *) echo "$ac_t""no" 1>&6 ;;
4983 esac 4989 esac
4984 fi 4990 fi
4985 fi 4991 fi
4986 4992
4987 4993
4988 echo "checking "for specified window system"" 1>&6 4994 echo "checking "for specified window system"" 1>&6
4989 echo "configure:4990: checking "for specified window system"" >&5 4995 echo "configure:4996: checking "for specified window system"" >&5
4990 4996
4991 4997
4992 GNOME_CONFIG=no 4998 GNOME_CONFIG=no
4993 GTK_CONFIG=no 4999 GTK_CONFIG=no
4994 5000
4995 if test "$with_gnome" != "no"; then 5001 if test "$with_gnome" != "no"; then
4996 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5002 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
4997 echo "configure:4998: checking for GNOME configuration script" >&5 5003 echo "configure:5004: checking for GNOME configuration script" >&5
4998 for possible in gnome-config 5004 for possible in gnome-config
4999 do 5005 do
5000 possible_version=`${possible} --version 2> /dev/null` 5006 possible_version=`${possible} --version 2> /dev/null`
5001 if test "x${possible_version}" != "x"; then 5007 if test "x${possible_version}" != "x"; then
5002 GNOME_CONFIG="${possible}" 5008 GNOME_CONFIG="${possible}"
5023 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5029 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5024 fi 5030 fi
5025 5031
5026 if test "$with_gtk" != "no";then 5032 if test "$with_gtk" != "no";then
5027 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5033 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5028 echo "configure:5029: checking for GTK configuration script" >&5 5034 echo "configure:5035: checking for GTK configuration script" >&5
5029 for possible in gtk12-config gtk14-config gtk-config 5035 for possible in gtk12-config gtk14-config gtk-config
5030 do 5036 do
5031 possible_version=`${possible} --version 2> /dev/null` 5037 possible_version=`${possible} --version 2> /dev/null`
5032 if test "x${possible_version}" != "x"; then 5038 if test "x${possible_version}" != "x"; then
5033 GTK_CONFIG="${possible}" 5039 GTK_CONFIG="${possible}"
5045 echo "$ac_t""${GTK_CONFIG}" 1>&6 5051 echo "$ac_t""${GTK_CONFIG}" 1>&6
5046 fi 5052 fi
5047 5053
5048 if test "${GTK_CONFIG}" != "no"; then 5054 if test "${GTK_CONFIG}" != "no"; then
5049 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5055 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5050 echo "configure:5051: checking gtk version" >&5 5056 echo "configure:5057: checking gtk version" >&5
5051 GTK_VERSION=`${GTK_CONFIG} --version` 5057 GTK_VERSION=`${GTK_CONFIG} --version`
5052 echo "$ac_t""${GTK_VERSION}" 1>&6 5058 echo "$ac_t""${GTK_VERSION}" 1>&6
5053 5059
5054 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5060 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5055 echo "configure:5056: checking gtk libs" >&5 5061 echo "configure:5062: checking gtk libs" >&5
5056 GTK_LIBS=`${GTK_CONFIG} --libs` 5062 GTK_LIBS=`${GTK_CONFIG} --libs`
5057 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5063 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5058 echo "$ac_t""${GTK_LIBS}" 1>&6 5064 echo "$ac_t""${GTK_LIBS}" 1>&6
5059 5065
5060 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5066 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5061 echo "configure:5062: checking gtk cflags" >&5 5067 echo "configure:5068: checking gtk cflags" >&5
5062 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5068 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5063 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5069 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5064 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5070 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5065 5071
5066 5072
5067 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5073 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5068 echo "configure:5069: checking for main in -lgdk_imlib" >&5 5074 echo "configure:5075: checking for main in -lgdk_imlib" >&5
5069 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5075 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5070 5076
5071 xe_check_libs=" -lgdk_imlib " 5077 xe_check_libs=" -lgdk_imlib "
5072 cat > conftest.$ac_ext <<EOF 5078 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure" 5079 #line 5080 "configure"
5074 #include "confdefs.h" 5080 #include "confdefs.h"
5075 5081
5076 int main() { 5082 int main() {
5077 main() 5083 main()
5078 ; return 0; } 5084 ; return 0; }
5079 EOF 5085 EOF
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 rm -rf conftest* 5087 rm -rf conftest*
5082 eval "ac_cv_lib_$ac_lib_var=yes" 5088 eval "ac_cv_lib_$ac_lib_var=yes"
5083 else 5089 else
5084 echo "configure: failed program was:" >&5 5090 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5 5091 cat conftest.$ac_ext >&5
5097 fi 5103 fi
5098 5104
5099 5105
5100 5106
5101 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5107 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5102 echo "configure:5103: checking for Imlib_init in -lImlib" >&5 5108 echo "configure:5109: checking for Imlib_init in -lImlib" >&5
5103 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5109 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5104 5110
5105 xe_check_libs=" -lImlib " 5111 xe_check_libs=" -lImlib "
5106 cat > conftest.$ac_ext <<EOF 5112 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure" 5113 #line 5114 "configure"
5108 #include "confdefs.h" 5114 #include "confdefs.h"
5109 /* Override any gcc2 internal prototype to avoid an error. */ 5115 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2 5116 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */ 5117 builtin and then its argument prototype would still apply. */
5112 char Imlib_init(); 5118 char Imlib_init();
5113 5119
5114 int main() { 5120 int main() {
5115 Imlib_init() 5121 Imlib_init()
5116 ; return 0; } 5122 ; return 0; }
5117 EOF 5123 EOF
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 rm -rf conftest* 5125 rm -rf conftest*
5120 eval "ac_cv_lib_$ac_lib_var=yes" 5126 eval "ac_cv_lib_$ac_lib_var=yes"
5121 else 5127 else
5122 echo "configure: failed program was:" >&5 5128 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5 5129 cat conftest.$ac_ext >&5
5136 5142
5137 5143
5138 for ac_func in gdk_imlib_init 5144 for ac_func in gdk_imlib_init
5139 do 5145 do
5140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5141 echo "configure:5142: checking for $ac_func" >&5 5147 echo "configure:5148: checking for $ac_func" >&5
5142 5148
5143 cat > conftest.$ac_ext <<EOF 5149 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure" 5150 #line 5151 "configure"
5145 #include "confdefs.h" 5151 #include "confdefs.h"
5146 /* System header to define __stub macros and hopefully few prototypes, 5152 /* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char $ac_func(); below. */ 5153 which can conflict with char $ac_func(); below. */
5148 #include <assert.h> 5154 #include <assert.h>
5149 /* Override any gcc2 internal prototype to avoid an error. */ 5155 /* Override any gcc2 internal prototype to avoid an error. */
5162 $ac_func(); 5168 $ac_func();
5163 #endif 5169 #endif
5164 5170
5165 ; return 0; } 5171 ; return 0; }
5166 EOF 5172 EOF
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 rm -rf conftest* 5174 rm -rf conftest*
5169 eval "ac_cv_func_$ac_func=yes" 5175 eval "ac_cv_func_$ac_func=yes"
5170 else 5176 else
5171 echo "configure: failed program was:" >&5 5177 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5 5178 cat conftest.$ac_ext >&5
5239 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5245 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5240 for ac_hdr in glade/glade.h glade.h 5246 for ac_hdr in glade/glade.h glade.h
5241 do 5247 do
5242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_hdr" >&5 5250 echo "configure:5251: checking for $ac_hdr" >&5
5245 5251
5246 cat > conftest.$ac_ext <<EOF 5252 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure" 5253 #line 5254 "configure"
5248 #include "confdefs.h" 5254 #include "confdefs.h"
5249 #include <$ac_hdr> 5255 #include <$ac_hdr>
5250 EOF 5256 EOF
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5258 { (eval echo configure:5259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then 5260 if test -z "$ac_err"; then
5255 rm -rf conftest* 5261 rm -rf conftest*
5256 eval "ac_cv_header_$ac_safe=yes" 5262 eval "ac_cv_header_$ac_safe=yes"
5257 else 5263 else
5278 fi 5284 fi
5279 done 5285 done
5280 5286
5281 5287
5282 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5288 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5283 echo "configure:5284: checking for main in -lxml" >&5 5289 echo "configure:5290: checking for main in -lxml" >&5
5284 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5290 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5285 5291
5286 xe_check_libs=" -lxml " 5292 xe_check_libs=" -lxml "
5287 cat > conftest.$ac_ext <<EOF 5293 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure" 5294 #line 5295 "configure"
5289 #include "confdefs.h" 5295 #include "confdefs.h"
5290 5296
5291 int main() { 5297 int main() {
5292 main() 5298 main()
5293 ; return 0; } 5299 ; return 0; }
5294 EOF 5300 EOF
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 rm -rf conftest* 5302 rm -rf conftest*
5297 eval "ac_cv_lib_$ac_lib_var=yes" 5303 eval "ac_cv_lib_$ac_lib_var=yes"
5298 else 5304 else
5299 echo "configure: failed program was:" >&5 5305 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5 5306 cat conftest.$ac_ext >&5
5312 fi 5318 fi
5313 5319
5314 5320
5315 5321
5316 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5322 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5317 echo "configure:5318: checking for main in -lglade" >&5 5323 echo "configure:5324: checking for main in -lglade" >&5
5318 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5324 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5319 5325
5320 xe_check_libs=" -lglade " 5326 xe_check_libs=" -lglade "
5321 cat > conftest.$ac_ext <<EOF 5327 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure" 5328 #line 5329 "configure"
5323 #include "confdefs.h" 5329 #include "confdefs.h"
5324 5330
5325 int main() { 5331 int main() {
5326 main() 5332 main()
5327 ; return 0; } 5333 ; return 0; }
5328 EOF 5334 EOF
5329 if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5330 rm -rf conftest* 5336 rm -rf conftest*
5331 eval "ac_cv_lib_$ac_lib_var=yes" 5337 eval "ac_cv_lib_$ac_lib_var=yes"
5332 else 5338 else
5333 echo "configure: failed program was:" >&5 5339 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5 5340 cat conftest.$ac_ext >&5
5346 fi 5352 fi
5347 5353
5348 5354
5349 5355
5350 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5356 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5351 echo "configure:5352: checking for main in -lglade-gnome" >&5 5357 echo "configure:5358: checking for main in -lglade-gnome" >&5
5352 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5358 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5353 5359
5354 xe_check_libs=" -lglade-gnome " 5360 xe_check_libs=" -lglade-gnome "
5355 cat > conftest.$ac_ext <<EOF 5361 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure" 5362 #line 5363 "configure"
5357 #include "confdefs.h" 5363 #include "confdefs.h"
5358 5364
5359 int main() { 5365 int main() {
5360 main() 5366 main()
5361 ; return 0; } 5367 ; return 0; }
5362 EOF 5368 EOF
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 rm -rf conftest* 5370 rm -rf conftest*
5365 eval "ac_cv_lib_$ac_lib_var=yes" 5371 eval "ac_cv_lib_$ac_lib_var=yes"
5366 else 5372 else
5367 echo "configure: failed program was:" >&5 5373 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5 5374 cat conftest.$ac_ext >&5
5379 echo "$ac_t""no" 1>&6 5385 echo "$ac_t""no" 1>&6
5380 fi 5386 fi
5381 5387
5382 5388
5383 cat > conftest.$ac_ext <<EOF 5389 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure" 5390 #line 5391 "configure"
5385 #include "confdefs.h" 5391 #include "confdefs.h"
5386 #include <glade/glade-xml.h> 5392 #include <glade/glade-xml.h>
5387 EOF 5393 EOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5395 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5437 # If we find X, set shell vars x_includes and x_libraries to the 5443 # If we find X, set shell vars x_includes and x_libraries to the
5438 # paths, otherwise set no_x=yes. 5444 # paths, otherwise set no_x=yes.
5439 # Uses ac_ vars as temps to allow command line to override cache and checks. 5445 # Uses ac_ vars as temps to allow command line to override cache and checks.
5440 # --without-x overrides everything else, but does not touch the cache. 5446 # --without-x overrides everything else, but does not touch the cache.
5441 echo $ac_n "checking for X""... $ac_c" 1>&6 5447 echo $ac_n "checking for X""... $ac_c" 1>&6
5442 echo "configure:5443: checking for X" >&5 5448 echo "configure:5449: checking for X" >&5
5443 5449
5444 # Check whether --with-x or --without-x was given. 5450 # Check whether --with-x or --without-x was given.
5445 if test "${with_x+set}" = set; then 5451 if test "${with_x+set}" = set; then
5446 withval="$with_x" 5452 withval="$with_x"
5447 : 5453 :
5497 # Guess where to find include files, by looking for this one X11 .h file. 5503 # Guess where to find include files, by looking for this one X11 .h file.
5498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5504 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5499 5505
5500 # First, try using that file with no special directory specified. 5506 # First, try using that file with no special directory specified.
5501 cat > conftest.$ac_ext <<EOF 5507 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure" 5508 #line 5509 "configure"
5503 #include "confdefs.h" 5509 #include "confdefs.h"
5504 #include <$x_direct_test_include> 5510 #include <$x_direct_test_include>
5505 EOF 5511 EOF
5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5513 { (eval echo configure:5514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then 5515 if test -z "$ac_err"; then
5510 rm -rf conftest* 5516 rm -rf conftest*
5511 # We can compile using X headers with no special include directory. 5517 # We can compile using X headers with no special include directory.
5512 ac_x_includes= 5518 ac_x_includes=
5571 # See if we find them without any special options. 5577 # See if we find them without any special options.
5572 # Don't add to $LIBS permanently. 5578 # Don't add to $LIBS permanently.
5573 ac_save_LIBS="$LIBS" 5579 ac_save_LIBS="$LIBS"
5574 LIBS="-l$x_direct_test_library $LIBS" 5580 LIBS="-l$x_direct_test_library $LIBS"
5575 cat > conftest.$ac_ext <<EOF 5581 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure" 5582 #line 5583 "configure"
5577 #include "confdefs.h" 5583 #include "confdefs.h"
5578 5584
5579 int main() { 5585 int main() {
5580 ${x_direct_test_function}() 5586 ${x_direct_test_function}()
5581 ; return 0; } 5587 ; return 0; }
5582 EOF 5588 EOF
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5589 if { (eval echo configure:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 rm -rf conftest* 5590 rm -rf conftest*
5585 LIBS="$ac_save_LIBS" 5591 LIBS="$ac_save_LIBS"
5586 # We can link X programs with no special library path. 5592 # We can link X programs with no special library path.
5587 ac_x_libraries= 5593 ac_x_libraries=
5588 else 5594 else
5687 # For Solaris; some versions of Sun CC require a space after -R and 5693 # For Solaris; some versions of Sun CC require a space after -R and
5688 # others require no space. Words are not sufficient . . . . 5694 # others require no space. Words are not sufficient . . . .
5689 case "`(uname -sr) 2>/dev/null`" in 5695 case "`(uname -sr) 2>/dev/null`" in
5690 "SunOS 5"*) 5696 "SunOS 5"*)
5691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5697 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5692 echo "configure:5693: checking whether -R must be followed by a space" >&5 5698 echo "configure:5699: checking whether -R must be followed by a space" >&5
5693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5699 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5694 cat > conftest.$ac_ext <<EOF 5700 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure" 5701 #line 5702 "configure"
5696 #include "confdefs.h" 5702 #include "confdefs.h"
5697 5703
5698 int main() { 5704 int main() {
5699 5705
5700 ; return 0; } 5706 ; return 0; }
5701 EOF 5707 EOF
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 rm -rf conftest* 5709 rm -rf conftest*
5704 ac_R_nospace=yes 5710 ac_R_nospace=yes
5705 else 5711 else
5706 echo "configure: failed program was:" >&5 5712 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5 5713 cat conftest.$ac_ext >&5
5713 echo "$ac_t""no" 1>&6 5719 echo "$ac_t""no" 1>&6
5714 X_LIBS="$X_LIBS -R$x_libraries" 5720 X_LIBS="$X_LIBS -R$x_libraries"
5715 else 5721 else
5716 LIBS="$ac_xsave_LIBS -R $x_libraries" 5722 LIBS="$ac_xsave_LIBS -R $x_libraries"
5717 cat > conftest.$ac_ext <<EOF 5723 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure" 5724 #line 5725 "configure"
5719 #include "confdefs.h" 5725 #include "confdefs.h"
5720 5726
5721 int main() { 5727 int main() {
5722 5728
5723 ; return 0; } 5729 ; return 0; }
5724 EOF 5730 EOF
5725 if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5726 rm -rf conftest* 5732 rm -rf conftest*
5727 ac_R_space=yes 5733 ac_R_space=yes
5728 else 5734 else
5729 echo "configure: failed program was:" >&5 5735 echo "configure: failed program was:" >&5
5730 cat conftest.$ac_ext >&5 5736 cat conftest.$ac_ext >&5
5756 if test "$with_dnet" = "no" ; then 5762 if test "$with_dnet" = "no" ; then
5757 ac_cv_lib_dnet_dnet_ntoa=no 5763 ac_cv_lib_dnet_dnet_ntoa=no
5758 else 5764 else
5759 5765
5760 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5766 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5761 echo "configure:5762: checking for dnet_ntoa in -ldnet" >&5 5767 echo "configure:5768: checking for dnet_ntoa in -ldnet" >&5
5762 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5768 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5763 5769
5764 xe_check_libs=" -ldnet " 5770 xe_check_libs=" -ldnet "
5765 cat > conftest.$ac_ext <<EOF 5771 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure" 5772 #line 5773 "configure"
5767 #include "confdefs.h" 5773 #include "confdefs.h"
5768 /* Override any gcc2 internal prototype to avoid an error. */ 5774 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2 5775 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */ 5776 builtin and then its argument prototype would still apply. */
5771 char dnet_ntoa(); 5777 char dnet_ntoa();
5772 5778
5773 int main() { 5779 int main() {
5774 dnet_ntoa() 5780 dnet_ntoa()
5775 ; return 0; } 5781 ; return 0; }
5776 EOF 5782 EOF
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778 rm -rf conftest* 5784 rm -rf conftest*
5779 eval "ac_cv_lib_$ac_lib_var=yes" 5785 eval "ac_cv_lib_$ac_lib_var=yes"
5780 else 5786 else
5781 echo "configure: failed program was:" >&5 5787 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5 5788 cat conftest.$ac_ext >&5
5796 fi 5802 fi
5797 5803
5798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5804 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5799 5805
5800 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5806 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5801 echo "configure:5802: checking for dnet_ntoa in -ldnet_stub" >&5 5807 echo "configure:5808: checking for dnet_ntoa in -ldnet_stub" >&5
5802 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5808 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5803 5809
5804 xe_check_libs=" -ldnet_stub " 5810 xe_check_libs=" -ldnet_stub "
5805 cat > conftest.$ac_ext <<EOF 5811 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure" 5812 #line 5813 "configure"
5807 #include "confdefs.h" 5813 #include "confdefs.h"
5808 /* Override any gcc2 internal prototype to avoid an error. */ 5814 /* Override any gcc2 internal prototype to avoid an error. */
5809 /* We use char because int might match the return type of a gcc2 5815 /* We use char because int might match the return type of a gcc2
5810 builtin and then its argument prototype would still apply. */ 5816 builtin and then its argument prototype would still apply. */
5811 char dnet_ntoa(); 5817 char dnet_ntoa();
5812 5818
5813 int main() { 5819 int main() {
5814 dnet_ntoa() 5820 dnet_ntoa()
5815 ; return 0; } 5821 ; return 0; }
5816 EOF 5822 EOF
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5823 if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 rm -rf conftest* 5824 rm -rf conftest*
5819 eval "ac_cv_lib_$ac_lib_var=yes" 5825 eval "ac_cv_lib_$ac_lib_var=yes"
5820 else 5826 else
5821 echo "configure: failed program was:" >&5 5827 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5 5828 cat conftest.$ac_ext >&5
5841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5847 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5842 # needs -lnsl. 5848 # needs -lnsl.
5843 # The nsl library prevents programs from opening the X display 5849 # The nsl library prevents programs from opening the X display
5844 # on Irix 5.2, according to dickey@clark.net. 5850 # on Irix 5.2, according to dickey@clark.net.
5845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5851 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5846 echo "configure:5847: checking for gethostbyname" >&5 5852 echo "configure:5853: checking for gethostbyname" >&5
5847 5853
5848 cat > conftest.$ac_ext <<EOF 5854 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure" 5855 #line 5856 "configure"
5850 #include "confdefs.h" 5856 #include "confdefs.h"
5851 /* System header to define __stub macros and hopefully few prototypes, 5857 /* System header to define __stub macros and hopefully few prototypes,
5852 which can conflict with char gethostbyname(); below. */ 5858 which can conflict with char gethostbyname(); below. */
5853 #include <assert.h> 5859 #include <assert.h>
5854 /* Override any gcc2 internal prototype to avoid an error. */ 5860 /* Override any gcc2 internal prototype to avoid an error. */
5867 gethostbyname(); 5873 gethostbyname();
5868 #endif 5874 #endif
5869 5875
5870 ; return 0; } 5876 ; return 0; }
5871 EOF 5877 EOF
5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 rm -rf conftest* 5879 rm -rf conftest*
5874 eval "ac_cv_func_gethostbyname=yes" 5880 eval "ac_cv_func_gethostbyname=yes"
5875 else 5881 else
5876 echo "configure: failed program was:" >&5 5882 echo "configure: failed program was:" >&5
5877 cat conftest.$ac_ext >&5 5883 cat conftest.$ac_ext >&5
5888 fi 5894 fi
5889 5895
5890 if test $ac_cv_func_gethostbyname = no; then 5896 if test $ac_cv_func_gethostbyname = no; then
5891 5897
5892 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5898 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5893 echo "configure:5894: checking for gethostbyname in -lnsl" >&5 5899 echo "configure:5900: checking for gethostbyname in -lnsl" >&5
5894 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5900 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5895 5901
5896 xe_check_libs=" -lnsl " 5902 xe_check_libs=" -lnsl "
5897 cat > conftest.$ac_ext <<EOF 5903 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure" 5904 #line 5905 "configure"
5899 #include "confdefs.h" 5905 #include "confdefs.h"
5900 /* Override any gcc2 internal prototype to avoid an error. */ 5906 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2 5907 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */ 5908 builtin and then its argument prototype would still apply. */
5903 char gethostbyname(); 5909 char gethostbyname();
5904 5910
5905 int main() { 5911 int main() {
5906 gethostbyname() 5912 gethostbyname()
5907 ; return 0; } 5913 ; return 0; }
5908 EOF 5914 EOF
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 rm -rf conftest* 5916 rm -rf conftest*
5911 eval "ac_cv_lib_$ac_lib_var=yes" 5917 eval "ac_cv_lib_$ac_lib_var=yes"
5912 else 5918 else
5913 echo "configure: failed program was:" >&5 5919 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5 5920 cat conftest.$ac_ext >&5
5934 # on later versions), says simon@lia.di.epfl.ch: it contains 5940 # on later versions), says simon@lia.di.epfl.ch: it contains
5935 # gethostby* variants that don't use the nameserver (or something). 5941 # gethostby* variants that don't use the nameserver (or something).
5936 # -lsocket must be given before -lnsl if both are needed. 5942 # -lsocket must be given before -lnsl if both are needed.
5937 # We assume that if connect needs -lnsl, so does gethostbyname. 5943 # We assume that if connect needs -lnsl, so does gethostbyname.
5938 echo $ac_n "checking for connect""... $ac_c" 1>&6 5944 echo $ac_n "checking for connect""... $ac_c" 1>&6
5939 echo "configure:5940: checking for connect" >&5 5945 echo "configure:5946: checking for connect" >&5
5940 5946
5941 cat > conftest.$ac_ext <<EOF 5947 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure" 5948 #line 5949 "configure"
5943 #include "confdefs.h" 5949 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes, 5950 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char connect(); below. */ 5951 which can conflict with char connect(); below. */
5946 #include <assert.h> 5952 #include <assert.h>
5947 /* Override any gcc2 internal prototype to avoid an error. */ 5953 /* Override any gcc2 internal prototype to avoid an error. */
5960 connect(); 5966 connect();
5961 #endif 5967 #endif
5962 5968
5963 ; return 0; } 5969 ; return 0; }
5964 EOF 5970 EOF
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5971 if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5966 rm -rf conftest* 5972 rm -rf conftest*
5967 eval "ac_cv_func_connect=yes" 5973 eval "ac_cv_func_connect=yes"
5968 else 5974 else
5969 echo "configure: failed program was:" >&5 5975 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5 5976 cat conftest.$ac_ext >&5
5983 if test $ac_cv_func_connect = no; then 5989 if test $ac_cv_func_connect = no; then
5984 5990
5985 xe_msg_checking="for connect in -lsocket" 5991 xe_msg_checking="for connect in -lsocket"
5986 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5992 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5987 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5993 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5988 echo "configure:5989: checking "$xe_msg_checking"" >&5 5994 echo "configure:5995: checking "$xe_msg_checking"" >&5
5989 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5995 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5990 5996
5991 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5997 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5992 cat > conftest.$ac_ext <<EOF 5998 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure" 5999 #line 6000 "configure"
5994 #include "confdefs.h" 6000 #include "confdefs.h"
5995 /* Override any gcc2 internal prototype to avoid an error. */ 6001 /* Override any gcc2 internal prototype to avoid an error. */
5996 /* We use char because int might match the return type of a gcc2 6002 /* We use char because int might match the return type of a gcc2
5997 builtin and then its argument prototype would still apply. */ 6003 builtin and then its argument prototype would still apply. */
5998 char connect(); 6004 char connect();
5999 6005
6000 int main() { 6006 int main() {
6001 connect() 6007 connect()
6002 ; return 0; } 6008 ; return 0; }
6003 EOF 6009 EOF
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 rm -rf conftest* 6011 rm -rf conftest*
6006 eval "ac_cv_lib_$ac_lib_var=yes" 6012 eval "ac_cv_lib_$ac_lib_var=yes"
6007 else 6013 else
6008 echo "configure: failed program was:" >&5 6014 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5 6015 cat conftest.$ac_ext >&5
6023 6029
6024 fi 6030 fi
6025 6031
6026 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6032 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6027 echo $ac_n "checking for remove""... $ac_c" 1>&6 6033 echo $ac_n "checking for remove""... $ac_c" 1>&6
6028 echo "configure:6029: checking for remove" >&5 6034 echo "configure:6035: checking for remove" >&5
6029 6035
6030 cat > conftest.$ac_ext <<EOF 6036 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure" 6037 #line 6038 "configure"
6032 #include "confdefs.h" 6038 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes, 6039 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char remove(); below. */ 6040 which can conflict with char remove(); below. */
6035 #include <assert.h> 6041 #include <assert.h>
6036 /* Override any gcc2 internal prototype to avoid an error. */ 6042 /* Override any gcc2 internal prototype to avoid an error. */
6049 remove(); 6055 remove();
6050 #endif 6056 #endif
6051 6057
6052 ; return 0; } 6058 ; return 0; }
6053 EOF 6059 EOF
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 rm -rf conftest* 6061 rm -rf conftest*
6056 eval "ac_cv_func_remove=yes" 6062 eval "ac_cv_func_remove=yes"
6057 else 6063 else
6058 echo "configure: failed program was:" >&5 6064 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5 6065 cat conftest.$ac_ext >&5
6070 fi 6076 fi
6071 6077
6072 if test $ac_cv_func_remove = no; then 6078 if test $ac_cv_func_remove = no; then
6073 6079
6074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6080 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6075 echo "configure:6076: checking for remove in -lposix" >&5 6081 echo "configure:6082: checking for remove in -lposix" >&5
6076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6082 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6077 6083
6078 xe_check_libs=" -lposix " 6084 xe_check_libs=" -lposix "
6079 cat > conftest.$ac_ext <<EOF 6085 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure" 6086 #line 6087 "configure"
6081 #include "confdefs.h" 6087 #include "confdefs.h"
6082 /* Override any gcc2 internal prototype to avoid an error. */ 6088 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2 6089 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */ 6090 builtin and then its argument prototype would still apply. */
6085 char remove(); 6091 char remove();
6086 6092
6087 int main() { 6093 int main() {
6088 remove() 6094 remove()
6089 ; return 0; } 6095 ; return 0; }
6090 EOF 6096 EOF
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6092 rm -rf conftest* 6098 rm -rf conftest*
6093 eval "ac_cv_lib_$ac_lib_var=yes" 6099 eval "ac_cv_lib_$ac_lib_var=yes"
6094 else 6100 else
6095 echo "configure: failed program was:" >&5 6101 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5 6102 cat conftest.$ac_ext >&5
6110 6116
6111 fi 6117 fi
6112 6118
6113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6119 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6114 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6120 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6115 echo "configure:6116: checking for shmat" >&5 6121 echo "configure:6122: checking for shmat" >&5
6116 6122
6117 cat > conftest.$ac_ext <<EOF 6123 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure" 6124 #line 6125 "configure"
6119 #include "confdefs.h" 6125 #include "confdefs.h"
6120 /* System header to define __stub macros and hopefully few prototypes, 6126 /* System header to define __stub macros and hopefully few prototypes,
6121 which can conflict with char shmat(); below. */ 6127 which can conflict with char shmat(); below. */
6122 #include <assert.h> 6128 #include <assert.h>
6123 /* Override any gcc2 internal prototype to avoid an error. */ 6129 /* Override any gcc2 internal prototype to avoid an error. */
6136 shmat(); 6142 shmat();
6137 #endif 6143 #endif
6138 6144
6139 ; return 0; } 6145 ; return 0; }
6140 EOF 6146 EOF
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 rm -rf conftest* 6148 rm -rf conftest*
6143 eval "ac_cv_func_shmat=yes" 6149 eval "ac_cv_func_shmat=yes"
6144 else 6150 else
6145 echo "configure: failed program was:" >&5 6151 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5 6152 cat conftest.$ac_ext >&5
6157 fi 6163 fi
6158 6164
6159 if test $ac_cv_func_shmat = no; then 6165 if test $ac_cv_func_shmat = no; then
6160 6166
6161 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6162 echo "configure:6163: checking for shmat in -lipc" >&5 6168 echo "configure:6169: checking for shmat in -lipc" >&5
6163 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6169 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6164 6170
6165 xe_check_libs=" -lipc " 6171 xe_check_libs=" -lipc "
6166 cat > conftest.$ac_ext <<EOF 6172 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure" 6173 #line 6174 "configure"
6168 #include "confdefs.h" 6174 #include "confdefs.h"
6169 /* Override any gcc2 internal prototype to avoid an error. */ 6175 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2 6176 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */ 6177 builtin and then its argument prototype would still apply. */
6172 char shmat(); 6178 char shmat();
6173 6179
6174 int main() { 6180 int main() {
6175 shmat() 6181 shmat()
6176 ; return 0; } 6182 ; return 0; }
6177 EOF 6183 EOF
6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6179 rm -rf conftest* 6185 rm -rf conftest*
6180 eval "ac_cv_lib_$ac_lib_var=yes" 6186 eval "ac_cv_lib_$ac_lib_var=yes"
6181 else 6187 else
6182 echo "configure: failed program was:" >&5 6188 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5 6189 cat conftest.$ac_ext >&5
6209 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6215 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6210 6216
6211 xe_msg_checking="for IceConnectionNumber in -lICE" 6217 xe_msg_checking="for IceConnectionNumber in -lICE"
6212 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6218 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6213 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6219 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6214 echo "configure:6215: checking "$xe_msg_checking"" >&5 6220 echo "configure:6221: checking "$xe_msg_checking"" >&5
6215 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6221 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6216 6222
6217 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6223 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6218 cat > conftest.$ac_ext <<EOF 6224 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure" 6225 #line 6226 "configure"
6220 #include "confdefs.h" 6226 #include "confdefs.h"
6221 /* Override any gcc2 internal prototype to avoid an error. */ 6227 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2 6228 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */ 6229 builtin and then its argument prototype would still apply. */
6224 char IceConnectionNumber(); 6230 char IceConnectionNumber();
6225 6231
6226 int main() { 6232 int main() {
6227 IceConnectionNumber() 6233 IceConnectionNumber()
6228 ; return 0; } 6234 ; return 0; }
6229 EOF 6235 EOF
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 rm -rf conftest* 6237 rm -rf conftest*
6232 eval "ac_cv_lib_$ac_lib_var=yes" 6238 eval "ac_cv_lib_$ac_lib_var=yes"
6233 else 6239 else
6234 echo "configure: failed program was:" >&5 6240 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5 6241 cat conftest.$ac_ext >&5
6392 EOF 6398 EOF
6393 } 6399 }
6394 6400
6395 6401
6396 echo "checking for X defines extracted by xmkmf" 1>&6 6402 echo "checking for X defines extracted by xmkmf" 1>&6
6397 echo "configure:6398: checking for X defines extracted by xmkmf" >&5 6403 echo "configure:6404: checking for X defines extracted by xmkmf" >&5
6398 rm -fr conftestdir 6404 rm -fr conftestdir
6399 if mkdir conftestdir; then 6405 if mkdir conftestdir; then
6400 cd conftestdir 6406 cd conftestdir
6401 cat > Imakefile <<'EOF' 6407 cat > Imakefile <<'EOF'
6402 xetest: 6408 xetest:
6439 done 6445 done
6440 fi 6446 fi
6441 6447
6442 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6448 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6443 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6449 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6444 echo "configure:6445: checking for X11/Intrinsic.h" >&5 6450 echo "configure:6451: checking for X11/Intrinsic.h" >&5
6445 6451
6446 cat > conftest.$ac_ext <<EOF 6452 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure" 6453 #line 6454 "configure"
6448 #include "confdefs.h" 6454 #include "confdefs.h"
6449 #include <X11/Intrinsic.h> 6455 #include <X11/Intrinsic.h>
6450 EOF 6456 EOF
6451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6452 { (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6458 { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6454 if test -z "$ac_err"; then 6460 if test -z "$ac_err"; then
6455 rm -rf conftest* 6461 rm -rf conftest*
6456 eval "ac_cv_header_$ac_safe=yes" 6462 eval "ac_cv_header_$ac_safe=yes"
6457 else 6463 else
6471 fi 6477 fi
6472 6478
6473 6479
6474 6480
6475 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6481 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6476 echo "configure:6477: checking for XOpenDisplay in -lX11" >&5 6482 echo "configure:6483: checking for XOpenDisplay in -lX11" >&5
6477 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6483 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6478 6484
6479 xe_check_libs=" -lX11 " 6485 xe_check_libs=" -lX11 "
6480 cat > conftest.$ac_ext <<EOF 6486 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure" 6487 #line 6488 "configure"
6482 #include "confdefs.h" 6488 #include "confdefs.h"
6483 /* Override any gcc2 internal prototype to avoid an error. */ 6489 /* Override any gcc2 internal prototype to avoid an error. */
6484 /* We use char because int might match the return type of a gcc2 6490 /* We use char because int might match the return type of a gcc2
6485 builtin and then its argument prototype would still apply. */ 6491 builtin and then its argument prototype would still apply. */
6486 char XOpenDisplay(); 6492 char XOpenDisplay();
6487 6493
6488 int main() { 6494 int main() {
6489 XOpenDisplay() 6495 XOpenDisplay()
6490 ; return 0; } 6496 ; return 0; }
6491 EOF 6497 EOF
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 rm -rf conftest* 6499 rm -rf conftest*
6494 eval "ac_cv_lib_$ac_lib_var=yes" 6500 eval "ac_cv_lib_$ac_lib_var=yes"
6495 else 6501 else
6496 echo "configure: failed program was:" >&5 6502 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5 6503 cat conftest.$ac_ext >&5
6512 if test "$have_lib_x11" != "yes"; then 6518 if test "$have_lib_x11" != "yes"; then
6513 6519
6514 xe_msg_checking="for XGetFontProperty in -lX11" 6520 xe_msg_checking="for XGetFontProperty in -lX11"
6515 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6521 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6516 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6522 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6517 echo "configure:6518: checking "$xe_msg_checking"" >&5 6523 echo "configure:6524: checking "$xe_msg_checking"" >&5
6518 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6524 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6519 6525
6520 xe_check_libs=" -lX11 -b i486-linuxaout" 6526 xe_check_libs=" -lX11 -b i486-linuxaout"
6521 cat > conftest.$ac_ext <<EOF 6527 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure" 6528 #line 6529 "configure"
6523 #include "confdefs.h" 6529 #include "confdefs.h"
6524 /* Override any gcc2 internal prototype to avoid an error. */ 6530 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2 6531 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */ 6532 builtin and then its argument prototype would still apply. */
6527 char XGetFontProperty(); 6533 char XGetFontProperty();
6528 6534
6529 int main() { 6535 int main() {
6530 XGetFontProperty() 6536 XGetFontProperty()
6531 ; return 0; } 6537 ; return 0; }
6532 EOF 6538 EOF
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 rm -rf conftest* 6540 rm -rf conftest*
6535 eval "ac_cv_lib_$ac_lib_var=yes" 6541 eval "ac_cv_lib_$ac_lib_var=yes"
6536 else 6542 else
6537 echo "configure: failed program was:" >&5 6543 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5 6544 cat conftest.$ac_ext >&5
6555 libs_x="-lX11" 6561 libs_x="-lX11"
6556 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6562 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6557 6563
6558 6564
6559 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6565 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6560 echo "configure:6561: checking for XShapeSelectInput in -lXext" >&5 6566 echo "configure:6567: checking for XShapeSelectInput in -lXext" >&5
6561 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6567 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6562 6568
6563 xe_check_libs=" -lXext " 6569 xe_check_libs=" -lXext "
6564 cat > conftest.$ac_ext <<EOF 6570 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure" 6571 #line 6572 "configure"
6566 #include "confdefs.h" 6572 #include "confdefs.h"
6567 /* Override any gcc2 internal prototype to avoid an error. */ 6573 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2 6574 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */ 6575 builtin and then its argument prototype would still apply. */
6570 char XShapeSelectInput(); 6576 char XShapeSelectInput();
6571 6577
6572 int main() { 6578 int main() {
6573 XShapeSelectInput() 6579 XShapeSelectInput()
6574 ; return 0; } 6580 ; return 0; }
6575 EOF 6581 EOF
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6582 if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 rm -rf conftest* 6583 rm -rf conftest*
6578 eval "ac_cv_lib_$ac_lib_var=yes" 6584 eval "ac_cv_lib_$ac_lib_var=yes"
6579 else 6585 else
6580 echo "configure: failed program was:" >&5 6586 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5 6587 cat conftest.$ac_ext >&5
6594 6600
6595 6601
6596 6602
6597 6603
6598 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6604 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6599 echo "configure:6600: checking for XtOpenDisplay in -lXt" >&5 6605 echo "configure:6606: checking for XtOpenDisplay in -lXt" >&5
6600 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6606 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6601 6607
6602 xe_check_libs=" -lXt " 6608 xe_check_libs=" -lXt "
6603 cat > conftest.$ac_ext <<EOF 6609 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure" 6610 #line 6611 "configure"
6605 #include "confdefs.h" 6611 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */ 6612 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2 6613 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */ 6614 builtin and then its argument prototype would still apply. */
6609 char XtOpenDisplay(); 6615 char XtOpenDisplay();
6610 6616
6611 int main() { 6617 int main() {
6612 XtOpenDisplay() 6618 XtOpenDisplay()
6613 ; return 0; } 6619 ; return 0; }
6614 EOF 6620 EOF
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6621 if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 rm -rf conftest* 6622 rm -rf conftest*
6617 eval "ac_cv_lib_$ac_lib_var=yes" 6623 eval "ac_cv_lib_$ac_lib_var=yes"
6618 else 6624 else
6619 echo "configure: failed program was:" >&5 6625 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5 6626 cat conftest.$ac_ext >&5
6633 fi 6639 fi
6634 6640
6635 6641
6636 6642
6637 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6643 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6638 echo "configure:6639: checking the version of X11 being used" >&5 6644 echo "configure:6645: checking the version of X11 being used" >&5
6639 cat > conftest.$ac_ext <<EOF 6645 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure" 6646 #line 6647 "configure"
6641 #include "confdefs.h" 6647 #include "confdefs.h"
6642 #include <X11/Intrinsic.h> 6648 #include <X11/Intrinsic.h>
6643 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6649 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6644 EOF 6650 EOF
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6646 then 6652 then
6647 ./conftest foobar; x11_release=$? 6653 ./conftest foobar; x11_release=$?
6648 else 6654 else
6649 conftest_rc="$?" 6655 conftest_rc="$?"
6650 echo "configure: failed program was:" >&5 6656 echo "configure: failed program was:" >&5
6671 fi 6677 fi
6672 6678
6673 for ac_func in XConvertCase 6679 for ac_func in XConvertCase
6674 do 6680 do
6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_func" >&5 6682 echo "configure:6683: checking for $ac_func" >&5
6677 6683
6678 cat > conftest.$ac_ext <<EOF 6684 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure" 6685 #line 6686 "configure"
6680 #include "confdefs.h" 6686 #include "confdefs.h"
6681 /* System header to define __stub macros and hopefully few prototypes, 6687 /* System header to define __stub macros and hopefully few prototypes,
6682 which can conflict with char $ac_func(); below. */ 6688 which can conflict with char $ac_func(); below. */
6683 #include <assert.h> 6689 #include <assert.h>
6684 /* Override any gcc2 internal prototype to avoid an error. */ 6690 /* Override any gcc2 internal prototype to avoid an error. */
6697 $ac_func(); 6703 $ac_func();
6698 #endif 6704 #endif
6699 6705
6700 ; return 0; } 6706 ; return 0; }
6701 EOF 6707 EOF
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 rm -rf conftest* 6709 rm -rf conftest*
6704 eval "ac_cv_func_$ac_func=yes" 6710 eval "ac_cv_func_$ac_func=yes"
6705 else 6711 else
6706 echo "configure: failed program was:" >&5 6712 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5 6713 cat conftest.$ac_ext >&5
6729 6735
6730 for ac_hdr in X11/Xlocale.h 6736 for ac_hdr in X11/Xlocale.h
6731 do 6737 do
6732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6734 echo "configure:6735: checking for $ac_hdr" >&5 6740 echo "configure:6741: checking for $ac_hdr" >&5
6735 6741
6736 cat > conftest.$ac_ext <<EOF 6742 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure" 6743 #line 6744 "configure"
6738 #include "confdefs.h" 6744 #include "confdefs.h"
6739 #include <$ac_hdr> 6745 #include <$ac_hdr>
6740 EOF 6746 EOF
6741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6742 { (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6748 { (eval echo configure:6749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6744 if test -z "$ac_err"; then 6750 if test -z "$ac_err"; then
6745 rm -rf conftest* 6751 rm -rf conftest*
6746 eval "ac_cv_header_$ac_safe=yes" 6752 eval "ac_cv_header_$ac_safe=yes"
6747 else 6753 else
6770 6776
6771 6777
6772 for ac_func in XRegisterIMInstantiateCallback 6778 for ac_func in XRegisterIMInstantiateCallback
6773 do 6779 do
6774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_func" >&5 6781 echo "configure:6782: checking for $ac_func" >&5
6776 6782
6777 cat > conftest.$ac_ext <<EOF 6783 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure" 6784 #line 6785 "configure"
6779 #include "confdefs.h" 6785 #include "confdefs.h"
6780 /* System header to define __stub macros and hopefully few prototypes, 6786 /* System header to define __stub macros and hopefully few prototypes,
6781 which can conflict with char $ac_func(); below. */ 6787 which can conflict with char $ac_func(); below. */
6782 #include <assert.h> 6788 #include <assert.h>
6783 /* Override any gcc2 internal prototype to avoid an error. */ 6789 /* Override any gcc2 internal prototype to avoid an error. */
6796 $ac_func(); 6802 $ac_func();
6797 #endif 6803 #endif
6798 6804
6799 ; return 0; } 6805 ; return 0; }
6800 EOF 6806 EOF
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802 rm -rf conftest* 6808 rm -rf conftest*
6803 eval "ac_cv_func_$ac_func=yes" 6809 eval "ac_cv_func_$ac_func=yes"
6804 else 6810 else
6805 echo "configure: failed program was:" >&5 6811 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5 6812 cat conftest.$ac_ext >&5
6824 echo "$ac_t""no" 1>&6 6830 echo "$ac_t""no" 1>&6
6825 fi 6831 fi
6826 done 6832 done
6827 6833
6828 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6834 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6829 echo "configure:6830: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6835 echo "configure:6836: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6830 cat > conftest.$ac_ext <<EOF 6836 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure" 6837 #line 6838 "configure"
6832 #include "confdefs.h" 6838 #include "confdefs.h"
6833 6839
6834 #define NeedFunctionPrototypes 1 6840 #define NeedFunctionPrototypes 1
6835 #include <X11/Xlib.h> 6841 #include <X11/Xlib.h>
6836 extern Bool XRegisterIMInstantiateCallback( 6842 extern Bool XRegisterIMInstantiateCallback(
6838 6844
6839 int main() { 6845 int main() {
6840 6846
6841 ; return 0; } 6847 ; return 0; }
6842 EOF 6848 EOF
6843 if { (eval echo configure:6844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6849 if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6844 rm -rf conftest* 6850 rm -rf conftest*
6845 echo "$ac_t""yes" 1>&6 6851 echo "$ac_t""yes" 1>&6
6846 else 6852 else
6847 echo "configure: failed program was:" >&5 6853 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5 6854 cat conftest.$ac_ext >&5
6859 fi 6865 fi
6860 rm -f conftest* 6866 rm -f conftest*
6861 6867
6862 test -z "$with_xmu" && { 6868 test -z "$with_xmu" && {
6863 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6869 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6864 echo "configure:6865: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6870 echo "configure:6871: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6865 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6871 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6866 6872
6867 xe_check_libs=" -lXmu " 6873 xe_check_libs=" -lXmu "
6868 cat > conftest.$ac_ext <<EOF 6874 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure" 6875 #line 6876 "configure"
6870 #include "confdefs.h" 6876 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */ 6877 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2 6878 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */ 6879 builtin and then its argument prototype would still apply. */
6874 char XmuReadBitmapDataFromFile(); 6880 char XmuReadBitmapDataFromFile();
6875 6881
6876 int main() { 6882 int main() {
6877 XmuReadBitmapDataFromFile() 6883 XmuReadBitmapDataFromFile()
6878 ; return 0; } 6884 ; return 0; }
6879 EOF 6885 EOF
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 rm -rf conftest* 6887 rm -rf conftest*
6882 eval "ac_cv_lib_$ac_lib_var=yes" 6888 eval "ac_cv_lib_$ac_lib_var=yes"
6883 else 6889 else
6884 echo "configure: failed program was:" >&5 6890 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5 6891 cat conftest.$ac_ext >&5
6914 6920
6915 fi 6921 fi
6916 6922
6917 6923
6918 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6924 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6919 echo "configure:6920: checking for main in -lXbsd" >&5 6925 echo "configure:6926: checking for main in -lXbsd" >&5
6920 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6926 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6921 6927
6922 xe_check_libs=" -lXbsd " 6928 xe_check_libs=" -lXbsd "
6923 cat > conftest.$ac_ext <<EOF 6929 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure" 6930 #line 6931 "configure"
6925 #include "confdefs.h" 6931 #include "confdefs.h"
6926 6932
6927 int main() { 6933 int main() {
6928 main() 6934 main()
6929 ; return 0; } 6935 ; return 0; }
6930 EOF 6936 EOF
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 rm -rf conftest* 6938 rm -rf conftest*
6933 eval "ac_cv_lib_$ac_lib_var=yes" 6939 eval "ac_cv_lib_$ac_lib_var=yes"
6934 else 6940 else
6935 echo "configure: failed program was:" >&5 6941 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5 6942 cat conftest.$ac_ext >&5
6963 fi 6969 fi
6964 6970
6965 fi 6971 fi
6966 if test "$with_msw" != "no"; then 6972 if test "$with_msw" != "no"; then
6967 echo "checking for MS-Windows" 1>&6 6973 echo "checking for MS-Windows" 1>&6
6968 echo "configure:6969: checking for MS-Windows" >&5 6974 echo "configure:6975: checking for MS-Windows" >&5
6969 6975
6970 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6976 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6971 echo "configure:6972: checking for main in -lgdi32" >&5 6977 echo "configure:6978: checking for main in -lgdi32" >&5
6972 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6978 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6973 6979
6974 xe_check_libs=" -lgdi32 " 6980 xe_check_libs=" -lgdi32 "
6975 cat > conftest.$ac_ext <<EOF 6981 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure" 6982 #line 6983 "configure"
6977 #include "confdefs.h" 6983 #include "confdefs.h"
6978 6984
6979 int main() { 6985 int main() {
6980 main() 6986 main()
6981 ; return 0; } 6987 ; return 0; }
6982 EOF 6988 EOF
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 rm -rf conftest* 6990 rm -rf conftest*
6985 eval "ac_cv_lib_$ac_lib_var=yes" 6991 eval "ac_cv_lib_$ac_lib_var=yes"
6986 else 6992 else
6987 echo "configure: failed program was:" >&5 6993 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5 6994 cat conftest.$ac_ext >&5
7051 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 7057 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7052 echo " xemacs will be linked with \"dialog-msw.o\"" 7058 echo " xemacs will be linked with \"dialog-msw.o\""
7053 fi 7059 fi
7054 fi 7060 fi
7055 cat > conftest.$ac_ext <<EOF 7061 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure" 7062 #line 7063 "configure"
7057 #include "confdefs.h" 7063 #include "confdefs.h"
7058 #include <fcntl.h> 7064 #include <fcntl.h>
7059 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7065 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7060 EOF 7066 EOF
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7062 then 7068 then
7063 { test "$extra_verbose" = "yes" && cat << \EOF 7069 { test "$extra_verbose" = "yes" && cat << \EOF
7064 Defining HAVE_MSG_SELECT 7070 Defining HAVE_MSG_SELECT
7065 EOF 7071 EOF
7066 cat >> confdefs.h <<\EOF 7072 cat >> confdefs.h <<\EOF
7120 fi 7126 fi
7121 7127
7122 if test "$with_x11" = "yes"; then 7128 if test "$with_x11" = "yes"; then
7123 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7129 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7124 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7130 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7125 echo "configure:7126: checking for X11/extensions/shape.h" >&5 7131 echo "configure:7132: checking for X11/extensions/shape.h" >&5
7126 7132
7127 cat > conftest.$ac_ext <<EOF 7133 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure" 7134 #line 7135 "configure"
7129 #include "confdefs.h" 7135 #include "confdefs.h"
7130 #include <X11/extensions/shape.h> 7136 #include <X11/extensions/shape.h>
7131 EOF 7137 EOF
7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7139 { (eval echo configure:7140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7135 if test -z "$ac_err"; then 7141 if test -z "$ac_err"; then
7136 rm -rf conftest* 7142 rm -rf conftest*
7137 eval "ac_cv_header_$ac_safe=yes" 7143 eval "ac_cv_header_$ac_safe=yes"
7138 else 7144 else
7180 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7186 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7181 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7187 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7182 esac 7188 esac
7183 7189
7184 echo "checking for WM_COMMAND option" 1>&6 7190 echo "checking for WM_COMMAND option" 1>&6
7185 echo "configure:7186: checking for WM_COMMAND option" >&5; 7191 echo "configure:7192: checking for WM_COMMAND option" >&5;
7186 if test "$with_wmcommand" != "no"; then 7192 if test "$with_wmcommand" != "no"; then
7187 { test "$extra_verbose" = "yes" && cat << \EOF 7193 { test "$extra_verbose" = "yes" && cat << \EOF
7188 Defining HAVE_WMCOMMAND 7194 Defining HAVE_WMCOMMAND
7189 EOF 7195 EOF
7190 cat >> confdefs.h <<\EOF 7196 cat >> confdefs.h <<\EOF
7195 fi 7201 fi
7196 7202
7197 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7203 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7198 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7204 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7199 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7205 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7200 echo "configure:7201: checking for X11/Xauth.h" >&5 7206 echo "configure:7207: checking for X11/Xauth.h" >&5
7201 7207
7202 cat > conftest.$ac_ext <<EOF 7208 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure" 7209 #line 7210 "configure"
7204 #include "confdefs.h" 7210 #include "confdefs.h"
7205 #include <X11/Xauth.h> 7211 #include <X11/Xauth.h>
7206 EOF 7212 EOF
7207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7208 { (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7214 { (eval echo configure:7215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7210 if test -z "$ac_err"; then 7216 if test -z "$ac_err"; then
7211 rm -rf conftest* 7217 rm -rf conftest*
7212 eval "ac_cv_header_$ac_safe=yes" 7218 eval "ac_cv_header_$ac_safe=yes"
7213 else 7219 else
7226 with_xauth=no 7232 with_xauth=no
7227 fi 7233 fi
7228 } 7234 }
7229 test -z "$with_xauth" && { 7235 test -z "$with_xauth" && {
7230 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7236 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7231 echo "configure:7232: checking for XauGetAuthByAddr in -lXau" >&5 7237 echo "configure:7238: checking for XauGetAuthByAddr in -lXau" >&5
7232 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7238 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7233 7239
7234 xe_check_libs=" -lXau " 7240 xe_check_libs=" -lXau "
7235 cat > conftest.$ac_ext <<EOF 7241 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure" 7242 #line 7243 "configure"
7237 #include "confdefs.h" 7243 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */ 7244 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2 7245 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */ 7246 builtin and then its argument prototype would still apply. */
7241 char XauGetAuthByAddr(); 7247 char XauGetAuthByAddr();
7242 7248
7243 int main() { 7249 int main() {
7244 XauGetAuthByAddr() 7250 XauGetAuthByAddr()
7245 ; return 0; } 7251 ; return 0; }
7246 EOF 7252 EOF
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 rm -rf conftest* 7254 rm -rf conftest*
7249 eval "ac_cv_lib_$ac_lib_var=yes" 7255 eval "ac_cv_lib_$ac_lib_var=yes"
7250 else 7256 else
7251 echo "configure: failed program was:" >&5 7257 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5 7258 cat conftest.$ac_ext >&5
7287 7293
7288 if test "$with_tooltalk" != "no" ; then 7294 if test "$with_tooltalk" != "no" ; then
7289 for dir in "" "Tt/" "desktop/" ; do 7295 for dir in "" "Tt/" "desktop/" ; do
7290 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 7296 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7291 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 7297 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7292 echo "configure:7293: checking for ${dir}tt_c.h" >&5 7298 echo "configure:7299: checking for ${dir}tt_c.h" >&5
7293 7299
7294 cat > conftest.$ac_ext <<EOF 7300 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure" 7301 #line 7302 "configure"
7296 #include "confdefs.h" 7302 #include "confdefs.h"
7297 #include <${dir}tt_c.h> 7303 #include <${dir}tt_c.h>
7298 EOF 7304 EOF
7299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7300 { (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7306 { (eval echo configure:7307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7302 if test -z "$ac_err"; then 7308 if test -z "$ac_err"; then
7303 rm -rf conftest* 7309 rm -rf conftest*
7304 eval "ac_cv_header_$ac_safe=yes" 7310 eval "ac_cv_header_$ac_safe=yes"
7305 else 7311 else
7331 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 7337 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7332 7338
7333 xe_msg_checking="for tt_message_create in -ltt" 7339 xe_msg_checking="for tt_message_create in -ltt"
7334 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 7340 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7335 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7341 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7336 echo "configure:7337: checking "$xe_msg_checking"" >&5 7342 echo "configure:7343: checking "$xe_msg_checking"" >&5
7337 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 7343 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7338 7344
7339 xe_check_libs=" -ltt $extra_libs" 7345 xe_check_libs=" -ltt $extra_libs"
7340 cat > conftest.$ac_ext <<EOF 7346 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure" 7347 #line 7348 "configure"
7342 #include "confdefs.h" 7348 #include "confdefs.h"
7343 /* Override any gcc2 internal prototype to avoid an error. */ 7349 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2 7350 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */ 7351 builtin and then its argument prototype would still apply. */
7346 char tt_message_create(); 7352 char tt_message_create();
7347 7353
7348 int main() { 7354 int main() {
7349 tt_message_create() 7355 tt_message_create()
7350 ; return 0; } 7356 ; return 0; }
7351 EOF 7357 EOF
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 rm -rf conftest* 7359 rm -rf conftest*
7354 eval "ac_cv_lib_$ac_lib_var=yes" 7360 eval "ac_cv_lib_$ac_lib_var=yes"
7355 else 7361 else
7356 echo "configure: failed program was:" >&5 7362 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5 7363 cat conftest.$ac_ext >&5
7404 fi 7410 fi
7405 fi 7411 fi
7406 7412
7407 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 7413 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7408 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 7414 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7409 echo "configure:7410: checking for Dt/Dt.h" >&5 7415 echo "configure:7416: checking for Dt/Dt.h" >&5
7410 7416
7411 cat > conftest.$ac_ext <<EOF 7417 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure" 7418 #line 7419 "configure"
7413 #include "confdefs.h" 7419 #include "confdefs.h"
7414 #include <Dt/Dt.h> 7420 #include <Dt/Dt.h>
7415 EOF 7421 EOF
7416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7417 { (eval echo configure:7418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7419 if test -z "$ac_err"; then 7425 if test -z "$ac_err"; then
7420 rm -rf conftest* 7426 rm -rf conftest*
7421 eval "ac_cv_header_$ac_safe=yes" 7427 eval "ac_cv_header_$ac_safe=yes"
7422 else 7428 else
7435 with_cde=no 7441 with_cde=no
7436 fi 7442 fi
7437 } 7443 }
7438 test -z "$with_cde" && { 7444 test -z "$with_cde" && {
7439 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 7445 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7440 echo "configure:7441: checking for DtDndDragStart in -lDtSvc" >&5 7446 echo "configure:7447: checking for DtDndDragStart in -lDtSvc" >&5
7441 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 7447 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7442 7448
7443 xe_check_libs=" -lDtSvc " 7449 xe_check_libs=" -lDtSvc "
7444 cat > conftest.$ac_ext <<EOF 7450 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure" 7451 #line 7452 "configure"
7446 #include "confdefs.h" 7452 #include "confdefs.h"
7447 /* Override any gcc2 internal prototype to avoid an error. */ 7453 /* Override any gcc2 internal prototype to avoid an error. */
7448 /* We use char because int might match the return type of a gcc2 7454 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */ 7455 builtin and then its argument prototype would still apply. */
7450 char DtDndDragStart(); 7456 char DtDndDragStart();
7451 7457
7452 int main() { 7458 int main() {
7453 DtDndDragStart() 7459 DtDndDragStart()
7454 ; return 0; } 7460 ; return 0; }
7455 EOF 7461 EOF
7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7457 rm -rf conftest* 7463 rm -rf conftest*
7458 eval "ac_cv_lib_$ac_lib_var=yes" 7464 eval "ac_cv_lib_$ac_lib_var=yes"
7459 else 7465 else
7460 echo "configure: failed program was:" >&5 7466 echo "configure: failed program was:" >&5
7461 cat conftest.$ac_ext >&5 7467 cat conftest.$ac_ext >&5
7524 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 7530 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7525 fi 7531 fi
7526 7532
7527 if test "$with_dragndrop" != "no" ; then 7533 if test "$with_dragndrop" != "no" ; then
7528 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7534 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7529 echo "configure:7530: checking if drag and drop API is needed" >&5 7535 echo "configure:7536: checking if drag and drop API is needed" >&5
7530 if test -n "$dragndrop_proto" ; then 7536 if test -n "$dragndrop_proto" ; then
7531 with_dragndrop=yes 7537 with_dragndrop=yes
7532 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7538 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7533 { test "$extra_verbose" = "yes" && cat << \EOF 7539 { test "$extra_verbose" = "yes" && cat << \EOF
7534 Defining HAVE_DRAGNDROP 7540 Defining HAVE_DRAGNDROP
7544 echo "$ac_t""no" 1>&6 7550 echo "$ac_t""no" 1>&6
7545 fi 7551 fi
7546 fi 7552 fi
7547 7553
7548 echo "checking for LDAP" 1>&6 7554 echo "checking for LDAP" 1>&6
7549 echo "configure:7550: checking for LDAP" >&5 7555 echo "configure:7556: checking for LDAP" >&5
7550 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7556 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7551 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7557 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7552 echo "configure:7553: checking for ldap.h" >&5 7558 echo "configure:7559: checking for ldap.h" >&5
7553 7559
7554 cat > conftest.$ac_ext <<EOF 7560 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure" 7561 #line 7562 "configure"
7556 #include "confdefs.h" 7562 #include "confdefs.h"
7557 #include <ldap.h> 7563 #include <ldap.h>
7558 EOF 7564 EOF
7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7562 if test -z "$ac_err"; then 7568 if test -z "$ac_err"; then
7563 rm -rf conftest* 7569 rm -rf conftest*
7564 eval "ac_cv_header_$ac_safe=yes" 7570 eval "ac_cv_header_$ac_safe=yes"
7565 else 7571 else
7578 with_ldap=no 7584 with_ldap=no
7579 fi 7585 fi
7580 } 7586 }
7581 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7587 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7582 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7588 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7583 echo "configure:7584: checking for lber.h" >&5 7589 echo "configure:7590: checking for lber.h" >&5
7584 7590
7585 cat > conftest.$ac_ext <<EOF 7591 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure" 7592 #line 7593 "configure"
7587 #include "confdefs.h" 7593 #include "confdefs.h"
7588 #include <lber.h> 7594 #include <lber.h>
7589 EOF 7595 EOF
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7597 { (eval echo configure:7598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then 7599 if test -z "$ac_err"; then
7594 rm -rf conftest* 7600 rm -rf conftest*
7595 eval "ac_cv_header_$ac_safe=yes" 7601 eval "ac_cv_header_$ac_safe=yes"
7596 else 7602 else
7610 fi 7616 fi
7611 } 7617 }
7612 if test "$with_ldap" != "no"; then 7618 if test "$with_ldap" != "no"; then
7613 7619
7614 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7620 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7615 echo "configure:7616: checking for ldap_search in -lldap" >&5 7621 echo "configure:7622: checking for ldap_search in -lldap" >&5
7616 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7622 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7617 7623
7618 xe_check_libs=" -lldap " 7624 xe_check_libs=" -lldap "
7619 cat > conftest.$ac_ext <<EOF 7625 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure" 7626 #line 7627 "configure"
7621 #include "confdefs.h" 7627 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */ 7628 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2 7629 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */ 7630 builtin and then its argument prototype would still apply. */
7625 char ldap_search(); 7631 char ldap_search();
7626 7632
7627 int main() { 7633 int main() {
7628 ldap_search() 7634 ldap_search()
7629 ; return 0; } 7635 ; return 0; }
7630 EOF 7636 EOF
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 rm -rf conftest* 7638 rm -rf conftest*
7633 eval "ac_cv_lib_$ac_lib_var=yes" 7639 eval "ac_cv_lib_$ac_lib_var=yes"
7634 else 7640 else
7635 echo "configure: failed program was:" >&5 7641 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5 7642 cat conftest.$ac_ext >&5
7651 7657
7652 test "$with_ldap_nolber" = "no" && { 7658 test "$with_ldap_nolber" = "no" && {
7653 xe_msg_checking="for ldap_open in -lldap" 7659 xe_msg_checking="for ldap_open in -lldap"
7654 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7660 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7655 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7661 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7656 echo "configure:7657: checking "$xe_msg_checking"" >&5 7662 echo "configure:7663: checking "$xe_msg_checking"" >&5
7657 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7663 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7658 7664
7659 xe_check_libs=" -lldap -llber" 7665 xe_check_libs=" -lldap -llber"
7660 cat > conftest.$ac_ext <<EOF 7666 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure" 7667 #line 7668 "configure"
7662 #include "confdefs.h" 7668 #include "confdefs.h"
7663 /* Override any gcc2 internal prototype to avoid an error. */ 7669 /* Override any gcc2 internal prototype to avoid an error. */
7664 /* We use char because int might match the return type of a gcc2 7670 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */ 7671 builtin and then its argument prototype would still apply. */
7666 char ldap_open(); 7672 char ldap_open();
7667 7673
7668 int main() { 7674 int main() {
7669 ldap_open() 7675 ldap_open()
7670 ; return 0; } 7676 ; return 0; }
7671 EOF 7677 EOF
7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7673 rm -rf conftest* 7679 rm -rf conftest*
7674 eval "ac_cv_lib_$ac_lib_var=yes" 7680 eval "ac_cv_lib_$ac_lib_var=yes"
7675 else 7681 else
7676 echo "configure: failed program was:" >&5 7682 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5 7683 cat conftest.$ac_ext >&5
7692 } 7698 }
7693 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7699 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7694 xe_msg_checking="for ldap_open in -lldap" 7700 xe_msg_checking="for ldap_open in -lldap"
7695 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7701 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7696 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7697 echo "configure:7698: checking "$xe_msg_checking"" >&5 7703 echo "configure:7704: checking "$xe_msg_checking"" >&5
7698 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7704 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7699 7705
7700 xe_check_libs=" -lldap -llber -lkrb" 7706 xe_check_libs=" -lldap -llber -lkrb"
7701 cat > conftest.$ac_ext <<EOF 7707 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure" 7708 #line 7709 "configure"
7703 #include "confdefs.h" 7709 #include "confdefs.h"
7704 /* Override any gcc2 internal prototype to avoid an error. */ 7710 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2 7711 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */ 7712 builtin and then its argument prototype would still apply. */
7707 char ldap_open(); 7713 char ldap_open();
7708 7714
7709 int main() { 7715 int main() {
7710 ldap_open() 7716 ldap_open()
7711 ; return 0; } 7717 ; return 0; }
7712 EOF 7718 EOF
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7714 rm -rf conftest* 7720 rm -rf conftest*
7715 eval "ac_cv_lib_$ac_lib_var=yes" 7721 eval "ac_cv_lib_$ac_lib_var=yes"
7716 else 7722 else
7717 echo "configure: failed program was:" >&5 7723 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5 7724 cat conftest.$ac_ext >&5
7733 } 7739 }
7734 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7740 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7735 xe_msg_checking="for ldap_open in -lldap" 7741 xe_msg_checking="for ldap_open in -lldap"
7736 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7742 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7737 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7743 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7738 echo "configure:7739: checking "$xe_msg_checking"" >&5 7744 echo "configure:7745: checking "$xe_msg_checking"" >&5
7739 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7745 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7740 7746
7741 xe_check_libs=" -lldap -llber -lkrb -ldes" 7747 xe_check_libs=" -lldap -llber -lkrb -ldes"
7742 cat > conftest.$ac_ext <<EOF 7748 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure" 7749 #line 7750 "configure"
7744 #include "confdefs.h" 7750 #include "confdefs.h"
7745 /* Override any gcc2 internal prototype to avoid an error. */ 7751 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2 7752 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */ 7753 builtin and then its argument prototype would still apply. */
7748 char ldap_open(); 7754 char ldap_open();
7749 7755
7750 int main() { 7756 int main() {
7751 ldap_open() 7757 ldap_open()
7752 ; return 0; } 7758 ; return 0; }
7753 EOF 7759 EOF
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7760 if { (eval echo configure:7761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7755 rm -rf conftest* 7761 rm -rf conftest*
7756 eval "ac_cv_lib_$ac_lib_var=yes" 7762 eval "ac_cv_lib_$ac_lib_var=yes"
7757 else 7763 else
7758 echo "configure: failed program was:" >&5 7764 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5 7765 cat conftest.$ac_ext >&5
7800 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7806 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7801 fi 7807 fi
7802 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7808 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7803 do 7809 do
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5 7811 echo "configure:7812: checking for $ac_func" >&5
7806 7812
7807 cat > conftest.$ac_ext <<EOF 7813 cat > conftest.$ac_ext <<EOF
7808 #line 7809 "configure" 7814 #line 7815 "configure"
7809 #include "confdefs.h" 7815 #include "confdefs.h"
7810 /* System header to define __stub macros and hopefully few prototypes, 7816 /* System header to define __stub macros and hopefully few prototypes,
7811 which can conflict with char $ac_func(); below. */ 7817 which can conflict with char $ac_func(); below. */
7812 #include <assert.h> 7818 #include <assert.h>
7813 /* Override any gcc2 internal prototype to avoid an error. */ 7819 /* Override any gcc2 internal prototype to avoid an error. */
7826 $ac_func(); 7832 $ac_func();
7827 #endif 7833 #endif
7828 7834
7829 ; return 0; } 7835 ; return 0; }
7830 EOF 7836 EOF
7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7837 if { (eval echo configure:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832 rm -rf conftest* 7838 rm -rf conftest*
7833 eval "ac_cv_func_$ac_func=yes" 7839 eval "ac_cv_func_$ac_func=yes"
7834 else 7840 else
7835 echo "configure: failed program was:" >&5 7841 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5 7842 cat conftest.$ac_ext >&5
7857 7863
7858 fi 7864 fi
7859 7865
7860 if test "$with_postgresql" != "no"; then 7866 if test "$with_postgresql" != "no"; then
7861 echo "checking for PostgreSQL" 1>&6 7867 echo "checking for PostgreSQL" 1>&6
7862 echo "configure:7863: checking for PostgreSQL" >&5 7868 echo "configure:7869: checking for PostgreSQL" >&5
7863 7869
7864 for header_dir in "" "pgsql/" "postgresql/"; do 7870 for header_dir in "" "pgsql/" "postgresql/"; do
7865 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7871 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7872 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7867 echo "configure:7868: checking for ${header_dir}libpq-fe.h" >&5 7873 echo "configure:7874: checking for ${header_dir}libpq-fe.h" >&5
7868 7874
7869 cat > conftest.$ac_ext <<EOF 7875 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure" 7876 #line 7877 "configure"
7871 #include "confdefs.h" 7877 #include "confdefs.h"
7872 #include <${header_dir}libpq-fe.h> 7878 #include <${header_dir}libpq-fe.h>
7873 EOF 7879 EOF
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7881 { (eval echo configure:7882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7877 if test -z "$ac_err"; then 7883 if test -z "$ac_err"; then
7878 rm -rf conftest* 7884 rm -rf conftest*
7879 eval "ac_cv_header_$ac_safe=yes" 7885 eval "ac_cv_header_$ac_safe=yes"
7880 else 7886 else
7894 7900
7895 done 7901 done
7896 7902
7897 test -n "$libpq_fe_h_file" && { 7903 test -n "$libpq_fe_h_file" && {
7898 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 7904 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7899 echo "configure:7900: checking for PQconnectdb in -lpq" >&5 7905 echo "configure:7906: checking for PQconnectdb in -lpq" >&5
7900 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 7906 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7901 7907
7902 xe_check_libs=" -lpq " 7908 xe_check_libs=" -lpq "
7903 cat > conftest.$ac_ext <<EOF 7909 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure" 7910 #line 7911 "configure"
7905 #include "confdefs.h" 7911 #include "confdefs.h"
7906 /* Override any gcc2 internal prototype to avoid an error. */ 7912 /* Override any gcc2 internal prototype to avoid an error. */
7907 /* We use char because int might match the return type of a gcc2 7913 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */ 7914 builtin and then its argument prototype would still apply. */
7909 char PQconnectdb(); 7915 char PQconnectdb();
7910 7916
7911 int main() { 7917 int main() {
7912 PQconnectdb() 7918 PQconnectdb()
7913 ; return 0; } 7919 ; return 0; }
7914 EOF 7920 EOF
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 rm -rf conftest* 7922 rm -rf conftest*
7917 eval "ac_cv_lib_$ac_lib_var=yes" 7923 eval "ac_cv_lib_$ac_lib_var=yes"
7918 else 7924 else
7919 echo "configure: failed program was:" >&5 7925 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5 7926 cat conftest.$ac_ext >&5
7943 EOF 7949 EOF
7944 } 7950 }
7945 7951
7946 7952
7947 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 7953 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7948 echo "configure:7949: checking for PQconnectStart in -lpq" >&5 7954 echo "configure:7955: checking for PQconnectStart in -lpq" >&5
7949 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 7955 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7950 7956
7951 xe_check_libs=" -lpq " 7957 xe_check_libs=" -lpq "
7952 cat > conftest.$ac_ext <<EOF 7958 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure" 7959 #line 7960 "configure"
7954 #include "confdefs.h" 7960 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */ 7961 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2 7962 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */ 7963 builtin and then its argument prototype would still apply. */
7958 char PQconnectStart(); 7964 char PQconnectStart();
7959 7965
7960 int main() { 7966 int main() {
7961 PQconnectStart() 7967 PQconnectStart()
7962 ; return 0; } 7968 ; return 0; }
7963 EOF 7969 EOF
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 rm -rf conftest* 7971 rm -rf conftest*
7966 eval "ac_cv_lib_$ac_lib_var=yes" 7972 eval "ac_cv_lib_$ac_lib_var=yes"
7967 else 7973 else
7968 echo "configure: failed program was:" >&5 7974 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5 7975 cat conftest.$ac_ext >&5
8007 fi 8013 fi
8008 8014
8009 8015
8010 if test "$window_system" != "none"; then 8016 if test "$window_system" != "none"; then
8011 echo "checking for graphics libraries" 1>&6 8017 echo "checking for graphics libraries" 1>&6
8012 echo "configure:8013: checking for graphics libraries" >&5 8018 echo "configure:8019: checking for graphics libraries" >&5
8013 8019
8014 xpm_problem="" 8020 xpm_problem=""
8015 if test -z "$with_xpm"; then 8021 if test -z "$with_xpm"; then
8016 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 8022 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8017 echo "configure:8018: checking for Xpm - no older than 3.4f" >&5 8023 echo "configure:8024: checking for Xpm - no older than 3.4f" >&5
8018 xe_check_libs=-lXpm 8024 xe_check_libs=-lXpm
8019 cat > conftest.$ac_ext <<EOF 8025 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure" 8026 #line 8027 "configure"
8021 #include "confdefs.h" 8027 #include "confdefs.h"
8022 #define XPM_NUMBERS 8028 #define XPM_NUMBERS
8023 #include <X11/xpm.h> 8029 #include <X11/xpm.h>
8024 int main(int c, char **v) { 8030 int main(int c, char **v) {
8025 return c == 1 ? 0 : 8031 return c == 1 ? 0 :
8026 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 8032 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8027 XpmIncludeVersion < 30406 ? 2 : 0 ;} 8033 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8028 EOF 8034 EOF
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8030 then 8036 then
8031 ./conftest dummy_arg; xpm_status=$?; 8037 ./conftest dummy_arg; xpm_status=$?;
8032 if test "$xpm_status" = "0"; then 8038 if test "$xpm_status" = "0"; then
8033 with_xpm=yes; 8039 with_xpm=yes;
8034 else 8040 else
8066 EOF 8072 EOF
8067 } 8073 }
8068 8074
8069 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 8075 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 8076 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8071 echo "configure:8072: checking for \"FOR_MSW\" xpm" >&5 8077 echo "configure:8078: checking for \"FOR_MSW\" xpm" >&5
8072 xe_check_libs=-lXpm 8078 xe_check_libs=-lXpm
8073 cat > conftest.$ac_ext <<EOF 8079 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure" 8080 #line 8081 "configure"
8075 #include "confdefs.h" 8081 #include "confdefs.h"
8076 8082
8077 int main() { 8083 int main() {
8078 XpmCreatePixmapFromData() 8084 XpmCreatePixmapFromData()
8079 ; return 0; } 8085 ; return 0; }
8080 EOF 8086 EOF
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 rm -rf conftest* 8088 rm -rf conftest*
8083 xpm_for_msw=no 8089 xpm_for_msw=no
8084 else 8090 else
8085 echo "configure: failed program was:" >&5 8091 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5 8092 cat conftest.$ac_ext >&5
8102 fi 8108 fi
8103 fi 8109 fi
8104 8110
8105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8111 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8112 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8107 echo "configure:8108: checking for compface.h" >&5 8113 echo "configure:8114: checking for compface.h" >&5
8108 8114
8109 cat > conftest.$ac_ext <<EOF 8115 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure" 8116 #line 8117 "configure"
8111 #include "confdefs.h" 8117 #include "confdefs.h"
8112 #include <compface.h> 8118 #include <compface.h>
8113 EOF 8119 EOF
8114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8115 { (eval echo configure:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8121 { (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8117 if test -z "$ac_err"; then 8123 if test -z "$ac_err"; then
8118 rm -rf conftest* 8124 rm -rf conftest*
8119 eval "ac_cv_header_$ac_safe=yes" 8125 eval "ac_cv_header_$ac_safe=yes"
8120 else 8126 else
8133 with_xface=no 8139 with_xface=no
8134 fi 8140 fi
8135 } 8141 }
8136 test -z "$with_xface" && { 8142 test -z "$with_xface" && {
8137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8143 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8138 echo "configure:8139: checking for UnGenFace in -lcompface" >&5 8144 echo "configure:8145: checking for UnGenFace in -lcompface" >&5
8139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8145 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8140 8146
8141 xe_check_libs=" -lcompface " 8147 xe_check_libs=" -lcompface "
8142 cat > conftest.$ac_ext <<EOF 8148 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure" 8149 #line 8150 "configure"
8144 #include "confdefs.h" 8150 #include "confdefs.h"
8145 /* Override any gcc2 internal prototype to avoid an error. */ 8151 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2 8152 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */ 8153 builtin and then its argument prototype would still apply. */
8148 char UnGenFace(); 8154 char UnGenFace();
8149 8155
8150 int main() { 8156 int main() {
8151 UnGenFace() 8157 UnGenFace()
8152 ; return 0; } 8158 ; return 0; }
8153 EOF 8159 EOF
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8160 if { (eval echo configure:8161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8155 rm -rf conftest* 8161 rm -rf conftest*
8156 eval "ac_cv_lib_$ac_lib_var=yes" 8162 eval "ac_cv_lib_$ac_lib_var=yes"
8157 else 8163 else
8158 echo "configure: failed program was:" >&5 8164 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5 8165 cat conftest.$ac_ext >&5
8201 fi 8207 fi
8202 8208
8203 if test "$with_png $with_tiff" != "no no"; then 8209 if test "$with_png $with_tiff" != "no no"; then
8204 8210
8205 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 8211 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8206 echo "configure:8207: checking for inflate in -lc" >&5 8212 echo "configure:8213: checking for inflate in -lc" >&5
8207 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 8213 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8208 8214
8209 xe_check_libs=" -lc " 8215 xe_check_libs=" -lc "
8210 cat > conftest.$ac_ext <<EOF 8216 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure" 8217 #line 8218 "configure"
8212 #include "confdefs.h" 8218 #include "confdefs.h"
8213 /* Override any gcc2 internal prototype to avoid an error. */ 8219 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2 8220 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */ 8221 builtin and then its argument prototype would still apply. */
8216 char inflate(); 8222 char inflate();
8217 8223
8218 int main() { 8224 int main() {
8219 inflate() 8225 inflate()
8220 ; return 0; } 8226 ; return 0; }
8221 EOF 8227 EOF
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8223 rm -rf conftest* 8229 rm -rf conftest*
8224 eval "ac_cv_lib_$ac_lib_var=yes" 8230 eval "ac_cv_lib_$ac_lib_var=yes"
8225 else 8231 else
8226 echo "configure: failed program was:" >&5 8232 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5 8233 cat conftest.$ac_ext >&5
8236 : 8242 :
8237 else 8243 else
8238 echo "$ac_t""no" 1>&6 8244 echo "$ac_t""no" 1>&6
8239 8245
8240 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8246 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8241 echo "configure:8242: checking for inflate in -lz" >&5 8247 echo "configure:8248: checking for inflate in -lz" >&5
8242 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8248 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8243 8249
8244 xe_check_libs=" -lz " 8250 xe_check_libs=" -lz "
8245 cat > conftest.$ac_ext <<EOF 8251 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure" 8252 #line 8253 "configure"
8247 #include "confdefs.h" 8253 #include "confdefs.h"
8248 /* Override any gcc2 internal prototype to avoid an error. */ 8254 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2 8255 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */ 8256 builtin and then its argument prototype would still apply. */
8251 char inflate(); 8257 char inflate();
8252 8258
8253 int main() { 8259 int main() {
8254 inflate() 8260 inflate()
8255 ; return 0; } 8261 ; return 0; }
8256 EOF 8262 EOF
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8263 if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 rm -rf conftest* 8264 rm -rf conftest*
8259 eval "ac_cv_lib_$ac_lib_var=yes" 8265 eval "ac_cv_lib_$ac_lib_var=yes"
8260 else 8266 else
8261 echo "configure: failed program was:" >&5 8267 echo "configure: failed program was:" >&5
8262 cat conftest.$ac_ext >&5 8268 cat conftest.$ac_ext >&5
8271 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 8277 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8272 else 8278 else
8273 echo "$ac_t""no" 1>&6 8279 echo "$ac_t""no" 1>&6
8274 8280
8275 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 8281 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8276 echo "configure:8277: checking for inflate in -lgz" >&5 8282 echo "configure:8283: checking for inflate in -lgz" >&5
8277 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 8283 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8278 8284
8279 xe_check_libs=" -lgz " 8285 xe_check_libs=" -lgz "
8280 cat > conftest.$ac_ext <<EOF 8286 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure" 8287 #line 8288 "configure"
8282 #include "confdefs.h" 8288 #include "confdefs.h"
8283 /* Override any gcc2 internal prototype to avoid an error. */ 8289 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2 8290 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */ 8291 builtin and then its argument prototype would still apply. */
8286 char inflate(); 8292 char inflate();
8287 8293
8288 int main() { 8294 int main() {
8289 inflate() 8295 inflate()
8290 ; return 0; } 8296 ; return 0; }
8291 EOF 8297 EOF
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8298 if { (eval echo configure:8299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8293 rm -rf conftest* 8299 rm -rf conftest*
8294 eval "ac_cv_lib_$ac_lib_var=yes" 8300 eval "ac_cv_lib_$ac_lib_var=yes"
8295 else 8301 else
8296 echo "configure: failed program was:" >&5 8302 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5 8303 cat conftest.$ac_ext >&5
8317 8323
8318 fi 8324 fi
8319 8325
8320 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 8326 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8321 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 8327 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8322 echo "configure:8323: checking for jpeglib.h" >&5 8328 echo "configure:8329: checking for jpeglib.h" >&5
8323 8329
8324 cat > conftest.$ac_ext <<EOF 8330 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure" 8331 #line 8332 "configure"
8326 #include "confdefs.h" 8332 #include "confdefs.h"
8327 #include <jpeglib.h> 8333 #include <jpeglib.h>
8328 EOF 8334 EOF
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8332 if test -z "$ac_err"; then 8338 if test -z "$ac_err"; then
8333 rm -rf conftest* 8339 rm -rf conftest*
8334 eval "ac_cv_header_$ac_safe=yes" 8340 eval "ac_cv_header_$ac_safe=yes"
8335 else 8341 else
8348 with_jpeg=no 8354 with_jpeg=no
8349 fi 8355 fi
8350 } 8356 }
8351 test -z "$with_jpeg" && { 8357 test -z "$with_jpeg" && {
8352 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 8358 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8353 echo "configure:8354: checking for jpeg_destroy_decompress in -ljpeg" >&5 8359 echo "configure:8360: checking for jpeg_destroy_decompress in -ljpeg" >&5
8354 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 8360 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8355 8361
8356 xe_check_libs=" -ljpeg " 8362 xe_check_libs=" -ljpeg "
8357 cat > conftest.$ac_ext <<EOF 8363 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure" 8364 #line 8365 "configure"
8359 #include "confdefs.h" 8365 #include "confdefs.h"
8360 /* Override any gcc2 internal prototype to avoid an error. */ 8366 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2 8367 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */ 8368 builtin and then its argument prototype would still apply. */
8363 char jpeg_destroy_decompress(); 8369 char jpeg_destroy_decompress();
8364 8370
8365 int main() { 8371 int main() {
8366 jpeg_destroy_decompress() 8372 jpeg_destroy_decompress()
8367 ; return 0; } 8373 ; return 0; }
8368 EOF 8374 EOF
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8370 rm -rf conftest* 8376 rm -rf conftest*
8371 eval "ac_cv_lib_$ac_lib_var=yes" 8377 eval "ac_cv_lib_$ac_lib_var=yes"
8372 else 8378 else
8373 echo "configure: failed program was:" >&5 8379 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5 8380 cat conftest.$ac_ext >&5
8400 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 8406 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8401 fi 8407 fi
8402 8408
8403 png_problem="" 8409 png_problem=""
8404 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 8410 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8405 echo "configure:8406: checking for pow" >&5 8411 echo "configure:8412: checking for pow" >&5
8406 8412
8407 cat > conftest.$ac_ext <<EOF 8413 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure" 8414 #line 8415 "configure"
8409 #include "confdefs.h" 8415 #include "confdefs.h"
8410 /* System header to define __stub macros and hopefully few prototypes, 8416 /* System header to define __stub macros and hopefully few prototypes,
8411 which can conflict with char pow(); below. */ 8417 which can conflict with char pow(); below. */
8412 #include <assert.h> 8418 #include <assert.h>
8413 /* Override any gcc2 internal prototype to avoid an error. */ 8419 /* Override any gcc2 internal prototype to avoid an error. */
8426 pow(); 8432 pow();
8427 #endif 8433 #endif
8428 8434
8429 ; return 0; } 8435 ; return 0; }
8430 EOF 8436 EOF
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8432 rm -rf conftest* 8438 rm -rf conftest*
8433 eval "ac_cv_func_pow=yes" 8439 eval "ac_cv_func_pow=yes"
8434 else 8440 else
8435 echo "configure: failed program was:" >&5 8441 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5 8442 cat conftest.$ac_ext >&5
8447 with_png=no 8453 with_png=no
8448 fi 8454 fi
8449 } 8455 }
8450 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 8456 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8451 echo $ac_n "checking for png.h""... $ac_c" 1>&6 8457 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8452 echo "configure:8453: checking for png.h" >&5 8458 echo "configure:8459: checking for png.h" >&5
8453 8459
8454 cat > conftest.$ac_ext <<EOF 8460 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure" 8461 #line 8462 "configure"
8456 #include "confdefs.h" 8462 #include "confdefs.h"
8457 #include <png.h> 8463 #include <png.h>
8458 EOF 8464 EOF
8459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8460 { (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8466 { (eval echo configure:8467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8462 if test -z "$ac_err"; then 8468 if test -z "$ac_err"; then
8463 rm -rf conftest* 8469 rm -rf conftest*
8464 eval "ac_cv_header_$ac_safe=yes" 8470 eval "ac_cv_header_$ac_safe=yes"
8465 else 8471 else
8478 with_png=no 8484 with_png=no
8479 fi 8485 fi
8480 } 8486 }
8481 test -z "$with_png" && { 8487 test -z "$with_png" && {
8482 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8488 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8483 echo "configure:8484: checking for png_read_image in -lpng" >&5 8489 echo "configure:8490: checking for png_read_image in -lpng" >&5
8484 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8490 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8485 8491
8486 xe_check_libs=" -lpng " 8492 xe_check_libs=" -lpng "
8487 cat > conftest.$ac_ext <<EOF 8493 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure" 8494 #line 8495 "configure"
8489 #include "confdefs.h" 8495 #include "confdefs.h"
8490 /* Override any gcc2 internal prototype to avoid an error. */ 8496 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2 8497 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */ 8498 builtin and then its argument prototype would still apply. */
8493 char png_read_image(); 8499 char png_read_image();
8494 8500
8495 int main() { 8501 int main() {
8496 png_read_image() 8502 png_read_image()
8497 ; return 0; } 8503 ; return 0; }
8498 EOF 8504 EOF
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8500 rm -rf conftest* 8506 rm -rf conftest*
8501 eval "ac_cv_lib_$ac_lib_var=yes" 8507 eval "ac_cv_lib_$ac_lib_var=yes"
8502 else 8508 else
8503 echo "configure: failed program was:" >&5 8509 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5 8510 cat conftest.$ac_ext >&5
8517 fi 8523 fi
8518 8524
8519 } 8525 }
8520 if test -z "$with_png"; then 8526 if test -z "$with_png"; then
8521 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8527 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8522 echo "configure:8523: checking for workable png version information" >&5 8528 echo "configure:8529: checking for workable png version information" >&5
8523 xe_check_libs="-lpng -lz" 8529 xe_check_libs="-lpng -lz"
8524 cat > conftest.$ac_ext <<EOF 8530 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure" 8531 #line 8532 "configure"
8526 #include "confdefs.h" 8532 #include "confdefs.h"
8527 #include <png.h> 8533 #include <png.h>
8528 int main(int c, char **v) { 8534 int main(int c, char **v) {
8529 if (c == 1) return 0; 8535 if (c == 1) return 0;
8530 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8536 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8531 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8537 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8532 EOF 8538 EOF
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8534 then 8540 then
8535 ./conftest dummy_arg; png_status=$?; 8541 ./conftest dummy_arg; png_status=$?;
8536 if test "$png_status" = "0"; then 8542 if test "$png_status" = "0"; then
8537 with_png=yes; 8543 with_png=yes;
8538 else 8544 else
8571 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8577 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8572 fi 8578 fi
8573 8579
8574 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8580 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8581 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8576 echo "configure:8577: checking for tiffio.h" >&5 8582 echo "configure:8583: checking for tiffio.h" >&5
8577 8583
8578 cat > conftest.$ac_ext <<EOF 8584 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure" 8585 #line 8586 "configure"
8580 #include "confdefs.h" 8586 #include "confdefs.h"
8581 #include <tiffio.h> 8587 #include <tiffio.h>
8582 EOF 8588 EOF
8583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8584 { (eval echo configure:8585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8590 { (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8586 if test -z "$ac_err"; then 8592 if test -z "$ac_err"; then
8587 rm -rf conftest* 8593 rm -rf conftest*
8588 eval "ac_cv_header_$ac_safe=yes" 8594 eval "ac_cv_header_$ac_safe=yes"
8589 else 8595 else
8602 with_tiff=no 8608 with_tiff=no
8603 fi 8609 fi
8604 } 8610 }
8605 test -z "$with_tiff" && { 8611 test -z "$with_tiff" && {
8606 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8612 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8607 echo "configure:8608: checking for TIFFClientOpen in -ltiff" >&5 8613 echo "configure:8614: checking for TIFFClientOpen in -ltiff" >&5
8608 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8614 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8609 8615
8610 xe_check_libs=" -ltiff " 8616 xe_check_libs=" -ltiff "
8611 cat > conftest.$ac_ext <<EOF 8617 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure" 8618 #line 8619 "configure"
8613 #include "confdefs.h" 8619 #include "confdefs.h"
8614 /* Override any gcc2 internal prototype to avoid an error. */ 8620 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2 8621 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */ 8622 builtin and then its argument prototype would still apply. */
8617 char TIFFClientOpen(); 8623 char TIFFClientOpen();
8618 8624
8619 int main() { 8625 int main() {
8620 TIFFClientOpen() 8626 TIFFClientOpen()
8621 ; return 0; } 8627 ; return 0; }
8622 EOF 8628 EOF
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8624 rm -rf conftest* 8630 rm -rf conftest*
8625 eval "ac_cv_lib_$ac_lib_var=yes" 8631 eval "ac_cv_lib_$ac_lib_var=yes"
8626 else 8632 else
8627 echo "configure: failed program was:" >&5 8633 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5 8634 cat conftest.$ac_ext >&5
8657 8663
8658 8664
8659 if test "$with_gtk" = "yes"; then 8665 if test "$with_gtk" = "yes"; then
8660 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8666 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8661 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8667 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8662 echo "configure:8663: checking for compface.h" >&5 8668 echo "configure:8669: checking for compface.h" >&5
8663 8669
8664 cat > conftest.$ac_ext <<EOF 8670 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure" 8671 #line 8672 "configure"
8666 #include "confdefs.h" 8672 #include "confdefs.h"
8667 #include <compface.h> 8673 #include <compface.h>
8668 EOF 8674 EOF
8669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8670 { (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8676 { (eval echo configure:8677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672 if test -z "$ac_err"; then 8678 if test -z "$ac_err"; then
8673 rm -rf conftest* 8679 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=yes" 8680 eval "ac_cv_header_$ac_safe=yes"
8675 else 8681 else
8688 with_xface=no 8694 with_xface=no
8689 fi 8695 fi
8690 } 8696 }
8691 test -z "$with_xface" && { 8697 test -z "$with_xface" && {
8692 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8698 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8693 echo "configure:8694: checking for UnGenFace in -lcompface" >&5 8699 echo "configure:8700: checking for UnGenFace in -lcompface" >&5
8694 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8700 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8695 8701
8696 xe_check_libs=" -lcompface " 8702 xe_check_libs=" -lcompface "
8697 cat > conftest.$ac_ext <<EOF 8703 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure" 8704 #line 8705 "configure"
8699 #include "confdefs.h" 8705 #include "confdefs.h"
8700 /* Override any gcc2 internal prototype to avoid an error. */ 8706 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2 8707 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */ 8708 builtin and then its argument prototype would still apply. */
8703 char UnGenFace(); 8709 char UnGenFace();
8704 8710
8705 int main() { 8711 int main() {
8706 UnGenFace() 8712 UnGenFace()
8707 ; return 0; } 8713 ; return 0; }
8708 EOF 8714 EOF
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8715 if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 rm -rf conftest* 8716 rm -rf conftest*
8711 eval "ac_cv_lib_$ac_lib_var=yes" 8717 eval "ac_cv_lib_$ac_lib_var=yes"
8712 else 8718 else
8713 echo "configure: failed program was:" >&5 8719 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5 8720 cat conftest.$ac_ext >&5
8744 8750
8745 8751
8746 if test "$with_x11" = "yes"; then 8752 if test "$with_x11" = "yes"; then
8747 8753
8748 echo "checking for X11 graphics libraries" 1>&6 8754 echo "checking for X11 graphics libraries" 1>&6
8749 echo "configure:8750: checking for X11 graphics libraries" >&5 8755 echo "configure:8756: checking for X11 graphics libraries" >&5
8750 8756
8751 echo "checking for the Athena widgets" 1>&6 8757 echo "checking for the Athena widgets" 1>&6
8752 echo "configure:8753: checking for the Athena widgets" >&5 8758 echo "configure:8759: checking for the Athena widgets" >&5
8753 8759
8754 case "$with_athena" in 8760 case "$with_athena" in
8755 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8761 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8756 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8762 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8757 "next") athena_variant=neXtaw athena_3d=yes ;; 8763 "next") athena_variant=neXtaw athena_3d=yes ;;
8761 esac 8767 esac
8762 8768
8763 if test "$athena_3d" = "no"; then 8769 if test "$athena_3d" = "no"; then
8764 8770
8765 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8771 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8766 echo "configure:8767: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8772 echo "configure:8773: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8767 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8773 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8768 8774
8769 xe_check_libs=" -l$athena_variant " 8775 xe_check_libs=" -l$athena_variant "
8770 cat > conftest.$ac_ext <<EOF 8776 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure" 8777 #line 8778 "configure"
8772 #include "confdefs.h" 8778 #include "confdefs.h"
8773 /* Override any gcc2 internal prototype to avoid an error. */ 8779 /* Override any gcc2 internal prototype to avoid an error. */
8774 /* We use char because int might match the return type of a gcc2 8780 /* We use char because int might match the return type of a gcc2
8775 builtin and then its argument prototype would still apply. */ 8781 builtin and then its argument prototype would still apply. */
8776 char XawScrollbarSetThumb(); 8782 char XawScrollbarSetThumb();
8777 8783
8778 int main() { 8784 int main() {
8779 XawScrollbarSetThumb() 8785 XawScrollbarSetThumb()
8780 ; return 0; } 8786 ; return 0; }
8781 EOF 8787 EOF
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8788 if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8783 rm -rf conftest* 8789 rm -rf conftest*
8784 eval "ac_cv_lib_$ac_lib_var=yes" 8790 eval "ac_cv_lib_$ac_lib_var=yes"
8785 else 8791 else
8786 echo "configure: failed program was:" >&5 8792 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5 8793 cat conftest.$ac_ext >&5
8793 8799
8794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8795 echo "$ac_t""yes" 1>&6 8801 echo "$ac_t""yes" 1>&6
8796 8802
8797 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8803 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8798 echo "configure:8799: checking for threeDClassRec in -l$athena_variant" >&5 8804 echo "configure:8805: checking for threeDClassRec in -l$athena_variant" >&5
8799 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8805 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8800 8806
8801 xe_check_libs=" -l$athena_variant " 8807 xe_check_libs=" -l$athena_variant "
8802 cat > conftest.$ac_ext <<EOF 8808 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure" 8809 #line 8810 "configure"
8804 #include "confdefs.h" 8810 #include "confdefs.h"
8805 /* Override any gcc2 internal prototype to avoid an error. */ 8811 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2 8812 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */ 8813 builtin and then its argument prototype would still apply. */
8808 char threeDClassRec(); 8814 char threeDClassRec();
8809 8815
8810 int main() { 8816 int main() {
8811 threeDClassRec() 8817 threeDClassRec()
8812 ; return 0; } 8818 ; return 0; }
8813 EOF 8819 EOF
8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8815 rm -rf conftest* 8821 rm -rf conftest*
8816 eval "ac_cv_lib_$ac_lib_var=yes" 8822 eval "ac_cv_lib_$ac_lib_var=yes"
8817 else 8823 else
8818 echo "configure: failed program was:" >&5 8824 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5 8825 cat conftest.$ac_ext >&5
8840 8846
8841 8847
8842 else 8848 else
8843 8849
8844 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8850 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8845 echo "configure:8846: checking for threeDClassRec in -l$athena_variant" >&5 8851 echo "configure:8852: checking for threeDClassRec in -l$athena_variant" >&5
8846 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8852 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8847 8853
8848 xe_check_libs=" -l$athena_variant " 8854 xe_check_libs=" -l$athena_variant "
8849 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure" 8856 #line 8857 "configure"
8851 #include "confdefs.h" 8857 #include "confdefs.h"
8852 /* Override any gcc2 internal prototype to avoid an error. */ 8858 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2 8859 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */ 8860 builtin and then its argument prototype would still apply. */
8855 char threeDClassRec(); 8861 char threeDClassRec();
8856 8862
8857 int main() { 8863 int main() {
8858 threeDClassRec() 8864 threeDClassRec()
8859 ; return 0; } 8865 ; return 0; }
8860 EOF 8866 EOF
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8862 rm -rf conftest* 8868 rm -rf conftest*
8863 eval "ac_cv_lib_$ac_lib_var=yes" 8869 eval "ac_cv_lib_$ac_lib_var=yes"
8864 else 8870 else
8865 echo "configure: failed program was:" >&5 8871 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5 8872 cat conftest.$ac_ext >&5
8874 echo "$ac_t""yes" 1>&6 8880 echo "$ac_t""yes" 1>&6
8875 athena_lib=$athena_variant 8881 athena_lib=$athena_variant
8876 else 8882 else
8877 echo "$ac_t""no" 1>&6 8883 echo "$ac_t""no" 1>&6
8878 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8884 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8879 echo "configure:8880: checking for threeDClassRec in -lXaw" >&5 8885 echo "configure:8886: checking for threeDClassRec in -lXaw" >&5
8880 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8886 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8881 8887
8882 xe_check_libs=" -lXaw " 8888 xe_check_libs=" -lXaw "
8883 cat > conftest.$ac_ext <<EOF 8889 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure" 8890 #line 8891 "configure"
8885 #include "confdefs.h" 8891 #include "confdefs.h"
8886 /* Override any gcc2 internal prototype to avoid an error. */ 8892 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2 8893 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */ 8894 builtin and then its argument prototype would still apply. */
8889 char threeDClassRec(); 8895 char threeDClassRec();
8890 8896
8891 int main() { 8897 int main() {
8892 threeDClassRec() 8898 threeDClassRec()
8893 ; return 0; } 8899 ; return 0; }
8894 EOF 8900 EOF
8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8896 rm -rf conftest* 8902 rm -rf conftest*
8897 eval "ac_cv_lib_$ac_lib_var=yes" 8903 eval "ac_cv_lib_$ac_lib_var=yes"
8898 else 8904 else
8899 echo "configure: failed program was:" >&5 8905 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5 8906 cat conftest.$ac_ext >&5
8921 fi 8927 fi
8922 8928
8923 if test "$athena_3d" = "no"; then 8929 if test "$athena_3d" = "no"; then
8924 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8930 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8925 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8931 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8926 echo "configure:8927: checking for X11/Xaw/ThreeD.h" >&5 8932 echo "configure:8933: checking for X11/Xaw/ThreeD.h" >&5
8927 8933
8928 cat > conftest.$ac_ext <<EOF 8934 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure" 8935 #line 8936 "configure"
8930 #include "confdefs.h" 8936 #include "confdefs.h"
8931 #include <X11/Xaw/ThreeD.h> 8937 #include <X11/Xaw/ThreeD.h>
8932 EOF 8938 EOF
8933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8934 { (eval echo configure:8935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8940 { (eval echo configure:8941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8936 if test -z "$ac_err"; then 8942 if test -z "$ac_err"; then
8937 rm -rf conftest* 8943 rm -rf conftest*
8938 eval "ac_cv_header_$ac_safe=yes" 8944 eval "ac_cv_header_$ac_safe=yes"
8939 else 8945 else
8949 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 8955 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8950 else 8956 else
8951 echo "$ac_t""no" 1>&6 8957 echo "$ac_t""no" 1>&6
8952 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 8958 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8953 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 8959 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8954 echo "configure:8955: checking for X11/Xaw/XawInit.h" >&5 8960 echo "configure:8961: checking for X11/Xaw/XawInit.h" >&5
8955 8961
8956 cat > conftest.$ac_ext <<EOF 8962 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure" 8963 #line 8964 "configure"
8958 #include "confdefs.h" 8964 #include "confdefs.h"
8959 #include <X11/Xaw/XawInit.h> 8965 #include <X11/Xaw/XawInit.h>
8960 EOF 8966 EOF
8961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8962 { (eval echo configure:8963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8968 { (eval echo configure:8969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8964 if test -z "$ac_err"; then 8970 if test -z "$ac_err"; then
8965 rm -rf conftest* 8971 rm -rf conftest*
8966 eval "ac_cv_header_$ac_safe=yes" 8972 eval "ac_cv_header_$ac_safe=yes"
8967 else 8973 else
8983 fi 8989 fi
8984 8990
8985 else 8991 else
8986 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8992 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8987 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 8993 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8988 echo "configure:8989: checking for X11/$athena_variant/XawInit.h" >&5 8994 echo "configure:8995: checking for X11/$athena_variant/XawInit.h" >&5
8989 8995
8990 cat > conftest.$ac_ext <<EOF 8996 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure" 8997 #line 8998 "configure"
8992 #include "confdefs.h" 8998 #include "confdefs.h"
8993 #include <X11/$athena_variant/XawInit.h> 8999 #include <X11/$athena_variant/XawInit.h>
8994 EOF 9000 EOF
8995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8996 { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9002 { (eval echo configure:9003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8998 if test -z "$ac_err"; then 9004 if test -z "$ac_err"; then
8999 rm -rf conftest* 9005 rm -rf conftest*
9000 eval "ac_cv_header_$ac_safe=yes" 9006 eval "ac_cv_header_$ac_safe=yes"
9001 else 9007 else
9008 rm -f conftest* 9014 rm -f conftest*
9009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6 9016 echo "$ac_t""yes" 1>&6
9011 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9017 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9012 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 9018 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9013 echo "configure:9014: checking for X11/$athena_variant/ThreeD.h" >&5 9019 echo "configure:9020: checking for X11/$athena_variant/ThreeD.h" >&5
9014 9020
9015 cat > conftest.$ac_ext <<EOF 9021 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure" 9022 #line 9023 "configure"
9017 #include "confdefs.h" 9023 #include "confdefs.h"
9018 #include <X11/$athena_variant/ThreeD.h> 9024 #include <X11/$athena_variant/ThreeD.h>
9019 EOF 9025 EOF
9020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9021 { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9027 { (eval echo configure:9028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9023 if test -z "$ac_err"; then 9029 if test -z "$ac_err"; then
9024 rm -rf conftest* 9030 rm -rf conftest*
9025 eval "ac_cv_header_$ac_safe=yes" 9031 eval "ac_cv_header_$ac_safe=yes"
9026 else 9032 else
9044 9050
9045 9051
9046 if test -z "$athena_h_path"; then 9052 if test -z "$athena_h_path"; then
9047 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9053 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9048 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 9054 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9049 echo "configure:9050: checking for $athena_variant/XawInit.h" >&5 9055 echo "configure:9056: checking for $athena_variant/XawInit.h" >&5
9050 9056
9051 cat > conftest.$ac_ext <<EOF 9057 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure" 9058 #line 9059 "configure"
9053 #include "confdefs.h" 9059 #include "confdefs.h"
9054 #include <$athena_variant/XawInit.h> 9060 #include <$athena_variant/XawInit.h>
9055 EOF 9061 EOF
9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9063 { (eval echo configure:9064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9059 if test -z "$ac_err"; then 9065 if test -z "$ac_err"; then
9060 rm -rf conftest* 9066 rm -rf conftest*
9061 eval "ac_cv_header_$ac_safe=yes" 9067 eval "ac_cv_header_$ac_safe=yes"
9062 else 9068 else
9069 rm -f conftest* 9075 rm -f conftest*
9070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9071 echo "$ac_t""yes" 1>&6 9077 echo "$ac_t""yes" 1>&6
9072 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9078 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9073 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 9079 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9074 echo "configure:9075: checking for $athena_variant/ThreeD.h" >&5 9080 echo "configure:9081: checking for $athena_variant/ThreeD.h" >&5
9075 9081
9076 cat > conftest.$ac_ext <<EOF 9082 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure" 9083 #line 9084 "configure"
9078 #include "confdefs.h" 9084 #include "confdefs.h"
9079 #include <$athena_variant/ThreeD.h> 9085 #include <$athena_variant/ThreeD.h>
9080 EOF 9086 EOF
9081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9082 { (eval echo configure:9083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9084 if test -z "$ac_err"; then 9090 if test -z "$ac_err"; then
9085 rm -rf conftest* 9091 rm -rf conftest*
9086 eval "ac_cv_header_$ac_safe=yes" 9092 eval "ac_cv_header_$ac_safe=yes"
9087 else 9093 else
9106 fi 9112 fi
9107 9113
9108 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9114 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9109 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9115 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9110 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 9116 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9111 echo "configure:9112: checking for X11/Xaw3d/XawInit.h" >&5 9117 echo "configure:9118: checking for X11/Xaw3d/XawInit.h" >&5
9112 9118
9113 cat > conftest.$ac_ext <<EOF 9119 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure" 9120 #line 9121 "configure"
9115 #include "confdefs.h" 9121 #include "confdefs.h"
9116 #include <X11/Xaw3d/XawInit.h> 9122 #include <X11/Xaw3d/XawInit.h>
9117 EOF 9123 EOF
9118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9119 { (eval echo configure:9120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9125 { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9121 if test -z "$ac_err"; then 9127 if test -z "$ac_err"; then
9122 rm -rf conftest* 9128 rm -rf conftest*
9123 eval "ac_cv_header_$ac_safe=yes" 9129 eval "ac_cv_header_$ac_safe=yes"
9124 else 9130 else
9131 rm -f conftest* 9137 rm -f conftest*
9132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9133 echo "$ac_t""yes" 1>&6 9139 echo "$ac_t""yes" 1>&6
9134 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9140 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9135 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 9141 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9136 echo "configure:9137: checking for X11/Xaw3d/ThreeD.h" >&5 9142 echo "configure:9143: checking for X11/Xaw3d/ThreeD.h" >&5
9137 9143
9138 cat > conftest.$ac_ext <<EOF 9144 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure" 9145 #line 9146 "configure"
9140 #include "confdefs.h" 9146 #include "confdefs.h"
9141 #include <X11/Xaw3d/ThreeD.h> 9147 #include <X11/Xaw3d/ThreeD.h>
9142 EOF 9148 EOF
9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9150 { (eval echo configure:9151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9146 if test -z "$ac_err"; then 9152 if test -z "$ac_err"; then
9147 rm -rf conftest* 9153 rm -rf conftest*
9148 eval "ac_cv_header_$ac_safe=yes" 9154 eval "ac_cv_header_$ac_safe=yes"
9149 else 9155 else
9171 fi 9177 fi
9172 9178
9173 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9179 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9174 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9180 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9175 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 9181 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9176 echo "configure:9177: checking for Xaw3d/XawInit.h" >&5 9182 echo "configure:9183: checking for Xaw3d/XawInit.h" >&5
9177 9183
9178 cat > conftest.$ac_ext <<EOF 9184 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure" 9185 #line 9186 "configure"
9180 #include "confdefs.h" 9186 #include "confdefs.h"
9181 #include <Xaw3d/XawInit.h> 9187 #include <Xaw3d/XawInit.h>
9182 EOF 9188 EOF
9183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9184 { (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9186 if test -z "$ac_err"; then 9192 if test -z "$ac_err"; then
9187 rm -rf conftest* 9193 rm -rf conftest*
9188 eval "ac_cv_header_$ac_safe=yes" 9194 eval "ac_cv_header_$ac_safe=yes"
9189 else 9195 else
9196 rm -f conftest* 9202 rm -f conftest*
9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6 9204 echo "$ac_t""yes" 1>&6
9199 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9205 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9200 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 9206 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9201 echo "configure:9202: checking for Xaw3d/ThreeD.h" >&5 9207 echo "configure:9208: checking for Xaw3d/ThreeD.h" >&5
9202 9208
9203 cat > conftest.$ac_ext <<EOF 9209 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure" 9210 #line 9211 "configure"
9205 #include "confdefs.h" 9211 #include "confdefs.h"
9206 #include <Xaw3d/ThreeD.h> 9212 #include <Xaw3d/ThreeD.h>
9207 EOF 9213 EOF
9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9215 { (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9211 if test -z "$ac_err"; then 9217 if test -z "$ac_err"; then
9212 rm -rf conftest* 9218 rm -rf conftest*
9213 eval "ac_cv_header_$ac_safe=yes" 9219 eval "ac_cv_header_$ac_safe=yes"
9214 else 9220 else
9236 fi 9242 fi
9237 9243
9238 if test -z "$athena_h_path"; then 9244 if test -z "$athena_h_path"; then
9239 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9245 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9240 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9246 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9241 echo "configure:9242: checking for X11/Xaw/ThreeD.h" >&5 9247 echo "configure:9248: checking for X11/Xaw/ThreeD.h" >&5
9242 9248
9243 cat > conftest.$ac_ext <<EOF 9249 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure" 9250 #line 9251 "configure"
9245 #include "confdefs.h" 9251 #include "confdefs.h"
9246 #include <X11/Xaw/ThreeD.h> 9252 #include <X11/Xaw/ThreeD.h>
9247 EOF 9253 EOF
9248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9249 { (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9255 { (eval echo configure:9256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9251 if test -z "$ac_err"; then 9257 if test -z "$ac_err"; then
9252 rm -rf conftest* 9258 rm -rf conftest*
9253 eval "ac_cv_header_$ac_safe=yes" 9259 eval "ac_cv_header_$ac_safe=yes"
9254 else 9260 else
9279 have_xaw=no 9285 have_xaw=no
9280 fi 9286 fi
9281 9287
9282 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 9288 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9283 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 9289 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9284 echo "configure:9285: checking for Xm/Xm.h" >&5 9290 echo "configure:9291: checking for Xm/Xm.h" >&5
9285 9291
9286 cat > conftest.$ac_ext <<EOF 9292 cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure" 9293 #line 9294 "configure"
9288 #include "confdefs.h" 9294 #include "confdefs.h"
9289 #include <Xm/Xm.h> 9295 #include <Xm/Xm.h>
9290 EOF 9296 EOF
9291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9292 { (eval echo configure:9293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9298 { (eval echo configure:9299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9294 if test -z "$ac_err"; then 9300 if test -z "$ac_err"; then
9295 rm -rf conftest* 9301 rm -rf conftest*
9296 eval "ac_cv_header_$ac_safe=yes" 9302 eval "ac_cv_header_$ac_safe=yes"
9297 else 9303 else
9304 rm -f conftest* 9310 rm -f conftest*
9305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6 9312 echo "$ac_t""yes" 1>&6
9307 9313
9308 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 9314 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9309 echo "configure:9310: checking for XmStringFree in -lXm" >&5 9315 echo "configure:9316: checking for XmStringFree in -lXm" >&5
9310 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 9316 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9311 9317
9312 xe_check_libs=" -lXm " 9318 xe_check_libs=" -lXm "
9313 cat > conftest.$ac_ext <<EOF 9319 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure" 9320 #line 9321 "configure"
9315 #include "confdefs.h" 9321 #include "confdefs.h"
9316 /* Override any gcc2 internal prototype to avoid an error. */ 9322 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2 9323 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */ 9324 builtin and then its argument prototype would still apply. */
9319 char XmStringFree(); 9325 char XmStringFree();
9320 9326
9321 int main() { 9327 int main() {
9322 XmStringFree() 9328 XmStringFree()
9323 ; return 0; } 9329 ; return 0; }
9324 EOF 9330 EOF
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9326 rm -rf conftest* 9332 rm -rf conftest*
9327 eval "ac_cv_lib_$ac_lib_var=yes" 9333 eval "ac_cv_lib_$ac_lib_var=yes"
9328 else 9334 else
9329 echo "configure: failed program was:" >&5 9335 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5 9336 cat conftest.$ac_ext >&5
9349 fi 9355 fi
9350 9356
9351 9357
9352 if test "$have_motif" = "yes"; then 9358 if test "$have_motif" = "yes"; then
9353 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 9359 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9354 echo "configure:9355: checking for Lesstif" >&5 9360 echo "configure:9361: checking for Lesstif" >&5
9355 cat > conftest.$ac_ext <<EOF 9361 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure" 9362 #line 9363 "configure"
9357 #include "confdefs.h" 9363 #include "confdefs.h"
9358 #include <Xm/Xm.h> 9364 #include <Xm/Xm.h>
9359 #ifdef LESSTIF_VERSION 9365 #ifdef LESSTIF_VERSION
9360 yes 9366 yes
9361 #endif 9367 #endif
9775 fi 9781 fi
9776 fi 9782 fi
9777 9783
9778 if test "$with_mule" = "yes" ; then 9784 if test "$with_mule" = "yes" ; then
9779 echo "checking for Mule-related features" 1>&6 9785 echo "checking for Mule-related features" 1>&6
9780 echo "configure:9781: checking for Mule-related features" >&5 9786 echo "configure:9787: checking for Mule-related features" >&5
9781 { test "$extra_verbose" = "yes" && cat << \EOF 9787 { test "$extra_verbose" = "yes" && cat << \EOF
9782 Defining MULE 9788 Defining MULE
9783 EOF 9789 EOF
9784 cat >> confdefs.h <<\EOF 9790 cat >> confdefs.h <<\EOF
9785 #define MULE 1 9791 #define MULE 1
9800 9806
9801 for ac_hdr in libintl.h 9807 for ac_hdr in libintl.h
9802 do 9808 do
9803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9805 echo "configure:9806: checking for $ac_hdr" >&5 9811 echo "configure:9812: checking for $ac_hdr" >&5
9806 9812
9807 cat > conftest.$ac_ext <<EOF 9813 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure" 9814 #line 9815 "configure"
9809 #include "confdefs.h" 9815 #include "confdefs.h"
9810 #include <$ac_hdr> 9816 #include <$ac_hdr>
9811 EOF 9817 EOF
9812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9813 { (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9819 { (eval echo configure:9820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9815 if test -z "$ac_err"; then 9821 if test -z "$ac_err"; then
9816 rm -rf conftest* 9822 rm -rf conftest*
9817 eval "ac_cv_header_$ac_safe=yes" 9823 eval "ac_cv_header_$ac_safe=yes"
9818 else 9824 else
9839 fi 9845 fi
9840 done 9846 done
9841 9847
9842 9848
9843 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9849 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9844 echo "configure:9845: checking for strerror in -lintl" >&5 9850 echo "configure:9851: checking for strerror in -lintl" >&5
9845 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9851 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9846 9852
9847 xe_check_libs=" -lintl " 9853 xe_check_libs=" -lintl "
9848 cat > conftest.$ac_ext <<EOF 9854 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure" 9855 #line 9856 "configure"
9850 #include "confdefs.h" 9856 #include "confdefs.h"
9851 /* Override any gcc2 internal prototype to avoid an error. */ 9857 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2 9858 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */ 9859 builtin and then its argument prototype would still apply. */
9854 char strerror(); 9860 char strerror();
9855 9861
9856 int main() { 9862 int main() {
9857 strerror() 9863 strerror()
9858 ; return 0; } 9864 ; return 0; }
9859 EOF 9865 EOF
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9866 if { (eval echo configure:9867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 rm -rf conftest* 9867 rm -rf conftest*
9862 eval "ac_cv_lib_$ac_lib_var=yes" 9868 eval "ac_cv_lib_$ac_lib_var=yes"
9863 else 9869 else
9864 echo "configure: failed program was:" >&5 9870 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5 9871 cat conftest.$ac_ext >&5
9888 fi 9894 fi
9889 9895
9890 9896
9891 9897
9892 echo "checking for Mule input methods" 1>&6 9898 echo "checking for Mule input methods" 1>&6
9893 echo "configure:9894: checking for Mule input methods" >&5 9899 echo "configure:9900: checking for Mule input methods" >&5
9894 case "$with_xim" in "" | "yes" ) 9900 case "$with_xim" in "" | "yes" )
9895 echo "checking for XIM" 1>&6 9901 echo "checking for XIM" 1>&6
9896 echo "configure:9897: checking for XIM" >&5 9902 echo "configure:9903: checking for XIM" >&5
9897 9903
9898 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9904 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9899 echo "configure:9900: checking for XOpenIM in -lX11" >&5 9905 echo "configure:9906: checking for XOpenIM in -lX11" >&5
9900 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9906 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9901 9907
9902 xe_check_libs=" -lX11 " 9908 xe_check_libs=" -lX11 "
9903 cat > conftest.$ac_ext <<EOF 9909 cat > conftest.$ac_ext <<EOF
9904 #line 9905 "configure" 9910 #line 9911 "configure"
9905 #include "confdefs.h" 9911 #include "confdefs.h"
9906 /* Override any gcc2 internal prototype to avoid an error. */ 9912 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2 9913 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */ 9914 builtin and then its argument prototype would still apply. */
9909 char XOpenIM(); 9915 char XOpenIM();
9910 9916
9911 int main() { 9917 int main() {
9912 XOpenIM() 9918 XOpenIM()
9913 ; return 0; } 9919 ; return 0; }
9914 EOF 9920 EOF
9915 if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9916 rm -rf conftest* 9922 rm -rf conftest*
9917 eval "ac_cv_lib_$ac_lib_var=yes" 9923 eval "ac_cv_lib_$ac_lib_var=yes"
9918 else 9924 else
9919 echo "configure: failed program was:" >&5 9925 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5 9926 cat conftest.$ac_ext >&5
9934 9940
9935 9941
9936 if test "$have_motif $have_lesstif" = "yes no"; then 9942 if test "$have_motif $have_lesstif" = "yes no"; then
9937 9943
9938 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 9944 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9939 echo "configure:9940: checking for XmImMbLookupString in -lXm" >&5 9945 echo "configure:9946: checking for XmImMbLookupString in -lXm" >&5
9940 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 9946 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9941 9947
9942 xe_check_libs=" -lXm " 9948 xe_check_libs=" -lXm "
9943 cat > conftest.$ac_ext <<EOF 9949 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure" 9950 #line 9951 "configure"
9945 #include "confdefs.h" 9951 #include "confdefs.h"
9946 /* Override any gcc2 internal prototype to avoid an error. */ 9952 /* Override any gcc2 internal prototype to avoid an error. */
9947 /* We use char because int might match the return type of a gcc2 9953 /* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */ 9954 builtin and then its argument prototype would still apply. */
9949 char XmImMbLookupString(); 9955 char XmImMbLookupString();
9950 9956
9951 int main() { 9957 int main() {
9952 XmImMbLookupString() 9958 XmImMbLookupString()
9953 ; return 0; } 9959 ; return 0; }
9954 EOF 9960 EOF
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9956 rm -rf conftest* 9962 rm -rf conftest*
9957 eval "ac_cv_lib_$ac_lib_var=yes" 9963 eval "ac_cv_lib_$ac_lib_var=yes"
9958 else 9964 else
9959 echo "configure: failed program was:" >&5 9965 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5 9966 cat conftest.$ac_ext >&5
10015 fi 10021 fi
10016 fi 10022 fi
10017 10023
10018 if test "$with_xfs" = "yes" ; then 10024 if test "$with_xfs" = "yes" ; then
10019 echo "checking for XFontSet" 1>&6 10025 echo "checking for XFontSet" 1>&6
10020 echo "configure:10021: checking for XFontSet" >&5 10026 echo "configure:10027: checking for XFontSet" >&5
10021 10027
10022 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 10028 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10023 echo "configure:10024: checking for XmbDrawString in -lX11" >&5 10029 echo "configure:10030: checking for XmbDrawString in -lX11" >&5
10024 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 10030 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10025 10031
10026 xe_check_libs=" -lX11 " 10032 xe_check_libs=" -lX11 "
10027 cat > conftest.$ac_ext <<EOF 10033 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure" 10034 #line 10035 "configure"
10029 #include "confdefs.h" 10035 #include "confdefs.h"
10030 /* Override any gcc2 internal prototype to avoid an error. */ 10036 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2 10037 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */ 10038 builtin and then its argument prototype would still apply. */
10033 char XmbDrawString(); 10039 char XmbDrawString();
10034 10040
10035 int main() { 10041 int main() {
10036 XmbDrawString() 10042 XmbDrawString()
10037 ; return 0; } 10043 ; return 0; }
10038 EOF 10044 EOF
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 rm -rf conftest* 10046 rm -rf conftest*
10041 eval "ac_cv_lib_$ac_lib_var=yes" 10047 eval "ac_cv_lib_$ac_lib_var=yes"
10042 else 10048 else
10043 echo "configure: failed program was:" >&5 10049 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5 10050 cat conftest.$ac_ext >&5
10074 fi 10080 fi
10075 fi 10081 fi
10076 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 10082 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10077 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 10083 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10078 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 10084 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10079 echo "configure:10080: checking for wnn/jllib.h" >&5 10085 echo "configure:10086: checking for wnn/jllib.h" >&5
10080 10086
10081 cat > conftest.$ac_ext <<EOF 10087 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure" 10088 #line 10089 "configure"
10083 #include "confdefs.h" 10089 #include "confdefs.h"
10084 #include <wnn/jllib.h> 10090 #include <wnn/jllib.h>
10085 EOF 10091 EOF
10086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10087 { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10093 { (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10089 if test -z "$ac_err"; then 10095 if test -z "$ac_err"; then
10090 rm -rf conftest* 10096 rm -rf conftest*
10091 eval "ac_cv_header_$ac_safe=yes" 10097 eval "ac_cv_header_$ac_safe=yes"
10092 else 10098 else
10105 with_wnn=no 10111 with_wnn=no
10106 fi 10112 fi
10107 } 10113 }
10108 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 10114 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10109 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 10115 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10110 echo "configure:10111: checking for wnn/commonhd.h" >&5 10116 echo "configure:10117: checking for wnn/commonhd.h" >&5
10111 10117
10112 cat > conftest.$ac_ext <<EOF 10118 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure" 10119 #line 10120 "configure"
10114 #include "confdefs.h" 10120 #include "confdefs.h"
10115 #include <wnn/commonhd.h> 10121 #include <wnn/commonhd.h>
10116 EOF 10122 EOF
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10124 { (eval echo configure:10125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120 if test -z "$ac_err"; then 10126 if test -z "$ac_err"; then
10121 rm -rf conftest* 10127 rm -rf conftest*
10122 eval "ac_cv_header_$ac_safe=yes" 10128 eval "ac_cv_header_$ac_safe=yes"
10123 else 10129 else
10138 } 10144 }
10139 if test "$with_wnn" != "no"; then 10145 if test "$with_wnn" != "no"; then
10140 for ac_func in crypt 10146 for ac_func in crypt
10141 do 10147 do
10142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10143 echo "configure:10144: checking for $ac_func" >&5 10149 echo "configure:10150: checking for $ac_func" >&5
10144 10150
10145 cat > conftest.$ac_ext <<EOF 10151 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure" 10152 #line 10153 "configure"
10147 #include "confdefs.h" 10153 #include "confdefs.h"
10148 /* System header to define __stub macros and hopefully few prototypes, 10154 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char $ac_func(); below. */ 10155 which can conflict with char $ac_func(); below. */
10150 #include <assert.h> 10156 #include <assert.h>
10151 /* Override any gcc2 internal prototype to avoid an error. */ 10157 /* Override any gcc2 internal prototype to avoid an error. */
10164 $ac_func(); 10170 $ac_func();
10165 #endif 10171 #endif
10166 10172
10167 ; return 0; } 10173 ; return 0; }
10168 EOF 10174 EOF
10169 if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10170 rm -rf conftest* 10176 rm -rf conftest*
10171 eval "ac_cv_func_$ac_func=yes" 10177 eval "ac_cv_func_$ac_func=yes"
10172 else 10178 else
10173 echo "configure: failed program was:" >&5 10179 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5 10180 cat conftest.$ac_ext >&5
10193 fi 10199 fi
10194 done 10200 done
10195 10201
10196 test "$ac_cv_func_crypt" != "yes" && { 10202 test "$ac_cv_func_crypt" != "yes" && {
10197 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10203 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10198 echo "configure:10199: checking for crypt in -lcrypt" >&5 10204 echo "configure:10205: checking for crypt in -lcrypt" >&5
10199 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10205 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10200 10206
10201 xe_check_libs=" -lcrypt " 10207 xe_check_libs=" -lcrypt "
10202 cat > conftest.$ac_ext <<EOF 10208 cat > conftest.$ac_ext <<EOF
10203 #line 10204 "configure" 10209 #line 10210 "configure"
10204 #include "confdefs.h" 10210 #include "confdefs.h"
10205 /* Override any gcc2 internal prototype to avoid an error. */ 10211 /* Override any gcc2 internal prototype to avoid an error. */
10206 /* We use char because int might match the return type of a gcc2 10212 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */ 10213 builtin and then its argument prototype would still apply. */
10208 char crypt(); 10214 char crypt();
10209 10215
10210 int main() { 10216 int main() {
10211 crypt() 10217 crypt()
10212 ; return 0; } 10218 ; return 0; }
10213 EOF 10219 EOF
10214 if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10215 rm -rf conftest* 10221 rm -rf conftest*
10216 eval "ac_cv_lib_$ac_lib_var=yes" 10222 eval "ac_cv_lib_$ac_lib_var=yes"
10217 else 10223 else
10218 echo "configure: failed program was:" >&5 10224 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5 10225 cat conftest.$ac_ext >&5
10244 } 10250 }
10245 fi 10251 fi
10246 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10252 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10247 10253
10248 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10254 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10249 echo "configure:10250: checking for jl_dic_list_e in -lwnn" >&5 10255 echo "configure:10256: checking for jl_dic_list_e in -lwnn" >&5
10250 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10256 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10251 10257
10252 xe_check_libs=" -lwnn " 10258 xe_check_libs=" -lwnn "
10253 cat > conftest.$ac_ext <<EOF 10259 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure" 10260 #line 10261 "configure"
10255 #include "confdefs.h" 10261 #include "confdefs.h"
10256 /* Override any gcc2 internal prototype to avoid an error. */ 10262 /* Override any gcc2 internal prototype to avoid an error. */
10257 /* We use char because int might match the return type of a gcc2 10263 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */ 10264 builtin and then its argument prototype would still apply. */
10259 char jl_dic_list_e(); 10265 char jl_dic_list_e();
10260 10266
10261 int main() { 10267 int main() {
10262 jl_dic_list_e() 10268 jl_dic_list_e()
10263 ; return 0; } 10269 ; return 0; }
10264 EOF 10270 EOF
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10266 rm -rf conftest* 10272 rm -rf conftest*
10267 eval "ac_cv_lib_$ac_lib_var=yes" 10273 eval "ac_cv_lib_$ac_lib_var=yes"
10268 else 10274 else
10269 echo "configure: failed program was:" >&5 10275 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5 10276 cat conftest.$ac_ext >&5
10278 echo "$ac_t""yes" 1>&6 10284 echo "$ac_t""yes" 1>&6
10279 libwnn=wnn 10285 libwnn=wnn
10280 else 10286 else
10281 echo "$ac_t""no" 1>&6 10287 echo "$ac_t""no" 1>&6
10282 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10288 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10283 echo "configure:10284: checking for jl_dic_list_e in -lwnn4" >&5 10289 echo "configure:10290: checking for jl_dic_list_e in -lwnn4" >&5
10284 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10290 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10285 10291
10286 xe_check_libs=" -lwnn4 " 10292 xe_check_libs=" -lwnn4 "
10287 cat > conftest.$ac_ext <<EOF 10293 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure" 10294 #line 10295 "configure"
10289 #include "confdefs.h" 10295 #include "confdefs.h"
10290 /* Override any gcc2 internal prototype to avoid an error. */ 10296 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2 10297 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */ 10298 builtin and then its argument prototype would still apply. */
10293 char jl_dic_list_e(); 10299 char jl_dic_list_e();
10294 10300
10295 int main() { 10301 int main() {
10296 jl_dic_list_e() 10302 jl_dic_list_e()
10297 ; return 0; } 10303 ; return 0; }
10298 EOF 10304 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10305 if { (eval echo configure:10306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300 rm -rf conftest* 10306 rm -rf conftest*
10301 eval "ac_cv_lib_$ac_lib_var=yes" 10307 eval "ac_cv_lib_$ac_lib_var=yes"
10302 else 10308 else
10303 echo "configure: failed program was:" >&5 10309 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5 10310 cat conftest.$ac_ext >&5
10312 echo "$ac_t""yes" 1>&6 10318 echo "$ac_t""yes" 1>&6
10313 libwnn=wnn4 10319 libwnn=wnn4
10314 else 10320 else
10315 echo "$ac_t""no" 1>&6 10321 echo "$ac_t""no" 1>&6
10316 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10322 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10317 echo "configure:10318: checking for jl_dic_list_e in -lwnn6" >&5 10323 echo "configure:10324: checking for jl_dic_list_e in -lwnn6" >&5
10318 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10324 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10319 10325
10320 xe_check_libs=" -lwnn6 " 10326 xe_check_libs=" -lwnn6 "
10321 cat > conftest.$ac_ext <<EOF 10327 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure" 10328 #line 10329 "configure"
10323 #include "confdefs.h" 10329 #include "confdefs.h"
10324 /* Override any gcc2 internal prototype to avoid an error. */ 10330 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2 10331 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */ 10332 builtin and then its argument prototype would still apply. */
10327 char jl_dic_list_e(); 10333 char jl_dic_list_e();
10328 10334
10329 int main() { 10335 int main() {
10330 jl_dic_list_e() 10336 jl_dic_list_e()
10331 ; return 0; } 10337 ; return 0; }
10332 EOF 10338 EOF
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10334 rm -rf conftest* 10340 rm -rf conftest*
10335 eval "ac_cv_lib_$ac_lib_var=yes" 10341 eval "ac_cv_lib_$ac_lib_var=yes"
10336 else 10342 else
10337 echo "configure: failed program was:" >&5 10343 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5 10344 cat conftest.$ac_ext >&5
10346 echo "$ac_t""yes" 1>&6 10352 echo "$ac_t""yes" 1>&6
10347 libwnn=wnn6 10353 libwnn=wnn6
10348 else 10354 else
10349 echo "$ac_t""no" 1>&6 10355 echo "$ac_t""no" 1>&6
10350 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10356 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10351 echo "configure:10352: checking for dic_list_e in -lwnn6_fromsrc" >&5 10357 echo "configure:10358: checking for dic_list_e in -lwnn6_fromsrc" >&5
10352 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10358 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10353 10359
10354 xe_check_libs=" -lwnn6_fromsrc " 10360 xe_check_libs=" -lwnn6_fromsrc "
10355 cat > conftest.$ac_ext <<EOF 10361 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure" 10362 #line 10363 "configure"
10357 #include "confdefs.h" 10363 #include "confdefs.h"
10358 /* Override any gcc2 internal prototype to avoid an error. */ 10364 /* Override any gcc2 internal prototype to avoid an error. */
10359 /* We use char because int might match the return type of a gcc2 10365 /* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */ 10366 builtin and then its argument prototype would still apply. */
10361 char dic_list_e(); 10367 char dic_list_e();
10362 10368
10363 int main() { 10369 int main() {
10364 dic_list_e() 10370 dic_list_e()
10365 ; return 0; } 10371 ; return 0; }
10366 EOF 10372 EOF
10367 if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10368 rm -rf conftest* 10374 rm -rf conftest*
10369 eval "ac_cv_lib_$ac_lib_var=yes" 10375 eval "ac_cv_lib_$ac_lib_var=yes"
10370 else 10376 else
10371 echo "configure: failed program was:" >&5 10377 echo "configure: failed program was:" >&5
10372 cat conftest.$ac_ext >&5 10378 cat conftest.$ac_ext >&5
10410 echo " xemacs will be linked with \"mule-wnnfns.o\"" 10416 echo " xemacs will be linked with \"mule-wnnfns.o\""
10411 fi 10417 fi
10412 if test "$with_wnn6" != "no"; then 10418 if test "$with_wnn6" != "no"; then
10413 10419
10414 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10420 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10415 echo "configure:10416: checking for jl_fi_dic_list in -l$libwnn" >&5 10421 echo "configure:10422: checking for jl_fi_dic_list in -l$libwnn" >&5
10416 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10422 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10417 10423
10418 xe_check_libs=" -l$libwnn " 10424 xe_check_libs=" -l$libwnn "
10419 cat > conftest.$ac_ext <<EOF 10425 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure" 10426 #line 10427 "configure"
10421 #include "confdefs.h" 10427 #include "confdefs.h"
10422 /* Override any gcc2 internal prototype to avoid an error. */ 10428 /* Override any gcc2 internal prototype to avoid an error. */
10423 /* We use char because int might match the return type of a gcc2 10429 /* We use char because int might match the return type of a gcc2
10424 builtin and then its argument prototype would still apply. */ 10430 builtin and then its argument prototype would still apply. */
10425 char jl_fi_dic_list(); 10431 char jl_fi_dic_list();
10426 10432
10427 int main() { 10433 int main() {
10428 jl_fi_dic_list() 10434 jl_fi_dic_list()
10429 ; return 0; } 10435 ; return 0; }
10430 EOF 10436 EOF
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10432 rm -rf conftest* 10438 rm -rf conftest*
10433 eval "ac_cv_lib_$ac_lib_var=yes" 10439 eval "ac_cv_lib_$ac_lib_var=yes"
10434 else 10440 else
10435 echo "configure: failed program was:" >&5 10441 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5 10442 cat conftest.$ac_ext >&5
10461 10467
10462 canna_includes_found=no 10468 canna_includes_found=no
10463 if test "$with_canna" != "no"; then 10469 if test "$with_canna" != "no"; then
10464 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10470 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10465 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10471 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10466 echo "configure:10467: checking for canna/jrkanji.h" >&5 10472 echo "configure:10473: checking for canna/jrkanji.h" >&5
10467 10473
10468 cat > conftest.$ac_ext <<EOF 10474 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure" 10475 #line 10476 "configure"
10470 #include "confdefs.h" 10476 #include "confdefs.h"
10471 #include <canna/jrkanji.h> 10477 #include <canna/jrkanji.h>
10472 EOF 10478 EOF
10473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10474 { (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10480 { (eval echo configure:10481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10476 if test -z "$ac_err"; then 10482 if test -z "$ac_err"; then
10477 rm -rf conftest* 10483 rm -rf conftest*
10478 eval "ac_cv_header_$ac_safe=yes" 10484 eval "ac_cv_header_$ac_safe=yes"
10479 else 10485 else
10496 -d "/usr/local/canna/include"; then 10502 -d "/usr/local/canna/include"; then
10497 save_c_switch_site="$c_switch_site" 10503 save_c_switch_site="$c_switch_site"
10498 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10504 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10499 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10505 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10500 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10506 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10501 echo "configure:10502: checking for canna/jrkanji.h" >&5 10507 echo "configure:10508: checking for canna/jrkanji.h" >&5
10502 10508
10503 cat > conftest.$ac_ext <<EOF 10509 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure" 10510 #line 10511 "configure"
10505 #include "confdefs.h" 10511 #include "confdefs.h"
10506 #include <canna/jrkanji.h> 10512 #include <canna/jrkanji.h>
10507 EOF 10513 EOF
10508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10509 { (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10515 { (eval echo configure:10516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10511 if test -z "$ac_err"; then 10517 if test -z "$ac_err"; then
10512 rm -rf conftest* 10518 rm -rf conftest*
10513 eval "ac_cv_header_$ac_safe=yes" 10519 eval "ac_cv_header_$ac_safe=yes"
10514 else 10520 else
10532 fi 10538 fi
10533 fi 10539 fi
10534 10540
10535 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10541 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10536 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10542 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10537 echo "configure:10538: checking for canna/RK.h" >&5 10543 echo "configure:10544: checking for canna/RK.h" >&5
10538 10544
10539 cat > conftest.$ac_ext <<EOF 10545 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure" 10546 #line 10547 "configure"
10541 #include "confdefs.h" 10547 #include "confdefs.h"
10542 #include <canna/RK.h> 10548 #include <canna/RK.h>
10543 EOF 10549 EOF
10544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10545 { (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10551 { (eval echo configure:10552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10547 if test -z "$ac_err"; then 10553 if test -z "$ac_err"; then
10548 rm -rf conftest* 10554 rm -rf conftest*
10549 eval "ac_cv_header_$ac_safe=yes" 10555 eval "ac_cv_header_$ac_safe=yes"
10550 else 10556 else
10563 with_canna=no 10569 with_canna=no
10564 fi 10570 fi
10565 } 10571 }
10566 test -z "$with_canna" && { 10572 test -z "$with_canna" && {
10567 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10573 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10568 echo "configure:10569: checking for RkBgnBun in -lRKC" >&5 10574 echo "configure:10575: checking for RkBgnBun in -lRKC" >&5
10569 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10575 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10570 10576
10571 xe_check_libs=" -lRKC " 10577 xe_check_libs=" -lRKC "
10572 cat > conftest.$ac_ext <<EOF 10578 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure" 10579 #line 10580 "configure"
10574 #include "confdefs.h" 10580 #include "confdefs.h"
10575 /* Override any gcc2 internal prototype to avoid an error. */ 10581 /* Override any gcc2 internal prototype to avoid an error. */
10576 /* We use char because int might match the return type of a gcc2 10582 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */ 10583 builtin and then its argument prototype would still apply. */
10578 char RkBgnBun(); 10584 char RkBgnBun();
10579 10585
10580 int main() { 10586 int main() {
10581 RkBgnBun() 10587 RkBgnBun()
10582 ; return 0; } 10588 ; return 0; }
10583 EOF 10589 EOF
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10585 rm -rf conftest* 10591 rm -rf conftest*
10586 eval "ac_cv_lib_$ac_lib_var=yes" 10592 eval "ac_cv_lib_$ac_lib_var=yes"
10587 else 10593 else
10588 echo "configure: failed program was:" >&5 10594 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5 10595 cat conftest.$ac_ext >&5
10602 fi 10608 fi
10603 10609
10604 } 10610 }
10605 test -z "$with_canna" && { 10611 test -z "$with_canna" && {
10606 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10612 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10607 echo "configure:10608: checking for jrKanjiControl in -lcanna" >&5 10613 echo "configure:10614: checking for jrKanjiControl in -lcanna" >&5
10608 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10614 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10609 10615
10610 xe_check_libs=" -lcanna " 10616 xe_check_libs=" -lcanna "
10611 cat > conftest.$ac_ext <<EOF 10617 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure" 10618 #line 10619 "configure"
10613 #include "confdefs.h" 10619 #include "confdefs.h"
10614 /* Override any gcc2 internal prototype to avoid an error. */ 10620 /* Override any gcc2 internal prototype to avoid an error. */
10615 /* We use char because int might match the return type of a gcc2 10621 /* We use char because int might match the return type of a gcc2
10616 builtin and then its argument prototype would still apply. */ 10622 builtin and then its argument prototype would still apply. */
10617 char jrKanjiControl(); 10623 char jrKanjiControl();
10618 10624
10619 int main() { 10625 int main() {
10620 jrKanjiControl() 10626 jrKanjiControl()
10621 ; return 0; } 10627 ; return 0; }
10622 EOF 10628 EOF
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10624 rm -rf conftest* 10630 rm -rf conftest*
10625 eval "ac_cv_lib_$ac_lib_var=yes" 10631 eval "ac_cv_lib_$ac_lib_var=yes"
10626 else 10632 else
10627 echo "configure: failed program was:" >&5 10633 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5 10634 cat conftest.$ac_ext >&5
10667 10673
10668 if test "$need_motif" = "yes" ; then 10674 if test "$need_motif" = "yes" ; then
10669 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10675 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10670 10676
10671 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10677 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10672 echo "configure:10673: checking for layout_object_getvalue in -li18n" >&5 10678 echo "configure:10679: checking for layout_object_getvalue in -li18n" >&5
10673 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10679 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10674 10680
10675 xe_check_libs=" -li18n " 10681 xe_check_libs=" -li18n "
10676 cat > conftest.$ac_ext <<EOF 10682 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure" 10683 #line 10684 "configure"
10678 #include "confdefs.h" 10684 #include "confdefs.h"
10679 /* Override any gcc2 internal prototype to avoid an error. */ 10685 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2 10686 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */ 10687 builtin and then its argument prototype would still apply. */
10682 char layout_object_getvalue(); 10688 char layout_object_getvalue();
10683 10689
10684 int main() { 10690 int main() {
10685 layout_object_getvalue() 10691 layout_object_getvalue()
10686 ; return 0; } 10692 ; return 0; }
10687 EOF 10693 EOF
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10689 rm -rf conftest* 10695 rm -rf conftest*
10690 eval "ac_cv_lib_$ac_lib_var=yes" 10696 eval "ac_cv_lib_$ac_lib_var=yes"
10691 else 10697 else
10692 echo "configure: failed program was:" >&5 10698 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5 10699 cat conftest.$ac_ext >&5
10769 fi 10775 fi
10770 10776
10771 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask 10777 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10772 do 10778 do
10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10774 echo "configure:10775: checking for $ac_func" >&5 10780 echo "configure:10781: checking for $ac_func" >&5
10775 10781
10776 cat > conftest.$ac_ext <<EOF 10782 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure" 10783 #line 10784 "configure"
10778 #include "confdefs.h" 10784 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes, 10785 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func(); below. */ 10786 which can conflict with char $ac_func(); below. */
10781 #include <assert.h> 10787 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error. */ 10788 /* Override any gcc2 internal prototype to avoid an error. */
10795 $ac_func(); 10801 $ac_func();
10796 #endif 10802 #endif
10797 10803
10798 ; return 0; } 10804 ; return 0; }
10799 EOF 10805 EOF
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10801 rm -rf conftest* 10807 rm -rf conftest*
10802 eval "ac_cv_func_$ac_func=yes" 10808 eval "ac_cv_func_$ac_func=yes"
10803 else 10809 else
10804 echo "configure: failed program was:" >&5 10810 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5 10811 cat conftest.$ac_ext >&5
10827 10833
10828 10834
10829 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10835 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10830 do 10836 do
10831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10832 echo "configure:10833: checking for $ac_func" >&5 10838 echo "configure:10839: checking for $ac_func" >&5
10833 10839
10834 cat > conftest.$ac_ext <<EOF 10840 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure" 10841 #line 10842 "configure"
10836 #include "confdefs.h" 10842 #include "confdefs.h"
10837 /* System header to define __stub macros and hopefully few prototypes, 10843 /* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char $ac_func(); below. */ 10844 which can conflict with char $ac_func(); below. */
10839 #include <assert.h> 10845 #include <assert.h>
10840 /* Override any gcc2 internal prototype to avoid an error. */ 10846 /* Override any gcc2 internal prototype to avoid an error. */
10853 $ac_func(); 10859 $ac_func();
10854 #endif 10860 #endif
10855 10861
10856 ; return 0; } 10862 ; return 0; }
10857 EOF 10863 EOF
10858 if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10859 rm -rf conftest* 10865 rm -rf conftest*
10860 eval "ac_cv_func_$ac_func=yes" 10866 eval "ac_cv_func_$ac_func=yes"
10861 else 10867 else
10862 echo "configure: failed program was:" >&5 10868 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5 10869 cat conftest.$ac_ext >&5
10882 fi 10888 fi
10883 done 10889 done
10884 10890
10885 10891
10886 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10892 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10887 echo "configure:10888: checking for openpty" >&5 10893 echo "configure:10894: checking for openpty" >&5
10888 10894
10889 cat > conftest.$ac_ext <<EOF 10895 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure" 10896 #line 10897 "configure"
10891 #include "confdefs.h" 10897 #include "confdefs.h"
10892 /* System header to define __stub macros and hopefully few prototypes, 10898 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char openpty(); below. */ 10899 which can conflict with char openpty(); below. */
10894 #include <assert.h> 10900 #include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */ 10901 /* Override any gcc2 internal prototype to avoid an error. */
10908 openpty(); 10914 openpty();
10909 #endif 10915 #endif
10910 10916
10911 ; return 0; } 10917 ; return 0; }
10912 EOF 10918 EOF
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 rm -rf conftest* 10920 rm -rf conftest*
10915 eval "ac_cv_func_openpty=yes" 10921 eval "ac_cv_func_openpty=yes"
10916 else 10922 else
10917 echo "configure: failed program was:" >&5 10923 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5 10924 cat conftest.$ac_ext >&5
10927 else 10933 else
10928 echo "$ac_t""no" 1>&6 10934 echo "$ac_t""no" 1>&6
10929 10935
10930 10936
10931 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 10937 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10932 echo "configure:10933: checking for openpty in -lutil" >&5 10938 echo "configure:10939: checking for openpty in -lutil" >&5
10933 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 10939 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10934 10940
10935 xe_check_libs=" -lutil " 10941 xe_check_libs=" -lutil "
10936 cat > conftest.$ac_ext <<EOF 10942 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure" 10943 #line 10944 "configure"
10938 #include "confdefs.h" 10944 #include "confdefs.h"
10939 /* Override any gcc2 internal prototype to avoid an error. */ 10945 /* Override any gcc2 internal prototype to avoid an error. */
10940 /* We use char because int might match the return type of a gcc2 10946 /* We use char because int might match the return type of a gcc2
10941 builtin and then its argument prototype would still apply. */ 10947 builtin and then its argument prototype would still apply. */
10942 char openpty(); 10948 char openpty();
10943 10949
10944 int main() { 10950 int main() {
10945 openpty() 10951 openpty()
10946 ; return 0; } 10952 ; return 0; }
10947 EOF 10953 EOF
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 rm -rf conftest* 10955 rm -rf conftest*
10950 eval "ac_cv_lib_$ac_lib_var=yes" 10956 eval "ac_cv_lib_$ac_lib_var=yes"
10951 else 10957 else
10952 echo "configure: failed program was:" >&5 10958 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5 10959 cat conftest.$ac_ext >&5
10978 10984
10979 for ac_hdr in pty.h libutil.h util.h 10985 for ac_hdr in pty.h libutil.h util.h
10980 do 10986 do
10981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10983 echo "configure:10984: checking for $ac_hdr" >&5 10989 echo "configure:10990: checking for $ac_hdr" >&5
10984 10990
10985 cat > conftest.$ac_ext <<EOF 10991 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure" 10992 #line 10993 "configure"
10987 #include "confdefs.h" 10993 #include "confdefs.h"
10988 #include <$ac_hdr> 10994 #include <$ac_hdr>
10989 EOF 10995 EOF
10990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10991 { (eval echo configure:10992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10997 { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10993 if test -z "$ac_err"; then 10999 if test -z "$ac_err"; then
10994 rm -rf conftest* 11000 rm -rf conftest*
10995 eval "ac_cv_header_$ac_safe=yes" 11001 eval "ac_cv_header_$ac_safe=yes"
10996 else 11002 else
11022 11028
11023 for ac_hdr in stropts.h 11029 for ac_hdr in stropts.h
11024 do 11030 do
11025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11027 echo "configure:11028: checking for $ac_hdr" >&5 11033 echo "configure:11034: checking for $ac_hdr" >&5
11028 11034
11029 cat > conftest.$ac_ext <<EOF 11035 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure" 11036 #line 11037 "configure"
11031 #include "confdefs.h" 11037 #include "confdefs.h"
11032 #include <$ac_hdr> 11038 #include <$ac_hdr>
11033 EOF 11039 EOF
11034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11035 { (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11041 { (eval echo configure:11042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11037 if test -z "$ac_err"; then 11043 if test -z "$ac_err"; then
11038 rm -rf conftest* 11044 rm -rf conftest*
11039 eval "ac_cv_header_$ac_safe=yes" 11045 eval "ac_cv_header_$ac_safe=yes"
11040 else 11046 else
11063 11069
11064 if test "$ac_cv_header_stropts_h" = "yes"; then 11070 if test "$ac_cv_header_stropts_h" = "yes"; then
11065 for ac_func in isastream 11071 for ac_func in isastream
11066 do 11072 do
11067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11068 echo "configure:11069: checking for $ac_func" >&5 11074 echo "configure:11075: checking for $ac_func" >&5
11069 11075
11070 cat > conftest.$ac_ext <<EOF 11076 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure" 11077 #line 11078 "configure"
11072 #include "confdefs.h" 11078 #include "confdefs.h"
11073 /* System header to define __stub macros and hopefully few prototypes, 11079 /* System header to define __stub macros and hopefully few prototypes,
11074 which can conflict with char $ac_func(); below. */ 11080 which can conflict with char $ac_func(); below. */
11075 #include <assert.h> 11081 #include <assert.h>
11076 /* Override any gcc2 internal prototype to avoid an error. */ 11082 /* Override any gcc2 internal prototype to avoid an error. */
11089 $ac_func(); 11095 $ac_func();
11090 #endif 11096 #endif
11091 11097
11092 ; return 0; } 11098 ; return 0; }
11093 EOF 11099 EOF
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11095 rm -rf conftest* 11101 rm -rf conftest*
11096 eval "ac_cv_func_$ac_func=yes" 11102 eval "ac_cv_func_$ac_func=yes"
11097 else 11103 else
11098 echo "configure: failed program was:" >&5 11104 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5 11105 cat conftest.$ac_ext >&5
11120 11126
11121 for ac_hdr in strtio.h 11127 for ac_hdr in strtio.h
11122 do 11128 do
11123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11125 echo "configure:11126: checking for $ac_hdr" >&5 11131 echo "configure:11132: checking for $ac_hdr" >&5
11126 11132
11127 cat > conftest.$ac_ext <<EOF 11133 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure" 11134 #line 11135 "configure"
11129 #include "confdefs.h" 11135 #include "confdefs.h"
11130 #include <$ac_hdr> 11136 #include <$ac_hdr>
11131 EOF 11137 EOF
11132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11133 { (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11139 { (eval echo configure:11140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11135 if test -z "$ac_err"; then 11141 if test -z "$ac_err"; then
11136 rm -rf conftest* 11142 rm -rf conftest*
11137 eval "ac_cv_header_$ac_safe=yes" 11143 eval "ac_cv_header_$ac_safe=yes"
11138 else 11144 else
11165 fi 11171 fi
11166 11172
11167 for ac_func in getloadavg 11173 for ac_func in getloadavg
11168 do 11174 do
11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11170 echo "configure:11171: checking for $ac_func" >&5 11176 echo "configure:11177: checking for $ac_func" >&5
11171 11177
11172 cat > conftest.$ac_ext <<EOF 11178 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure" 11179 #line 11180 "configure"
11174 #include "confdefs.h" 11180 #include "confdefs.h"
11175 /* System header to define __stub macros and hopefully few prototypes, 11181 /* System header to define __stub macros and hopefully few prototypes,
11176 which can conflict with char $ac_func(); below. */ 11182 which can conflict with char $ac_func(); below. */
11177 #include <assert.h> 11183 #include <assert.h>
11178 /* Override any gcc2 internal prototype to avoid an error. */ 11184 /* Override any gcc2 internal prototype to avoid an error. */
11191 $ac_func(); 11197 $ac_func();
11192 #endif 11198 #endif
11193 11199
11194 ; return 0; } 11200 ; return 0; }
11195 EOF 11201 EOF
11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11202 if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11197 rm -rf conftest* 11203 rm -rf conftest*
11198 eval "ac_cv_func_$ac_func=yes" 11204 eval "ac_cv_func_$ac_func=yes"
11199 else 11205 else
11200 echo "configure: failed program was:" >&5 11206 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5 11207 cat conftest.$ac_ext >&5
11224 if test "$ac_cv_func_getloadavg" = "yes"; then 11230 if test "$ac_cv_func_getloadavg" = "yes"; then
11225 for ac_hdr in sys/loadavg.h 11231 for ac_hdr in sys/loadavg.h
11226 do 11232 do
11227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11229 echo "configure:11230: checking for $ac_hdr" >&5 11235 echo "configure:11236: checking for $ac_hdr" >&5
11230 11236
11231 cat > conftest.$ac_ext <<EOF 11237 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure" 11238 #line 11239 "configure"
11233 #include "confdefs.h" 11239 #include "confdefs.h"
11234 #include <$ac_hdr> 11240 #include <$ac_hdr>
11235 EOF 11241 EOF
11236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11237 { (eval echo configure:11238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11243 { (eval echo configure:11244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11239 if test -z "$ac_err"; then 11245 if test -z "$ac_err"; then
11240 rm -rf conftest* 11246 rm -rf conftest*
11241 eval "ac_cv_header_$ac_safe=yes" 11247 eval "ac_cv_header_$ac_safe=yes"
11242 else 11248 else
11268 echo " xemacs will be linked with \"getloadavg.o\"" 11274 echo " xemacs will be linked with \"getloadavg.o\""
11269 fi 11275 fi
11270 11276
11271 11277
11272 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11278 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11273 echo "configure:11274: checking for kstat_open in -lkstat" >&5 11279 echo "configure:11280: checking for kstat_open in -lkstat" >&5
11274 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11280 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11275 11281
11276 xe_check_libs=" -lkstat " 11282 xe_check_libs=" -lkstat "
11277 cat > conftest.$ac_ext <<EOF 11283 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure" 11284 #line 11285 "configure"
11279 #include "confdefs.h" 11285 #include "confdefs.h"
11280 /* Override any gcc2 internal prototype to avoid an error. */ 11286 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2 11287 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */ 11288 builtin and then its argument prototype would still apply. */
11283 char kstat_open(); 11289 char kstat_open();
11284 11290
11285 int main() { 11291 int main() {
11286 kstat_open() 11292 kstat_open()
11287 ; return 0; } 11293 ; return 0; }
11288 EOF 11294 EOF
11289 if { (eval echo configure:11290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11295 if { (eval echo configure:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11290 rm -rf conftest* 11296 rm -rf conftest*
11291 eval "ac_cv_lib_$ac_lib_var=yes" 11297 eval "ac_cv_lib_$ac_lib_var=yes"
11292 else 11298 else
11293 echo "configure: failed program was:" >&5 11299 echo "configure: failed program was:" >&5
11294 cat conftest.$ac_ext >&5 11300 cat conftest.$ac_ext >&5
11319 11325
11320 for ac_hdr in kstat.h 11326 for ac_hdr in kstat.h
11321 do 11327 do
11322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11324 echo "configure:11325: checking for $ac_hdr" >&5 11330 echo "configure:11331: checking for $ac_hdr" >&5
11325 11331
11326 cat > conftest.$ac_ext <<EOF 11332 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure" 11333 #line 11334 "configure"
11328 #include "confdefs.h" 11334 #include "confdefs.h"
11329 #include <$ac_hdr> 11335 #include <$ac_hdr>
11330 EOF 11336 EOF
11331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11332 { (eval echo configure:11333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11338 { (eval echo configure:11339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11334 if test -z "$ac_err"; then 11340 if test -z "$ac_err"; then
11335 rm -rf conftest* 11341 rm -rf conftest*
11336 eval "ac_cv_header_$ac_safe=yes" 11342 eval "ac_cv_header_$ac_safe=yes"
11337 else 11343 else
11359 done 11365 done
11360 11366
11361 11367
11362 11368
11363 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11369 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11364 echo "configure:11365: checking for kvm_read in -lkvm" >&5 11370 echo "configure:11371: checking for kvm_read in -lkvm" >&5
11365 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11371 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11366 11372
11367 xe_check_libs=" -lkvm " 11373 xe_check_libs=" -lkvm "
11368 cat > conftest.$ac_ext <<EOF 11374 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure" 11375 #line 11376 "configure"
11370 #include "confdefs.h" 11376 #include "confdefs.h"
11371 /* Override any gcc2 internal prototype to avoid an error. */ 11377 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2 11378 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */ 11379 builtin and then its argument prototype would still apply. */
11374 char kvm_read(); 11380 char kvm_read();
11375 11381
11376 int main() { 11382 int main() {
11377 kvm_read() 11383 kvm_read()
11378 ; return 0; } 11384 ; return 0; }
11379 EOF 11385 EOF
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11381 rm -rf conftest* 11387 rm -rf conftest*
11382 eval "ac_cv_lib_$ac_lib_var=yes" 11388 eval "ac_cv_lib_$ac_lib_var=yes"
11383 else 11389 else
11384 echo "configure: failed program was:" >&5 11390 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5 11391 cat conftest.$ac_ext >&5
11409 11415
11410 11416
11411 fi 11417 fi
11412 11418
11413 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11419 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11414 echo "configure:11415: checking whether netdb declares h_errno" >&5 11420 echo "configure:11421: checking whether netdb declares h_errno" >&5
11415 cat > conftest.$ac_ext <<EOF 11421 cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure" 11422 #line 11423 "configure"
11417 #include "confdefs.h" 11423 #include "confdefs.h"
11418 #include <netdb.h> 11424 #include <netdb.h>
11419 int main() { 11425 int main() {
11420 return h_errno; 11426 return h_errno;
11421 ; return 0; } 11427 ; return 0; }
11422 EOF 11428 EOF
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11424 rm -rf conftest* 11430 rm -rf conftest*
11425 echo "$ac_t""yes" 1>&6 11431 echo "$ac_t""yes" 1>&6
11426 { test "$extra_verbose" = "yes" && cat << \EOF 11432 { test "$extra_verbose" = "yes" && cat << \EOF
11427 Defining HAVE_H_ERRNO 11433 Defining HAVE_H_ERRNO
11428 EOF 11434 EOF
11438 echo "$ac_t""no" 1>&6 11444 echo "$ac_t""no" 1>&6
11439 fi 11445 fi
11440 rm -f conftest* 11446 rm -f conftest*
11441 11447
11442 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11448 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11443 echo "configure:11444: checking for sigsetjmp" >&5 11449 echo "configure:11450: checking for sigsetjmp" >&5
11444 cat > conftest.$ac_ext <<EOF 11450 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure" 11451 #line 11452 "configure"
11446 #include "confdefs.h" 11452 #include "confdefs.h"
11447 #include <setjmp.h> 11453 #include <setjmp.h>
11448 int main() { 11454 int main() {
11449 sigjmp_buf bar; sigsetjmp (bar, 0); 11455 sigjmp_buf bar; sigsetjmp (bar, 0);
11450 ; return 0; } 11456 ; return 0; }
11451 EOF 11457 EOF
11452 if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11458 if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11453 rm -rf conftest* 11459 rm -rf conftest*
11454 echo "$ac_t""yes" 1>&6 11460 echo "$ac_t""yes" 1>&6
11455 { test "$extra_verbose" = "yes" && cat << \EOF 11461 { test "$extra_verbose" = "yes" && cat << \EOF
11456 Defining HAVE_SIGSETJMP 11462 Defining HAVE_SIGSETJMP
11457 EOF 11463 EOF
11467 echo "$ac_t""no" 1>&6 11473 echo "$ac_t""no" 1>&6
11468 fi 11474 fi
11469 rm -f conftest* 11475 rm -f conftest*
11470 11476
11471 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11477 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11472 echo "configure:11473: checking whether localtime caches TZ" >&5 11478 echo "configure:11479: checking whether localtime caches TZ" >&5
11473 11479
11474 if test "$ac_cv_func_tzset" = "yes"; then 11480 if test "$ac_cv_func_tzset" = "yes"; then
11475 cat > conftest.$ac_ext <<EOF 11481 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure" 11482 #line 11483 "configure"
11477 #include "confdefs.h" 11483 #include "confdefs.h"
11478 #include <time.h> 11484 #include <time.h>
11479 #if STDC_HEADERS 11485 #if STDC_HEADERS
11480 # include <stdlib.h> 11486 # include <stdlib.h>
11481 #endif 11487 #endif
11506 if (localtime (&now)->tm_hour != hour_unset) 11512 if (localtime (&now)->tm_hour != hour_unset)
11507 exit (1); 11513 exit (1);
11508 exit (0); 11514 exit (0);
11509 } 11515 }
11510 EOF 11516 EOF
11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11512 then 11518 then
11513 emacs_cv_localtime_cache=no 11519 emacs_cv_localtime_cache=no
11514 else 11520 else
11515 conftest_rc="$?" 11521 conftest_rc="$?"
11516 echo "configure: failed program was:" >&5 11522 echo "configure: failed program was:" >&5
11536 11542
11537 fi 11543 fi
11538 11544
11539 if test "$HAVE_TIMEVAL" = "yes"; then 11545 if test "$HAVE_TIMEVAL" = "yes"; then
11540 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11546 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11541 echo "configure:11542: checking whether gettimeofday accepts one or two arguments" >&5 11547 echo "configure:11548: checking whether gettimeofday accepts one or two arguments" >&5
11542 cat > conftest.$ac_ext <<EOF 11548 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure" 11549 #line 11550 "configure"
11544 #include "confdefs.h" 11550 #include "confdefs.h"
11545 11551
11546 #ifdef TIME_WITH_SYS_TIME 11552 #ifdef TIME_WITH_SYS_TIME
11547 #include <sys/time.h> 11553 #include <sys/time.h>
11548 #include <time.h> 11554 #include <time.h>
11559 struct timeval time; 11565 struct timeval time;
11560 gettimeofday (&time, 0); 11566 gettimeofday (&time, 0);
11561 11567
11562 ; return 0; } 11568 ; return 0; }
11563 EOF 11569 EOF
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11565 rm -rf conftest* 11571 rm -rf conftest*
11566 echo "$ac_t""two" 1>&6 11572 echo "$ac_t""two" 1>&6
11567 else 11573 else
11568 echo "configure: failed program was:" >&5 11574 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5 11575 cat conftest.$ac_ext >&5
11581 rm -f conftest* 11587 rm -f conftest*
11582 fi 11588 fi
11583 11589
11584 11590
11585 echo $ac_n "checking for inline""... $ac_c" 1>&6 11591 echo $ac_n "checking for inline""... $ac_c" 1>&6
11586 echo "configure:11587: checking for inline" >&5 11592 echo "configure:11593: checking for inline" >&5
11587 11593
11588 ac_cv_c_inline=no 11594 ac_cv_c_inline=no
11589 for ac_kw in inline __inline__ __inline; do 11595 for ac_kw in inline __inline__ __inline; do
11590 cat > conftest.$ac_ext <<EOF 11596 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure" 11597 #line 11598 "configure"
11592 #include "confdefs.h" 11598 #include "confdefs.h"
11593 11599
11594 int main() { 11600 int main() {
11595 } $ac_kw foo() { 11601 } $ac_kw foo() {
11596 ; return 0; } 11602 ; return 0; }
11597 EOF 11603 EOF
11598 if { (eval echo configure:11599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11604 if { (eval echo configure:11605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11599 rm -rf conftest* 11605 rm -rf conftest*
11600 ac_cv_c_inline=$ac_kw; break 11606 ac_cv_c_inline=$ac_kw; break
11601 else 11607 else
11602 echo "configure: failed program was:" >&5 11608 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5 11609 cat conftest.$ac_ext >&5
11634 11640
11635 if test "$__DECC" != "yes"; then 11641 if test "$__DECC" != "yes"; then
11636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11637 # for constant arguments. Useless! 11643 # for constant arguments. Useless!
11638 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11644 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11639 echo "configure:11640: checking for working alloca.h" >&5 11645 echo "configure:11646: checking for working alloca.h" >&5
11640 11646
11641 cat > conftest.$ac_ext <<EOF 11647 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure" 11648 #line 11649 "configure"
11643 #include "confdefs.h" 11649 #include "confdefs.h"
11644 #include <alloca.h> 11650 #include <alloca.h>
11645 int main() { 11651 int main() {
11646 char *p = alloca(2 * sizeof(int)); 11652 char *p = alloca(2 * sizeof(int));
11647 ; return 0; } 11653 ; return 0; }
11648 EOF 11654 EOF
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11655 if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11650 rm -rf conftest* 11656 rm -rf conftest*
11651 ac_cv_header_alloca_h=yes 11657 ac_cv_header_alloca_h=yes
11652 else 11658 else
11653 echo "configure: failed program was:" >&5 11659 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5 11660 cat conftest.$ac_ext >&5
11668 } 11674 }
11669 11675
11670 fi 11676 fi
11671 11677
11672 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11678 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11673 echo "configure:11674: checking for alloca" >&5 11679 echo "configure:11680: checking for alloca" >&5
11674 11680
11675 cat > conftest.$ac_ext <<EOF 11681 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure" 11682 #line 11683 "configure"
11677 #include "confdefs.h" 11683 #include "confdefs.h"
11678 11684
11679 #ifdef __GNUC__ 11685 #ifdef __GNUC__
11680 # define alloca __builtin_alloca 11686 # define alloca __builtin_alloca
11681 #else 11687 #else
11699 11705
11700 int main() { 11706 int main() {
11701 char *p = (char *) alloca(1); 11707 char *p = (char *) alloca(1);
11702 ; return 0; } 11708 ; return 0; }
11703 EOF 11709 EOF
11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11705 rm -rf conftest* 11711 rm -rf conftest*
11706 ac_cv_func_alloca_works=yes 11712 ac_cv_func_alloca_works=yes
11707 else 11713 else
11708 echo "configure: failed program was:" >&5 11714 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5 11715 cat conftest.$ac_ext >&5
11738 EOF 11744 EOF
11739 } 11745 }
11740 11746
11741 11747
11742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11748 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11743 echo "configure:11744: checking whether alloca needs Cray hooks" >&5 11749 echo "configure:11750: checking whether alloca needs Cray hooks" >&5
11744 11750
11745 cat > conftest.$ac_ext <<EOF 11751 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure" 11752 #line 11753 "configure"
11747 #include "confdefs.h" 11753 #include "confdefs.h"
11748 #if defined(CRAY) && ! defined(CRAY2) 11754 #if defined(CRAY) && ! defined(CRAY2)
11749 webecray 11755 webecray
11750 #else 11756 #else
11751 wenotbecray 11757 wenotbecray
11765 11771
11766 echo "$ac_t""$ac_cv_os_cray" 1>&6 11772 echo "$ac_t""$ac_cv_os_cray" 1>&6
11767 if test $ac_cv_os_cray = yes; then 11773 if test $ac_cv_os_cray = yes; then
11768 for ac_func in _getb67 GETB67 getb67; do 11774 for ac_func in _getb67 GETB67 getb67; do
11769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11770 echo "configure:11771: checking for $ac_func" >&5 11776 echo "configure:11777: checking for $ac_func" >&5
11771 11777
11772 cat > conftest.$ac_ext <<EOF 11778 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure" 11779 #line 11780 "configure"
11774 #include "confdefs.h" 11780 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes, 11781 /* System header to define __stub macros and hopefully few prototypes,
11776 which can conflict with char $ac_func(); below. */ 11782 which can conflict with char $ac_func(); below. */
11777 #include <assert.h> 11783 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error. */ 11784 /* Override any gcc2 internal prototype to avoid an error. */
11791 $ac_func(); 11797 $ac_func();
11792 #endif 11798 #endif
11793 11799
11794 ; return 0; } 11800 ; return 0; }
11795 EOF 11801 EOF
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797 rm -rf conftest* 11803 rm -rf conftest*
11798 eval "ac_cv_func_$ac_func=yes" 11804 eval "ac_cv_func_$ac_func=yes"
11799 else 11805 else
11800 echo "configure: failed program was:" >&5 11806 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5 11807 cat conftest.$ac_ext >&5
11821 11827
11822 done 11828 done
11823 fi 11829 fi
11824 11830
11825 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 11831 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11826 echo "configure:11827: checking stack direction for C alloca" >&5 11832 echo "configure:11833: checking stack direction for C alloca" >&5
11827 11833
11828 cat > conftest.$ac_ext <<EOF 11834 cat > conftest.$ac_ext <<EOF
11829 #line 11830 "configure" 11835 #line 11836 "configure"
11830 #include "confdefs.h" 11836 #include "confdefs.h"
11831 find_stack_direction () 11837 find_stack_direction ()
11832 { 11838 {
11833 static char *addr = 0; 11839 static char *addr = 0;
11834 auto char dummy; 11840 auto char dummy;
11843 main () 11849 main ()
11844 { 11850 {
11845 exit (find_stack_direction() < 0); 11851 exit (find_stack_direction() < 0);
11846 } 11852 }
11847 EOF 11853 EOF
11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11849 then 11855 then
11850 ac_cv_c_stack_direction=1 11856 ac_cv_c_stack_direction=1
11851 else 11857 else
11852 conftest_rc="$?" 11858 conftest_rc="$?"
11853 echo "configure: failed program was:" >&5 11859 echo "configure: failed program was:" >&5
11873 fi 11879 fi
11874 fi 11880 fi
11875 11881
11876 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 11882 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11877 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 11883 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11878 echo "configure:11879: checking for vfork.h" >&5 11884 echo "configure:11885: checking for vfork.h" >&5
11879 11885
11880 cat > conftest.$ac_ext <<EOF 11886 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure" 11887 #line 11888 "configure"
11882 #include "confdefs.h" 11888 #include "confdefs.h"
11883 #include <vfork.h> 11889 #include <vfork.h>
11884 EOF 11890 EOF
11885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11886 { (eval echo configure:11887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11892 { (eval echo configure:11893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11888 if test -z "$ac_err"; then 11894 if test -z "$ac_err"; then
11889 rm -rf conftest* 11895 rm -rf conftest*
11890 eval "ac_cv_header_$ac_safe=yes" 11896 eval "ac_cv_header_$ac_safe=yes"
11891 else 11897 else
11909 else 11915 else
11910 echo "$ac_t""no" 1>&6 11916 echo "$ac_t""no" 1>&6
11911 fi 11917 fi
11912 11918
11913 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 11919 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11914 echo "configure:11915: checking for working vfork" >&5 11920 echo "configure:11921: checking for working vfork" >&5
11915 11921
11916 cat > conftest.$ac_ext <<EOF 11922 cat > conftest.$ac_ext <<EOF
11917 #line 11918 "configure" 11923 #line 11924 "configure"
11918 #include "confdefs.h" 11924 #include "confdefs.h"
11919 /* Thanks to Paul Eggert for this test. */ 11925 /* Thanks to Paul Eggert for this test. */
11920 #include <stdio.h> 11926 #include <stdio.h>
11921 #include <sys/types.h> 11927 #include <sys/types.h>
11922 #include <sys/stat.h> 11928 #include <sys/stat.h>
12007 || fstat(fileno(stdout), &st) != 0 12013 || fstat(fileno(stdout), &st) != 0
12008 ); 12014 );
12009 } 12015 }
12010 } 12016 }
12011 EOF 12017 EOF
12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12018 if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12013 then 12019 then
12014 ac_cv_func_vfork_works=yes 12020 ac_cv_func_vfork_works=yes
12015 else 12021 else
12016 conftest_rc="$?" 12022 conftest_rc="$?"
12017 echo "configure: failed program was:" >&5 12023 echo "configure: failed program was:" >&5
12033 12039
12034 fi 12040 fi
12035 12041
12036 12042
12037 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12043 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12038 echo "configure:12039: checking for working strcoll" >&5 12044 echo "configure:12045: checking for working strcoll" >&5
12039 12045
12040 cat > conftest.$ac_ext <<EOF 12046 cat > conftest.$ac_ext <<EOF
12041 #line 12042 "configure" 12047 #line 12048 "configure"
12042 #include "confdefs.h" 12048 #include "confdefs.h"
12043 #include <string.h> 12049 #include <string.h>
12044 main () 12050 main ()
12045 { 12051 {
12046 exit (strcoll ("abc", "def") >= 0 || 12052 exit (strcoll ("abc", "def") >= 0 ||
12047 strcoll ("ABC", "DEF") >= 0 || 12053 strcoll ("ABC", "DEF") >= 0 ||
12048 strcoll ("123", "456") >= 0); 12054 strcoll ("123", "456") >= 0);
12049 } 12055 }
12050 EOF 12056 EOF
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12052 then 12058 then
12053 ac_cv_func_strcoll_works=yes 12059 ac_cv_func_strcoll_works=yes
12054 else 12060 else
12055 conftest_rc="$?" 12061 conftest_rc="$?"
12056 echo "configure: failed program was:" >&5 12062 echo "configure: failed program was:" >&5
12074 12080
12075 12081
12076 for ac_func in getpgrp 12082 for ac_func in getpgrp
12077 do 12083 do
12078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12079 echo "configure:12080: checking for $ac_func" >&5 12085 echo "configure:12086: checking for $ac_func" >&5
12080 12086
12081 cat > conftest.$ac_ext <<EOF 12087 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure" 12088 #line 12089 "configure"
12083 #include "confdefs.h" 12089 #include "confdefs.h"
12084 /* System header to define __stub macros and hopefully few prototypes, 12090 /* System header to define __stub macros and hopefully few prototypes,
12085 which can conflict with char $ac_func(); below. */ 12091 which can conflict with char $ac_func(); below. */
12086 #include <assert.h> 12092 #include <assert.h>
12087 /* Override any gcc2 internal prototype to avoid an error. */ 12093 /* Override any gcc2 internal prototype to avoid an error. */
12100 $ac_func(); 12106 $ac_func();
12101 #endif 12107 #endif
12102 12108
12103 ; return 0; } 12109 ; return 0; }
12104 EOF 12110 EOF
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12111 if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12106 rm -rf conftest* 12112 rm -rf conftest*
12107 eval "ac_cv_func_$ac_func=yes" 12113 eval "ac_cv_func_$ac_func=yes"
12108 else 12114 else
12109 echo "configure: failed program was:" >&5 12115 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5 12116 cat conftest.$ac_ext >&5
12128 echo "$ac_t""no" 1>&6 12134 echo "$ac_t""no" 1>&6
12129 fi 12135 fi
12130 done 12136 done
12131 12137
12132 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 12138 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12133 echo "configure:12134: checking whether getpgrp takes no argument" >&5 12139 echo "configure:12140: checking whether getpgrp takes no argument" >&5
12134 12140
12135 cat > conftest.$ac_ext <<EOF 12141 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure" 12142 #line 12143 "configure"
12137 #include "confdefs.h" 12143 #include "confdefs.h"
12138 12144
12139 /* 12145 /*
12140 * If this system has a BSD-style getpgrp(), 12146 * If this system has a BSD-style getpgrp(),
12141 * which takes a pid argument, exit unsuccessfully. 12147 * which takes a pid argument, exit unsuccessfully.
12186 exit(s>>8); 12192 exit(s>>8);
12187 } 12193 }
12188 } 12194 }
12189 12195
12190 EOF 12196 EOF
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12197 if { (eval echo configure:12198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12192 then 12198 then
12193 ac_cv_func_getpgrp_void=yes 12199 ac_cv_func_getpgrp_void=yes
12194 else 12200 else
12195 conftest_rc="$?" 12201 conftest_rc="$?"
12196 echo "configure: failed program was:" >&5 12202 echo "configure: failed program was:" >&5
12213 12219
12214 fi 12220 fi
12215 12221
12216 12222
12217 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12223 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12218 echo "configure:12219: checking for working mmap" >&5 12224 echo "configure:12225: checking for working mmap" >&5
12219 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12225 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12220 cat > conftest.$ac_ext <<EOF 12226 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure" 12227 #line 12228 "configure"
12222 #include "confdefs.h" 12228 #include "confdefs.h"
12223 #include <stdio.h> 12229 #include <stdio.h>
12224 #include <unistd.h> 12230 #include <unistd.h>
12225 #include <fcntl.h> 12231 #include <fcntl.h>
12226 #include <sys/mman.h> 12232 #include <sys/mman.h>
12249 return 0; 12255 return 0;
12250 perror ("conftest: mmap failed"); 12256 perror ("conftest: mmap failed");
12251 return 1; 12257 return 1;
12252 } 12258 }
12253 EOF 12259 EOF
12254 if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12260 if { (eval echo configure:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12255 then 12261 then
12256 have_mmap=yes 12262 have_mmap=yes
12257 else 12263 else
12258 conftest_rc="$?" 12264 conftest_rc="$?"
12259 echo "configure: failed program was:" >&5 12265 echo "configure: failed program was:" >&5
12278 esac 12284 esac
12279 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12285 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12280 if test "$rel_alloc $have_mmap" = "default yes"; then 12286 if test "$rel_alloc $have_mmap" = "default yes"; then
12281 if test "$doug_lea_malloc" = "yes"; then 12287 if test "$doug_lea_malloc" = "yes"; then
12282 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12288 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12283 echo "configure:12284: checking for M_MMAP_THRESHOLD" >&5 12289 echo "configure:12290: checking for M_MMAP_THRESHOLD" >&5
12284 cat > conftest.$ac_ext <<EOF 12290 cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure" 12291 #line 12292 "configure"
12286 #include "confdefs.h" 12292 #include "confdefs.h"
12287 #include <malloc.h> 12293 #include <malloc.h>
12288 int main() { 12294 int main() {
12289 12295
12290 #ifndef M_MMAP_THRESHOLD 12296 #ifndef M_MMAP_THRESHOLD
12292 !@+$%^&*_)(_ - unlikely to compile... 12298 !@+$%^&*_)(_ - unlikely to compile...
12293 #endif 12299 #endif
12294 12300
12295 ; return 0; } 12301 ; return 0; }
12296 EOF 12302 EOF
12297 if { (eval echo configure:12298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12298 rm -rf conftest* 12304 rm -rf conftest*
12299 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12305 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12300 else 12306 else
12301 echo "configure: failed program was:" >&5 12307 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5 12308 cat conftest.$ac_ext >&5
12317 } 12323 }
12318 12324
12319 12325
12320 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12326 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12321 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12327 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12322 echo "configure:12323: checking for termios.h" >&5 12328 echo "configure:12329: checking for termios.h" >&5
12323 12329
12324 cat > conftest.$ac_ext <<EOF 12330 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure" 12331 #line 12332 "configure"
12326 #include "confdefs.h" 12332 #include "confdefs.h"
12327 #include <termios.h> 12333 #include <termios.h>
12328 EOF 12334 EOF
12329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12330 { (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12336 { (eval echo configure:12337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332 if test -z "$ac_err"; then 12338 if test -z "$ac_err"; then
12333 rm -rf conftest* 12339 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=yes" 12340 eval "ac_cv_header_$ac_safe=yes"
12335 else 12341 else
12368 12374
12369 else 12375 else
12370 echo "$ac_t""no" 1>&6 12376 echo "$ac_t""no" 1>&6
12371 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12377 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12372 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12378 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12373 echo "configure:12374: checking for termio.h" >&5 12379 echo "configure:12380: checking for termio.h" >&5
12374 12380
12375 cat > conftest.$ac_ext <<EOF 12381 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure" 12382 #line 12383 "configure"
12377 #include "confdefs.h" 12383 #include "confdefs.h"
12378 #include <termio.h> 12384 #include <termio.h>
12379 EOF 12385 EOF
12380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12381 { (eval echo configure:12382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12387 { (eval echo configure:12388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12383 if test -z "$ac_err"; then 12389 if test -z "$ac_err"; then
12384 rm -rf conftest* 12390 rm -rf conftest*
12385 eval "ac_cv_header_$ac_safe=yes" 12391 eval "ac_cv_header_$ac_safe=yes"
12386 else 12392 else
12408 fi 12414 fi
12409 12415
12410 12416
12411 12417
12412 echo $ac_n "checking for socket""... $ac_c" 1>&6 12418 echo $ac_n "checking for socket""... $ac_c" 1>&6
12413 echo "configure:12414: checking for socket" >&5 12419 echo "configure:12420: checking for socket" >&5
12414 12420
12415 cat > conftest.$ac_ext <<EOF 12421 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure" 12422 #line 12423 "configure"
12417 #include "confdefs.h" 12423 #include "confdefs.h"
12418 /* System header to define __stub macros and hopefully few prototypes, 12424 /* System header to define __stub macros and hopefully few prototypes,
12419 which can conflict with char socket(); below. */ 12425 which can conflict with char socket(); below. */
12420 #include <assert.h> 12426 #include <assert.h>
12421 /* Override any gcc2 internal prototype to avoid an error. */ 12427 /* Override any gcc2 internal prototype to avoid an error. */
12434 socket(); 12440 socket();
12435 #endif 12441 #endif
12436 12442
12437 ; return 0; } 12443 ; return 0; }
12438 EOF 12444 EOF
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12445 if { (eval echo configure:12446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 rm -rf conftest* 12446 rm -rf conftest*
12441 eval "ac_cv_func_socket=yes" 12447 eval "ac_cv_func_socket=yes"
12442 else 12448 else
12443 echo "configure: failed program was:" >&5 12449 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5 12450 cat conftest.$ac_ext >&5
12449 12455
12450 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12456 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12451 echo "$ac_t""yes" 1>&6 12457 echo "$ac_t""yes" 1>&6
12452 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12458 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12453 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12459 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12454 echo "configure:12455: checking for netinet/in.h" >&5 12460 echo "configure:12461: checking for netinet/in.h" >&5
12455 12461
12456 cat > conftest.$ac_ext <<EOF 12462 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure" 12463 #line 12464 "configure"
12458 #include "confdefs.h" 12464 #include "confdefs.h"
12459 #include <netinet/in.h> 12465 #include <netinet/in.h>
12460 EOF 12466 EOF
12461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12462 { (eval echo configure:12463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12468 { (eval echo configure:12469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12464 if test -z "$ac_err"; then 12470 if test -z "$ac_err"; then
12465 rm -rf conftest* 12471 rm -rf conftest*
12466 eval "ac_cv_header_$ac_safe=yes" 12472 eval "ac_cv_header_$ac_safe=yes"
12467 else 12473 else
12474 rm -f conftest* 12480 rm -f conftest*
12475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6 12482 echo "$ac_t""yes" 1>&6
12477 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12483 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12478 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12484 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12479 echo "configure:12480: checking for arpa/inet.h" >&5 12485 echo "configure:12486: checking for arpa/inet.h" >&5
12480 12486
12481 cat > conftest.$ac_ext <<EOF 12487 cat > conftest.$ac_ext <<EOF
12482 #line 12483 "configure" 12488 #line 12489 "configure"
12483 #include "confdefs.h" 12489 #include "confdefs.h"
12484 #include <arpa/inet.h> 12490 #include <arpa/inet.h>
12485 EOF 12491 EOF
12486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12487 { (eval echo configure:12488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12493 { (eval echo configure:12494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12489 if test -z "$ac_err"; then 12495 if test -z "$ac_err"; then
12490 rm -rf conftest* 12496 rm -rf conftest*
12491 eval "ac_cv_header_$ac_safe=yes" 12497 eval "ac_cv_header_$ac_safe=yes"
12492 else 12498 else
12507 #define HAVE_SOCKETS 1 12513 #define HAVE_SOCKETS 1
12508 EOF 12514 EOF
12509 } 12515 }
12510 12516
12511 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12517 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12512 echo "configure:12513: checking "for sun_len member in struct sockaddr_un"" >&5 12518 echo "configure:12519: checking "for sun_len member in struct sockaddr_un"" >&5
12513 cat > conftest.$ac_ext <<EOF 12519 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure" 12520 #line 12521 "configure"
12515 #include "confdefs.h" 12521 #include "confdefs.h"
12516 12522
12517 #include <sys/types.h> 12523 #include <sys/types.h>
12518 #include <sys/socket.h> 12524 #include <sys/socket.h>
12519 #include <sys/un.h> 12525 #include <sys/un.h>
12520 12526
12521 int main() { 12527 int main() {
12522 static struct sockaddr_un x; x.sun_len = 1; 12528 static struct sockaddr_un x; x.sun_len = 1;
12523 ; return 0; } 12529 ; return 0; }
12524 EOF 12530 EOF
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 rm -rf conftest* 12532 rm -rf conftest*
12527 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12533 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12528 Defining HAVE_SOCKADDR_SUN_LEN 12534 Defining HAVE_SOCKADDR_SUN_LEN
12529 EOF 12535 EOF
12530 cat >> confdefs.h <<\EOF 12536 cat >> confdefs.h <<\EOF
12538 rm -rf conftest* 12544 rm -rf conftest*
12539 echo "$ac_t""no" 1>&6 12545 echo "$ac_t""no" 1>&6
12540 fi 12546 fi
12541 rm -f conftest* 12547 rm -f conftest*
12542 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12548 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12543 echo "configure:12544: checking "for ip_mreq struct in netinet/in.h"" >&5 12549 echo "configure:12550: checking "for ip_mreq struct in netinet/in.h"" >&5
12544 cat > conftest.$ac_ext <<EOF 12550 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure" 12551 #line 12552 "configure"
12546 #include "confdefs.h" 12552 #include "confdefs.h"
12547 12553
12548 #include <sys/types.h> 12554 #include <sys/types.h>
12549 #include <netinet/in.h> 12555 #include <netinet/in.h>
12550 12556
12551 int main() { 12557 int main() {
12552 static struct ip_mreq x; 12558 static struct ip_mreq x;
12553 ; return 0; } 12559 ; return 0; }
12554 EOF 12560 EOF
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12556 rm -rf conftest* 12562 rm -rf conftest*
12557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12563 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12558 Defining HAVE_MULTICAST 12564 Defining HAVE_MULTICAST
12559 EOF 12565 EOF
12560 cat >> confdefs.h <<\EOF 12566 cat >> confdefs.h <<\EOF
12581 echo "$ac_t""no" 1>&6 12587 echo "$ac_t""no" 1>&6
12582 fi 12588 fi
12583 12589
12584 12590
12585 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12591 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12586 echo "configure:12587: checking for msgget" >&5 12592 echo "configure:12593: checking for msgget" >&5
12587 12593
12588 cat > conftest.$ac_ext <<EOF 12594 cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure" 12595 #line 12596 "configure"
12590 #include "confdefs.h" 12596 #include "confdefs.h"
12591 /* System header to define __stub macros and hopefully few prototypes, 12597 /* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char msgget(); below. */ 12598 which can conflict with char msgget(); below. */
12593 #include <assert.h> 12599 #include <assert.h>
12594 /* Override any gcc2 internal prototype to avoid an error. */ 12600 /* Override any gcc2 internal prototype to avoid an error. */
12607 msgget(); 12613 msgget();
12608 #endif 12614 #endif
12609 12615
12610 ; return 0; } 12616 ; return 0; }
12611 EOF 12617 EOF
12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12613 rm -rf conftest* 12619 rm -rf conftest*
12614 eval "ac_cv_func_msgget=yes" 12620 eval "ac_cv_func_msgget=yes"
12615 else 12621 else
12616 echo "configure: failed program was:" >&5 12622 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5 12623 cat conftest.$ac_ext >&5
12622 12628
12623 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12629 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12624 echo "$ac_t""yes" 1>&6 12630 echo "$ac_t""yes" 1>&6
12625 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12631 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12626 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12632 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12627 echo "configure:12628: checking for sys/ipc.h" >&5 12633 echo "configure:12634: checking for sys/ipc.h" >&5
12628 12634
12629 cat > conftest.$ac_ext <<EOF 12635 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure" 12636 #line 12637 "configure"
12631 #include "confdefs.h" 12637 #include "confdefs.h"
12632 #include <sys/ipc.h> 12638 #include <sys/ipc.h>
12633 EOF 12639 EOF
12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12641 { (eval echo configure:12642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12637 if test -z "$ac_err"; then 12643 if test -z "$ac_err"; then
12638 rm -rf conftest* 12644 rm -rf conftest*
12639 eval "ac_cv_header_$ac_safe=yes" 12645 eval "ac_cv_header_$ac_safe=yes"
12640 else 12646 else
12647 rm -f conftest* 12653 rm -f conftest*
12648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12649 echo "$ac_t""yes" 1>&6 12655 echo "$ac_t""yes" 1>&6
12650 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12656 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12651 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12657 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12652 echo "configure:12653: checking for sys/msg.h" >&5 12658 echo "configure:12659: checking for sys/msg.h" >&5
12653 12659
12654 cat > conftest.$ac_ext <<EOF 12660 cat > conftest.$ac_ext <<EOF
12655 #line 12656 "configure" 12661 #line 12662 "configure"
12656 #include "confdefs.h" 12662 #include "confdefs.h"
12657 #include <sys/msg.h> 12663 #include <sys/msg.h>
12658 EOF 12664 EOF
12659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12660 { (eval echo configure:12661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12666 { (eval echo configure:12667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12662 if test -z "$ac_err"; then 12668 if test -z "$ac_err"; then
12663 rm -rf conftest* 12669 rm -rf conftest*
12664 eval "ac_cv_header_$ac_safe=yes" 12670 eval "ac_cv_header_$ac_safe=yes"
12665 else 12671 else
12693 fi 12699 fi
12694 12700
12695 12701
12696 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12702 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12697 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12703 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12698 echo "configure:12699: checking for dirent.h" >&5 12704 echo "configure:12705: checking for dirent.h" >&5
12699 12705
12700 cat > conftest.$ac_ext <<EOF 12706 cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure" 12707 #line 12708 "configure"
12702 #include "confdefs.h" 12708 #include "confdefs.h"
12703 #include <dirent.h> 12709 #include <dirent.h>
12704 EOF 12710 EOF
12705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12706 { (eval echo configure:12707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12712 { (eval echo configure:12713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12708 if test -z "$ac_err"; then 12714 if test -z "$ac_err"; then
12709 rm -rf conftest* 12715 rm -rf conftest*
12710 eval "ac_cv_header_$ac_safe=yes" 12716 eval "ac_cv_header_$ac_safe=yes"
12711 else 12717 else
12728 12734
12729 else 12735 else
12730 echo "$ac_t""no" 1>&6 12736 echo "$ac_t""no" 1>&6
12731 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12737 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12732 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12738 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12733 echo "configure:12734: checking for sys/dir.h" >&5 12739 echo "configure:12740: checking for sys/dir.h" >&5
12734 12740
12735 cat > conftest.$ac_ext <<EOF 12741 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure" 12742 #line 12743 "configure"
12737 #include "confdefs.h" 12743 #include "confdefs.h"
12738 #include <sys/dir.h> 12744 #include <sys/dir.h>
12739 EOF 12745 EOF
12740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12741 { (eval echo configure:12742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12747 { (eval echo configure:12748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12743 if test -z "$ac_err"; then 12749 if test -z "$ac_err"; then
12744 rm -rf conftest* 12750 rm -rf conftest*
12745 eval "ac_cv_header_$ac_safe=yes" 12751 eval "ac_cv_header_$ac_safe=yes"
12746 else 12752 else
12769 fi 12775 fi
12770 12776
12771 12777
12772 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12778 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12773 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12779 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12774 echo "configure:12775: checking for nlist.h" >&5 12780 echo "configure:12781: checking for nlist.h" >&5
12775 12781
12776 cat > conftest.$ac_ext <<EOF 12782 cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure" 12783 #line 12784 "configure"
12778 #include "confdefs.h" 12784 #include "confdefs.h"
12779 #include <nlist.h> 12785 #include <nlist.h>
12780 EOF 12786 EOF
12781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12782 { (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12788 { (eval echo configure:12789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12784 if test -z "$ac_err"; then 12790 if test -z "$ac_err"; then
12785 rm -rf conftest* 12791 rm -rf conftest*
12786 eval "ac_cv_header_$ac_safe=yes" 12792 eval "ac_cv_header_$ac_safe=yes"
12787 else 12793 else
12807 fi 12813 fi
12808 12814
12809 12815
12810 12816
12811 echo "checking "for sound support"" 1>&6 12817 echo "checking "for sound support"" 1>&6
12812 echo "configure:12813: checking "for sound support"" >&5 12818 echo "configure:12819: checking "for sound support"" >&5
12813 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 12819 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12814 12820
12815 if test "$with_native_sound" != "no"; then 12821 if test "$with_native_sound" != "no"; then
12816 if test -n "$native_sound_lib"; then 12822 if test -n "$native_sound_lib"; then
12817 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 12823 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12818 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 12824 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12819 echo "configure:12820: checking for multimedia/audio_device.h" >&5 12825 echo "configure:12826: checking for multimedia/audio_device.h" >&5
12820 12826
12821 cat > conftest.$ac_ext <<EOF 12827 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure" 12828 #line 12829 "configure"
12823 #include "confdefs.h" 12829 #include "confdefs.h"
12824 #include <multimedia/audio_device.h> 12830 #include <multimedia/audio_device.h>
12825 EOF 12831 EOF
12826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12827 { (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12833 { (eval echo configure:12834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12829 if test -z "$ac_err"; then 12835 if test -z "$ac_err"; then
12830 rm -rf conftest* 12836 rm -rf conftest*
12831 eval "ac_cv_header_$ac_safe=yes" 12837 eval "ac_cv_header_$ac_safe=yes"
12832 else 12838 else
12870 case "$canonical" in 12876 case "$canonical" in
12871 *-sgi-* ) 12877 *-sgi-* )
12872 if test -z "$native_sound_lib"; then 12878 if test -z "$native_sound_lib"; then
12873 12879
12874 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 12880 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12875 echo "configure:12876: checking for ALopenport in -laudio" >&5 12881 echo "configure:12882: checking for ALopenport in -laudio" >&5
12876 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 12882 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12877 12883
12878 xe_check_libs=" -laudio " 12884 xe_check_libs=" -laudio "
12879 cat > conftest.$ac_ext <<EOF 12885 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure" 12886 #line 12887 "configure"
12881 #include "confdefs.h" 12887 #include "confdefs.h"
12882 /* Override any gcc2 internal prototype to avoid an error. */ 12888 /* Override any gcc2 internal prototype to avoid an error. */
12883 /* We use char because int might match the return type of a gcc2 12889 /* We use char because int might match the return type of a gcc2
12884 builtin and then its argument prototype would still apply. */ 12890 builtin and then its argument prototype would still apply. */
12885 char ALopenport(); 12891 char ALopenport();
12886 12892
12887 int main() { 12893 int main() {
12888 ALopenport() 12894 ALopenport()
12889 ; return 0; } 12895 ; return 0; }
12890 EOF 12896 EOF
12891 if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12892 rm -rf conftest* 12898 rm -rf conftest*
12893 eval "ac_cv_lib_$ac_lib_var=yes" 12899 eval "ac_cv_lib_$ac_lib_var=yes"
12894 else 12900 else
12895 echo "configure: failed program was:" >&5 12901 echo "configure: failed program was:" >&5
12896 cat conftest.$ac_ext >&5 12902 cat conftest.$ac_ext >&5
12917 fi ;; 12923 fi ;;
12918 hppa*-hp-hpux* ) 12924 hppa*-hp-hpux* )
12919 if test -z "$native_sound_lib"; then 12925 if test -z "$native_sound_lib"; then
12920 12926
12921 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 12927 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12922 echo "configure:12923: checking for AOpenAudio in -lAlib" >&5 12928 echo "configure:12929: checking for AOpenAudio in -lAlib" >&5
12923 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 12929 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12924 12930
12925 xe_check_libs=" -lAlib " 12931 xe_check_libs=" -lAlib "
12926 cat > conftest.$ac_ext <<EOF 12932 cat > conftest.$ac_ext <<EOF
12927 #line 12928 "configure" 12933 #line 12934 "configure"
12928 #include "confdefs.h" 12934 #include "confdefs.h"
12929 /* Override any gcc2 internal prototype to avoid an error. */ 12935 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2 12936 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */ 12937 builtin and then its argument prototype would still apply. */
12932 char AOpenAudio(); 12938 char AOpenAudio();
12933 12939
12934 int main() { 12940 int main() {
12935 AOpenAudio() 12941 AOpenAudio()
12936 ; return 0; } 12942 ; return 0; }
12937 EOF 12943 EOF
12938 if { (eval echo configure:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12944 if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12939 rm -rf conftest* 12945 rm -rf conftest*
12940 eval "ac_cv_lib_$ac_lib_var=yes" 12946 eval "ac_cv_lib_$ac_lib_var=yes"
12941 else 12947 else
12942 echo "configure: failed program was:" >&5 12948 echo "configure: failed program was:" >&5
12943 cat conftest.$ac_ext >&5 12949 cat conftest.$ac_ext >&5
12971 12977
12972 if test -z "$sound_found"; then 12978 if test -z "$sound_found"; then
12973 for dir in "machine" "sys" "linux"; do 12979 for dir in "machine" "sys" "linux"; do
12974 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 12980 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12975 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 12981 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12976 echo "configure:12977: checking for ${dir}/soundcard.h" >&5 12982 echo "configure:12983: checking for ${dir}/soundcard.h" >&5
12977 12983
12978 cat > conftest.$ac_ext <<EOF 12984 cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure" 12985 #line 12986 "configure"
12980 #include "confdefs.h" 12986 #include "confdefs.h"
12981 #include <${dir}/soundcard.h> 12987 #include <${dir}/soundcard.h>
12982 EOF 12988 EOF
12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12990 { (eval echo configure:12991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12986 if test -z "$ac_err"; then 12992 if test -z "$ac_err"; then
12987 rm -rf conftest* 12993 rm -rf conftest*
12988 eval "ac_cv_header_$ac_safe=yes" 12994 eval "ac_cv_header_$ac_safe=yes"
12989 else 12995 else
13040 fi 13046 fi
13041 13047
13042 if test "$with_nas_sound" != "no"; then 13048 if test "$with_nas_sound" != "no"; then
13043 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13049 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13044 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13050 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13045 echo "configure:13046: checking for audio/audiolib.h" >&5 13051 echo "configure:13052: checking for audio/audiolib.h" >&5
13046 13052
13047 cat > conftest.$ac_ext <<EOF 13053 cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure" 13054 #line 13055 "configure"
13049 #include "confdefs.h" 13055 #include "confdefs.h"
13050 #include <audio/audiolib.h> 13056 #include <audio/audiolib.h>
13051 EOF 13057 EOF
13052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13053 { (eval echo configure:13054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13059 { (eval echo configure:13060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13055 if test -z "$ac_err"; then 13061 if test -z "$ac_err"; then
13056 rm -rf conftest* 13062 rm -rf conftest*
13057 eval "ac_cv_header_$ac_safe=yes" 13063 eval "ac_cv_header_$ac_safe=yes"
13058 else 13064 else
13066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13067 echo "$ac_t""yes" 1>&6 13073 echo "$ac_t""yes" 1>&6
13068 13074
13069 13075
13070 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 13076 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13071 echo "configure:13072: checking for AuOpenServer in -laudio" >&5 13077 echo "configure:13078: checking for AuOpenServer in -laudio" >&5
13072 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 13078 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13073 13079
13074 xe_check_libs=" -laudio " 13080 xe_check_libs=" -laudio "
13075 cat > conftest.$ac_ext <<EOF 13081 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure" 13082 #line 13083 "configure"
13077 #include "confdefs.h" 13083 #include "confdefs.h"
13078 /* Override any gcc2 internal prototype to avoid an error. */ 13084 /* Override any gcc2 internal prototype to avoid an error. */
13079 /* We use char because int might match the return type of a gcc2 13085 /* We use char because int might match the return type of a gcc2
13080 builtin and then its argument prototype would still apply. */ 13086 builtin and then its argument prototype would still apply. */
13081 char AuOpenServer(); 13087 char AuOpenServer();
13082 13088
13083 int main() { 13089 int main() {
13084 AuOpenServer() 13090 AuOpenServer()
13085 ; return 0; } 13091 ; return 0; }
13086 EOF 13092 EOF
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13093 if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 rm -rf conftest* 13094 rm -rf conftest*
13089 eval "ac_cv_lib_$ac_lib_var=yes" 13095 eval "ac_cv_lib_$ac_lib_var=yes"
13090 else 13096 else
13091 echo "configure: failed program was:" >&5 13097 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5 13098 cat conftest.$ac_ext >&5
13121 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 13127 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13122 echo " xemacs will be linked with \"nas.o\"" 13128 echo " xemacs will be linked with \"nas.o\""
13123 fi 13129 fi
13124 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 13130 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13125 cat > conftest.$ac_ext <<EOF 13131 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure" 13132 #line 13133 "configure"
13127 #include "confdefs.h" 13133 #include "confdefs.h"
13128 #include <audio/Xtutil.h> 13134 #include <audio/Xtutil.h>
13129 EOF 13135 EOF
13130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13131 egrep "AuXtErrorJump" >/dev/null 2>&1; then 13137 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13152 13158
13153 if test "$with_esd_sound" != "no"; then 13159 if test "$with_esd_sound" != "no"; then
13154 # Extract the first word of "esd-config", so it can be a program name with args. 13160 # Extract the first word of "esd-config", so it can be a program name with args.
13155 set dummy esd-config; ac_word=$2 13161 set dummy esd-config; ac_word=$2
13156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13157 echo "configure:13158: checking for $ac_word" >&5 13163 echo "configure:13164: checking for $ac_word" >&5
13158 13164
13159 if test -n "$have_esd_config"; then 13165 if test -n "$have_esd_config"; then
13160 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13166 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13161 else 13167 else
13162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13181 if test "$have_esd_config" = "yes"; then 13187 if test "$have_esd_config" = "yes"; then
13182 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13188 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13183 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 13189 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
13184 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13190 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13185 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13191 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13186 echo "configure:13187: checking for esd_play_stream" >&5 13192 echo "configure:13193: checking for esd_play_stream" >&5
13187 13193
13188 cat > conftest.$ac_ext <<EOF 13194 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure" 13195 #line 13196 "configure"
13190 #include "confdefs.h" 13196 #include "confdefs.h"
13191 /* System header to define __stub macros and hopefully few prototypes, 13197 /* System header to define __stub macros and hopefully few prototypes,
13192 which can conflict with char esd_play_stream(); below. */ 13198 which can conflict with char esd_play_stream(); below. */
13193 #include <assert.h> 13199 #include <assert.h>
13194 /* Override any gcc2 internal prototype to avoid an error. */ 13200 /* Override any gcc2 internal prototype to avoid an error. */
13207 esd_play_stream(); 13213 esd_play_stream();
13208 #endif 13214 #endif
13209 13215
13210 ; return 0; } 13216 ; return 0; }
13211 EOF 13217 EOF
13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13213 rm -rf conftest* 13219 rm -rf conftest*
13214 eval "ac_cv_func_esd_play_stream=yes" 13220 eval "ac_cv_func_esd_play_stream=yes"
13215 else 13221 else
13216 echo "configure: failed program was:" >&5 13222 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5 13223 cat conftest.$ac_ext >&5
13258 13264
13259 test -z "$with_tty" && with_tty=yes 13265 test -z "$with_tty" && with_tty=yes
13260 13266
13261 if test "$with_tty" = "yes" ; then 13267 if test "$with_tty" = "yes" ; then
13262 echo "checking for TTY-related features" 1>&6 13268 echo "checking for TTY-related features" 1>&6
13263 echo "configure:13264: checking for TTY-related features" >&5 13269 echo "configure:13270: checking for TTY-related features" >&5
13264 { test "$extra_verbose" = "yes" && cat << \EOF 13270 { test "$extra_verbose" = "yes" && cat << \EOF
13265 Defining HAVE_TTY 13271 Defining HAVE_TTY
13266 EOF 13272 EOF
13267 cat >> confdefs.h <<\EOF 13273 cat >> confdefs.h <<\EOF
13268 #define HAVE_TTY 1 13274 #define HAVE_TTY 1
13274 fi 13280 fi
13275 13281
13276 if test -z "$with_ncurses"; then 13282 if test -z "$with_ncurses"; then
13277 13283
13278 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13284 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13279 echo "configure:13280: checking for tgetent in -lncurses" >&5 13285 echo "configure:13286: checking for tgetent in -lncurses" >&5
13280 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13286 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13281 13287
13282 xe_check_libs=" -lncurses " 13288 xe_check_libs=" -lncurses "
13283 cat > conftest.$ac_ext <<EOF 13289 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure" 13290 #line 13291 "configure"
13285 #include "confdefs.h" 13291 #include "confdefs.h"
13286 /* Override any gcc2 internal prototype to avoid an error. */ 13292 /* Override any gcc2 internal prototype to avoid an error. */
13287 /* We use char because int might match the return type of a gcc2 13293 /* We use char because int might match the return type of a gcc2
13288 builtin and then its argument prototype would still apply. */ 13294 builtin and then its argument prototype would still apply. */
13289 char tgetent(); 13295 char tgetent();
13290 13296
13291 int main() { 13297 int main() {
13292 tgetent() 13298 tgetent()
13293 ; return 0; } 13299 ; return 0; }
13294 EOF 13300 EOF
13295 if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13296 rm -rf conftest* 13302 rm -rf conftest*
13297 eval "ac_cv_lib_$ac_lib_var=yes" 13303 eval "ac_cv_lib_$ac_lib_var=yes"
13298 else 13304 else
13299 echo "configure: failed program was:" >&5 13305 echo "configure: failed program was:" >&5
13300 cat conftest.$ac_ext >&5 13306 cat conftest.$ac_ext >&5
13323 EOF 13329 EOF
13324 } 13330 }
13325 13331
13326 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13332 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13327 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13333 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13328 echo "configure:13329: checking for ncurses/curses.h" >&5 13334 echo "configure:13335: checking for ncurses/curses.h" >&5
13329 13335
13330 cat > conftest.$ac_ext <<EOF 13336 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure" 13337 #line 13338 "configure"
13332 #include "confdefs.h" 13338 #include "confdefs.h"
13333 #include <ncurses/curses.h> 13339 #include <ncurses/curses.h>
13334 EOF 13340 EOF
13335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13336 { (eval echo configure:13337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13342 { (eval echo configure:13343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13338 if test -z "$ac_err"; then 13344 if test -z "$ac_err"; then
13339 rm -rf conftest* 13345 rm -rf conftest*
13340 eval "ac_cv_header_$ac_safe=yes" 13346 eval "ac_cv_header_$ac_safe=yes"
13341 else 13347 else
13353 echo "$ac_t""no" 1>&6 13359 echo "$ac_t""no" 1>&6
13354 fi 13360 fi
13355 13361
13356 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13362 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13357 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13363 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13358 echo "configure:13359: checking for ncurses/term.h" >&5 13364 echo "configure:13365: checking for ncurses/term.h" >&5
13359 13365
13360 cat > conftest.$ac_ext <<EOF 13366 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure" 13367 #line 13368 "configure"
13362 #include "confdefs.h" 13368 #include "confdefs.h"
13363 #include <ncurses/term.h> 13369 #include <ncurses/term.h>
13364 EOF 13370 EOF
13365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13366 { (eval echo configure:13367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13372 { (eval echo configure:13373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13368 if test -z "$ac_err"; then 13374 if test -z "$ac_err"; then
13369 rm -rf conftest* 13375 rm -rf conftest*
13370 eval "ac_cv_header_$ac_safe=yes" 13376 eval "ac_cv_header_$ac_safe=yes"
13371 else 13377 else
13391 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13397 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13392 save_c_switch_site="$c_switch_site" 13398 save_c_switch_site="$c_switch_site"
13393 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13399 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13394 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13400 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13395 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13401 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13396 echo "configure:13397: checking for ncurses/curses.h" >&5 13402 echo "configure:13403: checking for ncurses/curses.h" >&5
13397 13403
13398 cat > conftest.$ac_ext <<EOF 13404 cat > conftest.$ac_ext <<EOF
13399 #line 13400 "configure" 13405 #line 13406 "configure"
13400 #include "confdefs.h" 13406 #include "confdefs.h"
13401 #include <ncurses/curses.h> 13407 #include <ncurses/curses.h>
13402 EOF 13408 EOF
13403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13404 { (eval echo configure:13405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13410 { (eval echo configure:13411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13406 if test -z "$ac_err"; then 13412 if test -z "$ac_err"; then
13407 rm -rf conftest* 13413 rm -rf conftest*
13408 eval "ac_cv_header_$ac_safe=yes" 13414 eval "ac_cv_header_$ac_safe=yes"
13409 else 13415 else
13434 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13440 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13435 else 13441 else
13436 for lib in curses termlib termcap; do 13442 for lib in curses termlib termcap; do
13437 13443
13438 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13444 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13439 echo "configure:13440: checking for tgetent in -l$lib" >&5 13445 echo "configure:13446: checking for tgetent in -l$lib" >&5
13440 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13446 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13441 13447
13442 xe_check_libs=" -l$lib " 13448 xe_check_libs=" -l$lib "
13443 cat > conftest.$ac_ext <<EOF 13449 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure" 13450 #line 13451 "configure"
13445 #include "confdefs.h" 13451 #include "confdefs.h"
13446 /* Override any gcc2 internal prototype to avoid an error. */ 13452 /* Override any gcc2 internal prototype to avoid an error. */
13447 /* We use char because int might match the return type of a gcc2 13453 /* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */ 13454 builtin and then its argument prototype would still apply. */
13449 char tgetent(); 13455 char tgetent();
13450 13456
13451 int main() { 13457 int main() {
13452 tgetent() 13458 tgetent()
13453 ; return 0; } 13459 ; return 0; }
13454 EOF 13460 EOF
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13456 rm -rf conftest* 13462 rm -rf conftest*
13457 eval "ac_cv_lib_$ac_lib_var=yes" 13463 eval "ac_cv_lib_$ac_lib_var=yes"
13458 else 13464 else
13459 echo "configure: failed program was:" >&5 13465 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5 13466 cat conftest.$ac_ext >&5
13481 if test -n "$libs_termcap"; then 13487 if test -n "$libs_termcap"; then
13482 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13488 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13483 else 13489 else
13484 13490
13485 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13491 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13486 echo "configure:13487: checking for tgetent in -lcurses" >&5 13492 echo "configure:13493: checking for tgetent in -lcurses" >&5
13487 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13493 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13488 13494
13489 xe_check_libs=" -lcurses " 13495 xe_check_libs=" -lcurses "
13490 cat > conftest.$ac_ext <<EOF 13496 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure" 13497 #line 13498 "configure"
13492 #include "confdefs.h" 13498 #include "confdefs.h"
13493 /* Override any gcc2 internal prototype to avoid an error. */ 13499 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2 13500 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */ 13501 builtin and then its argument prototype would still apply. */
13496 char tgetent(); 13502 char tgetent();
13497 13503
13498 int main() { 13504 int main() {
13499 tgetent() 13505 tgetent()
13500 ; return 0; } 13506 ; return 0; }
13501 EOF 13507 EOF
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 rm -rf conftest* 13509 rm -rf conftest*
13504 eval "ac_cv_lib_$ac_lib_var=yes" 13510 eval "ac_cv_lib_$ac_lib_var=yes"
13505 else 13511 else
13506 echo "configure: failed program was:" >&5 13512 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5 13513 cat conftest.$ac_ext >&5
13515 echo "$ac_t""yes" 1>&6 13521 echo "$ac_t""yes" 1>&6
13516 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13522 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13517 else 13523 else
13518 echo "$ac_t""no" 1>&6 13524 echo "$ac_t""no" 1>&6
13519 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13525 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13520 echo "configure:13521: checking for tgetent in -ltermcap" >&5 13526 echo "configure:13527: checking for tgetent in -ltermcap" >&5
13521 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13527 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13522 13528
13523 xe_check_libs=" -ltermcap " 13529 xe_check_libs=" -ltermcap "
13524 cat > conftest.$ac_ext <<EOF 13530 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure" 13531 #line 13532 "configure"
13526 #include "confdefs.h" 13532 #include "confdefs.h"
13527 /* Override any gcc2 internal prototype to avoid an error. */ 13533 /* Override any gcc2 internal prototype to avoid an error. */
13528 /* We use char because int might match the return type of a gcc2 13534 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */ 13535 builtin and then its argument prototype would still apply. */
13530 char tgetent(); 13536 char tgetent();
13531 13537
13532 int main() { 13538 int main() {
13533 tgetent() 13539 tgetent()
13534 ; return 0; } 13540 ; return 0; }
13535 EOF 13541 EOF
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13542 if { (eval echo configure:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537 rm -rf conftest* 13543 rm -rf conftest*
13538 eval "ac_cv_lib_$ac_lib_var=yes" 13544 eval "ac_cv_lib_$ac_lib_var=yes"
13539 else 13545 else
13540 echo "configure: failed program was:" >&5 13546 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5 13547 cat conftest.$ac_ext >&5
13579 } 13585 }
13580 13586
13581 13587
13582 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13588 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13583 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13589 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13584 echo "configure:13585: checking for gpm.h" >&5 13590 echo "configure:13591: checking for gpm.h" >&5
13585 13591
13586 cat > conftest.$ac_ext <<EOF 13592 cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure" 13593 #line 13594 "configure"
13588 #include "confdefs.h" 13594 #include "confdefs.h"
13589 #include <gpm.h> 13595 #include <gpm.h>
13590 EOF 13596 EOF
13591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13592 { (eval echo configure:13593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13598 { (eval echo configure:13599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13594 if test -z "$ac_err"; then 13600 if test -z "$ac_err"; then
13595 rm -rf conftest* 13601 rm -rf conftest*
13596 eval "ac_cv_header_$ac_safe=yes" 13602 eval "ac_cv_header_$ac_safe=yes"
13597 else 13603 else
13610 with_gpm=no 13616 with_gpm=no
13611 fi 13617 fi
13612 } 13618 }
13613 test -z "$with_gpm" && { 13619 test -z "$with_gpm" && {
13614 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13620 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13615 echo "configure:13616: checking for Gpm_Open in -lgpm" >&5 13621 echo "configure:13622: checking for Gpm_Open in -lgpm" >&5
13616 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13622 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13617 13623
13618 xe_check_libs=" -lgpm " 13624 xe_check_libs=" -lgpm "
13619 cat > conftest.$ac_ext <<EOF 13625 cat > conftest.$ac_ext <<EOF
13620 #line 13621 "configure" 13626 #line 13627 "configure"
13621 #include "confdefs.h" 13627 #include "confdefs.h"
13622 /* Override any gcc2 internal prototype to avoid an error. */ 13628 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2 13629 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */ 13630 builtin and then its argument prototype would still apply. */
13625 char Gpm_Open(); 13631 char Gpm_Open();
13626 13632
13627 int main() { 13633 int main() {
13628 Gpm_Open() 13634 Gpm_Open()
13629 ; return 0; } 13635 ; return 0; }
13630 EOF 13636 EOF
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13637 if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632 rm -rf conftest* 13638 rm -rf conftest*
13633 eval "ac_cv_lib_$ac_lib_var=yes" 13639 eval "ac_cv_lib_$ac_lib_var=yes"
13634 else 13640 else
13635 echo "configure: failed program was:" >&5 13641 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5 13642 cat conftest.$ac_ext >&5
13676 fi 13682 fi
13677 13683
13678 13684
13679 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13685 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13680 != "no no no" && echo "checking for database support" 1>&6 13686 != "no no no" && echo "checking for database support" 1>&6
13681 echo "configure:13682: checking for database support" >&5 13687 echo "configure:13688: checking for database support" >&5
13682 13688
13683 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13689 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13684 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13690 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13685 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13691 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13686 echo "configure:13687: checking for ndbm.h" >&5 13692 echo "configure:13693: checking for ndbm.h" >&5
13687 13693
13688 cat > conftest.$ac_ext <<EOF 13694 cat > conftest.$ac_ext <<EOF
13689 #line 13690 "configure" 13695 #line 13696 "configure"
13690 #include "confdefs.h" 13696 #include "confdefs.h"
13691 #include <ndbm.h> 13697 #include <ndbm.h>
13692 EOF 13698 EOF
13693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13694 { (eval echo configure:13695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13700 { (eval echo configure:13701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13696 if test -z "$ac_err"; then 13702 if test -z "$ac_err"; then
13697 rm -rf conftest* 13703 rm -rf conftest*
13698 eval "ac_cv_header_$ac_safe=yes" 13704 eval "ac_cv_header_$ac_safe=yes"
13699 else 13705 else
13719 fi 13725 fi
13720 13726
13721 if test "$with_database_gdbm" != "no"; then 13727 if test "$with_database_gdbm" != "no"; then
13722 13728
13723 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13729 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13724 echo "configure:13725: checking for dbm_open in -lgdbm" >&5 13730 echo "configure:13731: checking for dbm_open in -lgdbm" >&5
13725 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13731 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13726 13732
13727 xe_check_libs=" -lgdbm " 13733 xe_check_libs=" -lgdbm "
13728 cat > conftest.$ac_ext <<EOF 13734 cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure" 13735 #line 13736 "configure"
13730 #include "confdefs.h" 13736 #include "confdefs.h"
13731 /* Override any gcc2 internal prototype to avoid an error. */ 13737 /* Override any gcc2 internal prototype to avoid an error. */
13732 /* We use char because int might match the return type of a gcc2 13738 /* We use char because int might match the return type of a gcc2
13733 builtin and then its argument prototype would still apply. */ 13739 builtin and then its argument prototype would still apply. */
13734 char dbm_open(); 13740 char dbm_open();
13735 13741
13736 int main() { 13742 int main() {
13737 dbm_open() 13743 dbm_open()
13738 ; return 0; } 13744 ; return 0; }
13739 EOF 13745 EOF
13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13741 rm -rf conftest* 13747 rm -rf conftest*
13742 eval "ac_cv_lib_$ac_lib_var=yes" 13748 eval "ac_cv_lib_$ac_lib_var=yes"
13743 else 13749 else
13744 echo "configure: failed program was:" >&5 13750 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5 13751 cat conftest.$ac_ext >&5
13763 13769
13764 fi 13770 fi
13765 13771
13766 if test "$with_database_dbm" != "no"; then 13772 if test "$with_database_dbm" != "no"; then
13767 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13773 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13768 echo "configure:13769: checking for dbm_open" >&5 13774 echo "configure:13775: checking for dbm_open" >&5
13769 13775
13770 cat > conftest.$ac_ext <<EOF 13776 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure" 13777 #line 13778 "configure"
13772 #include "confdefs.h" 13778 #include "confdefs.h"
13773 /* System header to define __stub macros and hopefully few prototypes, 13779 /* System header to define __stub macros and hopefully few prototypes,
13774 which can conflict with char dbm_open(); below. */ 13780 which can conflict with char dbm_open(); below. */
13775 #include <assert.h> 13781 #include <assert.h>
13776 /* Override any gcc2 internal prototype to avoid an error. */ 13782 /* Override any gcc2 internal prototype to avoid an error. */
13789 dbm_open(); 13795 dbm_open();
13790 #endif 13796 #endif
13791 13797
13792 ; return 0; } 13798 ; return 0; }
13793 EOF 13799 EOF
13794 if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13800 if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13795 rm -rf conftest* 13801 rm -rf conftest*
13796 eval "ac_cv_func_dbm_open=yes" 13802 eval "ac_cv_func_dbm_open=yes"
13797 else 13803 else
13798 echo "configure: failed program was:" >&5 13804 echo "configure: failed program was:" >&5
13799 cat conftest.$ac_ext >&5 13805 cat conftest.$ac_ext >&5
13808 else 13814 else
13809 echo "$ac_t""no" 1>&6 13815 echo "$ac_t""no" 1>&6
13810 13816
13811 13817
13812 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 13818 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13813 echo "configure:13814: checking for dbm_open in -ldbm" >&5 13819 echo "configure:13820: checking for dbm_open in -ldbm" >&5
13814 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 13820 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13815 13821
13816 xe_check_libs=" -ldbm " 13822 xe_check_libs=" -ldbm "
13817 cat > conftest.$ac_ext <<EOF 13823 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure" 13824 #line 13825 "configure"
13819 #include "confdefs.h" 13825 #include "confdefs.h"
13820 /* Override any gcc2 internal prototype to avoid an error. */ 13826 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2 13827 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */ 13828 builtin and then its argument prototype would still apply. */
13823 char dbm_open(); 13829 char dbm_open();
13824 13830
13825 int main() { 13831 int main() {
13826 dbm_open() 13832 dbm_open()
13827 ; return 0; } 13833 ; return 0; }
13828 EOF 13834 EOF
13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830 rm -rf conftest* 13836 rm -rf conftest*
13831 eval "ac_cv_lib_$ac_lib_var=yes" 13837 eval "ac_cv_lib_$ac_lib_var=yes"
13832 else 13838 else
13833 echo "configure: failed program was:" >&5 13839 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5 13840 cat conftest.$ac_ext >&5
13865 } 13871 }
13866 13872
13867 13873
13868 if test "$with_database_berkdb" != "no"; then 13874 if test "$with_database_berkdb" != "no"; then
13869 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 13875 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13870 echo "configure:13871: checking for Berkeley db.h" >&5 13876 echo "configure:13877: checking for Berkeley db.h" >&5
13871 for header in "db/db.h" "db.h"; do 13877 for header in "db/db.h" "db.h"; do
13872 cat > conftest.$ac_ext <<EOF 13878 cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure" 13879 #line 13880 "configure"
13874 #include "confdefs.h" 13880 #include "confdefs.h"
13875 13881
13876 #include <stdlib.h> 13882 #include <stdlib.h>
13877 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 13883 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13878 #ifdef HAVE_INTTYPES_H 13884 #ifdef HAVE_INTTYPES_H
13890 13896
13891 int main() { 13897 int main() {
13892 13898
13893 ; return 0; } 13899 ; return 0; }
13894 EOF 13900 EOF
13895 if { (eval echo configure:13896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13901 if { (eval echo configure:13902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13896 rm -rf conftest* 13902 rm -rf conftest*
13897 db_h_file="$header"; break 13903 db_h_file="$header"; break
13898 else 13904 else
13899 echo "configure: failed program was:" >&5 13905 echo "configure: failed program was:" >&5
13900 cat conftest.$ac_ext >&5 13906 cat conftest.$ac_ext >&5
13906 else echo "$ac_t""$db_h_file" 1>&6 13912 else echo "$ac_t""$db_h_file" 1>&6
13907 fi 13913 fi
13908 13914
13909 if test "$with_database_berkdb" != "no"; then 13915 if test "$with_database_berkdb" != "no"; then
13910 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 13916 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13911 echo "configure:13912: checking for Berkeley DB version" >&5 13917 echo "configure:13918: checking for Berkeley DB version" >&5
13912 cat > conftest.$ac_ext <<EOF 13918 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure" 13919 #line 13920 "configure"
13914 #include "confdefs.h" 13920 #include "confdefs.h"
13915 #include <$db_h_file> 13921 #include <$db_h_file>
13916 #if DB_VERSION_MAJOR > 1 13922 #if DB_VERSION_MAJOR > 1
13917 yes 13923 yes
13918 #endif 13924 #endif
13920 EOF 13926 EOF
13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13922 egrep "yes" >/dev/null 2>&1; then 13928 egrep "yes" >/dev/null 2>&1; then
13923 rm -rf conftest* 13929 rm -rf conftest*
13924 cat > conftest.$ac_ext <<EOF 13930 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure" 13931 #line 13932 "configure"
13926 #include "confdefs.h" 13932 #include "confdefs.h"
13927 #include <$db_h_file> 13933 #include <$db_h_file>
13928 #if DB_VERSION_MAJOR > 2 13934 #if DB_VERSION_MAJOR > 2
13929 yes 13935 yes
13930 #endif 13936 #endif
13947 echo "$ac_t""1" 1>&6; dbfunc=dbopen 13953 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13948 fi 13954 fi
13949 rm -f conftest* 13955 rm -f conftest*
13950 13956
13951 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 13957 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13952 echo "configure:13953: checking for $dbfunc" >&5 13958 echo "configure:13959: checking for $dbfunc" >&5
13953 13959
13954 cat > conftest.$ac_ext <<EOF 13960 cat > conftest.$ac_ext <<EOF
13955 #line 13956 "configure" 13961 #line 13962 "configure"
13956 #include "confdefs.h" 13962 #include "confdefs.h"
13957 /* System header to define __stub macros and hopefully few prototypes, 13963 /* System header to define __stub macros and hopefully few prototypes,
13958 which can conflict with char $dbfunc(); below. */ 13964 which can conflict with char $dbfunc(); below. */
13959 #include <assert.h> 13965 #include <assert.h>
13960 /* Override any gcc2 internal prototype to avoid an error. */ 13966 /* Override any gcc2 internal prototype to avoid an error. */
13973 $dbfunc(); 13979 $dbfunc();
13974 #endif 13980 #endif
13975 13981
13976 ; return 0; } 13982 ; return 0; }
13977 EOF 13983 EOF
13978 if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13984 if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13979 rm -rf conftest* 13985 rm -rf conftest*
13980 eval "ac_cv_func_$dbfunc=yes" 13986 eval "ac_cv_func_$dbfunc=yes"
13981 else 13987 else
13982 echo "configure: failed program was:" >&5 13988 echo "configure: failed program was:" >&5
13983 cat conftest.$ac_ext >&5 13989 cat conftest.$ac_ext >&5
13992 else 13998 else
13993 echo "$ac_t""no" 1>&6 13999 echo "$ac_t""no" 1>&6
13994 14000
13995 14001
13996 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14002 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13997 echo "configure:13998: checking for $dbfunc in -ldb" >&5 14003 echo "configure:14004: checking for $dbfunc in -ldb" >&5
13998 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14004 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13999 14005
14000 xe_check_libs=" -ldb " 14006 xe_check_libs=" -ldb "
14001 cat > conftest.$ac_ext <<EOF 14007 cat > conftest.$ac_ext <<EOF
14002 #line 14003 "configure" 14008 #line 14009 "configure"
14003 #include "confdefs.h" 14009 #include "confdefs.h"
14004 /* Override any gcc2 internal prototype to avoid an error. */ 14010 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2 14011 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */ 14012 builtin and then its argument prototype would still apply. */
14007 char $dbfunc(); 14013 char $dbfunc();
14008 14014
14009 int main() { 14015 int main() {
14010 $dbfunc() 14016 $dbfunc()
14011 ; return 0; } 14017 ; return 0; }
14012 EOF 14018 EOF
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14019 if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14014 rm -rf conftest* 14020 rm -rf conftest*
14015 eval "ac_cv_lib_$ac_lib_var=yes" 14021 eval "ac_cv_lib_$ac_lib_var=yes"
14016 else 14022 else
14017 echo "configure: failed program was:" >&5 14023 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5 14024 cat conftest.$ac_ext >&5
14072 fi 14078 fi
14073 14079
14074 if test "$with_socks" = "yes"; then 14080 if test "$with_socks" = "yes"; then
14075 14081
14076 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 14082 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14077 echo "configure:14078: checking for SOCKSinit in -lsocks" >&5 14083 echo "configure:14084: checking for SOCKSinit in -lsocks" >&5
14078 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 14084 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14079 14085
14080 xe_check_libs=" -lsocks " 14086 xe_check_libs=" -lsocks "
14081 cat > conftest.$ac_ext <<EOF 14087 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure" 14088 #line 14089 "configure"
14083 #include "confdefs.h" 14089 #include "confdefs.h"
14084 /* Override any gcc2 internal prototype to avoid an error. */ 14090 /* Override any gcc2 internal prototype to avoid an error. */
14085 /* We use char because int might match the return type of a gcc2 14091 /* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */ 14092 builtin and then its argument prototype would still apply. */
14087 char SOCKSinit(); 14093 char SOCKSinit();
14088 14094
14089 int main() { 14095 int main() {
14090 SOCKSinit() 14096 SOCKSinit()
14091 ; return 0; } 14097 ; return 0; }
14092 EOF 14098 EOF
14093 if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14099 if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14094 rm -rf conftest* 14100 rm -rf conftest*
14095 eval "ac_cv_lib_$ac_lib_var=yes" 14101 eval "ac_cv_lib_$ac_lib_var=yes"
14096 else 14102 else
14097 echo "configure: failed program was:" >&5 14103 echo "configure: failed program was:" >&5
14098 cat conftest.$ac_ext >&5 14104 cat conftest.$ac_ext >&5
14143 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14149 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14144 fi 14150 fi
14145 14151
14146 if test "$with_modules" != "no"; then 14152 if test "$with_modules" != "no"; then
14147 echo "checking for module support" 1>&6 14153 echo "checking for module support" 1>&6
14148 echo "configure:14149: checking for module support" >&5 14154 echo "configure:14155: checking for module support" >&5
14149 14155
14150 if test "$with_msw" = "yes"; then 14156 if test "$with_msw" = "yes"; then
14151 have_dl=yes; 14157 have_dl=yes;
14152 else 14158 else
14153 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14159 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14154 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14160 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14155 echo "configure:14156: checking for dlfcn.h" >&5 14161 echo "configure:14162: checking for dlfcn.h" >&5
14156 14162
14157 cat > conftest.$ac_ext <<EOF 14163 cat > conftest.$ac_ext <<EOF
14158 #line 14159 "configure" 14164 #line 14165 "configure"
14159 #include "confdefs.h" 14165 #include "confdefs.h"
14160 #include <dlfcn.h> 14166 #include <dlfcn.h>
14161 EOF 14167 EOF
14162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14163 { (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14169 { (eval echo configure:14170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14165 if test -z "$ac_err"; then 14171 if test -z "$ac_err"; then
14166 rm -rf conftest* 14172 rm -rf conftest*
14167 eval "ac_cv_header_$ac_safe=yes" 14173 eval "ac_cv_header_$ac_safe=yes"
14168 else 14174 else
14175 rm -f conftest* 14181 rm -f conftest*
14176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14177 echo "$ac_t""yes" 1>&6 14183 echo "$ac_t""yes" 1>&6
14178 14184
14179 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14185 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14180 echo "configure:14181: checking for dlopen in -lc" >&5 14186 echo "configure:14187: checking for dlopen in -lc" >&5
14181 cat > conftest.$ac_ext <<EOF 14187 cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure" 14188 #line 14189 "configure"
14183 #include "confdefs.h" 14189 #include "confdefs.h"
14184 #include <dlfcn.h> 14190 #include <dlfcn.h>
14185 int main() { 14191 int main() {
14186 dlopen ("", 0); 14192 dlopen ("", 0);
14187 ; return 0; } 14193 ; return 0; }
14188 EOF 14194 EOF
14189 if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14195 if { (eval echo configure:14196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14190 rm -rf conftest* 14196 rm -rf conftest*
14191 have_dl=yes 14197 have_dl=yes
14192 else 14198 else
14193 echo "configure: failed program was:" >&5 14199 echo "configure: failed program was:" >&5
14194 cat conftest.$ac_ext >&5 14200 cat conftest.$ac_ext >&5
14195 rm -rf conftest* 14201 rm -rf conftest*
14196 14202
14197 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14203 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14198 echo "configure:14199: checking for dlopen in -ldl" >&5 14204 echo "configure:14205: checking for dlopen in -ldl" >&5
14199 ac_save_LIBS="$LIBS" 14205 ac_save_LIBS="$LIBS"
14200 LIBS="-ldl $LIBS" 14206 LIBS="-ldl $LIBS"
14201 cat > conftest.$ac_ext <<EOF 14207 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure" 14208 #line 14209 "configure"
14203 #include "confdefs.h" 14209 #include "confdefs.h"
14204 #include <dlfcn.h> 14210 #include <dlfcn.h>
14205 int main() { 14211 int main() {
14206 dlopen ("", 0); 14212 dlopen ("", 0);
14207 ; return 0; } 14213 ; return 0; }
14208 EOF 14214 EOF
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest* 14216 rm -rf conftest*
14211 have_dl=yes 14217 have_dl=yes
14212 else 14218 else
14213 echo "configure: failed program was:" >&5 14219 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5 14220 cat conftest.$ac_ext >&5
14233 } 14239 }
14234 14240
14235 else 14241 else
14236 14242
14237 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14243 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14238 echo "configure:14239: checking for shl_load in -ldld" >&5 14244 echo "configure:14245: checking for shl_load in -ldld" >&5
14239 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14245 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14240 14246
14241 xe_check_libs=" -ldld " 14247 xe_check_libs=" -ldld "
14242 cat > conftest.$ac_ext <<EOF 14248 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure" 14249 #line 14250 "configure"
14244 #include "confdefs.h" 14250 #include "confdefs.h"
14245 /* Override any gcc2 internal prototype to avoid an error. */ 14251 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2 14252 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */ 14253 builtin and then its argument prototype would still apply. */
14248 char shl_load(); 14254 char shl_load();
14249 14255
14250 int main() { 14256 int main() {
14251 shl_load() 14257 shl_load()
14252 ; return 0; } 14258 ; return 0; }
14253 EOF 14259 EOF
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14255 rm -rf conftest* 14261 rm -rf conftest*
14256 eval "ac_cv_lib_$ac_lib_var=yes" 14262 eval "ac_cv_lib_$ac_lib_var=yes"
14257 else 14263 else
14258 echo "configure: failed program was:" >&5 14264 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5 14265 cat conftest.$ac_ext >&5
14276 14282
14277 else 14283 else
14278 echo "$ac_t""no" 1>&6 14284 echo "$ac_t""no" 1>&6
14279 14285
14280 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14286 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14281 echo "configure:14282: checking for dld_init in -ldld" >&5 14287 echo "configure:14288: checking for dld_init in -ldld" >&5
14282 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14288 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14283 14289
14284 xe_check_libs=" -ldld " 14290 xe_check_libs=" -ldld "
14285 cat > conftest.$ac_ext <<EOF 14291 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure" 14292 #line 14293 "configure"
14287 #include "confdefs.h" 14293 #include "confdefs.h"
14288 /* Override any gcc2 internal prototype to avoid an error. */ 14294 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2 14295 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */ 14296 builtin and then its argument prototype would still apply. */
14291 char dld_init(); 14297 char dld_init();
14292 14298
14293 int main() { 14299 int main() {
14294 dld_init() 14300 dld_init()
14295 ; return 0; } 14301 ; return 0; }
14296 EOF 14302 EOF
14297 if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14303 if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14298 rm -rf conftest* 14304 rm -rf conftest*
14299 eval "ac_cv_lib_$ac_lib_var=yes" 14305 eval "ac_cv_lib_$ac_lib_var=yes"
14300 else 14306 else
14301 echo "configure: failed program was:" >&5 14307 echo "configure: failed program was:" >&5
14302 cat conftest.$ac_ext >&5 14308 cat conftest.$ac_ext >&5
14337 ld_dynamic_link_flags= 14343 ld_dynamic_link_flags=
14338 xehost=$canonical 14344 xehost=$canonical
14339 xealias=$internal_configuration 14345 xealias=$internal_configuration
14340 14346
14341 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14347 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14342 echo "configure:14343: checking how to build dynamic libraries for ${xehost}" >&5 14348 echo "configure:14349: checking how to build dynamic libraries for ${xehost}" >&5
14343 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14349 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14344 case "$xehost" in 14350 case "$xehost" in
14345 *-*-linux-gnu*) ;; 14351 *-*-linux-gnu*) ;;
14346 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14352 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14347 esac 14353 esac
14365 # Now see if the compiler is really GCC. 14371 # Now see if the compiler is really GCC.
14366 if test "$GCC" = "yes"; then 14372 if test "$GCC" = "yes"; then
14367 XEGCC=yes 14373 XEGCC=yes
14368 else 14374 else
14369 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14375 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14370 echo "configure:14371: checking checking whether we are using GNU C" >&5 14376 echo "configure:14377: checking checking whether we are using GNU C" >&5
14371 cat > conftest.$ac_ext <<EOF 14377 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure" 14378 #line 14379 "configure"
14373 #include "confdefs.h" 14379 #include "confdefs.h"
14374 14380
14375 #ifdef __GNUC__ 14381 #ifdef __GNUC__
14376 yes; 14382 yes;
14377 #endif 14383 #endif
14389 14395
14390 echo "$ac_t""${XEGCC}" 1>&6 14396 echo "$ac_t""${XEGCC}" 1>&6
14391 fi 14397 fi
14392 14398
14393 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14399 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14394 echo "configure:14395: checking how to produce PIC code" >&5 14400 echo "configure:14401: checking how to produce PIC code" >&5
14395 wl= 14401 wl=
14396 14402
14397 can_build_shared=yes 14403 can_build_shared=yes
14398 if test "$XEGCC" = yes; then 14404 if test "$XEGCC" = yes; then
14399 wl='-Wl,' 14405 wl='-Wl,'
14490 if test -n "$dll_cflags"; then 14496 if test -n "$dll_cflags"; then
14491 echo "$ac_t""${dll_cflags}" 1>&6 14497 echo "$ac_t""${dll_cflags}" 1>&6
14492 14498
14493 # Check to make sure the dll_cflags actually works. 14499 # Check to make sure the dll_cflags actually works.
14494 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14500 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14495 echo "configure:14496: checking if PIC flag ${dll_cflags} really works" >&5 14501 echo "configure:14502: checking if PIC flag ${dll_cflags} really works" >&5
14496 save_CFLAGS="$CFLAGS" 14502 save_CFLAGS="$CFLAGS"
14497 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14503 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14498 cat > conftest.$ac_ext <<EOF 14504 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure" 14505 #line 14506 "configure"
14500 #include "confdefs.h" 14506 #include "confdefs.h"
14501 14507
14502 int main() { 14508 int main() {
14503 int x=0; 14509 int x=0;
14504 ; return 0; } 14510 ; return 0; }
14505 EOF 14511 EOF
14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14512 if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14507 rm -rf conftest* 14513 rm -rf conftest*
14508 14514
14509 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14515 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14510 # reports no error. So, we need to grep stderr for (Bundled). 14516 # reports no error. So, we need to grep stderr for (Bundled).
14511 if grep '(Bundled)' config.log >/dev/null; then 14517 if grep '(Bundled)' config.log >/dev/null; then
14532 if test "$can_build_shared" = "yes"; then 14538 if test "$can_build_shared" = "yes"; then
14533 cc_produces_so=no 14539 cc_produces_so=no
14534 xldf= 14540 xldf=
14535 xcldf= 14541 xcldf=
14536 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14542 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14537 echo "configure:14538: checking if C compiler can produce shared libraries" >&5 14543 echo "configure:14544: checking if C compiler can produce shared libraries" >&5
14538 if test "$XEGCC" = yes; then 14544 if test "$XEGCC" = yes; then
14539 xcldf="-shared" 14545 xcldf="-shared"
14540 xldf="-shared" 14546 xldf="-shared"
14541 else # Not using GCC 14547 else # Not using GCC
14542 case "$xehost_os" in 14548 case "$xehost_os" in
14583 LDFLAGS="$xcldf $LDFLAGS" 14589 LDFLAGS="$xcldf $LDFLAGS"
14584 LIBS= 14590 LIBS=
14585 xe_libs= 14591 xe_libs=
14586 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14592 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14587 cat > conftest.$ac_ext <<EOF 14593 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure" 14594 #line 14595 "configure"
14589 #include "confdefs.h" 14595 #include "confdefs.h"
14590 14596
14591 int main() { 14597 int main() {
14592 int x=0; 14598 int x=0;
14593 ; return 0; } 14599 ; return 0; }
14594 EOF 14600 EOF
14595 if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14596 rm -rf conftest* 14602 rm -rf conftest*
14597 cc_produces_so=yes 14603 cc_produces_so=yes
14598 else 14604 else
14599 echo "configure: failed program was:" >&5 14605 echo "configure: failed program was:" >&5
14600 cat conftest.$ac_ext >&5 14606 cat conftest.$ac_ext >&5
14615 if test -z "$LTLD"; then 14621 if test -z "$LTLD"; then
14616 ac_prog=ld 14622 ac_prog=ld
14617 if test "$XEGCC" = yes; then 14623 if test "$XEGCC" = yes; then
14618 # Check if gcc -print-prog-name=ld gives a path. 14624 # Check if gcc -print-prog-name=ld gives a path.
14619 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14625 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14620 echo "configure:14621: checking for ld used by GCC" >&5 14626 echo "configure:14627: checking for ld used by GCC" >&5
14621 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14627 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14622 case "$ac_prog" in 14628 case "$ac_prog" in
14623 # Accept absolute paths. 14629 # Accept absolute paths.
14624 /*) 14630 /*)
14625 if test -z "$LTLD"; then 14631 if test -z "$LTLD"; then
14640 with_gnu_ld=unknown 14646 with_gnu_ld=unknown
14641 ;; 14647 ;;
14642 esac 14648 esac
14643 else 14649 else
14644 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14650 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14645 echo "configure:14646: checking for GNU ld" >&5 14651 echo "configure:14652: checking for GNU ld" >&5
14646 fi 14652 fi
14647 14653
14648 if test -z "$LTLD"; then 14654 if test -z "$LTLD"; then
14649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14650 for ac_dir in $PATH; do 14656 for ac_dir in $PATH; do
14678 14684
14679 ld_dynamic_link_flags= 14685 ld_dynamic_link_flags=
14680 14686
14681 # Check to see if it really is or isn't GNU ld. 14687 # Check to see if it really is or isn't GNU ld.
14682 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14688 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14683 echo "configure:14684: checking if the linker is GNU ld" >&5 14689 echo "configure:14690: checking if the linker is GNU ld" >&5
14684 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14690 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14685 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14691 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14686 xe_gnu_ld=yes 14692 xe_gnu_ld=yes
14687 else 14693 else
14688 xe_gnu_ld=no 14694 xe_gnu_ld=no
14706 ld_shlibs=yes 14712 ld_shlibs=yes
14707 else 14713 else
14708 # OK - only NOW do we futz about with ld. 14714 # OK - only NOW do we futz about with ld.
14709 # See if the linker supports building shared libraries. 14715 # See if the linker supports building shared libraries.
14710 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14716 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14711 echo "configure:14712: checking whether the linker supports shared libraries" >&5 14717 echo "configure:14718: checking whether the linker supports shared libraries" >&5
14712 dll_ld=$CC 14718 dll_ld=$CC
14713 dll_ldflags=$LDFLAGS 14719 dll_ldflags=$LDFLAGS
14714 ld_shlibs=yes 14720 ld_shlibs=yes
14715 can_build_shared=yes 14721 can_build_shared=yes
14716 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14722 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14917 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 14923 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14918 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 14924 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14919 for ac_func in dlerror _dlerror 14925 for ac_func in dlerror _dlerror
14920 do 14926 do
14921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14922 echo "configure:14923: checking for $ac_func" >&5 14928 echo "configure:14929: checking for $ac_func" >&5
14923 14929
14924 cat > conftest.$ac_ext <<EOF 14930 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure" 14931 #line 14932 "configure"
14926 #include "confdefs.h" 14932 #include "confdefs.h"
14927 /* System header to define __stub macros and hopefully few prototypes, 14933 /* System header to define __stub macros and hopefully few prototypes,
14928 which can conflict with char $ac_func(); below. */ 14934 which can conflict with char $ac_func(); below. */
14929 #include <assert.h> 14935 #include <assert.h>
14930 /* Override any gcc2 internal prototype to avoid an error. */ 14936 /* Override any gcc2 internal prototype to avoid an error. */
14943 $ac_func(); 14949 $ac_func();
14944 #endif 14950 #endif
14945 14951
14946 ; return 0; } 14952 ; return 0; }
14947 EOF 14953 EOF
14948 if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14954 if { (eval echo configure:14955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14949 rm -rf conftest* 14955 rm -rf conftest*
14950 eval "ac_cv_func_$ac_func=yes" 14956 eval "ac_cv_func_$ac_func=yes"
14951 else 14957 else
14952 echo "configure: failed program was:" >&5 14958 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5 14959 cat conftest.$ac_ext >&5
14982 with_modules=no 14988 with_modules=no
14983 fi 14989 fi
14984 fi 14990 fi
14985 14991
14986 cat > conftest.$ac_ext <<EOF 14992 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure" 14993 #line 14994 "configure"
14988 #include "confdefs.h" 14994 #include "confdefs.h"
14989 int main(int c,char *v[]){return 0;} 14995 int main(int c,char *v[]){return 0;}
14990 EOF 14996 EOF
14991 if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14992 then 14998 then
14993 : 14999 :
14994 else 15000 else
14995 conftest_rc="$?" 15001 conftest_rc="$?"
14996 echo "configure: failed program was:" >&5 15002 echo "configure: failed program was:" >&5