comparison configure @ 1332:6aa23bb3da6b

[xemacs-hg @ 2003-03-02 02:18:05 by ben] To: xemacs-patches@xemacs.org PROBLEMS: Include nt/PROBLEMS and update. Add note about incremental linking badness. cmdloop.el, custom.el, dumped-lisp.el, files.el, keydefs.el, keymap.el, lisp-mode.el, make-docfile.el, replace.el, simple.el, subr.el, view-less.el, wid-edit.el: Lots of syncing with FSF 21.2. Use if-fboundp in wid-edit.el. New file newcomment.el from FSF. internals/internals.texi: Fix typo. (Build-Time Dependencies): New node. PROBLEMS: Delete. config.inc.samp, xemacs.mak: Eliminate HAVE_VC6, use SUPPORT_EDIT_AND_CONTINUE in its place. No incremental linking unless SUPPORT_EDIT_AND_CONTINUE, since it can cause nasty crashes in pdump. Put warnings about this in config.inc.samp. Report the full compile flags used for src and lib-src in the Installation output. alloc.c, lisp.h, ralloc.c, regex.c: Use ALLOCA() in regex.c to avoid excessive stack allocation. Also fix subtle problem with REL_ALLOC() -- any call to malloc() (direct or indirect) may relocate rel-alloced data, causing buffer text to shift. After any such call, regex must update all its pointers to such data. Add a system, when ERROR_CHECK_MALLOC, whereby regex.c indicates all the places it is prepared to handle malloc()/realloc()/free(), and any calls anywhere in XEmacs outside of this will trigger an abort. alloc.c, dialog-msw.c, eval.c, event-stream.c, general-slots.h, insdel.c, lisp.h, menubar-msw.c, menubar-x.c: Change *run_hook*_trapping_problems to take a warning class, not a string. Factor out code to issue warnings, add flag to call_trapping_problems() to postpone warning issue, and make *run_hook*_trapping_problems issue their own warnings tailored to the hook, postponed in the case of safe_run_hook_trapping_problems() so that the appropriate message can be issued about resetting to nil only when not `quit'. Make record_unwind_protect_restoring_int() non-static. dumper.c: Issue notes about incremental linking problems under Windows. fileio.c: Mule-ize encrypt/decrypt-string code. text.h: Spacing changes.
author ben
date Sun, 02 Mar 2003 02:18:12 +0000
parents 65c6302e98c8
children 2e6e691f6649
comparison
equal deleted inserted replaced
1331:fae999a16ab4 1332:6aa23bb3da6b
4 #### Guess values for system-dependent variables and create Makefiles. 4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13 5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996, 2002 Ben Wing. 9 #### Copyright (C) 1995, 1996, 2002, 2003 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz. 10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston. 11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 12
13 ### Don't edit this script! 13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program 14 ### This script was automatically generated by the `autoconf' program
13026 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 13026 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
13027 echo " xemacs will be linked with \"$ALLOCA\"" 13027 echo " xemacs will be linked with \"$ALLOCA\""
13028 fi 13028 fi
13029 fi 13029 fi
13030 13030
13031 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
13032 echo "configure:13033: checking for working alloca in function calls" >&5
13033 cat > conftest.$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13036
13037 #if defined (__CYGWIN__)
13038 #include <alloca.h>
13039 #elif defined (__GNUC__)
13040 #define alloca __builtin_alloca
13041 #elif defined (__DECC)
13042 #include <alloca.h>
13043 #pragma intrinsic(alloca)
13044 #elif defined (HAVE_ALLOCA_H)
13045 #include <alloca.h>
13046 #elif defined (_AIX)
13047 #pragma alloca
13048 #elif ! defined (alloca)
13049 #ifdef C_ALLOCA
13050 #define alloca xemacs_c_alloca
13051 #else
13052 void *alloca ();
13053 #endif /* C_ALLOCA */
13054 #endif /* !defined (alloca) */
13055
13056 void
13057 f1 (double a, void *ptr, int b)
13058 {
13059 unsigned char *ptr2 = (unsigned char *) ptr;
13060 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
13061 exit (1);
13062 if (a != 3.1415 || b != -5490)
13063 exit (1);
13064 }
13065
13066 int
13067 f2 (short c, void *ptr, long e)
13068 {
13069 unsigned char *ptr2 = (unsigned char *) ptr;
13070 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
13071 exit (1);
13072 if (c != 665 || e != 776776776)
13073 exit (1);
13074 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
13075 return 42;
13076 }
13077
13078 int
13079 main (int argc, char *argv[])
13080 {
13081 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
13082 return 1;
13083 return 0;
13084 }
13085
13086 EOF
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13088 then
13089 working_alloca_in_function_calls=yes
13090 else
13091 conftest_rc="$?"
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 rm -fr conftest*
13095 working_alloca_in_function_calls=no
13096 fi
13097 rm -fr conftest*
13098 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
13099 test "$working_alloca_in_function_calls" != "yes" && \
13100 { test "$extra_verbose" = "yes" && cat << \EOF
13101 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
13102 EOF
13103 cat >> confdefs.h <<\EOF
13104 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
13105 EOF
13106 }
13107
13108
13031 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 13109 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
13032 echo "configure:13033: checking for working strcoll" >&5 13110 echo "configure:13111: checking for working strcoll" >&5
13033 13111
13034 cat > conftest.$ac_ext <<EOF 13112 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure" 13113 #line 13114 "configure"
13036 #include "confdefs.h" 13114 #include "confdefs.h"
13037 #include <string.h> 13115 #include <string.h>
13038 main () 13116 main ()
13039 { 13117 {
13040 exit (strcoll ("abc", "def") >= 0 || 13118 exit (strcoll ("abc", "def") >= 0 ||
13041 strcoll ("ABC", "DEF") >= 0 || 13119 strcoll ("ABC", "DEF") >= 0 ||
13042 strcoll ("123", "456") >= 0); 13120 strcoll ("123", "456") >= 0);
13043 } 13121 }
13044 EOF 13122 EOF
13045 if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13123 if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13046 then 13124 then
13047 ac_cv_func_strcoll_works=yes 13125 ac_cv_func_strcoll_works=yes
13048 else 13126 else
13049 conftest_rc="$?" 13127 conftest_rc="$?"
13050 echo "configure: failed program was:" >&5 13128 echo "configure: failed program was:" >&5
13068 13146
13069 13147
13070 for ac_func in getpgrp 13148 for ac_func in getpgrp
13071 do 13149 do
13072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13073 echo "configure:13074: checking for $ac_func" >&5 13151 echo "configure:13152: checking for $ac_func" >&5
13074 13152
13075 cat > conftest.$ac_ext <<EOF 13153 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure" 13154 #line 13155 "configure"
13077 #include "confdefs.h" 13155 #include "confdefs.h"
13078 /* System header to define __stub macros and hopefully few prototypes, 13156 /* System header to define __stub macros and hopefully few prototypes,
13079 which can conflict with char $ac_func(); below. */ 13157 which can conflict with char $ac_func(); below. */
13080 #include <assert.h> 13158 #include <assert.h>
13081 /* Override any gcc2 internal prototype to avoid an error. */ 13159 /* Override any gcc2 internal prototype to avoid an error. */
13094 $ac_func(); 13172 $ac_func();
13095 #endif 13173 #endif
13096 13174
13097 ; return 0; } 13175 ; return 0; }
13098 EOF 13176 EOF
13099 if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13177 if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13100 rm -rf conftest* 13178 rm -rf conftest*
13101 eval "ac_cv_func_$ac_func=yes" 13179 eval "ac_cv_func_$ac_func=yes"
13102 else 13180 else
13103 echo "configure: failed program was:" >&5 13181 echo "configure: failed program was:" >&5
13104 cat conftest.$ac_ext >&5 13182 cat conftest.$ac_ext >&5
13122 echo "$ac_t""no" 1>&6 13200 echo "$ac_t""no" 1>&6
13123 fi 13201 fi
13124 done 13202 done
13125 13203
13126 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13204 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
13127 echo "configure:13128: checking whether getpgrp takes no argument" >&5 13205 echo "configure:13206: checking whether getpgrp takes no argument" >&5
13128 13206
13129 cat > conftest.$ac_ext <<EOF 13207 cat > conftest.$ac_ext <<EOF
13130 #line 13131 "configure" 13208 #line 13209 "configure"
13131 #include "confdefs.h" 13209 #include "confdefs.h"
13132 13210
13133 /* 13211 /*
13134 * If this system has a BSD-style getpgrp(), 13212 * If this system has a BSD-style getpgrp(),
13135 * which takes a pid argument, exit unsuccessfully. 13213 * which takes a pid argument, exit unsuccessfully.
13180 exit(s>>8); 13258 exit(s>>8);
13181 } 13259 }
13182 } 13260 }
13183 13261
13184 EOF 13262 EOF
13185 if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13263 if { (eval echo configure:13264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13186 then 13264 then
13187 ac_cv_func_getpgrp_void=yes 13265 ac_cv_func_getpgrp_void=yes
13188 else 13266 else
13189 conftest_rc="$?" 13267 conftest_rc="$?"
13190 echo "configure: failed program was:" >&5 13268 echo "configure: failed program was:" >&5
13207 13285
13208 fi 13286 fi
13209 13287
13210 13288
13211 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13289 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
13212 echo "configure:13213: checking for working mmap" >&5 13290 echo "configure:13291: checking for working mmap" >&5
13213 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13291 case "$opsys" in ultrix* ) have_mmap=no ;; *)
13214 cat > conftest.$ac_ext <<EOF 13292 cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure" 13293 #line 13294 "configure"
13216 #include "confdefs.h" 13294 #include "confdefs.h"
13217 #include <stdio.h> 13295 #include <stdio.h>
13218 #include <unistd.h> 13296 #include <unistd.h>
13219 #include <fcntl.h> 13297 #include <fcntl.h>
13220 #include <sys/mman.h> 13298 #include <sys/mman.h>
13243 return 0; 13321 return 0;
13244 perror ("conftest: mmap failed"); 13322 perror ("conftest: mmap failed");
13245 return 1; 13323 return 1;
13246 } 13324 }
13247 EOF 13325 EOF
13248 if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13326 if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13249 then 13327 then
13250 have_mmap=yes 13328 have_mmap=yes
13251 else 13329 else
13252 conftest_rc="$?" 13330 conftest_rc="$?"
13253 echo "configure: failed program was:" >&5 13331 echo "configure: failed program was:" >&5
13272 esac 13350 esac
13273 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13351 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
13274 if test "$rel_alloc $have_mmap" = "default yes"; then 13352 if test "$rel_alloc $have_mmap" = "default yes"; then
13275 if test "$doug_lea_malloc" = "yes"; then 13353 if test "$doug_lea_malloc" = "yes"; then
13276 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13354 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
13277 echo "configure:13278: checking for M_MMAP_THRESHOLD" >&5 13355 echo "configure:13356: checking for M_MMAP_THRESHOLD" >&5
13278 cat > conftest.$ac_ext <<EOF 13356 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure" 13357 #line 13358 "configure"
13280 #include "confdefs.h" 13358 #include "confdefs.h"
13281 #include <malloc.h> 13359 #include <malloc.h>
13282 int main() { 13360 int main() {
13283 13361
13284 #ifndef M_MMAP_THRESHOLD 13362 #ifndef M_MMAP_THRESHOLD
13286 !@+$%^&*_)(_ - unlikely to compile... 13364 !@+$%^&*_)(_ - unlikely to compile...
13287 #endif 13365 #endif
13288 13366
13289 ; return 0; } 13367 ; return 0; }
13290 EOF 13368 EOF
13291 if { (eval echo configure:13292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13369 if { (eval echo configure:13370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13292 rm -rf conftest* 13370 rm -rf conftest*
13293 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13371 rel_alloc=no; echo "$ac_t""yes" 1>&6;
13294 else 13372 else
13295 echo "configure: failed program was:" >&5 13373 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5 13374 cat conftest.$ac_ext >&5
13311 } 13389 }
13312 13390
13313 13391
13314 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13392 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
13315 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13393 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
13316 echo "configure:13317: checking for termios.h" >&5 13394 echo "configure:13395: checking for termios.h" >&5
13317 13395
13318 cat > conftest.$ac_ext <<EOF 13396 cat > conftest.$ac_ext <<EOF
13319 #line 13320 "configure" 13397 #line 13398 "configure"
13320 #include "confdefs.h" 13398 #include "confdefs.h"
13321 #include <termios.h> 13399 #include <termios.h>
13322 EOF 13400 EOF
13323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13324 { (eval echo configure:13325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13402 { (eval echo configure:13403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13326 if test -z "$ac_err"; then 13404 if test -z "$ac_err"; then
13327 rm -rf conftest* 13405 rm -rf conftest*
13328 eval "ac_cv_header_$ac_safe=yes" 13406 eval "ac_cv_header_$ac_safe=yes"
13329 else 13407 else
13362 13440
13363 else 13441 else
13364 echo "$ac_t""no" 1>&6 13442 echo "$ac_t""no" 1>&6
13365 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13443 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13366 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13444 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13367 echo "configure:13368: checking for termio.h" >&5 13445 echo "configure:13446: checking for termio.h" >&5
13368 13446
13369 cat > conftest.$ac_ext <<EOF 13447 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure" 13448 #line 13449 "configure"
13371 #include "confdefs.h" 13449 #include "confdefs.h"
13372 #include <termio.h> 13450 #include <termio.h>
13373 EOF 13451 EOF
13374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13375 { (eval echo configure:13376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13453 { (eval echo configure:13454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13377 if test -z "$ac_err"; then 13455 if test -z "$ac_err"; then
13378 rm -rf conftest* 13456 rm -rf conftest*
13379 eval "ac_cv_header_$ac_safe=yes" 13457 eval "ac_cv_header_$ac_safe=yes"
13380 else 13458 else
13402 fi 13480 fi
13403 13481
13404 13482
13405 13483
13406 echo $ac_n "checking for socket""... $ac_c" 1>&6 13484 echo $ac_n "checking for socket""... $ac_c" 1>&6
13407 echo "configure:13408: checking for socket" >&5 13485 echo "configure:13486: checking for socket" >&5
13408 13486
13409 cat > conftest.$ac_ext <<EOF 13487 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure" 13488 #line 13489 "configure"
13411 #include "confdefs.h" 13489 #include "confdefs.h"
13412 /* System header to define __stub macros and hopefully few prototypes, 13490 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char socket(); below. */ 13491 which can conflict with char socket(); below. */
13414 #include <assert.h> 13492 #include <assert.h>
13415 /* Override any gcc2 internal prototype to avoid an error. */ 13493 /* Override any gcc2 internal prototype to avoid an error. */
13428 socket(); 13506 socket();
13429 #endif 13507 #endif
13430 13508
13431 ; return 0; } 13509 ; return 0; }
13432 EOF 13510 EOF
13433 if { (eval echo configure:13434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13511 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13434 rm -rf conftest* 13512 rm -rf conftest*
13435 eval "ac_cv_func_socket=yes" 13513 eval "ac_cv_func_socket=yes"
13436 else 13514 else
13437 echo "configure: failed program was:" >&5 13515 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5 13516 cat conftest.$ac_ext >&5
13443 13521
13444 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 13522 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13445 echo "$ac_t""yes" 1>&6 13523 echo "$ac_t""yes" 1>&6
13446 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 13524 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
13447 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 13525 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
13448 echo "configure:13449: checking for netinet/in.h" >&5 13526 echo "configure:13527: checking for netinet/in.h" >&5
13449 13527
13450 cat > conftest.$ac_ext <<EOF 13528 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure" 13529 #line 13530 "configure"
13452 #include "confdefs.h" 13530 #include "confdefs.h"
13453 #include <netinet/in.h> 13531 #include <netinet/in.h>
13454 EOF 13532 EOF
13455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13456 { (eval echo configure:13457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13534 { (eval echo configure:13535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13458 if test -z "$ac_err"; then 13536 if test -z "$ac_err"; then
13459 rm -rf conftest* 13537 rm -rf conftest*
13460 eval "ac_cv_header_$ac_safe=yes" 13538 eval "ac_cv_header_$ac_safe=yes"
13461 else 13539 else
13468 rm -f conftest* 13546 rm -f conftest*
13469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13470 echo "$ac_t""yes" 1>&6 13548 echo "$ac_t""yes" 1>&6
13471 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 13549 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
13472 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 13550 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
13473 echo "configure:13474: checking for arpa/inet.h" >&5 13551 echo "configure:13552: checking for arpa/inet.h" >&5
13474 13552
13475 cat > conftest.$ac_ext <<EOF 13553 cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure" 13554 #line 13555 "configure"
13477 #include "confdefs.h" 13555 #include "confdefs.h"
13478 #include <arpa/inet.h> 13556 #include <arpa/inet.h>
13479 EOF 13557 EOF
13480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13481 { (eval echo configure:13482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13559 { (eval echo configure:13560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13483 if test -z "$ac_err"; then 13561 if test -z "$ac_err"; then
13484 rm -rf conftest* 13562 rm -rf conftest*
13485 eval "ac_cv_header_$ac_safe=yes" 13563 eval "ac_cv_header_$ac_safe=yes"
13486 else 13564 else
13501 #define HAVE_SOCKETS 1 13579 #define HAVE_SOCKETS 1
13502 EOF 13580 EOF
13503 } 13581 }
13504 13582
13505 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 13583 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
13506 echo "configure:13507: checking "for sun_len member in struct sockaddr_un"" >&5 13584 echo "configure:13585: checking "for sun_len member in struct sockaddr_un"" >&5
13507 cat > conftest.$ac_ext <<EOF 13585 cat > conftest.$ac_ext <<EOF
13508 #line 13509 "configure" 13586 #line 13587 "configure"
13509 #include "confdefs.h" 13587 #include "confdefs.h"
13510 13588
13511 #include <sys/types.h> 13589 #include <sys/types.h>
13512 #include <sys/socket.h> 13590 #include <sys/socket.h>
13513 #include <sys/un.h> 13591 #include <sys/un.h>
13514 13592
13515 int main() { 13593 int main() {
13516 static struct sockaddr_un x; x.sun_len = 1; 13594 static struct sockaddr_un x; x.sun_len = 1;
13517 ; return 0; } 13595 ; return 0; }
13518 EOF 13596 EOF
13519 if { (eval echo configure:13520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13520 rm -rf conftest* 13598 rm -rf conftest*
13521 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13599 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13522 Defining HAVE_SOCKADDR_SUN_LEN 13600 Defining HAVE_SOCKADDR_SUN_LEN
13523 EOF 13601 EOF
13524 cat >> confdefs.h <<\EOF 13602 cat >> confdefs.h <<\EOF
13532 rm -rf conftest* 13610 rm -rf conftest*
13533 echo "$ac_t""no" 1>&6 13611 echo "$ac_t""no" 1>&6
13534 fi 13612 fi
13535 rm -f conftest* 13613 rm -f conftest*
13536 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 13614 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
13537 echo "configure:13538: checking "for ip_mreq struct in netinet/in.h"" >&5 13615 echo "configure:13616: checking "for ip_mreq struct in netinet/in.h"" >&5
13538 cat > conftest.$ac_ext <<EOF 13616 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure" 13617 #line 13618 "configure"
13540 #include "confdefs.h" 13618 #include "confdefs.h"
13541 13619
13542 #include <sys/types.h> 13620 #include <sys/types.h>
13543 #include <netinet/in.h> 13621 #include <netinet/in.h>
13544 13622
13545 int main() { 13623 int main() {
13546 static struct ip_mreq x; 13624 static struct ip_mreq x;
13547 ; return 0; } 13625 ; return 0; }
13548 EOF 13626 EOF
13549 if { (eval echo configure:13550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13550 rm -rf conftest* 13628 rm -rf conftest*
13551 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13629 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13552 Defining HAVE_MULTICAST 13630 Defining HAVE_MULTICAST
13553 EOF 13631 EOF
13554 cat >> confdefs.h <<\EOF 13632 cat >> confdefs.h <<\EOF
13575 echo "$ac_t""no" 1>&6 13653 echo "$ac_t""no" 1>&6
13576 fi 13654 fi
13577 13655
13578 13656
13579 echo $ac_n "checking for msgget""... $ac_c" 1>&6 13657 echo $ac_n "checking for msgget""... $ac_c" 1>&6
13580 echo "configure:13581: checking for msgget" >&5 13658 echo "configure:13659: checking for msgget" >&5
13581 13659
13582 cat > conftest.$ac_ext <<EOF 13660 cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure" 13661 #line 13662 "configure"
13584 #include "confdefs.h" 13662 #include "confdefs.h"
13585 /* System header to define __stub macros and hopefully few prototypes, 13663 /* System header to define __stub macros and hopefully few prototypes,
13586 which can conflict with char msgget(); below. */ 13664 which can conflict with char msgget(); below. */
13587 #include <assert.h> 13665 #include <assert.h>
13588 /* Override any gcc2 internal prototype to avoid an error. */ 13666 /* Override any gcc2 internal prototype to avoid an error. */
13601 msgget(); 13679 msgget();
13602 #endif 13680 #endif
13603 13681
13604 ; return 0; } 13682 ; return 0; }
13605 EOF 13683 EOF
13606 if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13684 if { (eval echo configure:13685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13607 rm -rf conftest* 13685 rm -rf conftest*
13608 eval "ac_cv_func_msgget=yes" 13686 eval "ac_cv_func_msgget=yes"
13609 else 13687 else
13610 echo "configure: failed program was:" >&5 13688 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5 13689 cat conftest.$ac_ext >&5
13616 13694
13617 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 13695 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13618 echo "$ac_t""yes" 1>&6 13696 echo "$ac_t""yes" 1>&6
13619 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 13697 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13620 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 13698 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13621 echo "configure:13622: checking for sys/ipc.h" >&5 13699 echo "configure:13700: checking for sys/ipc.h" >&5
13622 13700
13623 cat > conftest.$ac_ext <<EOF 13701 cat > conftest.$ac_ext <<EOF
13624 #line 13625 "configure" 13702 #line 13703 "configure"
13625 #include "confdefs.h" 13703 #include "confdefs.h"
13626 #include <sys/ipc.h> 13704 #include <sys/ipc.h>
13627 EOF 13705 EOF
13628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13629 { (eval echo configure:13630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13707 { (eval echo configure:13708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13631 if test -z "$ac_err"; then 13709 if test -z "$ac_err"; then
13632 rm -rf conftest* 13710 rm -rf conftest*
13633 eval "ac_cv_header_$ac_safe=yes" 13711 eval "ac_cv_header_$ac_safe=yes"
13634 else 13712 else
13641 rm -f conftest* 13719 rm -f conftest*
13642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13643 echo "$ac_t""yes" 1>&6 13721 echo "$ac_t""yes" 1>&6
13644 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 13722 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13645 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 13723 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13646 echo "configure:13647: checking for sys/msg.h" >&5 13724 echo "configure:13725: checking for sys/msg.h" >&5
13647 13725
13648 cat > conftest.$ac_ext <<EOF 13726 cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure" 13727 #line 13728 "configure"
13650 #include "confdefs.h" 13728 #include "confdefs.h"
13651 #include <sys/msg.h> 13729 #include <sys/msg.h>
13652 EOF 13730 EOF
13653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13654 { (eval echo configure:13655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13732 { (eval echo configure:13733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13656 if test -z "$ac_err"; then 13734 if test -z "$ac_err"; then
13657 rm -rf conftest* 13735 rm -rf conftest*
13658 eval "ac_cv_header_$ac_safe=yes" 13736 eval "ac_cv_header_$ac_safe=yes"
13659 else 13737 else
13687 fi 13765 fi
13688 13766
13689 13767
13690 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 13768 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13691 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 13769 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13692 echo "configure:13693: checking for dirent.h" >&5 13770 echo "configure:13771: checking for dirent.h" >&5
13693 13771
13694 cat > conftest.$ac_ext <<EOF 13772 cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure" 13773 #line 13774 "configure"
13696 #include "confdefs.h" 13774 #include "confdefs.h"
13697 #include <dirent.h> 13775 #include <dirent.h>
13698 EOF 13776 EOF
13699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13700 { (eval echo configure:13701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13778 { (eval echo configure:13779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13702 if test -z "$ac_err"; then 13780 if test -z "$ac_err"; then
13703 rm -rf conftest* 13781 rm -rf conftest*
13704 eval "ac_cv_header_$ac_safe=yes" 13782 eval "ac_cv_header_$ac_safe=yes"
13705 else 13783 else
13722 13800
13723 else 13801 else
13724 echo "$ac_t""no" 1>&6 13802 echo "$ac_t""no" 1>&6
13725 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 13803 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13726 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 13804 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13727 echo "configure:13728: checking for sys/dir.h" >&5 13805 echo "configure:13806: checking for sys/dir.h" >&5
13728 13806
13729 cat > conftest.$ac_ext <<EOF 13807 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure" 13808 #line 13809 "configure"
13731 #include "confdefs.h" 13809 #include "confdefs.h"
13732 #include <sys/dir.h> 13810 #include <sys/dir.h>
13733 EOF 13811 EOF
13734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13735 { (eval echo configure:13736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13813 { (eval echo configure:13814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13737 if test -z "$ac_err"; then 13815 if test -z "$ac_err"; then
13738 rm -rf conftest* 13816 rm -rf conftest*
13739 eval "ac_cv_header_$ac_safe=yes" 13817 eval "ac_cv_header_$ac_safe=yes"
13740 else 13818 else
13763 fi 13841 fi
13764 13842
13765 13843
13766 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 13844 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13767 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 13845 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13768 echo "configure:13769: checking for nlist.h" >&5 13846 echo "configure:13847: checking for nlist.h" >&5
13769 13847
13770 cat > conftest.$ac_ext <<EOF 13848 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure" 13849 #line 13850 "configure"
13772 #include "confdefs.h" 13850 #include "confdefs.h"
13773 #include <nlist.h> 13851 #include <nlist.h>
13774 EOF 13852 EOF
13775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13776 { (eval echo configure:13777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13854 { (eval echo configure:13855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13778 if test -z "$ac_err"; then 13856 if test -z "$ac_err"; then
13779 rm -rf conftest* 13857 rm -rf conftest*
13780 eval "ac_cv_header_$ac_safe=yes" 13858 eval "ac_cv_header_$ac_safe=yes"
13781 else 13859 else
13801 fi 13879 fi
13802 13880
13803 13881
13804 13882
13805 echo "checking "for sound support"" 1>&6 13883 echo "checking "for sound support"" 1>&6
13806 echo "configure:13807: checking "for sound support"" >&5 13884 echo "configure:13885: checking "for sound support"" >&5
13807 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13885 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13808 13886
13809 if test "$with_native_sound" != "no"; then 13887 if test "$with_native_sound" != "no"; then
13810 if test -n "$native_sound_lib"; then 13888 if test -n "$native_sound_lib"; then
13811 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13889 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13812 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13890 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13813 echo "configure:13814: checking for multimedia/audio_device.h" >&5 13891 echo "configure:13892: checking for multimedia/audio_device.h" >&5
13814 13892
13815 cat > conftest.$ac_ext <<EOF 13893 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure" 13894 #line 13895 "configure"
13817 #include "confdefs.h" 13895 #include "confdefs.h"
13818 #include <multimedia/audio_device.h> 13896 #include <multimedia/audio_device.h>
13819 EOF 13897 EOF
13820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13821 { (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13899 { (eval echo configure:13900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13823 if test -z "$ac_err"; then 13901 if test -z "$ac_err"; then
13824 rm -rf conftest* 13902 rm -rf conftest*
13825 eval "ac_cv_header_$ac_safe=yes" 13903 eval "ac_cv_header_$ac_safe=yes"
13826 else 13904 else
13864 case "$canonical" in 13942 case "$canonical" in
13865 *-sgi-* ) 13943 *-sgi-* )
13866 if test -z "$native_sound_lib"; then 13944 if test -z "$native_sound_lib"; then
13867 13945
13868 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13946 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13869 echo "configure:13870: checking for ALopenport in -laudio" >&5 13947 echo "configure:13948: checking for ALopenport in -laudio" >&5
13870 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13948 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13871 13949
13872 xe_check_libs=" -laudio " 13950 xe_check_libs=" -laudio "
13873 cat > conftest.$ac_ext <<EOF 13951 cat > conftest.$ac_ext <<EOF
13874 #line 13875 "configure" 13952 #line 13953 "configure"
13875 #include "confdefs.h" 13953 #include "confdefs.h"
13876 /* Override any gcc2 internal prototype to avoid an error. */ 13954 /* Override any gcc2 internal prototype to avoid an error. */
13877 /* We use char because int might match the return type of a gcc2 13955 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */ 13956 builtin and then its argument prototype would still apply. */
13879 char ALopenport(); 13957 char ALopenport();
13880 13958
13881 int main() { 13959 int main() {
13882 ALopenport() 13960 ALopenport()
13883 ; return 0; } 13961 ; return 0; }
13884 EOF 13962 EOF
13885 if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13886 rm -rf conftest* 13964 rm -rf conftest*
13887 eval "ac_cv_lib_$ac_lib_var=yes" 13965 eval "ac_cv_lib_$ac_lib_var=yes"
13888 else 13966 else
13889 echo "configure: failed program was:" >&5 13967 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5 13968 cat conftest.$ac_ext >&5
13911 fi ;; 13989 fi ;;
13912 hppa*-hp-hpux* ) 13990 hppa*-hp-hpux* )
13913 if test -z "$native_sound_lib"; then 13991 if test -z "$native_sound_lib"; then
13914 13992
13915 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13993 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13916 echo "configure:13917: checking for AOpenAudio in -lAlib" >&5 13994 echo "configure:13995: checking for AOpenAudio in -lAlib" >&5
13917 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13995 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13918 13996
13919 xe_check_libs=" -lAlib " 13997 xe_check_libs=" -lAlib "
13920 cat > conftest.$ac_ext <<EOF 13998 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure" 13999 #line 14000 "configure"
13922 #include "confdefs.h" 14000 #include "confdefs.h"
13923 /* Override any gcc2 internal prototype to avoid an error. */ 14001 /* Override any gcc2 internal prototype to avoid an error. */
13924 /* We use char because int might match the return type of a gcc2 14002 /* We use char because int might match the return type of a gcc2
13925 builtin and then its argument prototype would still apply. */ 14003 builtin and then its argument prototype would still apply. */
13926 char AOpenAudio(); 14004 char AOpenAudio();
13927 14005
13928 int main() { 14006 int main() {
13929 AOpenAudio() 14007 AOpenAudio()
13930 ; return 0; } 14008 ; return 0; }
13931 EOF 14009 EOF
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14010 if { (eval echo configure:14011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933 rm -rf conftest* 14011 rm -rf conftest*
13934 eval "ac_cv_lib_$ac_lib_var=yes" 14012 eval "ac_cv_lib_$ac_lib_var=yes"
13935 else 14013 else
13936 echo "configure: failed program was:" >&5 14014 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5 14015 cat conftest.$ac_ext >&5
13975 14053
13976 if test -z "$sound_found"; then 14054 if test -z "$sound_found"; then
13977 for dir in "machine" "sys" "linux"; do 14055 for dir in "machine" "sys" "linux"; do
13978 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 14056 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13979 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 14057 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13980 echo "configure:13981: checking for ${dir}/soundcard.h" >&5 14058 echo "configure:14059: checking for ${dir}/soundcard.h" >&5
13981 14059
13982 cat > conftest.$ac_ext <<EOF 14060 cat > conftest.$ac_ext <<EOF
13983 #line 13984 "configure" 14061 #line 14062 "configure"
13984 #include "confdefs.h" 14062 #include "confdefs.h"
13985 #include <${dir}/soundcard.h> 14063 #include <${dir}/soundcard.h>
13986 EOF 14064 EOF
13987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13988 { (eval echo configure:13989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14066 { (eval echo configure:14067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13990 if test -z "$ac_err"; then 14068 if test -z "$ac_err"; then
13991 rm -rf conftest* 14069 rm -rf conftest*
13992 eval "ac_cv_header_$ac_safe=yes" 14070 eval "ac_cv_header_$ac_safe=yes"
13993 else 14071 else
14037 fi 14115 fi
14038 14116
14039 if test "$with_nas_sound" != "no"; then 14117 if test "$with_nas_sound" != "no"; then
14040 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 14118 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
14041 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 14119 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
14042 echo "configure:14043: checking for audio/audiolib.h" >&5 14120 echo "configure:14121: checking for audio/audiolib.h" >&5
14043 14121
14044 cat > conftest.$ac_ext <<EOF 14122 cat > conftest.$ac_ext <<EOF
14045 #line 14046 "configure" 14123 #line 14124 "configure"
14046 #include "confdefs.h" 14124 #include "confdefs.h"
14047 #include <audio/audiolib.h> 14125 #include <audio/audiolib.h>
14048 EOF 14126 EOF
14049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14050 { (eval echo configure:14051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14128 { (eval echo configure:14129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14052 if test -z "$ac_err"; then 14130 if test -z "$ac_err"; then
14053 rm -rf conftest* 14131 rm -rf conftest*
14054 eval "ac_cv_header_$ac_safe=yes" 14132 eval "ac_cv_header_$ac_safe=yes"
14055 else 14133 else
14063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14064 echo "$ac_t""yes" 1>&6 14142 echo "$ac_t""yes" 1>&6
14065 14143
14066 14144
14067 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14145 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
14068 echo "configure:14069: checking for AuOpenServer in -laudio" >&5 14146 echo "configure:14147: checking for AuOpenServer in -laudio" >&5
14069 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14147 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
14070 14148
14071 xe_check_libs=" -laudio " 14149 xe_check_libs=" -laudio "
14072 cat > conftest.$ac_ext <<EOF 14150 cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure" 14151 #line 14152 "configure"
14074 #include "confdefs.h" 14152 #include "confdefs.h"
14075 /* Override any gcc2 internal prototype to avoid an error. */ 14153 /* Override any gcc2 internal prototype to avoid an error. */
14076 /* We use char because int might match the return type of a gcc2 14154 /* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */ 14155 builtin and then its argument prototype would still apply. */
14078 char AuOpenServer(); 14156 char AuOpenServer();
14079 14157
14080 int main() { 14158 int main() {
14081 AuOpenServer() 14159 AuOpenServer()
14082 ; return 0; } 14160 ; return 0; }
14083 EOF 14161 EOF
14084 if { (eval echo configure:14085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14085 rm -rf conftest* 14163 rm -rf conftest*
14086 eval "ac_cv_lib_$ac_lib_var=yes" 14164 eval "ac_cv_lib_$ac_lib_var=yes"
14087 else 14165 else
14088 echo "configure: failed program was:" >&5 14166 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5 14167 cat conftest.$ac_ext >&5
14118 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14196 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
14119 echo " xemacs will be linked with \"nas.o\"" 14197 echo " xemacs will be linked with \"nas.o\""
14120 fi 14198 fi
14121 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14199 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
14122 cat > conftest.$ac_ext <<EOF 14200 cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure" 14201 #line 14202 "configure"
14124 #include "confdefs.h" 14202 #include "confdefs.h"
14125 #include <audio/Xtutil.h> 14203 #include <audio/Xtutil.h>
14126 EOF 14204 EOF
14127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14128 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14206 egrep "AuXtErrorJump" >/dev/null 2>&1; then
14149 14227
14150 if test "$with_esd_sound" != "no"; then 14228 if test "$with_esd_sound" != "no"; then
14151 # Extract the first word of "esd-config", so it can be a program name with args. 14229 # Extract the first word of "esd-config", so it can be a program name with args.
14152 set dummy esd-config; ac_word=$2 14230 set dummy esd-config; ac_word=$2
14153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14154 echo "configure:14155: checking for $ac_word" >&5 14232 echo "configure:14233: checking for $ac_word" >&5
14155 14233
14156 if test -n "$have_esd_config"; then 14234 if test -n "$have_esd_config"; then
14157 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14235 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
14158 else 14236 else
14159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14178 if test "$have_esd_config" = "yes"; then 14256 if test "$have_esd_config" = "yes"; then
14179 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14257 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
14180 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 14258 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
14181 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14259 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
14182 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14260 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
14183 echo "configure:14184: checking for esd_play_stream" >&5 14261 echo "configure:14262: checking for esd_play_stream" >&5
14184 14262
14185 cat > conftest.$ac_ext <<EOF 14263 cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure" 14264 #line 14265 "configure"
14187 #include "confdefs.h" 14265 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes, 14266 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char esd_play_stream(); below. */ 14267 which can conflict with char esd_play_stream(); below. */
14190 #include <assert.h> 14268 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error. */ 14269 /* Override any gcc2 internal prototype to avoid an error. */
14204 esd_play_stream(); 14282 esd_play_stream();
14205 #endif 14283 #endif
14206 14284
14207 ; return 0; } 14285 ; return 0; }
14208 EOF 14286 EOF
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14287 if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest* 14288 rm -rf conftest*
14211 eval "ac_cv_func_esd_play_stream=yes" 14289 eval "ac_cv_func_esd_play_stream=yes"
14212 else 14290 else
14213 echo "configure: failed program was:" >&5 14291 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5 14292 cat conftest.$ac_ext >&5
14255 14333
14256 test -z "$with_tty" && with_tty=yes 14334 test -z "$with_tty" && with_tty=yes
14257 14335
14258 if test "$with_tty" = "yes" ; then 14336 if test "$with_tty" = "yes" ; then
14259 echo "checking for TTY-related features" 1>&6 14337 echo "checking for TTY-related features" 1>&6
14260 echo "configure:14261: checking for TTY-related features" >&5 14338 echo "configure:14339: checking for TTY-related features" >&5
14261 { test "$extra_verbose" = "yes" && cat << \EOF 14339 { test "$extra_verbose" = "yes" && cat << \EOF
14262 Defining HAVE_TTY 14340 Defining HAVE_TTY
14263 EOF 14341 EOF
14264 cat >> confdefs.h <<\EOF 14342 cat >> confdefs.h <<\EOF
14265 #define HAVE_TTY 1 14343 #define HAVE_TTY 1
14268 14346
14269 14347
14270 if test -z "$with_ncurses"; then 14348 if test -z "$with_ncurses"; then
14271 14349
14272 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14350 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
14273 echo "configure:14274: checking for tgetent in -lncurses" >&5 14351 echo "configure:14352: checking for tgetent in -lncurses" >&5
14274 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14352 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
14275 14353
14276 xe_check_libs=" -lncurses " 14354 xe_check_libs=" -lncurses "
14277 cat > conftest.$ac_ext <<EOF 14355 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure" 14356 #line 14357 "configure"
14279 #include "confdefs.h" 14357 #include "confdefs.h"
14280 /* Override any gcc2 internal prototype to avoid an error. */ 14358 /* Override any gcc2 internal prototype to avoid an error. */
14281 /* We use char because int might match the return type of a gcc2 14359 /* We use char because int might match the return type of a gcc2
14282 builtin and then its argument prototype would still apply. */ 14360 builtin and then its argument prototype would still apply. */
14283 char tgetent(); 14361 char tgetent();
14284 14362
14285 int main() { 14363 int main() {
14286 tgetent() 14364 tgetent()
14287 ; return 0; } 14365 ; return 0; }
14288 EOF 14366 EOF
14289 if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14367 if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14290 rm -rf conftest* 14368 rm -rf conftest*
14291 eval "ac_cv_lib_$ac_lib_var=yes" 14369 eval "ac_cv_lib_$ac_lib_var=yes"
14292 else 14370 else
14293 echo "configure: failed program was:" >&5 14371 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5 14372 cat conftest.$ac_ext >&5
14317 EOF 14395 EOF
14318 } 14396 }
14319 14397
14320 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14398 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14321 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14399 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14322 echo "configure:14323: checking for ncurses/curses.h" >&5 14400 echo "configure:14401: checking for ncurses/curses.h" >&5
14323 14401
14324 cat > conftest.$ac_ext <<EOF 14402 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure" 14403 #line 14404 "configure"
14326 #include "confdefs.h" 14404 #include "confdefs.h"
14327 #include <ncurses/curses.h> 14405 #include <ncurses/curses.h>
14328 EOF 14406 EOF
14329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14330 { (eval echo configure:14331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14408 { (eval echo configure:14409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14332 if test -z "$ac_err"; then 14410 if test -z "$ac_err"; then
14333 rm -rf conftest* 14411 rm -rf conftest*
14334 eval "ac_cv_header_$ac_safe=yes" 14412 eval "ac_cv_header_$ac_safe=yes"
14335 else 14413 else
14347 echo "$ac_t""no" 1>&6 14425 echo "$ac_t""no" 1>&6
14348 fi 14426 fi
14349 14427
14350 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14428 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14351 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14429 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14352 echo "configure:14353: checking for ncurses/term.h" >&5 14430 echo "configure:14431: checking for ncurses/term.h" >&5
14353 14431
14354 cat > conftest.$ac_ext <<EOF 14432 cat > conftest.$ac_ext <<EOF
14355 #line 14356 "configure" 14433 #line 14434 "configure"
14356 #include "confdefs.h" 14434 #include "confdefs.h"
14357 #include <ncurses/term.h> 14435 #include <ncurses/term.h>
14358 EOF 14436 EOF
14359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14360 { (eval echo configure:14361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14438 { (eval echo configure:14439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14362 if test -z "$ac_err"; then 14440 if test -z "$ac_err"; then
14363 rm -rf conftest* 14441 rm -rf conftest*
14364 eval "ac_cv_header_$ac_safe=yes" 14442 eval "ac_cv_header_$ac_safe=yes"
14365 else 14443 else
14385 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 14463 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
14386 save_c_switch_site="$c_switch_site" 14464 save_c_switch_site="$c_switch_site"
14387 c_switch_site="$c_switch_site -I/usr/include/ncurses" 14465 c_switch_site="$c_switch_site -I/usr/include/ncurses"
14388 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14466 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14389 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14467 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14390 echo "configure:14391: checking for ncurses/curses.h" >&5 14468 echo "configure:14469: checking for ncurses/curses.h" >&5
14391 14469
14392 cat > conftest.$ac_ext <<EOF 14470 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure" 14471 #line 14472 "configure"
14394 #include "confdefs.h" 14472 #include "confdefs.h"
14395 #include <ncurses/curses.h> 14473 #include <ncurses/curses.h>
14396 EOF 14474 EOF
14397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14398 { (eval echo configure:14399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14476 { (eval echo configure:14477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14400 if test -z "$ac_err"; then 14478 if test -z "$ac_err"; then
14401 rm -rf conftest* 14479 rm -rf conftest*
14402 eval "ac_cv_header_$ac_safe=yes" 14480 eval "ac_cv_header_$ac_safe=yes"
14403 else 14481 else
14428 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14506 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14429 else 14507 else
14430 for lib in curses termlib termcap; do 14508 for lib in curses termlib termcap; do
14431 14509
14432 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 14510 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
14433 echo "configure:14434: checking for tgetent in -l$lib" >&5 14511 echo "configure:14512: checking for tgetent in -l$lib" >&5
14434 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 14512 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
14435 14513
14436 xe_check_libs=" -l$lib " 14514 xe_check_libs=" -l$lib "
14437 cat > conftest.$ac_ext <<EOF 14515 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure" 14516 #line 14517 "configure"
14439 #include "confdefs.h" 14517 #include "confdefs.h"
14440 /* Override any gcc2 internal prototype to avoid an error. */ 14518 /* Override any gcc2 internal prototype to avoid an error. */
14441 /* We use char because int might match the return type of a gcc2 14519 /* We use char because int might match the return type of a gcc2
14442 builtin and then its argument prototype would still apply. */ 14520 builtin and then its argument prototype would still apply. */
14443 char tgetent(); 14521 char tgetent();
14444 14522
14445 int main() { 14523 int main() {
14446 tgetent() 14524 tgetent()
14447 ; return 0; } 14525 ; return 0; }
14448 EOF 14526 EOF
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14527 if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450 rm -rf conftest* 14528 rm -rf conftest*
14451 eval "ac_cv_lib_$ac_lib_var=yes" 14529 eval "ac_cv_lib_$ac_lib_var=yes"
14452 else 14530 else
14453 echo "configure: failed program was:" >&5 14531 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5 14532 cat conftest.$ac_ext >&5
14475 if test -n "$libs_termcap"; then 14553 if test -n "$libs_termcap"; then
14476 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14554 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14477 else 14555 else
14478 14556
14479 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 14557 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
14480 echo "configure:14481: checking for tgetent in -lcurses" >&5 14558 echo "configure:14559: checking for tgetent in -lcurses" >&5
14481 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 14559 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
14482 14560
14483 xe_check_libs=" -lcurses " 14561 xe_check_libs=" -lcurses "
14484 cat > conftest.$ac_ext <<EOF 14562 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure" 14563 #line 14564 "configure"
14486 #include "confdefs.h" 14564 #include "confdefs.h"
14487 /* Override any gcc2 internal prototype to avoid an error. */ 14565 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2 14566 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */ 14567 builtin and then its argument prototype would still apply. */
14490 char tgetent(); 14568 char tgetent();
14491 14569
14492 int main() { 14570 int main() {
14493 tgetent() 14571 tgetent()
14494 ; return 0; } 14572 ; return 0; }
14495 EOF 14573 EOF
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14574 if { (eval echo configure:14575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14497 rm -rf conftest* 14575 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=yes" 14576 eval "ac_cv_lib_$ac_lib_var=yes"
14499 else 14577 else
14500 echo "configure: failed program was:" >&5 14578 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5 14579 cat conftest.$ac_ext >&5
14509 echo "$ac_t""yes" 1>&6 14587 echo "$ac_t""yes" 1>&6
14510 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 14588 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
14511 else 14589 else
14512 echo "$ac_t""no" 1>&6 14590 echo "$ac_t""no" 1>&6
14513 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 14591 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
14514 echo "configure:14515: checking for tgetent in -ltermcap" >&5 14592 echo "configure:14593: checking for tgetent in -ltermcap" >&5
14515 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 14593 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
14516 14594
14517 xe_check_libs=" -ltermcap " 14595 xe_check_libs=" -ltermcap "
14518 cat > conftest.$ac_ext <<EOF 14596 cat > conftest.$ac_ext <<EOF
14519 #line 14520 "configure" 14597 #line 14598 "configure"
14520 #include "confdefs.h" 14598 #include "confdefs.h"
14521 /* Override any gcc2 internal prototype to avoid an error. */ 14599 /* Override any gcc2 internal prototype to avoid an error. */
14522 /* We use char because int might match the return type of a gcc2 14600 /* We use char because int might match the return type of a gcc2
14523 builtin and then its argument prototype would still apply. */ 14601 builtin and then its argument prototype would still apply. */
14524 char tgetent(); 14602 char tgetent();
14525 14603
14526 int main() { 14604 int main() {
14527 tgetent() 14605 tgetent()
14528 ; return 0; } 14606 ; return 0; }
14529 EOF 14607 EOF
14530 if { (eval echo configure:14531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14531 rm -rf conftest* 14609 rm -rf conftest*
14532 eval "ac_cv_lib_$ac_lib_var=yes" 14610 eval "ac_cv_lib_$ac_lib_var=yes"
14533 else 14611 else
14534 echo "configure: failed program was:" >&5 14612 echo "configure: failed program was:" >&5
14535 cat conftest.$ac_ext >&5 14613 cat conftest.$ac_ext >&5
14573 } 14651 }
14574 14652
14575 14653
14576 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 14654 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14577 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 14655 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14578 echo "configure:14579: checking for gpm.h" >&5 14656 echo "configure:14657: checking for gpm.h" >&5
14579 14657
14580 cat > conftest.$ac_ext <<EOF 14658 cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure" 14659 #line 14660 "configure"
14582 #include "confdefs.h" 14660 #include "confdefs.h"
14583 #include <gpm.h> 14661 #include <gpm.h>
14584 EOF 14662 EOF
14585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14586 { (eval echo configure:14587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14664 { (eval echo configure:14665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14588 if test -z "$ac_err"; then 14666 if test -z "$ac_err"; then
14589 rm -rf conftest* 14667 rm -rf conftest*
14590 eval "ac_cv_header_$ac_safe=yes" 14668 eval "ac_cv_header_$ac_safe=yes"
14591 else 14669 else
14604 with_gpm=no 14682 with_gpm=no
14605 fi 14683 fi
14606 } 14684 }
14607 test -z "$with_gpm" && { 14685 test -z "$with_gpm" && {
14608 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 14686 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14609 echo "configure:14610: checking for Gpm_Open in -lgpm" >&5 14687 echo "configure:14688: checking for Gpm_Open in -lgpm" >&5
14610 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 14688 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14611 14689
14612 xe_check_libs=" -lgpm " 14690 xe_check_libs=" -lgpm "
14613 cat > conftest.$ac_ext <<EOF 14691 cat > conftest.$ac_ext <<EOF
14614 #line 14615 "configure" 14692 #line 14693 "configure"
14615 #include "confdefs.h" 14693 #include "confdefs.h"
14616 /* Override any gcc2 internal prototype to avoid an error. */ 14694 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2 14695 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */ 14696 builtin and then its argument prototype would still apply. */
14619 char Gpm_Open(); 14697 char Gpm_Open();
14620 14698
14621 int main() { 14699 int main() {
14622 Gpm_Open() 14700 Gpm_Open()
14623 ; return 0; } 14701 ; return 0; }
14624 EOF 14702 EOF
14625 if { (eval echo configure:14626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14703 if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14626 rm -rf conftest* 14704 rm -rf conftest*
14627 eval "ac_cv_lib_$ac_lib_var=yes" 14705 eval "ac_cv_lib_$ac_lib_var=yes"
14628 else 14706 else
14629 echo "configure: failed program was:" >&5 14707 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5 14708 cat conftest.$ac_ext >&5
14663 done 14741 done
14664 fi 14742 fi
14665 14743
14666 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 14744 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14667 != "no no no" && echo "checking for database support" 1>&6 14745 != "no no no" && echo "checking for database support" 1>&6
14668 echo "configure:14669: checking for database support" >&5 14746 echo "configure:14747: checking for database support" >&5
14669 14747
14670 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 14748 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14671 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 14749 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14672 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 14750 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14673 echo "configure:14674: checking for ndbm.h" >&5 14751 echo "configure:14752: checking for ndbm.h" >&5
14674 14752
14675 cat > conftest.$ac_ext <<EOF 14753 cat > conftest.$ac_ext <<EOF
14676 #line 14677 "configure" 14754 #line 14755 "configure"
14677 #include "confdefs.h" 14755 #include "confdefs.h"
14678 #include <ndbm.h> 14756 #include <ndbm.h>
14679 EOF 14757 EOF
14680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14681 { (eval echo configure:14682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14759 { (eval echo configure:14760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14683 if test -z "$ac_err"; then 14761 if test -z "$ac_err"; then
14684 rm -rf conftest* 14762 rm -rf conftest*
14685 eval "ac_cv_header_$ac_safe=yes" 14763 eval "ac_cv_header_$ac_safe=yes"
14686 else 14764 else
14706 fi 14784 fi
14707 14785
14708 if test "$with_database_gdbm" != "no"; then 14786 if test "$with_database_gdbm" != "no"; then
14709 14787
14710 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 14788 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14711 echo "configure:14712: checking for dbm_open in -lgdbm" >&5 14789 echo "configure:14790: checking for dbm_open in -lgdbm" >&5
14712 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 14790 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14713 14791
14714 xe_check_libs=" -lgdbm " 14792 xe_check_libs=" -lgdbm "
14715 cat > conftest.$ac_ext <<EOF 14793 cat > conftest.$ac_ext <<EOF
14716 #line 14717 "configure" 14794 #line 14795 "configure"
14717 #include "confdefs.h" 14795 #include "confdefs.h"
14718 /* Override any gcc2 internal prototype to avoid an error. */ 14796 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2 14797 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */ 14798 builtin and then its argument prototype would still apply. */
14721 char dbm_open(); 14799 char dbm_open();
14722 14800
14723 int main() { 14801 int main() {
14724 dbm_open() 14802 dbm_open()
14725 ; return 0; } 14803 ; return 0; }
14726 EOF 14804 EOF
14727 if { (eval echo configure:14728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14805 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14728 rm -rf conftest* 14806 rm -rf conftest*
14729 eval "ac_cv_lib_$ac_lib_var=yes" 14807 eval "ac_cv_lib_$ac_lib_var=yes"
14730 else 14808 else
14731 echo "configure: failed program was:" >&5 14809 echo "configure: failed program was:" >&5
14732 cat conftest.$ac_ext >&5 14810 cat conftest.$ac_ext >&5
14750 14828
14751 fi 14829 fi
14752 14830
14753 if test "$with_database_dbm" != "no"; then 14831 if test "$with_database_dbm" != "no"; then
14754 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 14832 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14755 echo "configure:14756: checking for dbm_open" >&5 14833 echo "configure:14834: checking for dbm_open" >&5
14756 14834
14757 cat > conftest.$ac_ext <<EOF 14835 cat > conftest.$ac_ext <<EOF
14758 #line 14759 "configure" 14836 #line 14837 "configure"
14759 #include "confdefs.h" 14837 #include "confdefs.h"
14760 /* System header to define __stub macros and hopefully few prototypes, 14838 /* System header to define __stub macros and hopefully few prototypes,
14761 which can conflict with char dbm_open(); below. */ 14839 which can conflict with char dbm_open(); below. */
14762 #include <assert.h> 14840 #include <assert.h>
14763 /* Override any gcc2 internal prototype to avoid an error. */ 14841 /* Override any gcc2 internal prototype to avoid an error. */
14776 dbm_open(); 14854 dbm_open();
14777 #endif 14855 #endif
14778 14856
14779 ; return 0; } 14857 ; return 0; }
14780 EOF 14858 EOF
14781 if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14782 rm -rf conftest* 14860 rm -rf conftest*
14783 eval "ac_cv_func_dbm_open=yes" 14861 eval "ac_cv_func_dbm_open=yes"
14784 else 14862 else
14785 echo "configure: failed program was:" >&5 14863 echo "configure: failed program was:" >&5
14786 cat conftest.$ac_ext >&5 14864 cat conftest.$ac_ext >&5
14795 else 14873 else
14796 echo "$ac_t""no" 1>&6 14874 echo "$ac_t""no" 1>&6
14797 14875
14798 14876
14799 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14877 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14800 echo "configure:14801: checking for dbm_open in -ldbm" >&5 14878 echo "configure:14879: checking for dbm_open in -ldbm" >&5
14801 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14879 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14802 14880
14803 xe_check_libs=" -ldbm " 14881 xe_check_libs=" -ldbm "
14804 cat > conftest.$ac_ext <<EOF 14882 cat > conftest.$ac_ext <<EOF
14805 #line 14806 "configure" 14883 #line 14884 "configure"
14806 #include "confdefs.h" 14884 #include "confdefs.h"
14807 /* Override any gcc2 internal prototype to avoid an error. */ 14885 /* Override any gcc2 internal prototype to avoid an error. */
14808 /* We use char because int might match the return type of a gcc2 14886 /* We use char because int might match the return type of a gcc2
14809 builtin and then its argument prototype would still apply. */ 14887 builtin and then its argument prototype would still apply. */
14810 char dbm_open(); 14888 char dbm_open();
14811 14889
14812 int main() { 14890 int main() {
14813 dbm_open() 14891 dbm_open()
14814 ; return 0; } 14892 ; return 0; }
14815 EOF 14893 EOF
14816 if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14894 if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14817 rm -rf conftest* 14895 rm -rf conftest*
14818 eval "ac_cv_lib_$ac_lib_var=yes" 14896 eval "ac_cv_lib_$ac_lib_var=yes"
14819 else 14897 else
14820 echo "configure: failed program was:" >&5 14898 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5 14899 cat conftest.$ac_ext >&5
14852 } 14930 }
14853 14931
14854 14932
14855 if test "$with_database_berkdb" != "no"; then 14933 if test "$with_database_berkdb" != "no"; then
14856 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14934 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14857 echo "configure:14858: checking for Berkeley db.h" >&5 14935 echo "configure:14936: checking for Berkeley db.h" >&5
14858 for header in "db/db.h" "db.h"; do 14936 for header in "db/db.h" "db.h"; do
14859 cat > conftest.$ac_ext <<EOF 14937 cat > conftest.$ac_ext <<EOF
14860 #line 14861 "configure" 14938 #line 14939 "configure"
14861 #include "confdefs.h" 14939 #include "confdefs.h"
14862 14940
14863 #include <stdlib.h> 14941 #include <stdlib.h>
14864 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14942 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14865 #ifdef HAVE_INTTYPES_H 14943 #ifdef HAVE_INTTYPES_H
14877 14955
14878 int main() { 14956 int main() {
14879 14957
14880 ; return 0; } 14958 ; return 0; }
14881 EOF 14959 EOF
14882 if { (eval echo configure:14883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14960 if { (eval echo configure:14961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14883 rm -rf conftest* 14961 rm -rf conftest*
14884 db_h_file="$header"; break 14962 db_h_file="$header"; break
14885 else 14963 else
14886 echo "configure: failed program was:" >&5 14964 echo "configure: failed program was:" >&5
14887 cat conftest.$ac_ext >&5 14965 cat conftest.$ac_ext >&5
14893 else echo "$ac_t""$db_h_file" 1>&6 14971 else echo "$ac_t""$db_h_file" 1>&6
14894 fi 14972 fi
14895 14973
14896 if test "$with_database_berkdb" != "no"; then 14974 if test "$with_database_berkdb" != "no"; then
14897 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14975 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14898 echo "configure:14899: checking for Berkeley DB version" >&5 14976 echo "configure:14977: checking for Berkeley DB version" >&5
14899 cat > conftest.$ac_ext <<EOF 14977 cat > conftest.$ac_ext <<EOF
14900 #line 14901 "configure" 14978 #line 14979 "configure"
14901 #include "confdefs.h" 14979 #include "confdefs.h"
14902 #include <$db_h_file> 14980 #include <$db_h_file>
14903 #if DB_VERSION_MAJOR > 1 14981 #if DB_VERSION_MAJOR > 1
14904 yes 14982 yes
14905 #endif 14983 #endif
14907 EOF 14985 EOF
14908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14909 egrep "yes" >/dev/null 2>&1; then 14987 egrep "yes" >/dev/null 2>&1; then
14910 rm -rf conftest* 14988 rm -rf conftest*
14911 cat > conftest.$ac_ext <<EOF 14989 cat > conftest.$ac_ext <<EOF
14912 #line 14913 "configure" 14990 #line 14991 "configure"
14913 #include "confdefs.h" 14991 #include "confdefs.h"
14914 #include <$db_h_file> 14992 #include <$db_h_file>
14915 #if DB_VERSION_MAJOR > 2 14993 #if DB_VERSION_MAJOR > 2
14916 yes 14994 yes
14917 #endif 14995 #endif
14934 echo "$ac_t""1" 1>&6; dbfunc=dbopen 15012 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14935 fi 15013 fi
14936 rm -f conftest* 15014 rm -f conftest*
14937 15015
14938 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 15016 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14939 echo "configure:14940: checking for $dbfunc" >&5 15017 echo "configure:15018: checking for $dbfunc" >&5
14940 15018
14941 cat > conftest.$ac_ext <<EOF 15019 cat > conftest.$ac_ext <<EOF
14942 #line 14943 "configure" 15020 #line 15021 "configure"
14943 #include "confdefs.h" 15021 #include "confdefs.h"
14944 /* System header to define __stub macros and hopefully few prototypes, 15022 /* System header to define __stub macros and hopefully few prototypes,
14945 which can conflict with char $dbfunc(); below. */ 15023 which can conflict with char $dbfunc(); below. */
14946 #include <assert.h> 15024 #include <assert.h>
14947 /* Override any gcc2 internal prototype to avoid an error. */ 15025 /* Override any gcc2 internal prototype to avoid an error. */
14960 $dbfunc(); 15038 $dbfunc();
14961 #endif 15039 #endif
14962 15040
14963 ; return 0; } 15041 ; return 0; }
14964 EOF 15042 EOF
14965 if { (eval echo configure:14966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15043 if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14966 rm -rf conftest* 15044 rm -rf conftest*
14967 eval "ac_cv_func_$dbfunc=yes" 15045 eval "ac_cv_func_$dbfunc=yes"
14968 else 15046 else
14969 echo "configure: failed program was:" >&5 15047 echo "configure: failed program was:" >&5
14970 cat conftest.$ac_ext >&5 15048 cat conftest.$ac_ext >&5
14979 else 15057 else
14980 echo "$ac_t""no" 1>&6 15058 echo "$ac_t""no" 1>&6
14981 15059
14982 15060
14983 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15061 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14984 echo "configure:14985: checking for $dbfunc in -ldb" >&5 15062 echo "configure:15063: checking for $dbfunc in -ldb" >&5
14985 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15063 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14986 15064
14987 xe_check_libs=" -ldb " 15065 xe_check_libs=" -ldb "
14988 cat > conftest.$ac_ext <<EOF 15066 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure" 15067 #line 15068 "configure"
14990 #include "confdefs.h" 15068 #include "confdefs.h"
14991 /* Override any gcc2 internal prototype to avoid an error. */ 15069 /* Override any gcc2 internal prototype to avoid an error. */
14992 /* We use char because int might match the return type of a gcc2 15070 /* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */ 15071 builtin and then its argument prototype would still apply. */
14994 char $dbfunc(); 15072 char $dbfunc();
14995 15073
14996 int main() { 15074 int main() {
14997 $dbfunc() 15075 $dbfunc()
14998 ; return 0; } 15076 ; return 0; }
14999 EOF 15077 EOF
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15078 if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15001 rm -rf conftest* 15079 rm -rf conftest*
15002 eval "ac_cv_lib_$ac_lib_var=yes" 15080 eval "ac_cv_lib_$ac_lib_var=yes"
15003 else 15081 else
15004 echo "configure: failed program was:" >&5 15082 echo "configure: failed program was:" >&5
15005 cat conftest.$ac_ext >&5 15083 cat conftest.$ac_ext >&5
15056 fi 15134 fi
15057 15135
15058 if test "$with_socks" = "yes"; then 15136 if test "$with_socks" = "yes"; then
15059 15137
15060 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15138 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
15061 echo "configure:15062: checking for SOCKSinit in -lsocks" >&5 15139 echo "configure:15140: checking for SOCKSinit in -lsocks" >&5
15062 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15140 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
15063 15141
15064 xe_check_libs=" -lsocks " 15142 xe_check_libs=" -lsocks "
15065 cat > conftest.$ac_ext <<EOF 15143 cat > conftest.$ac_ext <<EOF
15066 #line 15067 "configure" 15144 #line 15145 "configure"
15067 #include "confdefs.h" 15145 #include "confdefs.h"
15068 /* Override any gcc2 internal prototype to avoid an error. */ 15146 /* Override any gcc2 internal prototype to avoid an error. */
15069 /* We use char because int might match the return type of a gcc2 15147 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */ 15148 builtin and then its argument prototype would still apply. */
15071 char SOCKSinit(); 15149 char SOCKSinit();
15072 15150
15073 int main() { 15151 int main() {
15074 SOCKSinit() 15152 SOCKSinit()
15075 ; return 0; } 15153 ; return 0; }
15076 EOF 15154 EOF
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15155 if { (eval echo configure:15156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15078 rm -rf conftest* 15156 rm -rf conftest*
15079 eval "ac_cv_lib_$ac_lib_var=yes" 15157 eval "ac_cv_lib_$ac_lib_var=yes"
15080 else 15158 else
15081 echo "configure: failed program was:" >&5 15159 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5 15160 cat conftest.$ac_ext >&5
15126 15204
15127 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 15205 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
15128 fi 15206 fi
15129 15207
15130 cat > conftest.$ac_ext <<EOF 15208 cat > conftest.$ac_ext <<EOF
15131 #line 15132 "configure" 15209 #line 15210 "configure"
15132 #include "confdefs.h" 15210 #include "confdefs.h"
15133 int main(int c,char *v[]){return 0;} 15211 int main(int c,char *v[]){return 0;}
15134 EOF 15212 EOF
15135 if { (eval echo configure:15136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15213 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15136 then 15214 then
15137 : 15215 :
15138 else 15216 else
15139 conftest_rc="$?" 15217 conftest_rc="$?"
15140 echo "configure: failed program was:" >&5 15218 echo "configure: failed program was:" >&5