comparison configure @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children da8ed4261e83
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
1 #! /bin/sh 1 #! /bin/sh
2 2
3 #### Configuration script for XEmacs. Largely divergent from FSF. 3 #### Configuration script for XEmacs. Largely divergent from FSF.
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.12
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 93, 94, 95, 96 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 Ben Wing. 9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston. 10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script! 12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program 13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'. 14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command 15 ### To rebuild it, execute the command
16 ### autoconf 16 ### autoconf
17 ### in the this directory. You must have autoconf version 2.13 or later. 17 ### in the this directory. You must have autoconf version 2.12 or later.
18 18
19 ### This file is part of XEmacs. 19 ### This file is part of XEmacs.
20 20
21 ### XEmacs is free software; you can redistribute it and/or modify it 21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by 22 ### under the terms of the GNU General Public License as published by
90 infodir='${prefix}/info' 90 infodir='${prefix}/info'
91 mandir='${prefix}/man' 91 mandir='${prefix}/man'
92 92
93 subdirs= 93 subdirs=
94 MFLAGS= MAKEFLAGS= 94 MFLAGS= MAKEFLAGS=
95 SHELL=${CONFIG_SHELL-/bin/sh}
96 ac_max_here_lines=12 95 ac_max_here_lines=12
97 96
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 98
100 # File descriptor usage: 99 # File descriptor usage:
198 ac_cpp='$CPP '"$xe_cppflags" 197 ac_cpp='$CPP '"$xe_cppflags"
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
201 cross_compiling=no 200 cross_compiling=no
202 201
203 ac_exeext=
204 ac_objext=o
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 202 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 203 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 204 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
208 ac_n= ac_c=' 205 ac_n= ac_c='
209 ' ac_t=' ' 206 ' ac_t=' '
226 bindir='${exec_prefix}/bin' 223 bindir='${exec_prefix}/bin'
227 datadir='${prefix}/lib' 224 datadir='${prefix}/lib'
228 statedir='${prefix}/lib' 225 statedir='${prefix}/lib'
229 libdir='${exec_prefix}/lib' 226 libdir='${exec_prefix}/lib'
230 mandir='${prefix}/man/man1' 227 mandir='${prefix}/man/man1'
231 inststaticdir='${PROGNAME}' 228 infodir='${datadir}/${PROGNAME}-${version}/info'
232 instvardir='${PROGNAME}-${version}'
233 infodir='${datadir}/${instvardir}/info'
234 infopath='' 229 infopath=''
235 install_pp='' 230 install_pp=''
236 lispdir='${datadir}/${instvardir}/lisp' 231 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
237 moduledir='${datadir}/${instvardir}/${configuration}/modules' 232 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules'
238 sitelispdir='${datadir}/${inststaticdir}/site-lisp' 233 sitelispdir='${datadir}/xemacs/site-lisp'
239 sitemoduledir='${datadir}/${inststaticdir}/site-modules' 234 sitemoduledir='${datadir}/xemacs/site-modules'
240 pkgdir='${datadir}/${instvardir}/lisp' 235 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
241 package_path='' 236 package_path=''
242 etcdir='${datadir}/${instvardir}/etc' 237 etcdir='${datadir}/${PROGNAME}-${version}/etc'
243 archlibdir='${datadir}/${instvardir}/${configuration}' 238 lockdir='${statedir}/${PROGNAME}/lock'
244 docdir='${archlibdir}' 239 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}'
245 with_prefix='yes'
246 with_site_lisp='no' 240 with_site_lisp='no'
247 with_site_modules='yes' 241 with_site_modules='yes'
248 with_menubars='' 242 with_menubars=''
249 with_scrollbars='' 243 with_scrollbars=''
250 with_widgets=''
251 with_dialogs='' 244 with_dialogs=''
252 with_file_coding='' 245 with_file_coding=''
253 cpp='' cppflags='' libs='' ldflags='' 246 cpp='' cppflags='' libs='' ldflags=''
254 dynamic='' 247 dynamic=''
255 with_x11='' 248 with_x11=''
261 use_assertions="yes" 254 use_assertions="yes"
262 with_toolbars="" 255 with_toolbars=""
263 with_tty="" 256 with_tty=""
264 use_union_type="no" 257 use_union_type="no"
265 with_dnet="" 258 with_dnet=""
266 pdump="no"
267 with_dragndrop="no"
268 259
269 260
270 261
271 262
272 arguments="$@" 263 arguments="$@"
311 esac 302 esac
312 303
313 case "$opt" in 304 case "$opt" in
314 305
315 with_site_lisp | \ 306 with_site_lisp | \
316 with_prefix | \ 307 with_site_modules | \
317 with_site_modules | \
318 with_x | \ 308 with_x | \
319 with_x11 | \ 309 with_x11 | \
320 with_msw | \ 310 with_msw | \
321 with_gcc | \ 311 with_gcc | \
322 dynamic | \ 312 dynamic | \
331 with_xface | \ 321 with_xface | \
332 with_gif | \ 322 with_gif | \
333 with_jpeg | \ 323 with_jpeg | \
334 with_png | \ 324 with_png | \
335 with_tiff | \ 325 with_tiff | \
336 with_wmcommand | \ 326 with_session | \
337 with_xmu | \ 327 with_xmu | \
338 with_purify | \ 328 with_purify | \
339 with_quantify | \ 329 with_quantify | \
340 with_toolbars | \ 330 with_toolbars | \
341 with_tty | \ 331 with_tty | \
348 with_wnn6 | \ 338 with_wnn6 | \
349 with_workshop | \ 339 with_workshop | \
350 with_sparcworks | \ 340 with_sparcworks | \
351 with_tooltalk | \ 341 with_tooltalk | \
352 with_ldap | \ 342 with_ldap | \
353 with_postgresql | \
354 with_pop | \ 343 with_pop | \
355 with_kerberos | \ 344 with_kerberos | \
356 with_hesiod | \ 345 with_hesiod | \
357 with_dnet | \ 346 with_dnet | \
358 with_infodock | \ 347 with_infodock | \
359 external_widget | \ 348 external_widget | \
360 verbose | \ 349 verbose | \
361 extra_verbose | \ 350 extra_verbose | \
351 const_is_losing | \
362 usage_tracking | \ 352 usage_tracking | \
363 use_union_type | \ 353 use_union_type | \
364 pdump | \
365 debug | \ 354 debug | \
366 use_assertions | \ 355 use_assertions | \
367 memory_usage_stats | \ 356 memory_usage_stats | \
368 with_clash_detection | \ 357 with_clash_detection | \
369 with_modules | \ 358 with_shlib | \
370 quick_build ) 359 no_doc_file )
371 case "$val" in 360 case "$val" in
372 y | ye | yes ) val=yes ;; 361 y | ye | yes ) val=yes ;;
373 n | no ) val=no ;; 362 n | no ) val=no ;;
374 * ) (echo "$progname: Usage error:" 363 * ) (echo "$progname: Usage error:"
375 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'." 364 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
423 ;; 412 ;;
424 413
425 "with_database" ) 414 "with_database" )
426 with_database_berkdb=no 415 with_database_berkdb=no
427 with_database_dbm=no 416 with_database_dbm=no
428 with_database_gdbm=no 417 with_database_gnudbm=no
429 for x in `echo "$val" | sed -e 's/,/ /g'` ; do 418 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
430 case "$x" in 419 case "$x" in
431 no ) ;; 420 no ) ;;
432 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; 421 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
433 d | db | dbm ) with_database_dbm=yes ;; 422 d | db | dbm ) with_database_dbm=yes ;;
434 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;; 423 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
435 * ) (echo "$progname: Usage error:" 424 * ) (echo "$progname: Usage error:"
436 echo " " "The \`--$optname' option value 425 echo " " "The \`--$optname' option value
437 must be either \`no' or a comma-separated list 426 must be either \`no' or a comma-separated list
438 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'." 427 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
439 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 428 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
440 esac 429 esac
441 done 430 done
442 if test "$with_database_dbm" = "yes" -a \ 431 if test "$with_database_dbm" = "yes" -a \
443 "$with_database_gdbm" = "yes"; then 432 "$with_database_gnudbm" = "yes"; then
444 (echo "$progname: Usage error:" 433 (echo "$progname: Usage error:"
445 echo " " "Only one of \`dbm' and \`gnudbm' may be specified 434 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
446 with the \`--$optname' option." 435 with the \`--$optname' option."
447 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
448 fi 437 fi
449 ;; 438 ;;
450 439
451 "with_sound" ) 440 "with_sound" )
452 for x in `echo "$val" | sed -e 's/,/ /g'` ; do 441 case "$val" in
453 case "$x" in 442 y | ye | yes ) val=native ;;
454 n | no | non | none ) new_sdefault=no ;; 443 n | no | non | none ) val=no;;
455 a | al | all | both ) new_sdefault=yes ;; 444 na | nat | nati | nativ | native ) val=native ;;
456 445 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
457 native ) with_native_sound=yes ;; 446 b | bo | bot | both ) val=both;;
458 nonative ) with_native_sound=no ;;
459
460 nas ) with_nas_sound=yes ;;
461 nonas ) with_nas_sound=no ;;
462
463 esd ) with_esd_sound=yes ;;
464 noesd ) with_esd_sound=no ;;
465
466 * ) bogus_sound=yes ;;
467 esac
468 if test "$bogus_sound" -o \
469 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
470 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
471 (echo "$progname: Usage error:"
472 echo " " "Valid types for the \`--$optname' option are:
473 $types.
474 The default is to autodetect all sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
481 fi
482 sound_notfirst=true
483 done
484 ;;
485
486 "with_athena" )
487 case "$val" in
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:" 447 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values: 448 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'." 449 \`native', \`nas', \`both', or \`none'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
497 esac 451 esac
498 eval "$opt=\"$val\"" 452 eval "$opt=\"$val\""
499 ;; 453 ;;
500 454
514 468
515 "mail_locking" ) 469 "mail_locking" )
516 case "$val" in 470 case "$val" in
517 lockf ) val=lockf ;; 471 lockf ) val=lockf ;;
518 flock ) val=flock ;; 472 flock ) val=flock ;;
519 file | dot ) val=file ;; 473 file ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:" 474 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values: 475 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'." 476 \`lockf', \`flock', or \`file'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
525 esac 478 esac
526 eval "$opt=\"$val\"" 479 eval "$opt=\"$val\""
527 ;; 480 ;;
528 481
546 nogc ) error_check_gc=no ;; 499 nogc ) error_check_gc=no ;;
547 500
548 malloc ) error_check_malloc=yes ;; 501 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;; 502 nomalloc ) error_check_malloc=no ;;
550 503
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
553
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
556
557 * ) bogus_error_check=yes ;; 504 * ) bogus_error_check=yes ;;
558 esac 505 esac
559 if test "$bogus_error_check" -o \ 506 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then 507 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then 508 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'." 509 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
563 else 510 else
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'." 511 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
565 fi 512 fi
566 (echo "$progname: Usage error:" 513 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are: 514 echo " " "Valid types for the \`--$optname' option are:
568 $types." 515 $types."
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 516 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
571 error_check_extents=$new_default 518 error_check_extents=$new_default
572 error_check_typecheck=$new_default 519 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default 520 error_check_bufpos=$new_default
574 error_check_gc=$new_default 521 error_check_gc=$new_default
575 error_check_malloc=$new_default 522 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this 523 new_default= # reset this
579 fi 524 fi
580 echeck_notfirst=true 525 echeck_notfirst=true
581 done 526 done
582 ;; 527 ;;
583 528
584 529
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ 530 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \ 531 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
587 archlibdir | docdir | package_path ) 532 archlibdir | docdir | package_path )
588 if test "$valomitted" = "yes"; then 533 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then 534 if test "$#" = 0; then
590 (echo "$progname: Usage error:" 535 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value." 536 echo " " "The \`--$optname' option requires a value."
594 val="$1"; shift 539 val="$1"; shift
595 fi 540 fi
596 eval "$opt=\"$val\"" 541 eval "$opt=\"$val\""
597 542
598 case "$opt" in 543 case "$opt" in
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
601 EOF
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
604 EOF
605 }
606 ;;
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF 544 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED 545 Defining LISPDIR_USER_DEFINED
609 EOF 546 EOF
610 cat >> confdefs.h <<\EOF 547 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1 548 #define LISPDIR_USER_DEFINED 1
691 cat >> confdefs.h <<\EOF 628 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1 629 #define ETCDIR_USER_DEFINED 1
693 EOF 630 EOF
694 } 631 }
695 ;; 632 ;;
696 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF 633 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED 634 Defining LOCKDIR_USER_DEFINED
698 EOF 635 EOF
699 cat >> confdefs.h <<\EOF 636 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1 637 #define LOCKDIR_USER_DEFINED 1
701 EOF 638 EOF
702 } 639 }
703 ;; 640 ;;
704 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF 641 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED 642 Defining ARCHLIBDIR_USER_DEFINED
716 653
717 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; 654 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
718 655
719 "with_menubars" | \ 656 "with_menubars" | \
720 "with_scrollbars" | \ 657 "with_scrollbars" | \
721 "with_dialogs" | \ 658 "with_dialogs" )
722 "with_widgets" )
723 case "$val" in 659 case "$val" in
724 l | lu | luc | luci | lucid ) val=lucid ;; 660 l | lu | luc | luci | lucid ) val=lucid ;;
725 m | mo | mot | moti | motif ) val=motif ;; 661 m | mo | mot | moti | motif ) val=motif ;;
662 athena3d | athena-3d ) val=athena3d ;;
726 a | at | ath | athe | athen | athena ) val=athena ;; 663 a | at | ath | athe | athen | athena ) val=athena ;;
727 n | no | non | none ) val=no ;; 664 n | no | non | none ) val=no ;;
728 y | ye | yes ) val=yes ;;
729 * ) (echo "$progname: Usage error:" 665 * ) (echo "$progname: Usage error:"
730 echo " " "The \`--$optname' option must have one of these values: 666 echo " " "The \`--$optname' option must have one of these values:
731 \`lucid', \`motif', \`athena', \`yes', or \`no'." 667 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
732 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 668 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
733 esac 669 esac
734 eval "$opt=\"$val\"" 670 eval "$opt=\"$val\""
735 ;; 671 ;;
736 672
737 "use_minimal_tagbits" | \ 673 "run_in_place" | \
738 "use_indexed_lrecord_implementation" | \
739 "run_in_place" | \
740 "const_is_losing" | \
741 "with_gnu_make" ) 674 "with_gnu_make" )
742 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2 675 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
743 ;; 676 ;;
744 677
745 * ) (echo "$progname: Usage error:" 678 * ) (echo "$progname: Usage error:"
828 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 761 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 fi 762 fi
830 fi 763 fi
831 764
832 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 765 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
833 echo "configure:834: checking whether ln -s works" >&5 766 echo "configure:767: checking whether ln -s works" >&5
834 767
835 rm -f conftestdata 768 rm -f conftestdata
836 if ln -s X conftestdata 2>/dev/null 769 if ln -s X conftestdata 2>/dev/null
837 then 770 then
838 rm -f conftestdata 771 rm -f conftestdata
846 else 779 else
847 echo "$ac_t""no" 1>&6 780 echo "$ac_t""no" 1>&6
848 fi 781 fi
849 782
850 783
851 for dir in lisp etc man info tests; do 784 for dir in lisp etc man info; do
852 if test ! -d "$dir" ; then 785 if test ! -d "$dir" ; then
853 echo Making symbolic link to "$srcdir/$dir" 786 echo Making symbolic link to "$srcdir/$dir"
854 ${LN_S} "$srcdir/$dir" "$dir" 787 ${LN_S} "$srcdir/$dir" "$dir"
855 fi 788 fi
856 done 789 done
893 vpath %.s $(srcdir)\ 826 vpath %.s $(srcdir)\
894 vpath %.in $(srcdir)' 827 vpath %.in $(srcdir)'
895 fi 828 fi
896 829
897 . "$srcdir/version.sh" || exit 1; 830 . "$srcdir/version.sh" || exit 1;
898 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi 831 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
899 : "${extra_verbose=$beta}" 832 : "${extra_verbose=$beta}"
900 version="${emacs_major_version}.${emacs_minor_version}" 833 version="${emacs_major_version}.${emacs_minor_version}"
901 { test "$extra_verbose" = "yes" && cat << EOF 834 { test "$extra_verbose" = "yes" && cat << EOF
902 Defining EMACS_MAJOR_VERSION = $emacs_major_version 835 Defining EMACS_MAJOR_VERSION = $emacs_major_version
903 EOF 836 EOF
912 cat >> confdefs.h <<EOF 845 cat >> confdefs.h <<EOF
913 #define EMACS_MINOR_VERSION $emacs_minor_version 846 #define EMACS_MINOR_VERSION $emacs_minor_version
914 EOF 847 EOF
915 } 848 }
916 849
917 if test -n "$emacs_beta_version" ; then 850 if test -n "$emacs_beta_version"; then
918 if test "$beta" = "yes"; then 851 version="${version}-b${emacs_beta_version}"
919 version="${version}-b${emacs_beta_version}" 852 { test "$extra_verbose" = "yes" && cat << EOF
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_BETA_VERSION = $emacs_beta_version 853 Defining EMACS_BETA_VERSION = $emacs_beta_version
922 EOF 854 EOF
923 cat >> confdefs.h <<EOF 855 cat >> confdefs.h <<EOF
924 #define EMACS_BETA_VERSION $emacs_beta_version 856 #define EMACS_BETA_VERSION $emacs_beta_version
925 EOF 857 EOF
926 } 858 }
927 859
928 else
929 version="${version}.${emacs_beta_version}"
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
932 EOF
933 cat >> confdefs.h <<EOF
934 #define EMACS_PATCH_LEVEL $emacs_beta_version
935 EOF
936 }
937
938 fi
939 fi 860 fi
940 { test "$extra_verbose" = "yes" && cat << EOF 861 { test "$extra_verbose" = "yes" && cat << EOF
941 Defining XEMACS_CODENAME = "$xemacs_codename" 862 Defining XEMACS_CODENAME = "$xemacs_codename"
942 EOF 863 EOF
943 cat >> confdefs.h <<EOF 864 cat >> confdefs.h <<EOF
953 EOF 874 EOF
954 } 875 }
955 876
956 877
957 if test "$with_infodock" = "yes"; then 878 if test "$with_infodock" = "yes"; then
958 if test ! -f ../../ID-INSTALL; then 879 if test ! -f ../ID-INSTALL; then
959 echo "Cannot build InfoDock without InfoDock sources" 880 echo "Cannot build InfoDock without InfoDock sources"
960 with_infodock=no 881 with_infodock=no
961 fi 882 fi
962 fi 883 fi
963 884
991 CPPFLAGS="$CPPFLAGS -DINFODOCK" 912 CPPFLAGS="$CPPFLAGS -DINFODOCK"
992 else 913 else
993 PROGNAME=xemacs 914 PROGNAME=xemacs
994 fi 915 fi
995 916
996 { test "$extra_verbose" = "yes" && cat << EOF 917 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
997 Defining EMACS_PROGNAME = "$PROGNAME"
998 EOF
999 cat >> confdefs.h <<EOF
1000 #define EMACS_PROGNAME "$PROGNAME"
1001 EOF
1002 }
1003
1004
1005 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1006 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF 918 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1007 Defining ERROR_CHECK_EXTENTS 919 Defining ERROR_CHECK_EXTENTS
1008 EOF 920 EOF
1009 cat >> confdefs.h <<\EOF 921 cat >> confdefs.h <<\EOF
1010 #define ERROR_CHECK_EXTENTS 1 922 #define ERROR_CHECK_EXTENTS 1
1038 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF 950 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1039 Defining ERROR_CHECK_MALLOC 951 Defining ERROR_CHECK_MALLOC
1040 EOF 952 EOF
1041 cat >> confdefs.h <<\EOF 953 cat >> confdefs.h <<\EOF
1042 #define ERROR_CHECK_MALLOC 1 954 #define ERROR_CHECK_MALLOC 1
1043 EOF
1044 }
1045
1046 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1047 Defining ERROR_CHECK_BYTE_CODE
1048 EOF
1049 cat >> confdefs.h <<\EOF
1050 #define ERROR_CHECK_BYTE_CODE 1
1051 EOF
1052 }
1053
1054 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1055 Defining ERROR_CHECK_GLYPHS
1056 EOF
1057 cat >> confdefs.h <<\EOF
1058 #define ERROR_CHECK_GLYPHS 1
1059 EOF 955 EOF
1060 } 956 }
1061 957
1062 if test "${debug:=$beta}" = "yes"; then 958 if test "${debug:=$beta}" = "yes"; then
1063 use_assertions=yes memory_usage_stats=yes 959 use_assertions=yes memory_usage_stats=yes
1064 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then 960 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1065 echo " xemacs will be linked with \"debug.o\"" 961 echo " xemacs will be linked with \"debug.o\""
1066 fi 962 fi
1067 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1068 echo " xemacs will be linked with \"tests.o\""
1069 fi
1070 { test "$extra_verbose" = "yes" && cat << \EOF 963 { test "$extra_verbose" = "yes" && cat << \EOF
1071 Defining DEBUG_XEMACS 964 Defining DEBUG_XEMACS
1072 EOF 965 EOF
1073 cat >> confdefs.h <<\EOF 966 cat >> confdefs.h <<\EOF
1074 #define DEBUG_XEMACS 1 967 #define DEBUG_XEMACS 1
1093 } 986 }
1094 987
1095 988
1096 989
1097 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 990 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1098 echo "configure:1099: checking "host system type"" >&5 991 echo "configure:992: checking "host system type"" >&5
1099 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 992 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1100 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 993 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1101 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 994 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1102 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 995 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1103 echo "$ac_t""$configuration" 1>&6 996 echo "$ac_t""$configuration" 1>&6
1111 case "$canonical" in 1004 case "$canonical" in
1112 sparc-*-* ) machine=sparc ;; 1005 sparc-*-* ) machine=sparc ;;
1113 alpha*-*-* ) machine=alpha ;; 1006 alpha*-*-* ) machine=alpha ;;
1114 vax-*-* ) machine=vax ;; 1007 vax-*-* ) machine=vax ;;
1115 mips-dec-* ) machine=pmax ;; 1008 mips-dec-* ) machine=pmax ;;
1116 mips-sgi-irix6* ) machine=iris6d ;;
1117 mips-sgi-* ) machine=iris4d ;; 1009 mips-sgi-* ) machine=iris4d ;;
1118 mips*-linux ) machine=mips ;;
1119 romp-ibm-* ) machine=ibmrt ;; 1010 romp-ibm-* ) machine=ibmrt ;;
1120 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1011 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1121 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1012 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1122 powerpc*-* ) machine=powerpc ;; 1013 powerpc*-* ) machine=powerpc ;;
1123 hppa-*-* ) machine=hp800 ;; 1014 hppa-*-* ) machine=hp800 ;;
1124 m88k-dg-* ) machine=aviion ;; 1015 m88k-dg-* ) machine=aviion ;;
1125 m68*-sony-* ) machine=news ;; 1016 m68*-sony-* ) machine=news ;;
1126 mips-sony-* ) machine=news-risc ;; 1017 mips-sony-* ) machine=news-risc ;;
1127 clipper-* ) machine=clipper ;; 1018 clipper-* ) machine=clipper ;;
1128 arm* ) machine=arm ;; 1019 arm-* ) machine=arm ;;
1129 ns32k-* ) machine=ns32000 ;; 1020 ns32k-* ) machine=ns32000 ;;
1130 s390-* ) machine=s390 ;;
1131 esac 1021 esac
1132 1022
1133 case "$canonical" in 1023 case "$canonical" in
1134 *-*-linux* ) opsys=linux ;; 1024 *-*-linux* ) opsys=linux ;;
1135 *-*-netbsd* ) opsys=netbsd ;; 1025 *-*-netbsd* ) opsys=netbsd ;;
1479 if test "$dynamic" = "yes" ; then 1369 if test "$dynamic" = "yes" ; then
1480 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1370 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1481 else 1371 else
1482 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1372 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1483 fi ;; 1373 fi ;;
1484 *-sysv5* ) opsys=sco7 ;;
1485 *-386bsd* ) opsys=386bsd ;; 1374 *-386bsd* ) opsys=386bsd ;;
1486 *-freebsd* ) opsys=freebsd ;; 1375 *-freebsd* ) opsys=freebsd ;;
1487 *-nextstep* ) opsys=nextstep ;; 1376 *-nextstep* ) opsys=nextstep ;;
1488 *-pc-cygwin* ) opsys=cygwin32 ;; 1377 *-pc-cygwin* ) opsys=cygwin32 ;;
1489 *-pc-mingw* ) opsys=mingw32 ; 1378 *-pc-mingw* ) opsys=mingw32 ;
1560 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then 1449 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1561 echo " xemacs will be linked with \"sunpro.o\"" 1450 echo " xemacs will be linked with \"sunpro.o\""
1562 fi 1451 fi
1563 fi 1452 fi
1564 1453
1565 if test "$with_clash_detection" != "no"; then 1454 if test "$with_clash_detection" = "yes"; then
1566 { test "$extra_verbose" = "yes" && cat << \EOF 1455 { test "$extra_verbose" = "yes" && cat << \EOF
1567 Defining CLASH_DETECTION 1456 Defining CLASH_DETECTION
1568 EOF 1457 EOF
1569 cat >> confdefs.h <<\EOF 1458 cat >> confdefs.h <<\EOF
1570 #define CLASH_DETECTION 1 1459 #define CLASH_DETECTION 1
1589 xe_save_CFLAGS="$CFLAGS" 1478 xe_save_CFLAGS="$CFLAGS"
1590 1479
1591 # Extract the first word of "gcc", so it can be a program name with args. 1480 # Extract the first word of "gcc", so it can be a program name with args.
1592 set dummy gcc; ac_word=$2 1481 set dummy gcc; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5 1483 echo "configure:1484: checking for $ac_word" >&5
1595 1484
1596 if test -n "$CC"; then 1485 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test. 1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else 1487 else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1600 ac_dummy="$PATH" 1489 for ac_dir in $PATH; do
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=. 1490 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then 1491 if test -f $ac_dir/$ac_word; then
1604 ac_cv_prog_CC="gcc" 1492 ac_cv_prog_CC="gcc"
1605 break 1493 break
1606 fi 1494 fi
1616 1504
1617 if test -z "$CC"; then 1505 if test -z "$CC"; then
1618 # Extract the first word of "cc", so it can be a program name with args. 1506 # Extract the first word of "cc", so it can be a program name with args.
1619 set dummy cc; ac_word=$2 1507 set dummy cc; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5 1509 echo "configure:1510: checking for $ac_word" >&5
1622 1510
1623 if test -n "$CC"; then 1511 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test. 1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else 1513 else
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1627 ac_prog_rejected=no 1515 ac_prog_rejected=no
1628 ac_dummy="$PATH" 1516 for ac_dir in $PATH; do
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=. 1517 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then 1518 if test -f $ac_dir/$ac_word; then
1632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1519 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1633 ac_prog_rejected=yes 1520 ac_prog_rejected=yes
1634 continue 1521 continue
1658 echo "$ac_t""$CC" 1>&6 1545 echo "$ac_t""$CC" 1>&6
1659 else 1546 else
1660 echo "$ac_t""no" 1>&6 1547 echo "$ac_t""no" 1>&6
1661 fi 1548 fi
1662 1549
1663 if test -z "$CC"; then
1664 case "`uname -s`" in
1665 *win32* | *WIN32*)
1666 # Extract the first word of "cl", so it can be a program name with args.
1667 set dummy cl; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1675 ac_dummy="$PATH"
1676 for ac_dir in $ac_dummy; do
1677 test -z "$ac_dir" && ac_dir=.
1678 if test -f $ac_dir/$ac_word; then
1679 ac_cv_prog_CC="cl"
1680 break
1681 fi
1682 done
1683 IFS="$ac_save_ifs"
1684 fi
1685 CC="$ac_cv_prog_CC"
1686 if test -n "$CC"; then
1687 echo "$ac_t""$CC" 1>&6
1688 else
1689 echo "$ac_t""no" 1>&6
1690 fi
1691 ;;
1692 esac
1693 fi
1694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1550 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1695 fi 1551 fi
1696 1552
1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1553 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1554 echo "configure:1555: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1699 1555
1700 ac_ext=c 1556 ac_ext=c
1701 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1557 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1702 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1558 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1703 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1559 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1704 ac_cpp='$CPP '"$xe_cppflags" 1560 ac_cpp='$CPP '"$xe_cppflags"
1705 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1561 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1706 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1562 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1707 cross_compiling=no 1563 cross_compiling=no
1708 1564
1709 cat > conftest.$ac_ext << EOF 1565 cat > conftest.$ac_ext <<EOF
1710 1566 #line 1567 "configure"
1711 #line 1712 "configure" 1567 #include "confdefs.h"
1712 #include "confdefs.h"
1713
1714 main(){return(0);} 1568 main(){return(0);}
1715 EOF 1569 EOF
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1717 ac_cv_prog_cc_works=yes 1571 ac_cv_prog_cc_works=yes
1718 # If we can't run a trivial program, we are probably using a cross compiler. 1572 # If we can't run a trivial program, we are probably using a cross compiler.
1719 if (./conftest; exit) 2>/dev/null; then 1573 if (./conftest; exit) 2>/dev/null; then
1720 ac_cv_prog_cc_cross=no 1574 ac_cv_prog_cc_cross=no
1721 else 1575 else
1725 echo "configure: failed program was:" >&5 1579 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5 1580 cat conftest.$ac_ext >&5
1727 ac_cv_prog_cc_works=no 1581 ac_cv_prog_cc_works=no
1728 fi 1582 fi
1729 rm -fr conftest* 1583 rm -fr conftest*
1730 ac_ext=c
1731 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1732 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1733 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1734 ac_cpp='$CPP '"$xe_cppflags"
1735 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1736 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1737 cross_compiling=no
1738 1584
1739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1585 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1740 if test $ac_cv_prog_cc_works = no; then 1586 if test $ac_cv_prog_cc_works = no; then
1741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1587 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1742 fi 1588 fi
1743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1589 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1590 echo "configure:1591: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1591 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1746 cross_compiling=$ac_cv_prog_cc_cross 1592 cross_compiling=$ac_cv_prog_cc_cross
1747 1593
1748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1594 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether we are using GNU C" >&5 1595 echo "configure:1596: checking whether we are using GNU C" >&5
1750 1596
1751 cat > conftest.c <<EOF 1597 cat > conftest.c <<EOF
1752 #ifdef __GNUC__ 1598 #ifdef __GNUC__
1753 yes; 1599 yes;
1754 #endif 1600 #endif
1755 EOF 1601 EOF
1756 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1602 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1757 ac_cv_prog_gcc=yes 1603 ac_cv_prog_gcc=yes
1758 else 1604 else
1759 ac_cv_prog_gcc=no 1605 ac_cv_prog_gcc=no
1760 fi 1606 fi
1761 1607
1762 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1608 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1763 1609
1764 if test $ac_cv_prog_gcc = yes; then 1610 if test $ac_cv_prog_gcc = yes; then
1765 GCC=yes 1611 GCC=yes
1766 else 1612 ac_test_CFLAGS="${CFLAGS+set}"
1767 GCC= 1613 ac_save_CFLAGS="$CFLAGS"
1768 fi 1614 CFLAGS=
1769 1615 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1770 ac_test_CFLAGS="${CFLAGS+set}" 1616 echo "configure:1617: checking whether ${CC-cc} accepts -g" >&5
1771 ac_save_CFLAGS="$CFLAGS"
1772 CFLAGS=
1773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether ${CC-cc} accepts -g" >&5
1775 1617
1776 echo 'void f(){}' > conftest.c 1618 echo 'void f(){}' > conftest.c
1777 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1619 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1778 ac_cv_prog_cc_g=yes 1620 ac_cv_prog_cc_g=yes
1779 else 1621 else
1781 fi 1623 fi
1782 rm -f conftest* 1624 rm -f conftest*
1783 1625
1784 1626
1785 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1786 if test "$ac_test_CFLAGS" = set; then 1628 if test "$ac_test_CFLAGS" = set; then
1787 CFLAGS="$ac_save_CFLAGS" 1629 CFLAGS="$ac_save_CFLAGS"
1788 elif test $ac_cv_prog_cc_g = yes; then 1630 elif test $ac_cv_prog_cc_g = yes; then
1789 if test "$GCC" = yes; then
1790 CFLAGS="-g -O2" 1631 CFLAGS="-g -O2"
1791 else 1632 else
1792 CFLAGS="-g" 1633 CFLAGS="-O2"
1793 fi 1634 fi
1794 else 1635 else
1795 if test "$GCC" = yes; then 1636 GCC=
1796 CFLAGS="-O2" 1637 test "${CFLAGS+set}" = set || CFLAGS="-g"
1797 else
1798 CFLAGS=
1799 fi
1800 fi 1638 fi
1801 1639
1802 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1640 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1803 CC=${NON_GNU_CC-cc} 1641 CC=${NON_GNU_CC-cc}
1804 # Extract the first word of "gcc", so it can be a program name with args. 1642 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2 1643 set dummy gcc; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5 1645 echo "configure:1646: checking for $ac_word" >&5
1808 1646
1809 if test -n "$CC"; then 1647 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test. 1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 else 1649 else
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1813 ac_dummy="$PATH" 1651 for ac_dir in $PATH; do
1814 for ac_dir in $ac_dummy; do
1815 test -z "$ac_dir" && ac_dir=. 1652 test -z "$ac_dir" && ac_dir=.
1816 if test -f $ac_dir/$ac_word; then 1653 if test -f $ac_dir/$ac_word; then
1817 ac_cv_prog_CC="gcc" 1654 ac_cv_prog_CC="gcc"
1818 break 1655 break
1819 fi 1656 fi
1829 1666
1830 if test -z "$CC"; then 1667 if test -z "$CC"; then
1831 # Extract the first word of "cc", so it can be a program name with args. 1668 # Extract the first word of "cc", so it can be a program name with args.
1832 set dummy cc; ac_word=$2 1669 set dummy cc; ac_word=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5 1671 echo "configure:1672: checking for $ac_word" >&5
1835 1672
1836 if test -n "$CC"; then 1673 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test. 1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else 1675 else
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1840 ac_prog_rejected=no 1677 ac_prog_rejected=no
1841 ac_dummy="$PATH" 1678 for ac_dir in $PATH; do
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=. 1679 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then 1680 if test -f $ac_dir/$ac_word; then
1845 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1681 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1846 ac_prog_rejected=yes 1682 ac_prog_rejected=yes
1847 continue 1683 continue
1871 echo "$ac_t""$CC" 1>&6 1707 echo "$ac_t""$CC" 1>&6
1872 else 1708 else
1873 echo "$ac_t""no" 1>&6 1709 echo "$ac_t""no" 1>&6
1874 fi 1710 fi
1875 1711
1876 if test -z "$CC"; then
1877 case "`uname -s`" in
1878 *win32* | *WIN32*)
1879 # Extract the first word of "cl", so it can be a program name with args.
1880 set dummy cl; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 else
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1888 ac_dummy="$PATH"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_CC="cl"
1893 break
1894 fi
1895 done
1896 IFS="$ac_save_ifs"
1897 fi
1898 CC="$ac_cv_prog_CC"
1899 if test -n "$CC"; then
1900 echo "$ac_t""$CC" 1>&6
1901 else
1902 echo "$ac_t""no" 1>&6
1903 fi
1904 ;;
1905 esac
1906 fi
1907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1712 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1908 fi 1713 fi
1909 1714
1910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1715 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1716 echo "configure:1717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1912 1717
1913 ac_ext=c 1718 ac_ext=c
1914 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1719 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1915 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1720 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1916 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1721 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1917 ac_cpp='$CPP '"$xe_cppflags" 1722 ac_cpp='$CPP '"$xe_cppflags"
1918 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1723 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1919 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1724 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1920 cross_compiling=no 1725 cross_compiling=no
1921 1726
1922 cat > conftest.$ac_ext << EOF 1727 cat > conftest.$ac_ext <<EOF
1923 1728 #line 1729 "configure"
1924 #line 1925 "configure" 1729 #include "confdefs.h"
1925 #include "confdefs.h"
1926
1927 main(){return(0);} 1730 main(){return(0);}
1928 EOF 1731 EOF
1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1930 ac_cv_prog_cc_works=yes 1733 ac_cv_prog_cc_works=yes
1931 # If we can't run a trivial program, we are probably using a cross compiler. 1734 # If we can't run a trivial program, we are probably using a cross compiler.
1932 if (./conftest; exit) 2>/dev/null; then 1735 if (./conftest; exit) 2>/dev/null; then
1933 ac_cv_prog_cc_cross=no 1736 ac_cv_prog_cc_cross=no
1934 else 1737 else
1938 echo "configure: failed program was:" >&5 1741 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5 1742 cat conftest.$ac_ext >&5
1940 ac_cv_prog_cc_works=no 1743 ac_cv_prog_cc_works=no
1941 fi 1744 fi
1942 rm -fr conftest* 1745 rm -fr conftest*
1943 ac_ext=c
1944 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1945 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1946 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1947 ac_cpp='$CPP '"$xe_cppflags"
1948 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1949 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1950 cross_compiling=no
1951 1746
1952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1747 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1953 if test $ac_cv_prog_cc_works = no; then 1748 if test $ac_cv_prog_cc_works = no; then
1954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1955 fi 1750 fi
1956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1752 echo "configure:1753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1753 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1959 cross_compiling=$ac_cv_prog_cc_cross 1754 cross_compiling=$ac_cv_prog_cc_cross
1960 1755
1961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether we are using GNU C" >&5 1757 echo "configure:1758: checking whether we are using GNU C" >&5
1963 1758
1964 cat > conftest.c <<EOF 1759 cat > conftest.c <<EOF
1965 #ifdef __GNUC__ 1760 #ifdef __GNUC__
1966 yes; 1761 yes;
1967 #endif 1762 #endif
1968 EOF 1763 EOF
1969 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1764 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1970 ac_cv_prog_gcc=yes 1765 ac_cv_prog_gcc=yes
1971 else 1766 else
1972 ac_cv_prog_gcc=no 1767 ac_cv_prog_gcc=no
1973 fi 1768 fi
1974 1769
1975 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1770 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1976 1771
1977 if test $ac_cv_prog_gcc = yes; then 1772 if test $ac_cv_prog_gcc = yes; then
1978 GCC=yes 1773 GCC=yes
1979 else 1774 ac_test_CFLAGS="${CFLAGS+set}"
1980 GCC= 1775 ac_save_CFLAGS="$CFLAGS"
1981 fi 1776 CFLAGS=
1982 1777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1983 ac_test_CFLAGS="${CFLAGS+set}" 1778 echo "configure:1779: checking whether ${CC-cc} accepts -g" >&5
1984 ac_save_CFLAGS="$CFLAGS"
1985 CFLAGS=
1986 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether ${CC-cc} accepts -g" >&5
1988 1779
1989 echo 'void f(){}' > conftest.c 1780 echo 'void f(){}' > conftest.c
1990 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1991 ac_cv_prog_cc_g=yes 1782 ac_cv_prog_cc_g=yes
1992 else 1783 else
1994 fi 1785 fi
1995 rm -f conftest* 1786 rm -f conftest*
1996 1787
1997 1788
1998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1999 if test "$ac_test_CFLAGS" = set; then 1790 if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS="$ac_save_CFLAGS" 1791 CFLAGS="$ac_save_CFLAGS"
2001 elif test $ac_cv_prog_cc_g = yes; then 1792 elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2003 CFLAGS="-g -O2" 1793 CFLAGS="-g -O2"
2004 else 1794 else
2005 CFLAGS="-g" 1795 CFLAGS="-O2"
2006 fi 1796 fi
2007 else 1797 else
2008 if test "$GCC" = yes; then 1798 GCC=
2009 CFLAGS="-O2" 1799 test "${CFLAGS+set}" = set || CFLAGS="-g"
2010 else
2011 CFLAGS=
2012 fi
2013 fi 1800 fi
2014 1801
2015 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1802 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2016 CC=gcc 1803 CC=gcc
2017 # Extract the first word of "gcc", so it can be a program name with args. 1804 # Extract the first word of "gcc", so it can be a program name with args.
2018 set dummy gcc; ac_word=$2 1805 set dummy gcc; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5 1807 echo "configure:1808: checking for $ac_word" >&5
2021 1808
2022 if test -n "$CC"; then 1809 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test. 1810 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 else 1811 else
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2026 ac_dummy="$PATH" 1813 for ac_dir in $PATH; do
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=. 1814 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then 1815 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_CC="gcc" 1816 ac_cv_prog_CC="gcc"
2031 break 1817 break
2032 fi 1818 fi
2042 1828
2043 if test -z "$CC"; then 1829 if test -z "$CC"; then
2044 # Extract the first word of "cc", so it can be a program name with args. 1830 # Extract the first word of "cc", so it can be a program name with args.
2045 set dummy cc; ac_word=$2 1831 set dummy cc; ac_word=$2
2046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_word" >&5 1833 echo "configure:1834: checking for $ac_word" >&5
2048 1834
2049 if test -n "$CC"; then 1835 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test. 1836 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else 1837 else
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2053 ac_prog_rejected=no 1839 ac_prog_rejected=no
2054 ac_dummy="$PATH" 1840 for ac_dir in $PATH; do
2055 for ac_dir in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir=. 1841 test -z "$ac_dir" && ac_dir=.
2057 if test -f $ac_dir/$ac_word; then 1842 if test -f $ac_dir/$ac_word; then
2058 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1843 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2059 ac_prog_rejected=yes 1844 ac_prog_rejected=yes
2060 continue 1845 continue
2084 echo "$ac_t""$CC" 1>&6 1869 echo "$ac_t""$CC" 1>&6
2085 else 1870 else
2086 echo "$ac_t""no" 1>&6 1871 echo "$ac_t""no" 1>&6
2087 fi 1872 fi
2088 1873
2089 if test -z "$CC"; then
2090 case "`uname -s`" in
2091 *win32* | *WIN32*)
2092 # Extract the first word of "cl", so it can be a program name with args.
2093 set dummy cl; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2101 ac_dummy="$PATH"
2102 for ac_dir in $ac_dummy; do
2103 test -z "$ac_dir" && ac_dir=.
2104 if test -f $ac_dir/$ac_word; then
2105 ac_cv_prog_CC="cl"
2106 break
2107 fi
2108 done
2109 IFS="$ac_save_ifs"
2110 fi
2111 CC="$ac_cv_prog_CC"
2112 if test -n "$CC"; then
2113 echo "$ac_t""$CC" 1>&6
2114 else
2115 echo "$ac_t""no" 1>&6
2116 fi
2117 ;;
2118 esac
2119 fi
2120 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1874 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2121 fi 1875 fi
2122 1876
2123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2124 echo "configure:2125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1878 echo "configure:1879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2125 1879
2126 ac_ext=c 1880 ac_ext=c
2127 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1881 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2128 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1882 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2129 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1883 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2130 ac_cpp='$CPP '"$xe_cppflags" 1884 ac_cpp='$CPP '"$xe_cppflags"
2131 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1885 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2132 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1886 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2133 cross_compiling=no 1887 cross_compiling=no
2134 1888
2135 cat > conftest.$ac_ext << EOF 1889 cat > conftest.$ac_ext <<EOF
2136 1890 #line 1891 "configure"
2137 #line 2138 "configure" 1891 #include "confdefs.h"
2138 #include "confdefs.h"
2139
2140 main(){return(0);} 1892 main(){return(0);}
2141 EOF 1893 EOF
2142 if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2143 ac_cv_prog_cc_works=yes 1895 ac_cv_prog_cc_works=yes
2144 # If we can't run a trivial program, we are probably using a cross compiler. 1896 # If we can't run a trivial program, we are probably using a cross compiler.
2145 if (./conftest; exit) 2>/dev/null; then 1897 if (./conftest; exit) 2>/dev/null; then
2146 ac_cv_prog_cc_cross=no 1898 ac_cv_prog_cc_cross=no
2147 else 1899 else
2151 echo "configure: failed program was:" >&5 1903 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5 1904 cat conftest.$ac_ext >&5
2153 ac_cv_prog_cc_works=no 1905 ac_cv_prog_cc_works=no
2154 fi 1906 fi
2155 rm -fr conftest* 1907 rm -fr conftest*
2156 ac_ext=c
2157 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2158 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2159 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2160 ac_cpp='$CPP '"$xe_cppflags"
2161 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2162 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2163 cross_compiling=no
2164 1908
2165 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1909 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2166 if test $ac_cv_prog_cc_works = no; then 1910 if test $ac_cv_prog_cc_works = no; then
2167 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1911 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2168 fi 1912 fi
2169 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1913 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1914 echo "configure:1915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2171 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1915 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2172 cross_compiling=$ac_cv_prog_cc_cross 1916 cross_compiling=$ac_cv_prog_cc_cross
2173 1917
2174 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1918 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether we are using GNU C" >&5 1919 echo "configure:1920: checking whether we are using GNU C" >&5
2176 1920
2177 cat > conftest.c <<EOF 1921 cat > conftest.c <<EOF
2178 #ifdef __GNUC__ 1922 #ifdef __GNUC__
2179 yes; 1923 yes;
2180 #endif 1924 #endif
2181 EOF 1925 EOF
2182 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1926 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2183 ac_cv_prog_gcc=yes 1927 ac_cv_prog_gcc=yes
2184 else 1928 else
2185 ac_cv_prog_gcc=no 1929 ac_cv_prog_gcc=no
2186 fi 1930 fi
2187 1931
2188 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1932 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2189 1933
2190 if test $ac_cv_prog_gcc = yes; then 1934 if test $ac_cv_prog_gcc = yes; then
2191 GCC=yes 1935 GCC=yes
2192 else 1936 ac_test_CFLAGS="${CFLAGS+set}"
2193 GCC= 1937 ac_save_CFLAGS="$CFLAGS"
2194 fi 1938 CFLAGS=
2195 1939 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2196 ac_test_CFLAGS="${CFLAGS+set}" 1940 echo "configure:1941: checking whether ${CC-cc} accepts -g" >&5
2197 ac_save_CFLAGS="$CFLAGS"
2198 CFLAGS=
2199 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether ${CC-cc} accepts -g" >&5
2201 1941
2202 echo 'void f(){}' > conftest.c 1942 echo 'void f(){}' > conftest.c
2203 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2204 ac_cv_prog_cc_g=yes 1944 ac_cv_prog_cc_g=yes
2205 else 1945 else
2207 fi 1947 fi
2208 rm -f conftest* 1948 rm -f conftest*
2209 1949
2210 1950
2211 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1951 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2212 if test "$ac_test_CFLAGS" = set; then 1952 if test "$ac_test_CFLAGS" = set; then
2213 CFLAGS="$ac_save_CFLAGS" 1953 CFLAGS="$ac_save_CFLAGS"
2214 elif test $ac_cv_prog_cc_g = yes; then 1954 elif test $ac_cv_prog_cc_g = yes; then
2215 if test "$GCC" = yes; then
2216 CFLAGS="-g -O2" 1955 CFLAGS="-g -O2"
2217 else 1956 else
2218 CFLAGS="-g" 1957 CFLAGS="-O2"
2219 fi 1958 fi
2220 else 1959 else
2221 if test "$GCC" = yes; then 1960 GCC=
2222 CFLAGS="-O2" 1961 test "${CFLAGS+set}" = set || CFLAGS="-g"
2223 else
2224 CFLAGS=
2225 fi
2226 fi 1962 fi
2227 1963
2228 fi 1964 fi
2229 CFLAGS="$xe_save_CFLAGS" 1965 CFLAGS="$xe_save_CFLAGS"
2230 1966
2232 test -n "$CPP" -a -d "$CPP" && CPP= 1968 test -n "$CPP" -a -d "$CPP" && CPP=
2233 1969
2234 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1970 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2235 1971
2236 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1972 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2237 echo "configure:2238: checking how to run the C preprocessor" >&5 1973 echo "configure:1974: checking how to run the C preprocessor" >&5
2238 # On Suns, sometimes $CPP names a directory. 1974 # On Suns, sometimes $CPP names a directory.
2239 if test -n "$CPP" && test -d "$CPP"; then 1975 if test -n "$CPP" && test -d "$CPP"; then
2240 CPP= 1976 CPP=
2241 fi 1977 fi
2242 if test -z "$CPP"; then 1978 if test -z "$CPP"; then
2245 # substituted into the Makefile and "${CC-cc}" will confuse make. 1981 # substituted into the Makefile and "${CC-cc}" will confuse make.
2246 CPP="${CC-cc} -E" 1982 CPP="${CC-cc} -E"
2247 # On the NeXT, cc -E runs the code through the compiler's parser, 1983 # On the NeXT, cc -E runs the code through the compiler's parser,
2248 # not just through cpp. 1984 # not just through cpp.
2249 cat > conftest.$ac_ext <<EOF 1985 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure" 1986 #line 1987 "configure"
2251 #include "confdefs.h" 1987 #include "confdefs.h"
2252 #include <assert.h> 1988 #include <assert.h>
2253 Syntax Error 1989 Syntax Error
2254 EOF 1990 EOF
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1992 { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1993 ac_err=`grep -v '^ *+' conftest.out`
2258 if test -z "$ac_err"; then 1994 if test -z "$ac_err"; then
2259 : 1995 :
2260 else 1996 else
2261 echo "$ac_err" >&5 1997 echo "$ac_err" >&5
2262 echo "configure: failed program was:" >&5 1998 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5 1999 cat conftest.$ac_ext >&5
2264 rm -rf conftest* 2000 rm -rf conftest*
2265 CPP="${CC-cc} -E -traditional-cpp" 2001 CPP="${CC-cc} -E -traditional-cpp"
2266 cat > conftest.$ac_ext <<EOF 2002 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure" 2003 #line 2004 "configure"
2268 #include "confdefs.h" 2004 #include "confdefs.h"
2269 #include <assert.h> 2005 #include <assert.h>
2270 Syntax Error 2006 Syntax Error
2271 EOF 2007 EOF
2272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2009 { (eval echo configure:2010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2010 ac_err=`grep -v '^ *+' conftest.out`
2275 if test -z "$ac_err"; then 2011 if test -z "$ac_err"; then
2276 : 2012 :
2277 else 2013 else
2278 echo "$ac_err" >&5 2014 echo "$ac_err" >&5
2279 echo "configure: failed program was:" >&5 2015 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5 2016 cat conftest.$ac_ext >&5
2281 rm -rf conftest* 2017 rm -rf conftest*
2282 CPP="${CC-cc} -nologo -E"
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 #include <assert.h>
2287 Syntax Error
2288 EOF
2289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2293 :
2294 else
2295 echo "$ac_err" >&5
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 CPP=/lib/cpp 2018 CPP=/lib/cpp
2300 fi
2301 rm -f conftest*
2302 fi 2019 fi
2303 rm -f conftest* 2020 rm -f conftest*
2304 fi 2021 fi
2305 rm -f conftest* 2022 rm -f conftest*
2306 ac_cv_prog_CPP="$CPP" 2023 ac_cv_prog_CPP="$CPP"
2309 ac_cv_prog_CPP="$CPP" 2026 ac_cv_prog_CPP="$CPP"
2310 fi 2027 fi
2311 echo "$ac_t""$CPP" 1>&6 2028 echo "$ac_t""$CPP" 1>&6
2312 2029
2313 2030
2314
2315 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2031 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2316 echo "configure:2317: checking for AIX" >&5 2032 echo "configure:2033: checking for AIX" >&5
2317 cat > conftest.$ac_ext <<EOF 2033 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure" 2034 #line 2035 "configure"
2319 #include "confdefs.h" 2035 #include "confdefs.h"
2320 #ifdef _AIX 2036 #ifdef _AIX
2321 yes 2037 yes
2322 #endif 2038 #endif
2323 2039
2337 rm -rf conftest* 2053 rm -rf conftest*
2338 echo "$ac_t""no" 1>&6 2054 echo "$ac_t""no" 1>&6
2339 fi 2055 fi
2340 rm -f conftest* 2056 rm -f conftest*
2341 2057
2342 2058
2343 2059
2344 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2060 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2345 echo "configure:2346: checking for GNU libc" >&5 2061 echo "configure:2062: checking for GNU libc" >&5
2346 cat > conftest.$ac_ext <<EOF 2062 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure" 2063 #line 2064 "configure"
2348 #include "confdefs.h" 2064 #include "confdefs.h"
2349 #include <features.h> 2065 #include <features.h>
2350 int main() { 2066 int main() {
2351 2067
2352 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2068 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2354 ******* ======= ******** &&&&&&&& 2070 ******* ======= ******** &&&&&&&&
2355 #endif 2071 #endif
2356 2072
2357 ; return 0; } 2073 ; return 0; }
2358 EOF 2074 EOF
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2075 if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2360 rm -rf conftest* 2076 rm -rf conftest*
2361 have_glibc=yes 2077 have_glibc=yes
2362 else 2078 else
2363 echo "configure: failed program was:" >&5 2079 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5 2080 cat conftest.$ac_ext >&5
2374 #define _GNU_SOURCE 1 2090 #define _GNU_SOURCE 1
2375 EOF 2091 EOF
2376 } 2092 }
2377 2093
2378 2094
2379 case "$opsys" in 2095
2380 sol2) 2096 cat > conftest.$ac_ext <<EOF
2381 { test "$extra_verbose" = "yes" && cat << \EOF 2097 #line 2098 "configure"
2382 Defining __EXTENSIONS__
2383 EOF
2384 cat >> confdefs.h <<\EOF
2385 #define __EXTENSIONS__ 1
2386 EOF
2387 }
2388
2389 if test "$os_release" -ge 55; then
2390 { test "$extra_verbose" = "yes" && cat << \EOF
2391 Defining _XOPEN_SOURCE = 500
2392 EOF
2393 cat >> confdefs.h <<\EOF
2394 #define _XOPEN_SOURCE 500
2395 EOF
2396 }
2397
2398 { test "$extra_verbose" = "yes" && cat << \EOF
2399 Defining _XOPEN_SOURCE_EXTENDED
2400 EOF
2401 cat >> confdefs.h <<\EOF
2402 #define _XOPEN_SOURCE_EXTENDED 1
2403 EOF
2404 }
2405
2406 fi ;;
2407 linux)
2408 { test "$extra_verbose" = "yes" && cat << \EOF
2409 Defining _POSIX_C_SOURCE = 199506L
2410 EOF
2411 cat >> confdefs.h <<\EOF
2412 #define _POSIX_C_SOURCE 199506L
2413 EOF
2414 }
2415
2416 { test "$extra_verbose" = "yes" && cat << \EOF
2417 Defining _XOPEN_SOURCE = 500
2418 EOF
2419 cat >> confdefs.h <<\EOF
2420 #define _XOPEN_SOURCE 500
2421 EOF
2422 }
2423
2424 { test "$extra_verbose" = "yes" && cat << \EOF
2425 Defining _XOPEN_SOURCE_EXTENDED
2426 EOF
2427 cat >> confdefs.h <<\EOF
2428 #define _XOPEN_SOURCE_EXTENDED 1
2429 EOF
2430 }
2431
2432 ;;
2433 esac
2434
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h" 2098 #include "confdefs.h"
2438 int main () { 2099 int main () {
2439 #if defined __SUNPRO_C 2100 #if defined __SUNPRO_C
2440 return 11; 2101 return 11;
2441 #elif defined __DECC 2102 #elif defined __DECC
2443 #else 2104 #else
2444 return 0; 2105 return 0;
2445 #endif 2106 #endif
2446 } 2107 }
2447 EOF 2108 EOF
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2449 then 2110 then
2450 : 2111 :
2451 else 2112 else
2452 conftest_rc="$?" 2113 conftest_rc="$?"
2453 echo "configure: failed program was:" >&5 2114 echo "configure: failed program was:" >&5
2544 #define LD_SWITCH_SHARED "-c" 2205 #define LD_SWITCH_SHARED "-c"
2545 #endif 2206 #endif
2546 configure___ ld_switch_shared=LD_SWITCH_SHARED 2207 configure___ ld_switch_shared=LD_SWITCH_SHARED
2547 2208
2548 2209
2549 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2550 configure___ ordinary_ld=ORDINARY_LD
2551
2552 #ifdef ORDINARY_LINK 2210 #ifdef ORDINARY_LINK
2553 #define LD ORDINARY_LD 2211 #define LD "\$(CC) \$(CFLAGS)"
2554 #else /* no ORDINARY LINK */ 2212 #else /* no ORDINARY LINK */
2555 #ifdef COFF_ENCAPSULATE 2213 #ifdef COFF_ENCAPSULATE
2556 #define LD "\$(CC) -nostdlib" 2214 #define LD "\$(CC) -nostdlib"
2557 #else /* not COFF_ENCAPSULATE */ 2215 #else /* not COFF_ENCAPSULATE */
2558 #ifdef LINKER 2216 #ifdef LINKER
2619 configure___ mail_use_lockf=yes 2277 configure___ mail_use_lockf=yes
2620 #else 2278 #else
2621 configure___ mail_use_lockf=no 2279 configure___ mail_use_lockf=no
2622 #endif 2280 #endif
2623 2281
2624 #ifdef MAIL_USE_LOCKING
2625 configure___ mail_use_locking=yes
2626 #else
2627 configure___ mail_use_locking=no
2628 #endif
2629
2630 #ifdef HAVE_WIN32_PROCESSES 2282 #ifdef HAVE_WIN32_PROCESSES
2631 configure___ win32_processes=yes 2283 configure___ win32_processes=yes
2632 #else 2284 #else
2633 configure___ win32_processes=no 2285 configure___ win32_processes=no
2634 #endif 2286 #endif
2639 eval `$CPP -Isrc $tempcname \ 2291 eval `$CPP -Isrc $tempcname \
2640 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 2292 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2641 2293
2642 rm $tempcname 2294 rm $tempcname
2643 2295
2644 if test "$pdump" = "yes"; then
2645 ordinary_link="yes"
2646 ld="${ordinary_ld}"
2647 start_files=
2648 libs_standard=
2649 unexec=
2650 lib_gcc=
2651 fi
2652
2653 test "$extra_verbose" = "yes" && \ 2296 test "$extra_verbose" = "yes" && \
2654 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2297 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2655 2298
2656 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2657 mingw_include=`eval "dirname $mingw_include"` ;
2658 mingw_include="-I$mingw_include/../include/mingw32" ;
2659 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2660 esac
2661
2662 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2299 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2663 2300
2664 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2301 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2665 2302
2666 if test "$cflags_specified" = "no"; then 2303 if test "$cflags_specified" = "no"; then
2667 if test "$GCC" = "yes"; then 2304 if test "$GCC" = "yes"; then
2668 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" 2305 CFLAGS="-g -O3 -Wall -Wno-switch"
2669 elif test "$__SUNPRO_C" = "yes"; then 2306 elif test "$__SUNPRO_C" = "yes"; then
2670 case "$opsys" in 2307 case "$opsys" in
2671 sol2 ) CFLAGS="-v -xO4" ;; 2308 sol2 ) CFLAGS="-v -xO4" ;;
2672 sunos4* ) CFLAGS="-xO2";; 2309 sunos4* ) CFLAGS="-xO2";;
2673 esac 2310 esac
2677 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2314 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2678 else 2315 else
2679 CFLAGS="-O" ; fi 2316 CFLAGS="-O" ; fi
2680 fi 2317 fi
2681 2318
2682 if test "$GCC" = "yes"; then
2683 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2684 echo "configure:2685: checking for buggy gcc versions" >&5
2685 GCC_VERSION=`$CC --version`
2686 case `uname -s`:`uname -m`:$GCC_VERSION in
2687 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2688 case "$CFLAGS" in
2689 *-O2*|*-O3*)
2690 case "$CFLAGS" in
2691 *-fno-schedule-insns*) ;;
2692 *)
2693 echo "$ac_t""Yes" 1>&6
2694 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2695 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2696 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2697 ;;
2698 esac
2699 ;;
2700 esac
2701 ;;
2702 Linux:alpha:egcs-2.91.*)
2703 echo "$ac_t""Yes" 1>&6
2704 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2705 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2706 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2707 ;;
2708 *:i*86*:2.7.2*)
2709 case "$GCC_VERSION" in
2710 2.7.2)
2711 case "$CFLAGS" in
2712 *-O2*|*-O3*)
2713 case "$CFLAGS" in
2714 *-fno-strength-reduce*) ;;
2715 *)
2716 echo "$ac_t""Yes" 1>&6
2717 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2718 echo "configure: warning: -fno-strength-reduce." 1>&2
2719 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2720 ;;
2721 esac
2722 ;;
2723 esac
2724 ;;
2725 esac
2726 case "$CFLAGS" in
2727 *-fno-caller-saves*) ;;
2728 *)
2729 echo "$ac_t""Yes" 1>&6
2730 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2731 echo "configure: warning: -fno-caller-saves." 1>&2
2732 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2733 ;;
2734 esac
2735 ;;
2736 esac
2737 fi
2738 echo "$ac_t""No" 1>&6
2739
2740 2319
2741 if test "$GCC" = "yes"; then 2320 if test "$GCC" = "yes"; then
2742 set x $ld_switch_system; shift; ld_switch_system="" 2321 set x $ld_switch_system; shift; ld_switch_system=""
2743 while test -n "$1"; do 2322 while test -n "$1"; do
2744 case $1 in 2323 case $1 in
2794 echo " xemacs will be linked with \"$objects_machine\"" 2373 echo " xemacs will be linked with \"$objects_machine\""
2795 fi 2374 fi
2796 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then 2375 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2797 echo " xemacs will be linked with \"$objects_system\"" 2376 echo " xemacs will be linked with \"$objects_system\""
2798 fi 2377 fi
2799 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2378 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2800 echo " xemacs will be linked with \"$unexec\"" 2379 echo " xemacs will be linked with \"$unexec\""
2801 fi 2380 fi
2802 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2803 echo " xemacs will be linked with \"dumper.o\""
2804 fi
2805 2381
2806 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2382 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2807 echo "configure:2808: checking for dynodump" >&5 2383 echo "configure:2384: checking for dynodump" >&5
2808 if test "$unexec" != "unexsol2.o"; then 2384 if test "$unexec" != "unexsol2.o"; then
2809 echo "$ac_t""no" 1>&6 2385 echo "$ac_t""no" 1>&6
2810 else 2386 else
2811 echo "$ac_t""yes" 1>&6 2387 echo "$ac_t""yes" 1>&6
2812 { test "$extra_verbose" = "yes" && cat << \EOF 2388 { test "$extra_verbose" = "yes" && cat << \EOF
2840 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2416 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2841 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2417 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2842 done 2418 done
2843 2419
2844 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2420 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2845 echo "configure:2846: checking for terminateAndUnload in -lC" >&5 2421 echo "configure:2422: checking for terminateAndUnload in -lC" >&5
2846 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2422 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2847 2423
2848 xe_check_libs=" -lC " 2424 xe_check_libs=" -lC "
2849 cat > conftest.$ac_ext <<EOF 2425 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure" 2426 #line 2427 "configure"
2851 #include "confdefs.h" 2427 #include "confdefs.h"
2852 /* Override any gcc2 internal prototype to avoid an error. */ 2428 /* Override any gcc2 internal prototype to avoid an error. */
2853 /* We use char because int might match the return type of a gcc2 2429 /* We use char because int might match the return type of a gcc2
2854 builtin and then its argument prototype would still apply. */ 2430 builtin and then its argument prototype would still apply. */
2855 char terminateAndUnload(); 2431 char terminateAndUnload();
2856 2432
2857 int main() { 2433 int main() {
2858 terminateAndUnload() 2434 terminateAndUnload()
2859 ; return 0; } 2435 ; return 0; }
2860 EOF 2436 EOF
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2862 rm -rf conftest* 2438 rm -rf conftest*
2863 eval "ac_cv_lib_$ac_lib_var=yes" 2439 eval "ac_cv_lib_$ac_lib_var=yes"
2864 else 2440 else
2865 echo "configure: failed program was:" >&5 2441 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5 2442 cat conftest.$ac_ext >&5
2923 fi 2499 fi
2924 2500
2925 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac 2501 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2926 if test -n "$site_prefixes"; then 2502 if test -n "$site_prefixes"; then
2927 for dir in $site_prefixes; do 2503 for dir in $site_prefixes; do
2504 inc_dir="${dir}/include"
2928 lib_dir="${dir}/lib" 2505 lib_dir="${dir}/lib"
2929 inc_dir="${dir}/include"
2930 if test ! -d "$dir"; then 2506 if test ! -d "$dir"; then
2931 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; } 2507 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2508 elif test ! -d "$inc_dir"; then
2509 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$inc_dir'" >&2; exit 1; }
2932 elif test ! -d "$lib_dir"; then 2510 elif test ! -d "$lib_dir"; then
2933 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; } 2511 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2934 else 2512 else
2935 if test -d "$inc_dir"; then 2513 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
2936 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
2937 fi
2938 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi 2514 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
2939 fi 2515 fi
2940 done 2516 done
2941 fi 2517 fi
2942 2518
2943 2519
2944 for dir in "/usr/ccs/lib"; do 2520 for dir in "/usr/ccs/lib"; do
2945 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi 2521 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2946 done 2522 done
2947 2523
2948 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac 2524 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2949 if test -n "$site_runtime_libraries"; then 2525 if test -n "$site_runtime_libraries"; then
2950 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" 2526 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2951 export LD_RUN_PATH 2527 export LD_RUN_PATH
2952 fi 2528 fi
2953 2529
2954 2530
2955 2531 if test "$dynamic" = "no"; then add_runtime_path=no
2956
2957
2958 if test -n "$add_runtime_path"; then :;
2959 elif test "$dynamic" = "no"; then add_runtime_path=no
2960 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2532 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2961 else case "$opsys" in 2533 else case "$opsys" in
2962 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; 2534 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2963 * ) add_runtime_path=no ;; 2535 * ) add_runtime_path=no ;;
2964 esac 2536 esac
2965 fi 2537 fi
2966 2538
2967 if test "$add_runtime_path" = "yes"; then 2539 if test "$add_runtime_path" = "yes"; then
2968 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2540 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2969 echo "configure:2970: checking "for runtime libraries flag"" >&5 2541 echo "configure:2542: checking "for runtime libraries flag"" >&5
2970 case "$opsys" in 2542 case "$opsys" in
2971 sol2 ) dash_r="-R" ;; 2543 sol2 ) dash_r="-R" ;;
2972 decosf* | linux* | irix*) dash_r="-rpath " ;; 2544 decosf* | linux* | irix*) dash_r="-rpath " ;;
2973 *) 2545 *)
2974 dash_r="" 2546 dash_r=""
2986 esac 2558 esac
2987 shift 2559 shift
2988 done 2560 done
2989 fi 2561 fi
2990 cat > conftest.$ac_ext <<EOF 2562 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure" 2563 #line 2564 "configure"
2992 #include "confdefs.h" 2564 #include "confdefs.h"
2993 2565
2994 int main() { 2566 int main() {
2995 2567
2996 ; return 0; } 2568 ; return 0; }
2997 EOF 2569 EOF
2998 if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2999 rm -rf conftest* 2571 rm -rf conftest*
3000 dash_r="$try_dash_r" 2572 dash_r="$try_dash_r"
3001 else 2573 else
3002 echo "configure: failed program was:" >&5 2574 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5 2575 cat conftest.$ac_ext >&5
3094 doug_lea_malloc=yes 2666 doug_lea_malloc=yes
3095 else 2667 else
3096 doug_lea_malloc=no 2668 doug_lea_malloc=no
3097 fi 2669 fi
3098 after_morecore_hook_exists=yes 2670 after_morecore_hook_exists=yes
2671 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2672 echo "configure:2673: checking for malloc_get_state" >&5
2673
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char malloc_get_state(); below. */
2679 #include <assert.h>
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2683 char malloc_get_state();
2684
2685 int main() {
2686
2687 /* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2691 choke me
2692 #else
2693 malloc_get_state();
2694 #endif
2695
2696 ; return 0; }
2697 EOF
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2699 rm -rf conftest*
2700 eval "ac_cv_func_malloc_get_state=yes"
2701 else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 eval "ac_cv_func_malloc_get_state=no"
2706 fi
2707 rm -f conftest*
2708
2709 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 :
2712 else
2713 echo "$ac_t""no" 1>&6
2714 doug_lea_malloc=no
2715 fi
2716
3099 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2717 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3100 echo "configure:3101: checking for malloc_set_state" >&5 2718 echo "configure:2719: checking for malloc_set_state" >&5
3101 2719
3102 cat > conftest.$ac_ext <<EOF 2720 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure" 2721 #line 2722 "configure"
3104 #include "confdefs.h" 2722 #include "confdefs.h"
3105 /* System header to define __stub macros and hopefully few prototypes, 2723 /* System header to define __stub macros and hopefully few prototypes,
3106 which can conflict with char malloc_set_state(); below. */ 2724 which can conflict with char malloc_set_state(); below. */
3107 #include <assert.h> 2725 #include <assert.h>
3108 /* Override any gcc2 internal prototype to avoid an error. */ 2726 /* Override any gcc2 internal prototype to avoid an error. */
3121 malloc_set_state(); 2739 malloc_set_state();
3122 #endif 2740 #endif
3123 2741
3124 ; return 0; } 2742 ; return 0; }
3125 EOF 2743 EOF
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3127 rm -rf conftest* 2745 rm -rf conftest*
3128 eval "ac_cv_func_malloc_set_state=yes" 2746 eval "ac_cv_func_malloc_set_state=yes"
3129 else 2747 else
3130 echo "configure: failed program was:" >&5 2748 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5 2749 cat conftest.$ac_ext >&5
3141 echo "$ac_t""no" 1>&6 2759 echo "$ac_t""no" 1>&6
3142 doug_lea_malloc=no 2760 doug_lea_malloc=no
3143 fi 2761 fi
3144 2762
3145 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2763 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether __after_morecore_hook exists" >&5 2764 echo "configure:2765: checking whether __after_morecore_hook exists" >&5
3147 cat > conftest.$ac_ext <<EOF 2765 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure" 2766 #line 2767 "configure"
3149 #include "confdefs.h" 2767 #include "confdefs.h"
3150 extern void (* __after_morecore_hook)(); 2768 extern void (* __after_morecore_hook)();
3151 int main() { 2769 int main() {
3152 __after_morecore_hook = 0 2770 __after_morecore_hook = 0
3153 ; return 0; } 2771 ; return 0; }
3154 EOF 2772 EOF
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3156 rm -rf conftest* 2774 rm -rf conftest*
3157 echo "$ac_t""yes" 1>&6 2775 echo "$ac_t""yes" 1>&6
3158 else 2776 else
3159 echo "configure: failed program was:" >&5 2777 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5 2778 cat conftest.$ac_ext >&5
3164 fi 2782 fi
3165 rm -f conftest* 2783 rm -f conftest*
3166 if test "$system_malloc" = "yes" ; then 2784 if test "$system_malloc" = "yes" ; then
3167 GNU_MALLOC=no 2785 GNU_MALLOC=no
3168 GNU_MALLOC_reason=" 2786 GNU_MALLOC_reason="
3169 - The GNU allocators don't work with this system configuration." 2787 (The GNU allocators don't work with this system configuration)."
3170 elif test "$with_system_malloc" = "yes" ; then 2788 elif test "$with_system_malloc" = "yes" ; then
3171 GNU_MALLOC=no 2789 GNU_MALLOC=no
3172 GNU_MALLOC_reason=" 2790 GNU_MALLOC_reason="
3173 - User chose not to use GNU allocators." 2791 (User chose not to use GNU allocators)."
3174 elif test "$with_debug_malloc" = "yes" ; then 2792 elif test "$with_debug_malloc" = "yes" ; then
3175 GNU_MALLOC=no 2793 GNU_MALLOC=no
3176 GNU_MALLOC_reason=" 2794 GNU_MALLOC_reason="
3177 - User chose to use Debugging Malloc." 2795 (User chose to use Debugging Malloc)."
3178 fi 2796 fi
3179 2797
3180 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then 2798 if test "$doug_lea_malloc" = "yes" ; then
3181 GNU_MALLOC_reason=" 2799 if test "$GNU_MALLOC" = yes ; then
3182 - Using Doug Lea's new malloc from the GNU C Library." 2800 GNU_MALLOC_reason="
2801 (Using Doug Lea's new malloc from the GNU C Library.)"
2802 fi
3183 { test "$extra_verbose" = "yes" && cat << \EOF 2803 { test "$extra_verbose" = "yes" && cat << \EOF
3184 Defining DOUG_LEA_MALLOC 2804 Defining DOUG_LEA_MALLOC
3185 EOF 2805 EOF
3186 cat >> confdefs.h <<\EOF 2806 cat >> confdefs.h <<\EOF
3187 #define DOUG_LEA_MALLOC 1 2807 #define DOUG_LEA_MALLOC 1
3188 EOF 2808 EOF
3189 } 2809 }
3190 2810
3191 if test "$after_morecore_hook_exists" = "no" ; then 2811 if test "$after_morecore_hook_exists" = "no" ; then
3192 GNU_MALLOC_reason=" 2812 GNU_MALLOC_reason="
3193 - Using Doug Lea's new malloc from the Linux C Library." 2813 (Using Doug Lea's new malloc from the Linux C Library.)"
3194 { test "$extra_verbose" = "yes" && cat << \EOF 2814 { test "$extra_verbose" = "yes" && cat << \EOF
3195 Defining _NO_MALLOC_WARNING_ 2815 Defining _NO_MALLOC_WARNING_
3196 EOF 2816 EOF
3197 cat >> confdefs.h <<\EOF 2817 cat >> confdefs.h <<\EOF
3198 #define _NO_MALLOC_WARNING_ 1 2818 #define _NO_MALLOC_WARNING_ 1
3199 EOF 2819 EOF
3200 } 2820 }
3201 2821
3202 fi 2822 fi
2823 use_minimal_tagbits=yes
3203 fi 2824 fi
3204 2825
3205 2826
3206 2827
3207 2828
3208 # Extract the first word of "ranlib", so it can be a program name with args. 2829 # Extract the first word of "ranlib", so it can be a program name with args.
3209 set dummy ranlib; ac_word=$2 2830 set dummy ranlib; ac_word=$2
3210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3211 echo "configure:3212: checking for $ac_word" >&5 2832 echo "configure:2833: checking for $ac_word" >&5
3212 2833
3213 if test -n "$RANLIB"; then 2834 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3215 else 2836 else
3216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3217 ac_dummy="$PATH" 2838 for ac_dir in $PATH; do
3218 for ac_dir in $ac_dummy; do
3219 test -z "$ac_dir" && ac_dir=. 2839 test -z "$ac_dir" && ac_dir=.
3220 if test -f $ac_dir/$ac_word; then 2840 if test -f $ac_dir/$ac_word; then
3221 ac_cv_prog_RANLIB="ranlib" 2841 ac_cv_prog_RANLIB="ranlib"
3222 break 2842 break
3223 fi 2843 fi
3256 # incompatible versions: 2876 # incompatible versions:
3257 # SysV /etc/install, /usr/sbin/install 2877 # SysV /etc/install, /usr/sbin/install
3258 # SunOS /usr/etc/install 2878 # SunOS /usr/etc/install
3259 # IRIX /sbin/install 2879 # IRIX /sbin/install
3260 # AIX /bin/install 2880 # AIX /bin/install
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # ./install, which can be erroneously created by make from ./install.sh. 2883 # ./install, which can be erroneously created by make from ./install.sh.
3265 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2884 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3266 echo "configure:3267: checking for a BSD compatible install" >&5 2885 echo "configure:2886: checking for a BSD compatible install" >&5
3267 if test -z "$INSTALL"; then 2886 if test -z "$INSTALL"; then
3268 2887
3269 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2888 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
3270 for ac_dir in $PATH; do 2889 for ac_dir in $PATH; do
3271 # Account for people who put trailing slashes in PATH elements. 2890 # Account for people who put trailing slashes in PATH elements.
3272 case "$ac_dir/" in 2891 case "$ac_dir/" in
3273 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2892 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3274 *) 2893 *)
3275 # OSF1 and SCO ODT 3.0 have their own names for install. 2894 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root 2895 for ac_prog in ginstall installbsd scoinst install; do
3277 # by default.
3278 for ac_prog in ginstall scoinst install; do
3279 if test -f $ac_dir/$ac_prog; then 2896 if test -f $ac_dir/$ac_prog; then
3280 if test $ac_prog = install && 2897 if test $ac_prog = install &&
3281 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2898 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3282 # AIX install. It has an incompatible calling convention. 2899 # AIX install. It has an incompatible calling convention.
2900 # OSF/1 installbsd also uses dspmsg, but is usable.
3283 : 2901 :
3284 else 2902 else
3285 ac_cv_path_install="$ac_dir/$ac_prog -c" 2903 ac_cv_path_install="$ac_dir/$ac_prog -c"
3286 break 2 2904 break 2
3287 fi 2905 fi
3306 2924
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution. 2926 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3310 2928
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3312
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3314 2930
3315 for ac_prog in 'bison -y' byacc 2931 for ac_prog in 'bison -y' byacc
3316 do 2932 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args. 2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2 2934 set dummy $ac_prog; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5 2936 echo "configure:2937: checking for $ac_word" >&5
3321 2937
3322 if test -n "$YACC"; then 2938 if test -n "$YACC"; then
3323 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2939 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3324 else 2940 else
3325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3326 ac_dummy="$PATH" 2942 for ac_dir in $PATH; do
3327 for ac_dir in $ac_dummy; do
3328 test -z "$ac_dir" && ac_dir=. 2943 test -z "$ac_dir" && ac_dir=.
3329 if test -f $ac_dir/$ac_word; then 2944 if test -f $ac_dir/$ac_word; then
3330 ac_cv_prog_YACC="$ac_prog" 2945 ac_cv_prog_YACC="$ac_prog"
3331 break 2946 break
3332 fi 2947 fi
3343 test -n "$YACC" && break 2958 test -n "$YACC" && break
3344 done 2959 done
3345 test -n "$YACC" || YACC="yacc" 2960 test -n "$YACC" || YACC="yacc"
3346 2961
3347 2962
3348 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/stropts.h sys/time.h sys/timeb.h sys/un.h kstat.h ulimit.h unistd.h utime.h 2963 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3349 do 2964 do
3350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5 2967 echo "configure:2968: checking for $ac_hdr" >&5
3353 2968
3354 cat > conftest.$ac_ext <<EOF 2969 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure" 2970 #line 2971 "configure"
3356 #include "confdefs.h" 2971 #include "confdefs.h"
3357 #include <$ac_hdr> 2972 #include <$ac_hdr>
3358 EOF 2973 EOF
3359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360 { (eval echo configure:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2976 ac_err=`grep -v '^ *+' conftest.out`
3362 if test -z "$ac_err"; then 2977 if test -z "$ac_err"; then
3363 rm -rf conftest* 2978 rm -rf conftest*
3364 eval "ac_cv_header_$ac_safe=yes" 2979 eval "ac_cv_header_$ac_safe=yes"
3365 else 2980 else
3366 echo "$ac_err" >&5 2981 echo "$ac_err" >&5
3384 else 2999 else
3385 echo "$ac_t""no" 1>&6 3000 echo "$ac_t""no" 1>&6
3386 fi 3001 fi
3387 done 3002 done
3388 3003
3004 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3005 do
3006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_hdr" >&5
3009
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <$ac_hdr>
3014 EOF
3015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3016 { (eval echo configure:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3017 ac_err=`grep -v '^ *+' conftest.out`
3018 if test -z "$ac_err"; then
3019 rm -rf conftest*
3020 eval "ac_cv_header_$ac_safe=yes"
3021 else
3022 echo "$ac_err" >&5
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 eval "ac_cv_header_$ac_safe=no"
3027 fi
3028 rm -f conftest*
3029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3032 { test "$extra_verbose" = "yes" && cat << EOF
3033 Defining $ac_tr_hdr
3034 EOF
3035 cat >> confdefs.h <<EOF
3036 #define $ac_tr_hdr 1
3037 EOF
3038 }
3039
3040 else
3041 echo "$ac_t""no" 1>&6
3042 fi
3043 done
3044
3045 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3046 do
3047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_hdr" >&5
3050
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <$ac_hdr>
3055 EOF
3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err=`grep -v '^ *+' conftest.out`
3059 if test -z "$ac_err"; then
3060 rm -rf conftest*
3061 eval "ac_cv_header_$ac_safe=yes"
3062 else
3063 echo "$ac_err" >&5
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 rm -rf conftest*
3067 eval "ac_cv_header_$ac_safe=no"
3068 fi
3069 rm -f conftest*
3070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3073 { test "$extra_verbose" = "yes" && cat << EOF
3074 Defining $ac_tr_hdr
3075 EOF
3076 cat >> confdefs.h <<EOF
3077 #define $ac_tr_hdr 1
3078 EOF
3079 }
3080
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084 done
3085
3389 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3086 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3390 echo "configure:3391: checking for sys/wait.h that is POSIX.1 compatible" >&5 3087 echo "configure:3088: checking for sys/wait.h that is POSIX.1 compatible" >&5
3391 3088
3392 cat > conftest.$ac_ext <<EOF 3089 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure" 3090 #line 3091 "configure"
3394 #include "confdefs.h" 3091 #include "confdefs.h"
3395 #include <sys/types.h> 3092 #include <sys/types.h>
3396 #include <sys/wait.h> 3093 #include <sys/wait.h>
3397 #ifndef WEXITSTATUS 3094 #ifndef WEXITSTATUS
3398 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3095 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3404 int s; 3101 int s;
3405 wait (&s); 3102 wait (&s);
3406 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3407 ; return 0; } 3104 ; return 0; }
3408 EOF 3105 EOF
3409 if { (eval echo configure:3410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3106 if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3410 rm -rf conftest* 3107 rm -rf conftest*
3411 ac_cv_header_sys_wait_h=yes 3108 ac_cv_header_sys_wait_h=yes
3412 else 3109 else
3413 echo "configure: failed program was:" >&5 3110 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5 3111 cat conftest.$ac_ext >&5
3428 } 3125 }
3429 3126
3430 fi 3127 fi
3431 3128
3432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3129 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3433 echo "configure:3434: checking for ANSI C header files" >&5 3130 echo "configure:3131: checking for ANSI C header files" >&5
3434 3131
3435 cat > conftest.$ac_ext <<EOF 3132 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure" 3133 #line 3134 "configure"
3437 #include "confdefs.h" 3134 #include "confdefs.h"
3438 #include <stdlib.h> 3135 #include <stdlib.h>
3439 #include <stdarg.h> 3136 #include <stdarg.h>
3440 #include <string.h> 3137 #include <string.h>
3441 #include <float.h> 3138 #include <float.h>
3442 EOF 3139 EOF
3443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3444 { (eval echo configure:3445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3141 { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3142 ac_err=`grep -v '^ *+' conftest.out`
3446 if test -z "$ac_err"; then 3143 if test -z "$ac_err"; then
3447 rm -rf conftest* 3144 rm -rf conftest*
3448 ac_cv_header_stdc=yes 3145 ac_cv_header_stdc=yes
3449 else 3146 else
3450 echo "$ac_err" >&5 3147 echo "$ac_err" >&5
3456 rm -f conftest* 3153 rm -f conftest*
3457 3154
3458 if test $ac_cv_header_stdc = yes; then 3155 if test $ac_cv_header_stdc = yes; then
3459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3460 cat > conftest.$ac_ext <<EOF 3157 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure" 3158 #line 3159 "configure"
3462 #include "confdefs.h" 3159 #include "confdefs.h"
3463 #include <string.h> 3160 #include <string.h>
3464 EOF 3161 EOF
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466 egrep "memchr" >/dev/null 2>&1; then 3163 egrep "memchr" >/dev/null 2>&1; then
3474 fi 3171 fi
3475 3172
3476 if test $ac_cv_header_stdc = yes; then 3173 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat > conftest.$ac_ext <<EOF 3175 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure" 3176 #line 3177 "configure"
3480 #include "confdefs.h" 3177 #include "confdefs.h"
3481 #include <stdlib.h> 3178 #include <stdlib.h>
3482 EOF 3179 EOF
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "free" >/dev/null 2>&1; then 3181 egrep "free" >/dev/null 2>&1; then
3492 fi 3189 fi
3493 3190
3494 if test $ac_cv_header_stdc = yes; then 3191 if test $ac_cv_header_stdc = yes; then
3495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3496 cat > conftest.$ac_ext <<EOF 3193 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure" 3194 #line 3195 "configure"
3498 #include "confdefs.h" 3195 #include "confdefs.h"
3499 #include <ctype.h> 3196 #include <ctype.h>
3500 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3197 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3501 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3198 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3503 int main () { int i; for (i = 0; i < 256; i++) 3200 int main () { int i; for (i = 0; i < 256; i++)
3504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3201 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3505 exit (0); } 3202 exit (0); }
3506 3203
3507 EOF 3204 EOF
3508 if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3509 then 3206 then
3510 : 3207 :
3511 else 3208 else
3512 conftest_rc="$?" 3209 conftest_rc="$?"
3513 echo "configure: failed program was:" >&5 3210 echo "configure: failed program was:" >&5
3529 } 3226 }
3530 3227
3531 fi 3228 fi
3532 3229
3533 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3230 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3534 echo "configure:3535: checking whether time.h and sys/time.h may both be included" >&5 3231 echo "configure:3232: checking whether time.h and sys/time.h may both be included" >&5
3535 3232
3536 cat > conftest.$ac_ext <<EOF 3233 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure" 3234 #line 3235 "configure"
3538 #include "confdefs.h" 3235 #include "confdefs.h"
3539 #include <sys/types.h> 3236 #include <sys/types.h>
3540 #include <sys/time.h> 3237 #include <sys/time.h>
3541 #include <time.h> 3238 #include <time.h>
3542 int main() { 3239 int main() {
3543 struct tm *tp; 3240 struct tm *tp;
3544 ; return 0; } 3241 ; return 0; }
3545 EOF 3242 EOF
3546 if { (eval echo configure:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 rm -rf conftest* 3244 rm -rf conftest*
3548 ac_cv_header_time=yes 3245 ac_cv_header_time=yes
3549 else 3246 else
3550 echo "configure: failed program was:" >&5 3247 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5 3248 cat conftest.$ac_ext >&5
3565 } 3262 }
3566 3263
3567 fi 3264 fi
3568 3265
3569 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3266 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3570 echo "configure:3571: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3267 echo "configure:3268: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3571 3268
3572 cat > conftest.$ac_ext <<EOF 3269 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure" 3270 #line 3271 "configure"
3574 #include "confdefs.h" 3271 #include "confdefs.h"
3575 #include <sys/types.h> 3272 #include <sys/types.h>
3576 #include <signal.h> 3273 #include <signal.h>
3577 /* NetBSD declares sys_siglist in unistd.h. */ 3274 /* NetBSD declares sys_siglist in unistd.h. */
3578 #ifdef HAVE_UNISTD_H 3275 #ifdef HAVE_UNISTD_H
3580 #endif 3277 #endif
3581 int main() { 3278 int main() {
3582 char *msg = *(sys_siglist + 1); 3279 char *msg = *(sys_siglist + 1);
3583 ; return 0; } 3280 ; return 0; }
3584 EOF 3281 EOF
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 rm -rf conftest* 3283 rm -rf conftest*
3587 ac_cv_decl_sys_siglist=yes 3284 ac_cv_decl_sys_siglist=yes
3588 else 3285 else
3589 echo "configure: failed program was:" >&5 3286 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5 3287 cat conftest.$ac_ext >&5
3605 3302
3606 fi 3303 fi
3607 3304
3608 3305
3609 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3306 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3610 echo "configure:3611: checking for struct utimbuf" >&5 3307 echo "configure:3308: checking for struct utimbuf" >&5
3611 cat > conftest.$ac_ext <<EOF 3308 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure" 3309 #line 3310 "configure"
3613 #include "confdefs.h" 3310 #include "confdefs.h"
3614 #ifdef TIME_WITH_SYS_TIME 3311 #ifdef TIME_WITH_SYS_TIME
3615 #include <sys/time.h> 3312 #include <sys/time.h>
3616 #include <time.h> 3313 #include <time.h>
3617 #else 3314 #else
3626 #endif 3323 #endif
3627 int main() { 3324 int main() {
3628 static struct utimbuf x; x.actime = x.modtime; 3325 static struct utimbuf x; x.actime = x.modtime;
3629 ; return 0; } 3326 ; return 0; }
3630 EOF 3327 EOF
3631 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 rm -rf conftest* 3329 rm -rf conftest*
3633 echo "$ac_t""yes" 1>&6 3330 echo "$ac_t""yes" 1>&6
3634 { test "$extra_verbose" = "yes" && cat << \EOF 3331 { test "$extra_verbose" = "yes" && cat << \EOF
3635 Defining HAVE_STRUCT_UTIMBUF 3332 Defining HAVE_STRUCT_UTIMBUF
3636 EOF 3333 EOF
3646 echo "$ac_t""no" 1>&6 3343 echo "$ac_t""no" 1>&6
3647 fi 3344 fi
3648 rm -f conftest* 3345 rm -f conftest*
3649 3346
3650 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3347 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3651 echo "configure:3652: checking return type of signal handlers" >&5 3348 echo "configure:3349: checking return type of signal handlers" >&5
3652 3349
3653 cat > conftest.$ac_ext <<EOF 3350 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure" 3351 #line 3352 "configure"
3655 #include "confdefs.h" 3352 #include "confdefs.h"
3656 #include <sys/types.h> 3353 #include <sys/types.h>
3657 #include <signal.h> 3354 #include <signal.h>
3658 #ifdef signal 3355 #ifdef signal
3659 #undef signal 3356 #undef signal
3666 3363
3667 int main() { 3364 int main() {
3668 int i; 3365 int i;
3669 ; return 0; } 3366 ; return 0; }
3670 EOF 3367 EOF
3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 rm -rf conftest* 3369 rm -rf conftest*
3673 ac_cv_type_signal=void 3370 ac_cv_type_signal=void
3674 else 3371 else
3675 echo "configure: failed program was:" >&5 3372 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5 3373 cat conftest.$ac_ext >&5
3688 EOF 3385 EOF
3689 } 3386 }
3690 3387
3691 3388
3692 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3389 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for size_t" >&5 3390 echo "configure:3391: checking for size_t" >&5
3694 3391
3695 cat > conftest.$ac_ext <<EOF 3392 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure" 3393 #line 3394 "configure"
3697 #include "confdefs.h" 3394 #include "confdefs.h"
3698 #include <sys/types.h> 3395 #include <sys/types.h>
3699 #if STDC_HEADERS 3396 #if STDC_HEADERS
3700 #include <stdlib.h> 3397 #include <stdlib.h>
3701 #include <stddef.h> 3398 #include <stddef.h>
3702 #endif 3399 #endif
3703 EOF 3400 EOF
3704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3705 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3402 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3706 rm -rf conftest* 3403 rm -rf conftest*
3707 ac_cv_type_size_t=yes 3404 ac_cv_type_size_t=yes
3708 else 3405 else
3709 rm -rf conftest* 3406 rm -rf conftest*
3710 ac_cv_type_size_t=no 3407 ac_cv_type_size_t=no
3722 } 3419 }
3723 3420
3724 fi 3421 fi
3725 3422
3726 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3423 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3727 echo "configure:3728: checking for pid_t" >&5 3424 echo "configure:3425: checking for pid_t" >&5
3728 3425
3729 cat > conftest.$ac_ext <<EOF 3426 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure" 3427 #line 3428 "configure"
3731 #include "confdefs.h" 3428 #include "confdefs.h"
3732 #include <sys/types.h> 3429 #include <sys/types.h>
3733 #if STDC_HEADERS 3430 #if STDC_HEADERS
3734 #include <stdlib.h> 3431 #include <stdlib.h>
3735 #include <stddef.h> 3432 #include <stddef.h>
3736 #endif 3433 #endif
3737 EOF 3434 EOF
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3436 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3740 rm -rf conftest* 3437 rm -rf conftest*
3741 ac_cv_type_pid_t=yes 3438 ac_cv_type_pid_t=yes
3742 else 3439 else
3743 rm -rf conftest* 3440 rm -rf conftest*
3744 ac_cv_type_pid_t=no 3441 ac_cv_type_pid_t=no
3756 } 3453 }
3757 3454
3758 fi 3455 fi
3759 3456
3760 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3457 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3761 echo "configure:3762: checking for uid_t in sys/types.h" >&5 3458 echo "configure:3459: checking for uid_t in sys/types.h" >&5
3762 3459
3763 cat > conftest.$ac_ext <<EOF 3460 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure" 3461 #line 3462 "configure"
3765 #include "confdefs.h" 3462 #include "confdefs.h"
3766 #include <sys/types.h> 3463 #include <sys/types.h>
3767 EOF 3464 EOF
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 egrep "uid_t" >/dev/null 2>&1; then 3466 egrep "uid_t" >/dev/null 2>&1; then
3795 } 3492 }
3796 3493
3797 fi 3494 fi
3798 3495
3799 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3496 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3800 echo "configure:3801: checking for mode_t" >&5 3497 echo "configure:3498: checking for mode_t" >&5
3801 3498
3802 cat > conftest.$ac_ext <<EOF 3499 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure" 3500 #line 3501 "configure"
3804 #include "confdefs.h" 3501 #include "confdefs.h"
3805 #include <sys/types.h> 3502 #include <sys/types.h>
3806 #if STDC_HEADERS 3503 #if STDC_HEADERS
3807 #include <stdlib.h> 3504 #include <stdlib.h>
3808 #include <stddef.h> 3505 #include <stddef.h>
3809 #endif 3506 #endif
3810 EOF 3507 EOF
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3509 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3813 rm -rf conftest* 3510 rm -rf conftest*
3814 ac_cv_type_mode_t=yes 3511 ac_cv_type_mode_t=yes
3815 else 3512 else
3816 rm -rf conftest* 3513 rm -rf conftest*
3817 ac_cv_type_mode_t=no 3514 ac_cv_type_mode_t=no
3829 } 3526 }
3830 3527
3831 fi 3528 fi
3832 3529
3833 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3530 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3834 echo "configure:3835: checking for off_t" >&5 3531 echo "configure:3532: checking for off_t" >&5
3835 3532
3836 cat > conftest.$ac_ext <<EOF 3533 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure" 3534 #line 3535 "configure"
3838 #include "confdefs.h" 3535 #include "confdefs.h"
3839 #include <sys/types.h> 3536 #include <sys/types.h>
3840 #if STDC_HEADERS 3537 #if STDC_HEADERS
3841 #include <stdlib.h> 3538 #include <stdlib.h>
3842 #include <stddef.h> 3539 #include <stddef.h>
3843 #endif 3540 #endif
3844 EOF 3541 EOF
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3543 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3847 rm -rf conftest* 3544 rm -rf conftest*
3848 ac_cv_type_off_t=yes 3545 ac_cv_type_off_t=yes
3849 else 3546 else
3850 rm -rf conftest* 3547 rm -rf conftest*
3851 ac_cv_type_off_t=no 3548 ac_cv_type_off_t=no
3862 EOF 3559 EOF
3863 } 3560 }
3864 3561
3865 fi 3562 fi
3866 3563
3867 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3868 echo "configure:3869: checking for ssize_t" >&5
3869
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <sys/types.h>
3874 #if STDC_HEADERS
3875 #include <stdlib.h>
3876 #include <stddef.h>
3877 #endif
3878 EOF
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3881 rm -rf conftest*
3882 ac_cv_type_ssize_t=yes
3883 else
3884 rm -rf conftest*
3885 ac_cv_type_ssize_t=no
3886 fi
3887 rm -f conftest*
3888
3889 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3890 if test $ac_cv_type_ssize_t = no; then
3891 { test "$extra_verbose" = "yes" && cat << \EOF
3892 Defining ssize_t = int
3893 EOF
3894 cat >> confdefs.h <<\EOF
3895 #define ssize_t int
3896 EOF
3897 }
3898
3899 fi
3900
3901
3902 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3903 echo "configure:3904: checking for socklen_t" >&5
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/socket.h>
3908 socklen_t x;
3909
3910 int main() {
3911
3912 ; return 0; }
3913 EOF
3914 if { (eval echo configure:3915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 rm -rf conftest*
3916 echo "$ac_t""yes" 1>&6
3917 else
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 rm -rf conftest*
3921
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <sys/socket.h>
3926 int accept (int, struct sockaddr *, size_t *);
3927
3928 int main() {
3929
3930 ; return 0; }
3931 EOF
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 rm -rf conftest*
3934
3935 echo "$ac_t""size_t" 1>&6
3936 { test "$extra_verbose" = "yes" && cat << \EOF
3937 Defining socklen_t = size_t
3938 EOF
3939 cat >> confdefs.h <<\EOF
3940 #define socklen_t size_t
3941 EOF
3942 }
3943
3944 else
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 rm -rf conftest*
3948
3949 echo "$ac_t""int" 1>&6
3950 { test "$extra_verbose" = "yes" && cat << \EOF
3951 Defining socklen_t = int
3952 EOF
3953 cat >> confdefs.h <<\EOF
3954 #define socklen_t int
3955 EOF
3956 }
3957
3958 fi
3959 rm -f conftest*
3960 fi
3961 rm -f conftest*
3962 3564
3963 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3565 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3964 echo "configure:3965: checking for struct timeval" >&5 3566 echo "configure:3567: checking for struct timeval" >&5
3965 cat > conftest.$ac_ext <<EOF 3567 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure" 3568 #line 3569 "configure"
3967 #include "confdefs.h" 3569 #include "confdefs.h"
3968 #ifdef TIME_WITH_SYS_TIME 3570 #ifdef TIME_WITH_SYS_TIME
3969 #include <sys/time.h> 3571 #include <sys/time.h>
3970 #include <time.h> 3572 #include <time.h>
3971 #else 3573 #else
3977 #endif 3579 #endif
3978 int main() { 3580 int main() {
3979 static struct timeval x; x.tv_sec = x.tv_usec; 3581 static struct timeval x; x.tv_sec = x.tv_usec;
3980 ; return 0; } 3582 ; return 0; }
3981 EOF 3583 EOF
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 rm -rf conftest* 3585 rm -rf conftest*
3984 echo "$ac_t""yes" 1>&6 3586 echo "$ac_t""yes" 1>&6
3985 HAVE_TIMEVAL=yes 3587 HAVE_TIMEVAL=yes
3986 { test "$extra_verbose" = "yes" && cat << \EOF 3588 { test "$extra_verbose" = "yes" && cat << \EOF
3987 Defining HAVE_TIMEVAL 3589 Defining HAVE_TIMEVAL
3999 HAVE_TIMEVAL=no 3601 HAVE_TIMEVAL=no
4000 fi 3602 fi
4001 rm -f conftest* 3603 rm -f conftest*
4002 3604
4003 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3605 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4004 echo "configure:4005: checking whether struct tm is in sys/time.h or time.h" >&5 3606 echo "configure:3607: checking whether struct tm is in sys/time.h or time.h" >&5
4005 3607
4006 cat > conftest.$ac_ext <<EOF 3608 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure" 3609 #line 3610 "configure"
4008 #include "confdefs.h" 3610 #include "confdefs.h"
4009 #include <sys/types.h> 3611 #include <sys/types.h>
4010 #include <time.h> 3612 #include <time.h>
4011 int main() { 3613 int main() {
4012 struct tm *tp; tp->tm_sec; 3614 struct tm *tp; tp->tm_sec;
4013 ; return 0; } 3615 ; return 0; }
4014 EOF 3616 EOF
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 rm -rf conftest* 3618 rm -rf conftest*
4017 ac_cv_struct_tm=time.h 3619 ac_cv_struct_tm=time.h
4018 else 3620 else
4019 echo "configure: failed program was:" >&5 3621 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5 3622 cat conftest.$ac_ext >&5
4034 } 3636 }
4035 3637
4036 fi 3638 fi
4037 3639
4038 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3640 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4039 echo "configure:4040: checking for tm_zone in struct tm" >&5 3641 echo "configure:3642: checking for tm_zone in struct tm" >&5
4040 3642
4041 cat > conftest.$ac_ext <<EOF 3643 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure" 3644 #line 3645 "configure"
4043 #include "confdefs.h" 3645 #include "confdefs.h"
4044 #include <sys/types.h> 3646 #include <sys/types.h>
4045 #include <$ac_cv_struct_tm> 3647 #include <$ac_cv_struct_tm>
4046 int main() { 3648 int main() {
4047 struct tm tm; tm.tm_zone; 3649 struct tm tm; tm.tm_zone;
4048 ; return 0; } 3650 ; return 0; }
4049 EOF 3651 EOF
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 rm -rf conftest* 3653 rm -rf conftest*
4052 ac_cv_struct_tm_zone=yes 3654 ac_cv_struct_tm_zone=yes
4053 else 3655 else
4054 echo "configure: failed program was:" >&5 3656 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5 3657 cat conftest.$ac_ext >&5
4068 EOF 3670 EOF
4069 } 3671 }
4070 3672
4071 else 3673 else
4072 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3674 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4073 echo "configure:4074: checking for tzname" >&5 3675 echo "configure:3676: checking for tzname" >&5
4074 3676
4075 cat > conftest.$ac_ext <<EOF 3677 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure" 3678 #line 3679 "configure"
4077 #include "confdefs.h" 3679 #include "confdefs.h"
4078 #include <time.h> 3680 #include <time.h>
4079 #ifndef tzname /* For SGI. */ 3681 #ifndef tzname /* For SGI. */
4080 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4081 #endif 3683 #endif
4082 int main() { 3684 int main() {
4083 atoi(*tzname); 3685 atoi(*tzname);
4084 ; return 0; } 3686 ; return 0; }
4085 EOF 3687 EOF
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4087 rm -rf conftest* 3689 rm -rf conftest*
4088 ac_cv_var_tzname=yes 3690 ac_cv_var_tzname=yes
4089 else 3691 else
4090 echo "configure: failed program was:" >&5 3692 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5 3693 cat conftest.$ac_ext >&5
4107 fi 3709 fi
4108 fi 3710 fi
4109 3711
4110 3712
4111 echo $ac_n "checking for working const""... $ac_c" 1>&6 3713 echo $ac_n "checking for working const""... $ac_c" 1>&6
4112 echo "configure:4113: checking for working const" >&5 3714 echo "configure:3715: checking for working const" >&5
4113 3715
4114 cat > conftest.$ac_ext <<EOF 3716 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure" 3717 #line 3718 "configure"
4116 #include "confdefs.h" 3718 #include "confdefs.h"
4117 3719
4118 int main() { 3720 int main() {
4119 3721
4120 /* Ultrix mips cc rejects this. */ 3722 /* Ultrix mips cc rejects this. */
4159 const int foo = 10; 3761 const int foo = 10;
4160 } 3762 }
4161 3763
4162 ; return 0; } 3764 ; return 0; }
4163 EOF 3765 EOF
4164 if { (eval echo configure:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3766 if { (eval echo configure:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 rm -rf conftest* 3767 rm -rf conftest*
4166 ac_cv_c_const=yes 3768 ac_cv_c_const=yes
4167 else 3769 else
4168 echo "configure: failed program was:" >&5 3770 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5 3771 cat conftest.$ac_ext >&5
4184 3786
4185 fi 3787 fi
4186 3788
4187 3789
4188 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3790 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4189 echo "configure:4190: checking whether ${MAKE-make} sets \${MAKE}" >&5 3791 echo "configure:3792: checking whether ${MAKE-make} sets \${MAKE}" >&5
4190 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4191 3793
4192 cat > conftestmake <<\EOF 3794 cat > conftestmake <<\EOF
4193 all: 3795 all:
4194 @echo 'ac_maketemp="${MAKE}"' 3796 @echo 'ac_maketemp="${MAKE}"'
4209 SET_MAKE="MAKE=${MAKE-make}" 3811 SET_MAKE="MAKE=${MAKE-make}"
4210 fi 3812 fi
4211 3813
4212 3814
4213 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3815 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4214 echo "configure:4215: checking whether byte ordering is bigendian" >&5 3816 echo "configure:3817: checking whether byte ordering is bigendian" >&5
4215 3817
4216 ac_cv_c_bigendian=unknown 3818 ac_cv_c_bigendian=unknown
4217 # See if sys/param.h defines the BYTE_ORDER macro. 3819 # See if sys/param.h defines the BYTE_ORDER macro.
4218 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure" 3821 #line 3822 "configure"
4220 #include "confdefs.h" 3822 #include "confdefs.h"
4221 #include <sys/types.h> 3823 #include <sys/types.h>
4222 #include <sys/param.h> 3824 #include <sys/param.h>
4223 int main() { 3825 int main() {
4224 3826
4225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3827 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4226 bogus endian macros 3828 bogus endian macros
4227 #endif 3829 #endif
4228 ; return 0; } 3830 ; return 0; }
4229 EOF 3831 EOF
4230 if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3832 if { (eval echo configure:3833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4231 rm -rf conftest* 3833 rm -rf conftest*
4232 # It does; now see whether it defined to BIG_ENDIAN or not. 3834 # It does; now see whether it defined to BIG_ENDIAN or not.
4233 cat > conftest.$ac_ext <<EOF 3835 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure" 3836 #line 3837 "configure"
4235 #include "confdefs.h" 3837 #include "confdefs.h"
4236 #include <sys/types.h> 3838 #include <sys/types.h>
4237 #include <sys/param.h> 3839 #include <sys/param.h>
4238 int main() { 3840 int main() {
4239 3841
4240 #if BYTE_ORDER != BIG_ENDIAN 3842 #if BYTE_ORDER != BIG_ENDIAN
4241 not big endian 3843 not big endian
4242 #endif 3844 #endif
4243 ; return 0; } 3845 ; return 0; }
4244 EOF 3846 EOF
4245 if { (eval echo configure:4246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3847 if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4246 rm -rf conftest* 3848 rm -rf conftest*
4247 ac_cv_c_bigendian=yes 3849 ac_cv_c_bigendian=yes
4248 else 3850 else
4249 echo "configure: failed program was:" >&5 3851 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5 3852 cat conftest.$ac_ext >&5
4257 cat conftest.$ac_ext >&5 3859 cat conftest.$ac_ext >&5
4258 fi 3860 fi
4259 rm -f conftest* 3861 rm -f conftest*
4260 if test $ac_cv_c_bigendian = unknown; then 3862 if test $ac_cv_c_bigendian = unknown; then
4261 cat > conftest.$ac_ext <<EOF 3863 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure" 3864 #line 3865 "configure"
4263 #include "confdefs.h" 3865 #include "confdefs.h"
4264 main () { 3866 main () {
4265 /* Are we little or big endian? From Harbison&Steele. */ 3867 /* Are we little or big endian? From Harbison&Steele. */
4266 union 3868 union
4267 { 3869 {
4270 } u; 3872 } u;
4271 u.l = 1; 3873 u.l = 1;
4272 exit (u.c[sizeof (long) - 1] == 1); 3874 exit (u.c[sizeof (long) - 1] == 1);
4273 } 3875 }
4274 EOF 3876 EOF
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4276 then 3878 then
4277 ac_cv_c_bigendian=no 3879 ac_cv_c_bigendian=no
4278 else 3880 else
4279 conftest_rc="$?" 3881 conftest_rc="$?"
4280 echo "configure: failed program was:" >&5 3882 echo "configure: failed program was:" >&5
4297 3899
4298 fi 3900 fi
4299 3901
4300 3902
4301 echo $ac_n "checking size of short""... $ac_c" 1>&6 3903 echo $ac_n "checking size of short""... $ac_c" 1>&6
4302 echo "configure:4303: checking size of short" >&5 3904 echo "configure:3905: checking size of short" >&5
4303 3905
4304 cat > conftest.$ac_ext <<EOF 3906 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure" 3907 #line 3908 "configure"
4306 #include "confdefs.h" 3908 #include "confdefs.h"
4307 #include <stdio.h> 3909 #include <stdio.h>
4308 main() 3910 main()
4309 { 3911 {
4310 FILE *f=fopen("conftestval", "w"); 3912 FILE *f=fopen("conftestval", "w");
4311 if (!f) exit(1); 3913 if (!f) exit(1);
4312 fprintf(f, "%d\n", sizeof(short)); 3914 fprintf(f, "%d\n", sizeof(short));
4313 exit(0); 3915 exit(0);
4314 } 3916 }
4315 EOF 3917 EOF
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4317 then 3919 then
4318 ac_cv_sizeof_short=`cat conftestval` 3920 ac_cv_sizeof_short=`cat conftestval`
4319 else 3921 else
4320 conftest_rc="$?" 3922 conftest_rc="$?"
4321 echo "configure: failed program was:" >&5 3923 echo "configure: failed program was:" >&5
4339 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3941 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4340 echo "*** PANIC *** Please examine config.log for compilation errors." 3942 echo "*** PANIC *** Please examine config.log for compilation errors."
4341 exit 1 3943 exit 1
4342 fi 3944 fi
4343 echo $ac_n "checking size of int""... $ac_c" 1>&6 3945 echo $ac_n "checking size of int""... $ac_c" 1>&6
4344 echo "configure:4345: checking size of int" >&5 3946 echo "configure:3947: checking size of int" >&5
4345 3947
4346 cat > conftest.$ac_ext <<EOF 3948 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure" 3949 #line 3950 "configure"
4348 #include "confdefs.h" 3950 #include "confdefs.h"
4349 #include <stdio.h> 3951 #include <stdio.h>
4350 main() 3952 main()
4351 { 3953 {
4352 FILE *f=fopen("conftestval", "w"); 3954 FILE *f=fopen("conftestval", "w");
4353 if (!f) exit(1); 3955 if (!f) exit(1);
4354 fprintf(f, "%d\n", sizeof(int)); 3956 fprintf(f, "%d\n", sizeof(int));
4355 exit(0); 3957 exit(0);
4356 } 3958 }
4357 EOF 3959 EOF
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4359 then 3961 then
4360 ac_cv_sizeof_int=`cat conftestval` 3962 ac_cv_sizeof_int=`cat conftestval`
4361 else 3963 else
4362 conftest_rc="$?" 3964 conftest_rc="$?"
4363 echo "configure: failed program was:" >&5 3965 echo "configure: failed program was:" >&5
4375 EOF 3977 EOF
4376 } 3978 }
4377 3979
4378 3980
4379 echo $ac_n "checking size of long""... $ac_c" 1>&6 3981 echo $ac_n "checking size of long""... $ac_c" 1>&6
4380 echo "configure:4381: checking size of long" >&5 3982 echo "configure:3983: checking size of long" >&5
4381 3983
4382 cat > conftest.$ac_ext <<EOF 3984 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure" 3985 #line 3986 "configure"
4384 #include "confdefs.h" 3986 #include "confdefs.h"
4385 #include <stdio.h> 3987 #include <stdio.h>
4386 main() 3988 main()
4387 { 3989 {
4388 FILE *f=fopen("conftestval", "w"); 3990 FILE *f=fopen("conftestval", "w");
4389 if (!f) exit(1); 3991 if (!f) exit(1);
4390 fprintf(f, "%d\n", sizeof(long)); 3992 fprintf(f, "%d\n", sizeof(long));
4391 exit(0); 3993 exit(0);
4392 } 3994 }
4393 EOF 3995 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4395 then 3997 then
4396 ac_cv_sizeof_long=`cat conftestval` 3998 ac_cv_sizeof_long=`cat conftestval`
4397 else 3999 else
4398 conftest_rc="$?" 4000 conftest_rc="$?"
4399 echo "configure: failed program was:" >&5 4001 echo "configure: failed program was:" >&5
4411 EOF 4013 EOF
4412 } 4014 }
4413 4015
4414 4016
4415 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4017 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4416 echo "configure:4417: checking size of long long" >&5 4018 echo "configure:4019: checking size of long long" >&5
4417 4019
4418 cat > conftest.$ac_ext <<EOF 4020 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure" 4021 #line 4022 "configure"
4420 #include "confdefs.h" 4022 #include "confdefs.h"
4421 #include <stdio.h> 4023 #include <stdio.h>
4422 main() 4024 main()
4423 { 4025 {
4424 FILE *f=fopen("conftestval", "w"); 4026 FILE *f=fopen("conftestval", "w");
4425 if (!f) exit(1); 4027 if (!f) exit(1);
4426 fprintf(f, "%d\n", sizeof(long long)); 4028 fprintf(f, "%d\n", sizeof(long long));
4427 exit(0); 4029 exit(0);
4428 } 4030 }
4429 EOF 4031 EOF
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4431 then 4033 then
4432 ac_cv_sizeof_long_long=`cat conftestval` 4034 ac_cv_sizeof_long_long=`cat conftestval`
4433 else 4035 else
4434 conftest_rc="$?" 4036 conftest_rc="$?"
4435 echo "configure: failed program was:" >&5 4037 echo "configure: failed program was:" >&5
4447 EOF 4049 EOF
4448 } 4050 }
4449 4051
4450 4052
4451 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4053 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4452 echo "configure:4453: checking size of void *" >&5 4054 echo "configure:4055: checking size of void *" >&5
4453 4055
4454 cat > conftest.$ac_ext <<EOF 4056 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure" 4057 #line 4058 "configure"
4456 #include "confdefs.h" 4058 #include "confdefs.h"
4457 #include <stdio.h> 4059 #include <stdio.h>
4458 main() 4060 main()
4459 { 4061 {
4460 FILE *f=fopen("conftestval", "w"); 4062 FILE *f=fopen("conftestval", "w");
4461 if (!f) exit(1); 4063 if (!f) exit(1);
4462 fprintf(f, "%d\n", sizeof(void *)); 4064 fprintf(f, "%d\n", sizeof(void *));
4463 exit(0); 4065 exit(0);
4464 } 4066 }
4465 EOF 4067 EOF
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4467 then 4069 then
4468 ac_cv_sizeof_void_p=`cat conftestval` 4070 ac_cv_sizeof_void_p=`cat conftestval`
4469 else 4071 else
4470 conftest_rc="$?" 4072 conftest_rc="$?"
4471 echo "configure: failed program was:" >&5 4073 echo "configure: failed program was:" >&5
4484 } 4086 }
4485 4087
4486 4088
4487 4089
4488 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4090 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4489 echo "configure:4490: checking for long file names" >&5 4091 echo "configure:4092: checking for long file names" >&5
4490 4092
4491 ac_cv_sys_long_file_names=yes 4093 ac_cv_sys_long_file_names=yes
4492 # Test for long file names in all the places we know might matter: 4094 # Test for long file names in all the places we know might matter:
4493 # . the current directory, where building will happen 4095 # . the current directory, where building will happen
4494 # $prefix/lib where we will be installing things 4096 # $prefix/lib where we will be installing things
4530 4132
4531 fi 4133 fi
4532 4134
4533 4135
4534 echo $ac_n "checking for sin""... $ac_c" 1>&6 4136 echo $ac_n "checking for sin""... $ac_c" 1>&6
4535 echo "configure:4536: checking for sin" >&5 4137 echo "configure:4138: checking for sin" >&5
4536 4138
4537 cat > conftest.$ac_ext <<EOF 4139 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure" 4140 #line 4141 "configure"
4539 #include "confdefs.h" 4141 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes, 4142 /* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char sin(); below. */ 4143 which can conflict with char sin(); below. */
4542 #include <assert.h> 4144 #include <assert.h>
4543 /* Override any gcc2 internal prototype to avoid an error. */ 4145 /* Override any gcc2 internal prototype to avoid an error. */
4556 sin(); 4158 sin();
4557 #endif 4159 #endif
4558 4160
4559 ; return 0; } 4161 ; return 0; }
4560 EOF 4162 EOF
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4562 rm -rf conftest* 4164 rm -rf conftest*
4563 eval "ac_cv_func_sin=yes" 4165 eval "ac_cv_func_sin=yes"
4564 else 4166 else
4565 echo "configure: failed program was:" >&5 4167 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5 4168 cat conftest.$ac_ext >&5
4574 : 4176 :
4575 else 4177 else
4576 echo "$ac_t""no" 1>&6 4178 echo "$ac_t""no" 1>&6
4577 4179
4578 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4180 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4579 echo "configure:4580: checking for sin in -lm" >&5 4181 echo "configure:4182: checking for sin in -lm" >&5
4580 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4182 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4581 4183
4582 xe_check_libs=" -lm " 4184 xe_check_libs=" -lm "
4583 cat > conftest.$ac_ext <<EOF 4185 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure" 4186 #line 4187 "configure"
4585 #include "confdefs.h" 4187 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */ 4188 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2 4189 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */ 4190 builtin and then its argument prototype would still apply. */
4589 char sin(); 4191 char sin();
4590 4192
4591 int main() { 4193 int main() {
4592 sin() 4194 sin()
4593 ; return 0; } 4195 ; return 0; }
4594 EOF 4196 EOF
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4596 rm -rf conftest* 4198 rm -rf conftest*
4597 eval "ac_cv_lib_$ac_lib_var=yes" 4199 eval "ac_cv_lib_$ac_lib_var=yes"
4598 else 4200 else
4599 echo "configure: failed program was:" >&5 4201 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5 4202 cat conftest.$ac_ext >&5
4634 EOF 4236 EOF
4635 } 4237 }
4636 4238
4637 4239
4638 cat > conftest.$ac_ext <<EOF 4240 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure" 4241 #line 4242 "configure"
4640 #include "confdefs.h" 4242 #include "confdefs.h"
4641 #include <math.h> 4243 #include <math.h>
4642 int main() { 4244 int main() {
4643 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4245 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4644 ; return 0; } 4246 ; return 0; }
4645 EOF 4247 EOF
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4647 rm -rf conftest* 4249 rm -rf conftest*
4648 { test "$extra_verbose" = "yes" && cat << \EOF 4250 { test "$extra_verbose" = "yes" && cat << \EOF
4649 Defining HAVE_INVERSE_HYPERBOLIC 4251 Defining HAVE_INVERSE_HYPERBOLIC
4650 EOF 4252 EOF
4651 cat >> confdefs.h <<\EOF 4253 cat >> confdefs.h <<\EOF
4658 cat conftest.$ac_ext >&5 4260 cat conftest.$ac_ext >&5
4659 fi 4261 fi
4660 rm -f conftest* 4262 rm -f conftest*
4661 4263
4662 echo "checking type of mail spool file locking" 1>&6 4264 echo "checking type of mail spool file locking" 1>&6
4663 echo "configure:4664: checking type of mail spool file locking" >&5 4265 echo "configure:4266: checking type of mail spool file locking" >&5
4664 for ac_func in lockf flock
4665 do
4666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_func" >&5
4668
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char $ac_func(); below. */
4674 #include <assert.h>
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char $ac_func();
4679
4680 int main() {
4681
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 choke me
4687 #else
4688 $ac_func();
4689 #endif
4690
4691 ; return 0; }
4692 EOF
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 rm -rf conftest*
4695 eval "ac_cv_func_$ac_func=yes"
4696 else
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 rm -rf conftest*
4700 eval "ac_cv_func_$ac_func=no"
4701 fi
4702 rm -f conftest*
4703
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 { test "$extra_verbose" = "yes" && cat << EOF
4708 Defining $ac_tr_func
4709 EOF
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_func 1
4712 EOF
4713 }
4714
4715 else
4716 echo "$ac_t""no" 1>&6
4717 fi
4718 done
4719
4720 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4266 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4721 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4267 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4722 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4723 if test -z "$mail_locking"; then
4724 case "$opsys" in cygwin* | mingw*)
4725 mail_locking=pop ;;
4726 esac
4727 fi
4728
4729 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4268 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4730 Defining MAIL_LOCK_LOCKF 4269 Defining REAL_MAIL_USE_LOCKF
4731 EOF 4270 EOF
4732 cat >> confdefs.h <<\EOF 4271 cat >> confdefs.h <<\EOF
4733 #define MAIL_LOCK_LOCKF 1 4272 #define REAL_MAIL_USE_LOCKF 1
4734 EOF 4273 EOF
4735 } 4274 }
4736 4275
4737 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF 4276 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4738 Defining MAIL_LOCK_FLOCK 4277 Defining REAL_MAIL_USE_FLOCK
4739 EOF 4278 EOF
4740 cat >> confdefs.h <<\EOF 4279 cat >> confdefs.h <<\EOF
4741 #define MAIL_LOCK_FLOCK 1 4280 #define REAL_MAIL_USE_FLOCK 1
4742 EOF 4281 EOF
4743 } 4282 }
4744 4283
4745 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF 4284 else mail_locking="dot-locking"
4746 Defining MAIL_LOCK_LOCKING 4285 fi
4747 EOF
4748 cat >> confdefs.h <<\EOF
4749 #define MAIL_LOCK_LOCKING 1
4750 EOF
4751 }
4752
4753 elif test "$mail_locking" = "pop"; then
4754 with_pop=yes
4755 mail_locking=
4756 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4757 Defining MAIL_LOCK_DOT
4758 EOF
4759 cat >> confdefs.h <<\EOF
4760 #define MAIL_LOCK_DOT 1
4761 EOF
4762 }
4763
4764 fi
4765 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4766 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4767 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4768 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4769 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4770 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4771 4286
4772 case "$opsys" in decosf*) 4287 case "$opsys" in decosf*)
4773 4288
4774 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4289 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4775 echo "configure:4776: checking for cma_open in -lpthreads" >&5 4290 echo "configure:4291: checking for cma_open in -lpthreads" >&5
4776 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4291 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4777 4292
4778 xe_check_libs=" -lpthreads " 4293 xe_check_libs=" -lpthreads "
4779 cat > conftest.$ac_ext <<EOF 4294 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure" 4295 #line 4296 "configure"
4781 #include "confdefs.h" 4296 #include "confdefs.h"
4782 /* Override any gcc2 internal prototype to avoid an error. */ 4297 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2 4298 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */ 4299 builtin and then its argument prototype would still apply. */
4785 char cma_open(); 4300 char cma_open();
4786 4301
4787 int main() { 4302 int main() {
4788 cma_open() 4303 cma_open()
4789 ; return 0; } 4304 ; return 0; }
4790 EOF 4305 EOF
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4792 rm -rf conftest* 4307 rm -rf conftest*
4793 eval "ac_cv_lib_$ac_lib_var=yes" 4308 eval "ac_cv_lib_$ac_lib_var=yes"
4794 else 4309 else
4795 echo "configure: failed program was:" >&5 4310 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5 4311 cat conftest.$ac_ext >&5
4822 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4337 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4823 c_switch_site="$c_switch_site -threads" ;; 4338 c_switch_site="$c_switch_site -threads" ;;
4824 esac 4339 esac
4825 4340
4826 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4341 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4827 echo "configure:4828: checking whether the -xildoff compiler flag is required" >&5 4342 echo "configure:4343: checking whether the -xildoff compiler flag is required" >&5
4828 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4343 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4829 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4344 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4830 then echo "$ac_t""no" 1>&6; 4345 then echo "$ac_t""no" 1>&6;
4831 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 4346 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
4832 fi 4347 fi
4833 else echo "$ac_t""no" 1>&6 4348 else echo "$ac_t""no" 1>&6
4834 fi 4349 fi
4835 4350
4836 if test "$opsys" = "sol2"; then 4351 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4837 if test "$os_release" -ge 56; then 4352 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4838 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4353 echo "configure:4354: checking for \"-z ignore\" linker flag" >&5
4839 echo "configure:4840: checking for \"-z ignore\" linker flag" >&5 4354 case "`ld -h 2>&1`" in
4840 case "`ld -h 2>&1`" in 4355 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4841 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4356 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4842 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4357 *) echo "$ac_t""no" 1>&6 ;;
4843 *) echo "$ac_t""no" 1>&6 ;; 4358 esac
4844 esac
4845 fi
4846 fi 4359 fi
4847 4360
4848 4361
4849 echo "checking "for specified window system"" 1>&6 4362 echo "checking "for specified window system"" 1>&6
4850 echo "configure:4851: checking "for specified window system"" >&5 4363 echo "configure:4364: checking "for specified window system"" >&5
4851 4364
4852 if test "$with_x11" != "no"; then 4365 if test "$with_x11" != "no"; then
4853 test "$x_includes $x_libraries" != "NONE NONE" && \ 4366 test "$x_includes $x_libraries" != "NONE NONE" && \
4854 window_system=x11 with_x11=yes 4367 window_system=x11 with_x11=yes
4855 4368
4878 # If we find X, set shell vars x_includes and x_libraries to the 4391 # If we find X, set shell vars x_includes and x_libraries to the
4879 # paths, otherwise set no_x=yes. 4392 # paths, otherwise set no_x=yes.
4880 # Uses ac_ vars as temps to allow command line to override cache and checks. 4393 # Uses ac_ vars as temps to allow command line to override cache and checks.
4881 # --without-x overrides everything else, but does not touch the cache. 4394 # --without-x overrides everything else, but does not touch the cache.
4882 echo $ac_n "checking for X""... $ac_c" 1>&6 4395 echo $ac_n "checking for X""... $ac_c" 1>&6
4883 echo "configure:4884: checking for X" >&5 4396 echo "configure:4397: checking for X" >&5
4884 4397
4885 # Check whether --with-x or --without-x was given. 4398 # Check whether --with-x or --without-x was given.
4886 if test "${with_x+set}" = set; then 4399 if test "${with_x+set}" = set; then
4887 withval="$with_x" 4400 withval="$with_x"
4888 : 4401 :
4938 # Guess where to find include files, by looking for this one X11 .h file. 4451 # Guess where to find include files, by looking for this one X11 .h file.
4939 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4452 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4940 4453
4941 # First, try using that file with no special directory specified. 4454 # First, try using that file with no special directory specified.
4942 cat > conftest.$ac_ext <<EOF 4455 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure" 4456 #line 4457 "configure"
4944 #include "confdefs.h" 4457 #include "confdefs.h"
4945 #include <$x_direct_test_include> 4458 #include <$x_direct_test_include>
4946 EOF 4459 EOF
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4461 { (eval echo configure:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4462 ac_err=`grep -v '^ *+' conftest.out`
4950 if test -z "$ac_err"; then 4463 if test -z "$ac_err"; then
4951 rm -rf conftest* 4464 rm -rf conftest*
4952 # We can compile using X headers with no special include directory. 4465 # We can compile using X headers with no special include directory.
4953 ac_x_includes= 4466 ac_x_includes=
4954 else 4467 else
5012 # See if we find them without any special options. 4525 # See if we find them without any special options.
5013 # Don't add to $LIBS permanently. 4526 # Don't add to $LIBS permanently.
5014 ac_save_LIBS="$LIBS" 4527 ac_save_LIBS="$LIBS"
5015 LIBS="-l$x_direct_test_library $LIBS" 4528 LIBS="-l$x_direct_test_library $LIBS"
5016 cat > conftest.$ac_ext <<EOF 4529 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure" 4530 #line 4531 "configure"
5018 #include "confdefs.h" 4531 #include "confdefs.h"
5019 4532
5020 int main() { 4533 int main() {
5021 ${x_direct_test_function}() 4534 ${x_direct_test_function}()
5022 ; return 0; } 4535 ; return 0; }
5023 EOF 4536 EOF
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5025 rm -rf conftest* 4538 rm -rf conftest*
5026 LIBS="$ac_save_LIBS" 4539 LIBS="$ac_save_LIBS"
5027 # We can link X programs with no special library path. 4540 # We can link X programs with no special library path.
5028 ac_x_libraries= 4541 ac_x_libraries=
5029 else 4542 else
5128 # For Solaris; some versions of Sun CC require a space after -R and 4641 # For Solaris; some versions of Sun CC require a space after -R and
5129 # others require no space. Words are not sufficient . . . . 4642 # others require no space. Words are not sufficient . . . .
5130 case "`(uname -sr) 2>/dev/null`" in 4643 case "`(uname -sr) 2>/dev/null`" in
5131 "SunOS 5"*) 4644 "SunOS 5"*)
5132 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4645 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5133 echo "configure:5134: checking whether -R must be followed by a space" >&5 4646 echo "configure:4647: checking whether -R must be followed by a space" >&5
5134 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4647 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5135 cat > conftest.$ac_ext <<EOF 4648 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure" 4649 #line 4650 "configure"
5137 #include "confdefs.h" 4650 #include "confdefs.h"
5138 4651
5139 int main() { 4652 int main() {
5140 4653
5141 ; return 0; } 4654 ; return 0; }
5142 EOF 4655 EOF
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4656 if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5144 rm -rf conftest* 4657 rm -rf conftest*
5145 ac_R_nospace=yes 4658 ac_R_nospace=yes
5146 else 4659 else
5147 echo "configure: failed program was:" >&5 4660 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5 4661 cat conftest.$ac_ext >&5
5154 echo "$ac_t""no" 1>&6 4667 echo "$ac_t""no" 1>&6
5155 X_LIBS="$X_LIBS -R$x_libraries" 4668 X_LIBS="$X_LIBS -R$x_libraries"
5156 else 4669 else
5157 LIBS="$ac_xsave_LIBS -R $x_libraries" 4670 LIBS="$ac_xsave_LIBS -R $x_libraries"
5158 cat > conftest.$ac_ext <<EOF 4671 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure" 4672 #line 4673 "configure"
5160 #include "confdefs.h" 4673 #include "confdefs.h"
5161 4674
5162 int main() { 4675 int main() {
5163 4676
5164 ; return 0; } 4677 ; return 0; }
5165 EOF 4678 EOF
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5167 rm -rf conftest* 4680 rm -rf conftest*
5168 ac_R_space=yes 4681 ac_R_space=yes
5169 else 4682 else
5170 echo "configure: failed program was:" >&5 4683 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5 4684 cat conftest.$ac_ext >&5
5197 if test "$with_dnet" = "no" ; then 4710 if test "$with_dnet" = "no" ; then
5198 ac_cv_lib_dnet_dnet_ntoa=no 4711 ac_cv_lib_dnet_dnet_ntoa=no
5199 else 4712 else
5200 4713
5201 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4714 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5202 echo "configure:5203: checking for dnet_ntoa in -ldnet" >&5 4715 echo "configure:4716: checking for dnet_ntoa in -ldnet" >&5
5203 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4716 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5204 4717
5205 xe_check_libs=" -ldnet " 4718 xe_check_libs=" -ldnet "
5206 cat > conftest.$ac_ext <<EOF 4719 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure" 4720 #line 4721 "configure"
5208 #include "confdefs.h" 4721 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */ 4722 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2 4723 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */ 4724 builtin and then its argument prototype would still apply. */
5212 char dnet_ntoa(); 4725 char dnet_ntoa();
5213 4726
5214 int main() { 4727 int main() {
5215 dnet_ntoa() 4728 dnet_ntoa()
5216 ; return 0; } 4729 ; return 0; }
5217 EOF 4730 EOF
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5219 rm -rf conftest* 4732 rm -rf conftest*
5220 eval "ac_cv_lib_$ac_lib_var=yes" 4733 eval "ac_cv_lib_$ac_lib_var=yes"
5221 else 4734 else
5222 echo "configure: failed program was:" >&5 4735 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5 4736 cat conftest.$ac_ext >&5
5237 fi 4750 fi
5238 4751
5239 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4752 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5240 4753
5241 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4754 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5242 echo "configure:5243: checking for dnet_ntoa in -ldnet_stub" >&5 4755 echo "configure:4756: checking for dnet_ntoa in -ldnet_stub" >&5
5243 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4756 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5244 4757
5245 xe_check_libs=" -ldnet_stub " 4758 xe_check_libs=" -ldnet_stub "
5246 cat > conftest.$ac_ext <<EOF 4759 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure" 4760 #line 4761 "configure"
5248 #include "confdefs.h" 4761 #include "confdefs.h"
5249 /* Override any gcc2 internal prototype to avoid an error. */ 4762 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2 4763 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */ 4764 builtin and then its argument prototype would still apply. */
5252 char dnet_ntoa(); 4765 char dnet_ntoa();
5253 4766
5254 int main() { 4767 int main() {
5255 dnet_ntoa() 4768 dnet_ntoa()
5256 ; return 0; } 4769 ; return 0; }
5257 EOF 4770 EOF
5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5259 rm -rf conftest* 4772 rm -rf conftest*
5260 eval "ac_cv_lib_$ac_lib_var=yes" 4773 eval "ac_cv_lib_$ac_lib_var=yes"
5261 else 4774 else
5262 echo "configure: failed program was:" >&5 4775 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5 4776 cat conftest.$ac_ext >&5
5282 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4795 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5283 # needs -lnsl. 4796 # needs -lnsl.
5284 # The nsl library prevents programs from opening the X display 4797 # The nsl library prevents programs from opening the X display
5285 # on Irix 5.2, according to dickey@clark.net. 4798 # on Irix 5.2, according to dickey@clark.net.
5286 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4799 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5287 echo "configure:5288: checking for gethostbyname" >&5 4800 echo "configure:4801: checking for gethostbyname" >&5
5288 4801
5289 cat > conftest.$ac_ext <<EOF 4802 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure" 4803 #line 4804 "configure"
5291 #include "confdefs.h" 4804 #include "confdefs.h"
5292 /* System header to define __stub macros and hopefully few prototypes, 4805 /* System header to define __stub macros and hopefully few prototypes,
5293 which can conflict with char gethostbyname(); below. */ 4806 which can conflict with char gethostbyname(); below. */
5294 #include <assert.h> 4807 #include <assert.h>
5295 /* Override any gcc2 internal prototype to avoid an error. */ 4808 /* Override any gcc2 internal prototype to avoid an error. */
5308 gethostbyname(); 4821 gethostbyname();
5309 #endif 4822 #endif
5310 4823
5311 ; return 0; } 4824 ; return 0; }
5312 EOF 4825 EOF
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5314 rm -rf conftest* 4827 rm -rf conftest*
5315 eval "ac_cv_func_gethostbyname=yes" 4828 eval "ac_cv_func_gethostbyname=yes"
5316 else 4829 else
5317 echo "configure: failed program was:" >&5 4830 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5 4831 cat conftest.$ac_ext >&5
5329 fi 4842 fi
5330 4843
5331 if test $ac_cv_func_gethostbyname = no; then 4844 if test $ac_cv_func_gethostbyname = no; then
5332 4845
5333 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4846 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5334 echo "configure:5335: checking for gethostbyname in -lnsl" >&5 4847 echo "configure:4848: checking for gethostbyname in -lnsl" >&5
5335 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4848 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5336 4849
5337 xe_check_libs=" -lnsl " 4850 xe_check_libs=" -lnsl "
5338 cat > conftest.$ac_ext <<EOF 4851 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure" 4852 #line 4853 "configure"
5340 #include "confdefs.h" 4853 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */ 4854 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2 4855 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */ 4856 builtin and then its argument prototype would still apply. */
5344 char gethostbyname(); 4857 char gethostbyname();
5345 4858
5346 int main() { 4859 int main() {
5347 gethostbyname() 4860 gethostbyname()
5348 ; return 0; } 4861 ; return 0; }
5349 EOF 4862 EOF
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5351 rm -rf conftest* 4864 rm -rf conftest*
5352 eval "ac_cv_lib_$ac_lib_var=yes" 4865 eval "ac_cv_lib_$ac_lib_var=yes"
5353 else 4866 else
5354 echo "configure: failed program was:" >&5 4867 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5 4868 cat conftest.$ac_ext >&5
5375 # on later versions), says simon@lia.di.epfl.ch: it contains 4888 # on later versions), says simon@lia.di.epfl.ch: it contains
5376 # gethostby* variants that don't use the nameserver (or something). 4889 # gethostby* variants that don't use the nameserver (or something).
5377 # -lsocket must be given before -lnsl if both are needed. 4890 # -lsocket must be given before -lnsl if both are needed.
5378 # We assume that if connect needs -lnsl, so does gethostbyname. 4891 # We assume that if connect needs -lnsl, so does gethostbyname.
5379 echo $ac_n "checking for connect""... $ac_c" 1>&6 4892 echo $ac_n "checking for connect""... $ac_c" 1>&6
5380 echo "configure:5381: checking for connect" >&5 4893 echo "configure:4894: checking for connect" >&5
5381 4894
5382 cat > conftest.$ac_ext <<EOF 4895 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure" 4896 #line 4897 "configure"
5384 #include "confdefs.h" 4897 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes, 4898 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char connect(); below. */ 4899 which can conflict with char connect(); below. */
5387 #include <assert.h> 4900 #include <assert.h>
5388 /* Override any gcc2 internal prototype to avoid an error. */ 4901 /* Override any gcc2 internal prototype to avoid an error. */
5401 connect(); 4914 connect();
5402 #endif 4915 #endif
5403 4916
5404 ; return 0; } 4917 ; return 0; }
5405 EOF 4918 EOF
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5407 rm -rf conftest* 4920 rm -rf conftest*
5408 eval "ac_cv_func_connect=yes" 4921 eval "ac_cv_func_connect=yes"
5409 else 4922 else
5410 echo "configure: failed program was:" >&5 4923 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5 4924 cat conftest.$ac_ext >&5
5424 if test $ac_cv_func_connect = no; then 4937 if test $ac_cv_func_connect = no; then
5425 4938
5426 xe_msg_checking="for connect in -lsocket" 4939 xe_msg_checking="for connect in -lsocket"
5427 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4940 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5428 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4941 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5429 echo "configure:5430: checking "$xe_msg_checking"" >&5 4942 echo "configure:4943: checking "$xe_msg_checking"" >&5
5430 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4943 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5431 4944
5432 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4945 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5433 cat > conftest.$ac_ext <<EOF 4946 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure" 4947 #line 4948 "configure"
5435 #include "confdefs.h" 4948 #include "confdefs.h"
5436 /* Override any gcc2 internal prototype to avoid an error. */ 4949 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2 4950 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */ 4951 builtin and then its argument prototype would still apply. */
5439 char connect(); 4952 char connect();
5440 4953
5441 int main() { 4954 int main() {
5442 connect() 4955 connect()
5443 ; return 0; } 4956 ; return 0; }
5444 EOF 4957 EOF
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5446 rm -rf conftest* 4959 rm -rf conftest*
5447 eval "ac_cv_lib_$ac_lib_var=yes" 4960 eval "ac_cv_lib_$ac_lib_var=yes"
5448 else 4961 else
5449 echo "configure: failed program was:" >&5 4962 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5 4963 cat conftest.$ac_ext >&5
5464 4977
5465 fi 4978 fi
5466 4979
5467 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4980 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5468 echo $ac_n "checking for remove""... $ac_c" 1>&6 4981 echo $ac_n "checking for remove""... $ac_c" 1>&6
5469 echo "configure:5470: checking for remove" >&5 4982 echo "configure:4983: checking for remove" >&5
5470 4983
5471 cat > conftest.$ac_ext <<EOF 4984 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure" 4985 #line 4986 "configure"
5473 #include "confdefs.h" 4986 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes, 4987 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char remove(); below. */ 4988 which can conflict with char remove(); below. */
5476 #include <assert.h> 4989 #include <assert.h>
5477 /* Override any gcc2 internal prototype to avoid an error. */ 4990 /* Override any gcc2 internal prototype to avoid an error. */
5490 remove(); 5003 remove();
5491 #endif 5004 #endif
5492 5005
5493 ; return 0; } 5006 ; return 0; }
5494 EOF 5007 EOF
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5496 rm -rf conftest* 5009 rm -rf conftest*
5497 eval "ac_cv_func_remove=yes" 5010 eval "ac_cv_func_remove=yes"
5498 else 5011 else
5499 echo "configure: failed program was:" >&5 5012 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5 5013 cat conftest.$ac_ext >&5
5511 fi 5024 fi
5512 5025
5513 if test $ac_cv_func_remove = no; then 5026 if test $ac_cv_func_remove = no; then
5514 5027
5515 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5028 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5516 echo "configure:5517: checking for remove in -lposix" >&5 5029 echo "configure:5030: checking for remove in -lposix" >&5
5517 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5030 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5518 5031
5519 xe_check_libs=" -lposix " 5032 xe_check_libs=" -lposix "
5520 cat > conftest.$ac_ext <<EOF 5033 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure" 5034 #line 5035 "configure"
5522 #include "confdefs.h" 5035 #include "confdefs.h"
5523 /* Override any gcc2 internal prototype to avoid an error. */ 5036 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2 5037 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */ 5038 builtin and then its argument prototype would still apply. */
5526 char remove(); 5039 char remove();
5527 5040
5528 int main() { 5041 int main() {
5529 remove() 5042 remove()
5530 ; return 0; } 5043 ; return 0; }
5531 EOF 5044 EOF
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5533 rm -rf conftest* 5046 rm -rf conftest*
5534 eval "ac_cv_lib_$ac_lib_var=yes" 5047 eval "ac_cv_lib_$ac_lib_var=yes"
5535 else 5048 else
5536 echo "configure: failed program was:" >&5 5049 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5 5050 cat conftest.$ac_ext >&5
5551 5064
5552 fi 5065 fi
5553 5066
5554 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5067 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5555 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5068 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5556 echo "configure:5557: checking for shmat" >&5 5069 echo "configure:5070: checking for shmat" >&5
5557 5070
5558 cat > conftest.$ac_ext <<EOF 5071 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure" 5072 #line 5073 "configure"
5560 #include "confdefs.h" 5073 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes, 5074 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char shmat(); below. */ 5075 which can conflict with char shmat(); below. */
5563 #include <assert.h> 5076 #include <assert.h>
5564 /* Override any gcc2 internal prototype to avoid an error. */ 5077 /* Override any gcc2 internal prototype to avoid an error. */
5577 shmat(); 5090 shmat();
5578 #endif 5091 #endif
5579 5092
5580 ; return 0; } 5093 ; return 0; }
5581 EOF 5094 EOF
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5095 if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5583 rm -rf conftest* 5096 rm -rf conftest*
5584 eval "ac_cv_func_shmat=yes" 5097 eval "ac_cv_func_shmat=yes"
5585 else 5098 else
5586 echo "configure: failed program was:" >&5 5099 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5 5100 cat conftest.$ac_ext >&5
5598 fi 5111 fi
5599 5112
5600 if test $ac_cv_func_shmat = no; then 5113 if test $ac_cv_func_shmat = no; then
5601 5114
5602 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5115 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5603 echo "configure:5604: checking for shmat in -lipc" >&5 5116 echo "configure:5117: checking for shmat in -lipc" >&5
5604 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5117 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5605 5118
5606 xe_check_libs=" -lipc " 5119 xe_check_libs=" -lipc "
5607 cat > conftest.$ac_ext <<EOF 5120 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure" 5121 #line 5122 "configure"
5609 #include "confdefs.h" 5122 #include "confdefs.h"
5610 /* Override any gcc2 internal prototype to avoid an error. */ 5123 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2 5124 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */ 5125 builtin and then its argument prototype would still apply. */
5613 char shmat(); 5126 char shmat();
5614 5127
5615 int main() { 5128 int main() {
5616 shmat() 5129 shmat()
5617 ; return 0; } 5130 ; return 0; }
5618 EOF 5131 EOF
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5620 rm -rf conftest* 5133 rm -rf conftest*
5621 eval "ac_cv_lib_$ac_lib_var=yes" 5134 eval "ac_cv_lib_$ac_lib_var=yes"
5622 else 5135 else
5623 echo "configure: failed program was:" >&5 5136 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5 5137 cat conftest.$ac_ext >&5
5647 # we get undefined symbols. So assume we have SM if we have ICE. 5160 # we get undefined symbols. So assume we have SM if we have ICE.
5648 # These have to be linked with before -lX11, unlike the other 5161 # These have to be linked with before -lX11, unlike the other
5649 # libraries we check for below, so use a different variable. 5162 # libraries we check for below, so use a different variable.
5650 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5163 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5651 5164
5652 xe_msg_checking="for IceConnectionNumber in -lICE" 5165 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5653 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5166 echo "configure:5167: checking for IceConnectionNumber in -lICE" >&5
5654 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5655 echo "configure:5656: checking "$xe_msg_checking"" >&5
5656 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5167 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5657 5168
5658 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5169 xe_check_libs=" -lICE "
5659 cat > conftest.$ac_ext <<EOF 5170 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure" 5171 #line 5172 "configure"
5661 #include "confdefs.h" 5172 #include "confdefs.h"
5662 /* Override any gcc2 internal prototype to avoid an error. */ 5173 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2 5174 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */ 5175 builtin and then its argument prototype would still apply. */
5665 char IceConnectionNumber(); 5176 char IceConnectionNumber();
5666 5177
5667 int main() { 5178 int main() {
5668 IceConnectionNumber() 5179 IceConnectionNumber()
5669 ; return 0; } 5180 ; return 0; }
5670 EOF 5181 EOF
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5672 rm -rf conftest* 5183 rm -rf conftest*
5673 eval "ac_cv_lib_$ac_lib_var=yes" 5184 eval "ac_cv_lib_$ac_lib_var=yes"
5674 else 5185 else
5675 echo "configure: failed program was:" >&5 5186 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5 5187 cat conftest.$ac_ext >&5
5835 EOF 5346 EOF
5836 } 5347 }
5837 5348
5838 5349
5839 echo "checking for X defines extracted by xmkmf" 1>&6 5350 echo "checking for X defines extracted by xmkmf" 1>&6
5840 echo "configure:5841: checking for X defines extracted by xmkmf" >&5 5351 echo "configure:5352: checking for X defines extracted by xmkmf" >&5
5841 rm -fr conftestdir 5352 rm -fr conftestdir
5842 if mkdir conftestdir; then 5353 if mkdir conftestdir; then
5843 cd conftestdir 5354 cd conftestdir
5844 cat > Imakefile <<'EOF' 5355 cat > Imakefile <<'EOF'
5845 xetest: 5356 xetest:
5850 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` 5361 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5851 fi 5362 fi
5852 cd .. 5363 cd ..
5853 rm -fr conftestdir 5364 rm -fr conftestdir
5854 for word in $xmkmf_defines; do 5365 for word in $xmkmf_defines; do
5855 case "$word" in -D* ) 5366 case "$word" in
5856 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` 5367 -D*=* ) ;;
5857 case "$word" in 5368 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5858 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; 5369 { test "$extra_verbose" = "yes" && cat << EOF
5859 * ) val=1 ;; 5370 Defining $word
5860 esac
5861 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
5862 if test "$val" = "1"
5863 then { test "$extra_verbose" = "yes" && cat << EOF
5864 Defining $sym
5865 EOF 5371 EOF
5866 cat >> confdefs.h <<EOF 5372 cat >> confdefs.h <<EOF
5867 #define $sym 1 5373 #define $word 1
5868 EOF 5374 EOF
5869 } 5375 }
5870 5376 ;;
5871 else { test "$extra_verbose" = "yes" && cat << EOF
5872 Defining $sym = $val
5873 EOF
5874 cat >> confdefs.h <<EOF
5875 #define $sym $val
5876 EOF
5877 }
5878
5879 fi
5880 fi ;;
5881 esac 5377 esac
5882 done 5378 done
5883 fi 5379 fi
5884 5380
5885 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5381 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5886 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5382 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5887 echo "configure:5888: checking for X11/Intrinsic.h" >&5 5383 echo "configure:5384: checking for X11/Intrinsic.h" >&5
5888 5384
5889 cat > conftest.$ac_ext <<EOF 5385 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure" 5386 #line 5387 "configure"
5891 #include "confdefs.h" 5387 #include "confdefs.h"
5892 #include <X11/Intrinsic.h> 5388 #include <X11/Intrinsic.h>
5893 EOF 5389 EOF
5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5391 { (eval echo configure:5392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5392 ac_err=`grep -v '^ *+' conftest.out`
5897 if test -z "$ac_err"; then 5393 if test -z "$ac_err"; then
5898 rm -rf conftest* 5394 rm -rf conftest*
5899 eval "ac_cv_header_$ac_safe=yes" 5395 eval "ac_cv_header_$ac_safe=yes"
5900 else 5396 else
5901 echo "$ac_err" >&5 5397 echo "$ac_err" >&5
5914 fi 5410 fi
5915 5411
5916 5412
5917 5413
5918 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5414 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5919 echo "configure:5920: checking for XOpenDisplay in -lX11" >&5 5415 echo "configure:5416: checking for XOpenDisplay in -lX11" >&5
5920 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5416 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5921 5417
5922 xe_check_libs=" -lX11 " 5418 xe_check_libs=" -lX11 "
5923 cat > conftest.$ac_ext <<EOF 5419 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure" 5420 #line 5421 "configure"
5925 #include "confdefs.h" 5421 #include "confdefs.h"
5926 /* Override any gcc2 internal prototype to avoid an error. */ 5422 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2 5423 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */ 5424 builtin and then its argument prototype would still apply. */
5929 char XOpenDisplay(); 5425 char XOpenDisplay();
5930 5426
5931 int main() { 5427 int main() {
5932 XOpenDisplay() 5428 XOpenDisplay()
5933 ; return 0; } 5429 ; return 0; }
5934 EOF 5430 EOF
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5936 rm -rf conftest* 5432 rm -rf conftest*
5937 eval "ac_cv_lib_$ac_lib_var=yes" 5433 eval "ac_cv_lib_$ac_lib_var=yes"
5938 else 5434 else
5939 echo "configure: failed program was:" >&5 5435 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5 5436 cat conftest.$ac_ext >&5
5955 if test "$have_lib_x11" != "yes"; then 5451 if test "$have_lib_x11" != "yes"; then
5956 5452
5957 xe_msg_checking="for XGetFontProperty in -lX11" 5453 xe_msg_checking="for XGetFontProperty in -lX11"
5958 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5454 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5959 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5455 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5960 echo "configure:5961: checking "$xe_msg_checking"" >&5 5456 echo "configure:5457: checking "$xe_msg_checking"" >&5
5961 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5457 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5962 5458
5963 xe_check_libs=" -lX11 -b i486-linuxaout" 5459 xe_check_libs=" -lX11 -b i486-linuxaout"
5964 cat > conftest.$ac_ext <<EOF 5460 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure" 5461 #line 5462 "configure"
5966 #include "confdefs.h" 5462 #include "confdefs.h"
5967 /* Override any gcc2 internal prototype to avoid an error. */ 5463 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2 5464 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */ 5465 builtin and then its argument prototype would still apply. */
5970 char XGetFontProperty(); 5466 char XGetFontProperty();
5971 5467
5972 int main() { 5468 int main() {
5973 XGetFontProperty() 5469 XGetFontProperty()
5974 ; return 0; } 5470 ; return 0; }
5975 EOF 5471 EOF
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5977 rm -rf conftest* 5473 rm -rf conftest*
5978 eval "ac_cv_lib_$ac_lib_var=yes" 5474 eval "ac_cv_lib_$ac_lib_var=yes"
5979 else 5475 else
5980 echo "configure: failed program was:" >&5 5476 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5 5477 cat conftest.$ac_ext >&5
5998 libs_x="-lX11" 5494 libs_x="-lX11"
5999 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5495 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6000 5496
6001 5497
6002 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5498 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6003 echo "configure:6004: checking for XShapeSelectInput in -lXext" >&5 5499 echo "configure:5500: checking for XShapeSelectInput in -lXext" >&5
6004 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5500 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6005 5501
6006 xe_check_libs=" -lXext " 5502 xe_check_libs=" -lXext "
6007 cat > conftest.$ac_ext <<EOF 5503 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure" 5504 #line 5505 "configure"
6009 #include "confdefs.h" 5505 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error. */ 5506 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2 5507 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */ 5508 builtin and then its argument prototype would still apply. */
6013 char XShapeSelectInput(); 5509 char XShapeSelectInput();
6014 5510
6015 int main() { 5511 int main() {
6016 XShapeSelectInput() 5512 XShapeSelectInput()
6017 ; return 0; } 5513 ; return 0; }
6018 EOF 5514 EOF
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6020 rm -rf conftest* 5516 rm -rf conftest*
6021 eval "ac_cv_lib_$ac_lib_var=yes" 5517 eval "ac_cv_lib_$ac_lib_var=yes"
6022 else 5518 else
6023 echo "configure: failed program was:" >&5 5519 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5 5520 cat conftest.$ac_ext >&5
6037 5533
6038 5534
6039 5535
6040 5536
6041 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5537 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6042 echo "configure:6043: checking for XtOpenDisplay in -lXt" >&5 5538 echo "configure:5539: checking for XtOpenDisplay in -lXt" >&5
6043 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5539 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6044 5540
6045 xe_check_libs=" -lXt " 5541 xe_check_libs=" -lXt "
6046 cat > conftest.$ac_ext <<EOF 5542 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure" 5543 #line 5544 "configure"
6048 #include "confdefs.h" 5544 #include "confdefs.h"
6049 /* Override any gcc2 internal prototype to avoid an error. */ 5545 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2 5546 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */ 5547 builtin and then its argument prototype would still apply. */
6052 char XtOpenDisplay(); 5548 char XtOpenDisplay();
6053 5549
6054 int main() { 5550 int main() {
6055 XtOpenDisplay() 5551 XtOpenDisplay()
6056 ; return 0; } 5552 ; return 0; }
6057 EOF 5553 EOF
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6059 rm -rf conftest* 5555 rm -rf conftest*
6060 eval "ac_cv_lib_$ac_lib_var=yes" 5556 eval "ac_cv_lib_$ac_lib_var=yes"
6061 else 5557 else
6062 echo "configure: failed program was:" >&5 5558 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5 5559 cat conftest.$ac_ext >&5
6076 fi 5572 fi
6077 5573
6078 5574
6079 5575
6080 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5576 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6081 echo "configure:6082: checking the version of X11 being used" >&5 5577 echo "configure:5578: checking the version of X11 being used" >&5
6082 cat > conftest.$ac_ext <<EOF 5578 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure" 5579 #line 5580 "configure"
6084 #include "confdefs.h" 5580 #include "confdefs.h"
6085 #include <X11/Intrinsic.h> 5581 #include <X11/Intrinsic.h>
6086 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5582 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6087 EOF 5583 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6089 then 5585 then
6090 ./conftest foobar; x11_release=$? 5586 ./conftest foobar; x11_release=$?
6091 else 5587 else
6092 conftest_rc="$?" 5588 conftest_rc="$?"
6093 echo "configure: failed program was:" >&5 5589 echo "configure: failed program was:" >&5
6104 #define THIS_IS_X11R${x11_release} 1 5600 #define THIS_IS_X11R${x11_release} 1
6105 EOF 5601 EOF
6106 } 5602 }
6107 5603
6108 5604
6109 for ac_func in XConvertCase
6110 do
6111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6112 echo "configure:6113: checking for $ac_func" >&5
6113
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6119 #include <assert.h>
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123 char $ac_func();
6124
6125 int main() {
6126
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 choke me
6132 #else
6133 $ac_func();
6134 #endif
6135
6136 ; return 0; }
6137 EOF
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 eval "ac_cv_func_$ac_func=yes"
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 eval "ac_cv_func_$ac_func=no"
6146 fi
6147 rm -f conftest*
6148
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 { test "$extra_verbose" = "yes" && cat << EOF
6153 Defining $ac_tr_func
6154 EOF
6155 cat >> confdefs.h <<EOF
6156 #define $ac_tr_func 1
6157 EOF
6158 }
6159
6160 else
6161 echo "$ac_t""no" 1>&6
6162 fi
6163 done
6164
6165
6166 for ac_hdr in X11/Xlocale.h 5605 for ac_hdr in X11/Xlocale.h
6167 do 5606 do
6168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6170 echo "configure:6171: checking for $ac_hdr" >&5 5609 echo "configure:5610: checking for $ac_hdr" >&5
6171 5610
6172 cat > conftest.$ac_ext <<EOF 5611 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure" 5612 #line 5613 "configure"
6174 #include "confdefs.h" 5613 #include "confdefs.h"
6175 #include <$ac_hdr> 5614 #include <$ac_hdr>
6176 EOF 5615 EOF
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5617 { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5618 ac_err=`grep -v '^ *+' conftest.out`
6180 if test -z "$ac_err"; then 5619 if test -z "$ac_err"; then
6181 rm -rf conftest* 5620 rm -rf conftest*
6182 eval "ac_cv_header_$ac_safe=yes" 5621 eval "ac_cv_header_$ac_safe=yes"
6183 else 5622 else
6184 echo "$ac_err" >&5 5623 echo "$ac_err" >&5
6204 fi 5643 fi
6205 done 5644 done
6206 5645
6207 5646
6208 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5647 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6209 echo "configure:6210: checking for XFree86" >&5 5648 echo "configure:5649: checking for XFree86" >&5
6210 if test -d "/usr/X386/include" -o \ 5649 if test -d "/usr/X386/include" -o \
6211 -f "/etc/XF86Config" -o \ 5650 -f "/etc/XF86Config" -o \
6212 -f "/etc/X11/XF86Config" -o \ 5651 -f "/etc/X11/XF86Config" -o \
6213 -f "/usr/X11R6/lib/X11/XF86Config"; then 5652 -f "/usr/X11R6/lib/X11/XF86Config"; then
6214 echo "$ac_t""yes" 1>&6 5653 echo "$ac_t""yes" 1>&6
6224 echo "$ac_t""no" 1>&6 5663 echo "$ac_t""no" 1>&6
6225 fi 5664 fi
6226 5665
6227 test -z "$with_xmu" && { 5666 test -z "$with_xmu" && {
6228 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5667 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6229 echo "configure:6230: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5668 echo "configure:5669: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6230 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5669 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6231 5670
6232 xe_check_libs=" -lXmu " 5671 xe_check_libs=" -lXmu "
6233 cat > conftest.$ac_ext <<EOF 5672 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure" 5673 #line 5674 "configure"
6235 #include "confdefs.h" 5674 #include "confdefs.h"
6236 /* Override any gcc2 internal prototype to avoid an error. */ 5675 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2 5676 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */ 5677 builtin and then its argument prototype would still apply. */
6239 char XmuReadBitmapDataFromFile(); 5678 char XmuReadBitmapDataFromFile();
6240 5679
6241 int main() { 5680 int main() {
6242 XmuReadBitmapDataFromFile() 5681 XmuReadBitmapDataFromFile()
6243 ; return 0; } 5682 ; return 0; }
6244 EOF 5683 EOF
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6246 rm -rf conftest* 5685 rm -rf conftest*
6247 eval "ac_cv_lib_$ac_lib_var=yes" 5686 eval "ac_cv_lib_$ac_lib_var=yes"
6248 else 5687 else
6249 echo "configure: failed program was:" >&5 5688 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5 5689 cat conftest.$ac_ext >&5
6279 5718
6280 fi 5719 fi
6281 5720
6282 5721
6283 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5722 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6284 echo "configure:6285: checking for main in -lXbsd" >&5 5723 echo "configure:5724: checking for main in -lXbsd" >&5
6285 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5724 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6286 5725
6287 xe_check_libs=" -lXbsd " 5726 xe_check_libs=" -lXbsd "
6288 cat > conftest.$ac_ext <<EOF 5727 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure" 5728 #line 5729 "configure"
6290 #include "confdefs.h" 5729 #include "confdefs.h"
6291 5730
6292 int main() { 5731 int main() {
6293 main() 5732 main()
6294 ; return 0; } 5733 ; return 0; }
6295 EOF 5734 EOF
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6297 rm -rf conftest* 5736 rm -rf conftest*
6298 eval "ac_cv_lib_$ac_lib_var=yes" 5737 eval "ac_cv_lib_$ac_lib_var=yes"
6299 else 5738 else
6300 echo "configure: failed program was:" >&5 5739 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5 5740 cat conftest.$ac_ext >&5
6328 fi 5767 fi
6329 5768
6330 fi 5769 fi
6331 if test "$with_msw" != "no"; then 5770 if test "$with_msw" != "no"; then
6332 echo "checking for MS-Windows" 1>&6 5771 echo "checking for MS-Windows" 1>&6
6333 echo "configure:6334: checking for MS-Windows" >&5 5772 echo "configure:5773: checking for MS-Windows" >&5
6334 5773
6335 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5774 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6336 echo "configure:6337: checking for main in -lgdi32" >&5 5775 echo "configure:5776: checking for main in -lgdi32" >&5
6337 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5776 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6338 5777
6339 xe_check_libs=" -lgdi32 " 5778 xe_check_libs=" -lgdi32 "
6340 cat > conftest.$ac_ext <<EOF 5779 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure" 5780 #line 5781 "configure"
6342 #include "confdefs.h" 5781 #include "confdefs.h"
6343 5782
6344 int main() { 5783 int main() {
6345 main() 5784 main()
6346 ; return 0; } 5785 ; return 0; }
6347 EOF 5786 EOF
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6349 rm -rf conftest* 5788 rm -rf conftest*
6350 eval "ac_cv_lib_$ac_lib_var=yes" 5789 eval "ac_cv_lib_$ac_lib_var=yes"
6351 else 5790 else
6352 echo "configure: failed program was:" >&5 5791 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5 5792 cat conftest.$ac_ext >&5
6373 #define HAVE_MS_WINDOWS 1 5812 #define HAVE_MS_WINDOWS 1
6374 EOF 5813 EOF
6375 } 5814 }
6376 5815
6377 install_pp="$blddir/lib-src/installexe.sh" 5816 install_pp="$blddir/lib-src/installexe.sh"
6378 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi 5817 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6379 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 5818 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6380 if test "$window_system" != x11; then 5819 if test "$window_system" != x11; then
6381 window_system=msw 5820 window_system=msw
6382 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 5821 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6383 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 5822 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6393 fi 5832 fi
6394 test "$with_dialogs" != "no" && with_dialogs=msw \ 5833 test "$with_dialogs" != "no" && with_dialogs=msw \
6395 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5834 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6396 echo " xemacs will be linked with \"dialog-msw.o\"" 5835 echo " xemacs will be linked with \"dialog-msw.o\""
6397 fi 5836 fi
6398 test "$with_widgets" != "no" && with_widgets=msw
6399 else 5837 else
6400 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 5838 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6401 echo " xemacs will be linked with \"scrollbar-msw.o\"" 5839 echo " xemacs will be linked with \"scrollbar-msw.o\""
6402 fi 5840 fi
6403 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then 5841 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6409 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5847 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6410 echo " xemacs will be linked with \"dialog-msw.o\"" 5848 echo " xemacs will be linked with \"dialog-msw.o\""
6411 fi 5849 fi
6412 fi 5850 fi
6413 cat > conftest.$ac_ext <<EOF 5851 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure" 5852 #line 5853 "configure"
6415 #include "confdefs.h" 5853 #include "confdefs.h"
6416 #include <fcntl.h> 5854 #include <fcntl.h>
6417 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5855 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6418 EOF 5856 EOF
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6420 then 5858 then
6421 { test "$extra_verbose" = "yes" && cat << \EOF 5859 { test "$extra_verbose" = "yes" && cat << \EOF
6422 Defining HAVE_MSG_SELECT 5860 Defining HAVE_MSG_SELECT
6423 EOF 5861 EOF
6424 cat >> confdefs.h <<\EOF 5862 cat >> confdefs.h <<\EOF
6430 conftest_rc="$?" 5868 conftest_rc="$?"
6431 echo "configure: failed program was:" >&5 5869 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5 5870 cat conftest.$ac_ext >&5
6433 fi 5871 fi
6434 rm -fr conftest* 5872 rm -fr conftest*
5873 const_is_losing=no
6435 with_file_coding=yes 5874 with_file_coding=yes
6436 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then 5875 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
6437 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\"" 5876 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
6438 fi 5877 fi
6439 fi 5878 fi
6466 else 5905 else
6467 : 5906 :
6468 fi 5907 fi
6469 5908
6470 if test "$with_x11" != "yes"; then 5909 if test "$with_x11" != "yes"; then
6471 for feature in tooltalk cde offix wmcommand xim xmu nas_sound 5910 for feature in tooltalk cde offix session xim xmu
6472 do 5911 do
6473 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 5912 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6474 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 5913 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6475 fi 5914 fi
6476 eval "with_${feature}=no" 5915 eval "with_${feature}=no"
6488 case "$x_libraries" in *X11R4* ) 5927 case "$x_libraries" in *X11R4* )
6489 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5928 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6490 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5929 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6491 esac 5930 esac
6492 5931
6493 echo "checking for WM_COMMAND option" 1>&6 5932 echo "checking for session-management option" 1>&6
6494 echo "configure:6495: checking for WM_COMMAND option" >&5; 5933 echo "configure:5934: checking for session-management option" >&5;
6495 if test "$with_wmcommand" != "no"; then 5934 if test "$with_session" != "no"; then
6496 { test "$extra_verbose" = "yes" && cat << \EOF 5935 { test "$extra_verbose" = "yes" && cat << \EOF
6497 Defining HAVE_WMCOMMAND 5936 Defining HAVE_SESSION
6498 EOF 5937 EOF
6499 cat >> confdefs.h <<\EOF 5938 cat >> confdefs.h <<\EOF
6500 #define HAVE_WMCOMMAND 1 5939 #define HAVE_SESSION 1
6501 EOF 5940 EOF
6502 } 5941 }
6503 5942
6504 fi 5943 fi
6505 5944
6506 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5945 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6507 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5946 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6508 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5947 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6509 echo "configure:6510: checking for X11/Xauth.h" >&5 5948 echo "configure:5949: checking for X11/Xauth.h" >&5
6510 5949
6511 cat > conftest.$ac_ext <<EOF 5950 cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure" 5951 #line 5952 "configure"
6513 #include "confdefs.h" 5952 #include "confdefs.h"
6514 #include <X11/Xauth.h> 5953 #include <X11/Xauth.h>
6515 EOF 5954 EOF
6516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6517 { (eval echo configure:6518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5957 ac_err=`grep -v '^ *+' conftest.out`
6519 if test -z "$ac_err"; then 5958 if test -z "$ac_err"; then
6520 rm -rf conftest* 5959 rm -rf conftest*
6521 eval "ac_cv_header_$ac_safe=yes" 5960 eval "ac_cv_header_$ac_safe=yes"
6522 else 5961 else
6523 echo "$ac_err" >&5 5962 echo "$ac_err" >&5
6535 with_xauth=no 5974 with_xauth=no
6536 fi 5975 fi
6537 } 5976 }
6538 test -z "$with_xauth" && { 5977 test -z "$with_xauth" && {
6539 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5978 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6540 echo "configure:6541: checking for XauGetAuthByAddr in -lXau" >&5 5979 echo "configure:5980: checking for XauGetAuthByAddr in -lXau" >&5
6541 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5980 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6542 5981
6543 xe_check_libs=" -lXau " 5982 xe_check_libs=" -lXau "
6544 cat > conftest.$ac_ext <<EOF 5983 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure" 5984 #line 5985 "configure"
6546 #include "confdefs.h" 5985 #include "confdefs.h"
6547 /* Override any gcc2 internal prototype to avoid an error. */ 5986 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2 5987 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */ 5988 builtin and then its argument prototype would still apply. */
6550 char XauGetAuthByAddr(); 5989 char XauGetAuthByAddr();
6551 5990
6552 int main() { 5991 int main() {
6553 XauGetAuthByAddr() 5992 XauGetAuthByAddr()
6554 ; return 0; } 5993 ; return 0; }
6555 EOF 5994 EOF
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6557 rm -rf conftest* 5996 rm -rf conftest*
6558 eval "ac_cv_lib_$ac_lib_var=yes" 5997 eval "ac_cv_lib_$ac_lib_var=yes"
6559 else 5998 else
6560 echo "configure: failed program was:" >&5 5999 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5 6000 cat conftest.$ac_ext >&5
6596 6035
6597 if test "$with_tooltalk" != "no" ; then 6036 if test "$with_tooltalk" != "no" ; then
6598 for dir in "" "Tt/" "desktop/" ; do 6037 for dir in "" "Tt/" "desktop/" ; do
6599 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6038 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6600 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6039 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6601 echo "configure:6602: checking for ${dir}tt_c.h" >&5 6040 echo "configure:6041: checking for ${dir}tt_c.h" >&5
6602 6041
6603 cat > conftest.$ac_ext <<EOF 6042 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure" 6043 #line 6044 "configure"
6605 #include "confdefs.h" 6044 #include "confdefs.h"
6606 #include <${dir}tt_c.h> 6045 #include <${dir}tt_c.h>
6607 EOF 6046 EOF
6608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6609 { (eval echo configure:6610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6048 { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6049 ac_err=`grep -v '^ *+' conftest.out`
6611 if test -z "$ac_err"; then 6050 if test -z "$ac_err"; then
6612 rm -rf conftest* 6051 rm -rf conftest*
6613 eval "ac_cv_header_$ac_safe=yes" 6052 eval "ac_cv_header_$ac_safe=yes"
6614 else 6053 else
6615 echo "$ac_err" >&5 6054 echo "$ac_err" >&5
6619 eval "ac_cv_header_$ac_safe=no" 6058 eval "ac_cv_header_$ac_safe=no"
6620 fi 6059 fi
6621 rm -f conftest* 6060 rm -f conftest*
6622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6 6062 echo "$ac_t""yes" 1>&6
6624 tt_c_h_file="${dir}tt_c.h"; break 6063 tt_c_h_path="${dir}tt_c.h"; break
6625 else 6064 else
6626 echo "$ac_t""no" 1>&6 6065 echo "$ac_t""no" 1>&6
6627 fi 6066 fi
6628 6067
6629 done 6068 done
6630 if test -z "$tt_c_h_file"; then 6069 if test -z "$tt_c_h_path"; then
6631 if test "$with_tooltalk" = "yes"; then 6070 if test "$with_tooltalk" = "yes"; then
6632 (echo "$progname: Usage error:" 6071 (echo "$progname: Usage error:"
6633 echo " " "Unable to find required tooltalk header files." 6072 echo " " "Unable to find required tooltalk header files."
6634 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 6073 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6635 fi 6074 fi
6640 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6079 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6641 6080
6642 xe_msg_checking="for tt_message_create in -ltt" 6081 xe_msg_checking="for tt_message_create in -ltt"
6643 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6082 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6644 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6083 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6645 echo "configure:6646: checking "$xe_msg_checking"" >&5 6084 echo "configure:6085: checking "$xe_msg_checking"" >&5
6646 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6085 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6647 6086
6648 xe_check_libs=" -ltt $extra_libs" 6087 xe_check_libs=" -ltt $extra_libs"
6649 cat > conftest.$ac_ext <<EOF 6088 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure" 6089 #line 6090 "configure"
6651 #include "confdefs.h" 6090 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */ 6091 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2 6092 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */ 6093 builtin and then its argument prototype would still apply. */
6655 char tt_message_create(); 6094 char tt_message_create();
6656 6095
6657 int main() { 6096 int main() {
6658 tt_message_create() 6097 tt_message_create()
6659 ; return 0; } 6098 ; return 0; }
6660 EOF 6099 EOF
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6662 rm -rf conftest* 6101 rm -rf conftest*
6663 eval "ac_cv_lib_$ac_lib_var=yes" 6102 eval "ac_cv_lib_$ac_lib_var=yes"
6664 else 6103 else
6665 echo "configure: failed program was:" >&5 6104 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5 6105 cat conftest.$ac_ext >&5
6698 #define TOOLTALK 1 6137 #define TOOLTALK 1
6699 EOF 6138 EOF
6700 } 6139 }
6701 6140
6702 { test "$extra_verbose" = "yes" && cat << EOF 6141 { test "$extra_verbose" = "yes" && cat << EOF
6703 Defining TT_C_H_FILE = "$tt_c_h_file" 6142 Defining TT_C_H_PATH = "$tt_c_h_path"
6704 EOF 6143 EOF
6705 cat >> confdefs.h <<EOF 6144 cat >> confdefs.h <<EOF
6706 #define TT_C_H_FILE "$tt_c_h_file" 6145 #define TT_C_H_PATH "$tt_c_h_path"
6707 EOF 6146 EOF
6708 } 6147 }
6709 6148
6710 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 6149 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6711 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then 6150 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6713 fi 6152 fi
6714 fi 6153 fi
6715 6154
6716 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6155 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6717 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6156 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6718 echo "configure:6719: checking for Dt/Dt.h" >&5 6157 echo "configure:6158: checking for Dt/Dt.h" >&5
6719 6158
6720 cat > conftest.$ac_ext <<EOF 6159 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure" 6160 #line 6161 "configure"
6722 #include "confdefs.h" 6161 #include "confdefs.h"
6723 #include <Dt/Dt.h> 6162 #include <Dt/Dt.h>
6724 EOF 6163 EOF
6725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6726 { (eval echo configure:6727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6165 { (eval echo configure:6166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6166 ac_err=`grep -v '^ *+' conftest.out`
6728 if test -z "$ac_err"; then 6167 if test -z "$ac_err"; then
6729 rm -rf conftest* 6168 rm -rf conftest*
6730 eval "ac_cv_header_$ac_safe=yes" 6169 eval "ac_cv_header_$ac_safe=yes"
6731 else 6170 else
6732 echo "$ac_err" >&5 6171 echo "$ac_err" >&5
6744 with_cde=no 6183 with_cde=no
6745 fi 6184 fi
6746 } 6185 }
6747 test -z "$with_cde" && { 6186 test -z "$with_cde" && {
6748 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6187 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6749 echo "configure:6750: checking for DtDndDragStart in -lDtSvc" >&5 6188 echo "configure:6189: checking for DtDndDragStart in -lDtSvc" >&5
6750 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6189 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6751 6190
6752 xe_check_libs=" -lDtSvc " 6191 xe_check_libs=" -lDtSvc "
6753 cat > conftest.$ac_ext <<EOF 6192 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure" 6193 #line 6194 "configure"
6755 #include "confdefs.h" 6194 #include "confdefs.h"
6756 /* Override any gcc2 internal prototype to avoid an error. */ 6195 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2 6196 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */ 6197 builtin and then its argument prototype would still apply. */
6759 char DtDndDragStart(); 6198 char DtDndDragStart();
6760 6199
6761 int main() { 6200 int main() {
6762 DtDndDragStart() 6201 DtDndDragStart()
6763 ; return 0; } 6202 ; return 0; }
6764 EOF 6203 EOF
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6766 rm -rf conftest* 6205 rm -rf conftest*
6767 eval "ac_cv_lib_$ac_lib_var=yes" 6206 eval "ac_cv_lib_$ac_lib_var=yes"
6768 else 6207 else
6769 echo "configure: failed program was:" >&5 6208 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5 6209 cat conftest.$ac_ext >&5
6829 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6268 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6830 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6269 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6831 fi 6270 fi
6832 6271
6833 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6272 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6834 echo "configure:6835: checking if drag and drop API is needed" >&5 6273 echo "configure:6274: checking if drag and drop API is needed" >&5
6835 if test "$with_dragndrop" != "no" ; then 6274 if test "$with_dragndrop" != "no" ; then
6836 if test -n "$dragndrop_proto" ; then 6275 if test -n "$dragndrop_proto" ; then
6837 with_dragndrop=yes 6276 with_dragndrop=yes
6838 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6277 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6839 { test "$extra_verbose" = "yes" && cat << \EOF 6278 { test "$extra_verbose" = "yes" && cat << \EOF
6850 echo "$ac_t""no" 1>&6 6289 echo "$ac_t""no" 1>&6
6851 fi 6290 fi
6852 fi 6291 fi
6853 6292
6854 echo "checking for LDAP" 1>&6 6293 echo "checking for LDAP" 1>&6
6855 echo "configure:6856: checking for LDAP" >&5 6294 echo "configure:6295: checking for LDAP" >&5
6856 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6295 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6857 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6296 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6858 echo "configure:6859: checking for ldap.h" >&5 6297 echo "configure:6298: checking for ldap.h" >&5
6859 6298
6860 cat > conftest.$ac_ext <<EOF 6299 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure" 6300 #line 6301 "configure"
6862 #include "confdefs.h" 6301 #include "confdefs.h"
6863 #include <ldap.h> 6302 #include <ldap.h>
6864 EOF 6303 EOF
6865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6866 { (eval echo configure:6867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6305 { (eval echo configure:6306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6306 ac_err=`grep -v '^ *+' conftest.out`
6868 if test -z "$ac_err"; then 6307 if test -z "$ac_err"; then
6869 rm -rf conftest* 6308 rm -rf conftest*
6870 eval "ac_cv_header_$ac_safe=yes" 6309 eval "ac_cv_header_$ac_safe=yes"
6871 else 6310 else
6872 echo "$ac_err" >&5 6311 echo "$ac_err" >&5
6884 with_ldap=no 6323 with_ldap=no
6885 fi 6324 fi
6886 } 6325 }
6887 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6326 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6327 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6889 echo "configure:6890: checking for lber.h" >&5 6328 echo "configure:6329: checking for lber.h" >&5
6890 6329
6891 cat > conftest.$ac_ext <<EOF 6330 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure" 6331 #line 6332 "configure"
6893 #include "confdefs.h" 6332 #include "confdefs.h"
6894 #include <lber.h> 6333 #include <lber.h>
6895 EOF 6334 EOF
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6337 ac_err=`grep -v '^ *+' conftest.out`
6899 if test -z "$ac_err"; then 6338 if test -z "$ac_err"; then
6900 rm -rf conftest* 6339 rm -rf conftest*
6901 eval "ac_cv_header_$ac_safe=yes" 6340 eval "ac_cv_header_$ac_safe=yes"
6902 else 6341 else
6903 echo "$ac_err" >&5 6342 echo "$ac_err" >&5
6914 echo "$ac_t""no" 1>&6 6353 echo "$ac_t""no" 1>&6
6915 with_ldap=no 6354 with_ldap=no
6916 fi 6355 fi
6917 } 6356 }
6918 if test "$with_ldap" != "no"; then 6357 if test "$with_ldap" != "no"; then
6919 6358 test -z "$with_umich_ldap" && {
6920 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6921 echo "configure:6922: checking for ldap_search in -lldap" >&5
6922 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6923
6924 xe_check_libs=" -lldap "
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6931 char ldap_search();
6932
6933 int main() {
6934 ldap_search()
6935 ; return 0; }
6936 EOF
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6938 rm -rf conftest*
6939 eval "ac_cv_lib_$ac_lib_var=yes"
6940 else
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6943 rm -rf conftest*
6944 eval "ac_cv_lib_$ac_lib_var=no"
6945 fi
6946 rm -f conftest*
6947 xe_check_libs=""
6948
6949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6950 echo "$ac_t""yes" 1>&6
6951 with_ldap_nolber=yes
6952 else
6953 echo "$ac_t""no" 1>&6
6954 with_ldap_nolber=no
6955 fi
6956
6957
6958 test "$with_ldap_nolber" = "no" && {
6959 xe_msg_checking="for ldap_open in -lldap" 6359 xe_msg_checking="for ldap_open in -lldap"
6960 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6360 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6961 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6361 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6962 echo "configure:6963: checking "$xe_msg_checking"" >&5 6362 echo "configure:6363: checking "$xe_msg_checking"" >&5
6963 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6363 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6964 6364
6965 xe_check_libs=" -lldap -llber" 6365 xe_check_libs=" -lldap -llber"
6966 cat > conftest.$ac_ext <<EOF 6366 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure" 6367 #line 6368 "configure"
6968 #include "confdefs.h" 6368 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */ 6369 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2 6370 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */ 6371 builtin and then its argument prototype would still apply. */
6972 char ldap_open(); 6372 char ldap_open();
6973 6373
6974 int main() { 6374 int main() {
6975 ldap_open() 6375 ldap_open()
6976 ; return 0; } 6376 ; return 0; }
6977 EOF 6377 EOF
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6979 rm -rf conftest* 6379 rm -rf conftest*
6980 eval "ac_cv_lib_$ac_lib_var=yes" 6380 eval "ac_cv_lib_$ac_lib_var=yes"
6981 else 6381 else
6982 echo "configure: failed program was:" >&5 6382 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5 6383 cat conftest.$ac_ext >&5
6987 rm -f conftest* 6387 rm -f conftest*
6988 xe_check_libs="" 6388 xe_check_libs=""
6989 6389
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6991 echo "$ac_t""yes" 1>&6 6391 echo "$ac_t""yes" 1>&6
6992 with_ldap_lber=yes 6392 with_umich_ldap=yes
6993 else 6393 else
6994 echo "$ac_t""no" 1>&6 6394 echo "$ac_t""no" 1>&6
6995 with_ldap_lber=no 6395 with_umich_ldap=no
6996 fi 6396 fi
6997 6397
6998 } 6398 }
6999 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 6399 test "$with_umich_ldap" = "no" && {
7000 xe_msg_checking="for ldap_open in -lldap" 6400 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
7001 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 6401 echo "configure:6402: checking for ldap_set_option in -lldap10" >&5
7002 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6402 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
7003 echo "configure:7004: checking "$xe_msg_checking"" >&5 6403
7004 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6404 xe_check_libs=" -lldap10 "
7005 6405 cat > conftest.$ac_ext <<EOF
7006 xe_check_libs=" -lldap -llber -lkrb" 6406 #line 6407 "configure"
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h" 6407 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */ 6408 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2 6409 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */ 6410 builtin and then its argument prototype would still apply. */
7013 char ldap_open(); 6411 char ldap_set_option();
7014 6412
7015 int main() { 6413 int main() {
7016 ldap_open() 6414 ldap_set_option()
7017 ; return 0; } 6415 ; return 0; }
7018 EOF 6416 EOF
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7020 rm -rf conftest* 6418 rm -rf conftest*
7021 eval "ac_cv_lib_$ac_lib_var=yes" 6419 eval "ac_cv_lib_$ac_lib_var=yes"
7022 else 6420 else
7023 echo "configure: failed program was:" >&5 6421 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5 6422 cat conftest.$ac_ext >&5
7028 rm -f conftest* 6426 rm -f conftest*
7029 xe_check_libs="" 6427 xe_check_libs=""
7030 6428
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7032 echo "$ac_t""yes" 1>&6 6430 echo "$ac_t""yes" 1>&6
7033 with_ldap_krb=yes 6431 with_ns_ldap=yes
7034 else 6432 else
7035 echo "$ac_t""no" 1>&6 6433 echo "$ac_t""no" 1>&6
7036 with_ldap_krb=no 6434 with_ns_ldap=no
7037 fi 6435 fi
7038 6436
7039 } 6437 }
7040 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 6438 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
7041 xe_msg_checking="for ldap_open in -lldap"
7042 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7043 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7044 echo "configure:7045: checking "$xe_msg_checking"" >&5
7045 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7046
7047 xe_check_libs=" -lldap -llber -lkrb -ldes"
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7054 char ldap_open();
7055
7056 int main() {
7057 ldap_open()
7058 ; return 0; }
7059 EOF
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061 rm -rf conftest*
7062 eval "ac_cv_lib_$ac_lib_var=yes"
7063 else
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7066 rm -rf conftest*
7067 eval "ac_cv_lib_$ac_lib_var=no"
7068 fi
7069 rm -f conftest*
7070 xe_check_libs=""
7071
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7073 echo "$ac_t""yes" 1>&6
7074 with_ldap_krbdes=yes
7075 else
7076 echo "$ac_t""no" 1>&6
7077 with_ldap_krbdes=no
7078 fi
7079
7080 }
7081 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
7082 fi 6439 fi
7083 if test "$with_ldap" = "yes"; then 6440 if test "$with_ldap" = "yes"; then
7084 { test "$extra_verbose" = "yes" && cat << \EOF 6441 { test "$extra_verbose" = "yes" && cat << \EOF
7085 Defining HAVE_LDAP 6442 Defining HAVE_LDAP
7086 EOF 6443 EOF
7090 } 6447 }
7091 6448
7092 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then 6449 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7093 echo " xemacs will be linked with \"eldap.o\"" 6450 echo " xemacs will be linked with \"eldap.o\""
7094 fi 6451 fi
7095 if test "$with_ldap_nolber" = "yes" ; then 6452 if test "$with_umich_ldap" = "yes" ; then
7096 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6453 { test "$extra_verbose" = "yes" && cat << \EOF
7097 else 6454 Defining HAVE_UMICH_LDAP
7098 if test "$with_ldap_krb" = "yes" ; then 6455 EOF
7099 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi 6456 cat >> confdefs.h <<\EOF
7100 fi 6457 #define HAVE_UMICH_LDAP 1
7101 if test "$with_ldap_krbdes" = "yes" ; then 6458 EOF
7102 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi 6459 }
7103 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi 6460
7104 fi
7105 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi 6461 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7106 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6462 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7107 fi 6463 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
7108 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7109 do
7110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7111 echo "configure:7112: checking for $ac_func" >&5
7112
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char $ac_func(); below. */
7118 #include <assert.h>
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7122 char $ac_func();
7123
7124 int main() {
7125
7126 /* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7130 choke me
7131 #else
7132 $ac_func();
7133 #endif
7134
7135 ; return 0; }
7136 EOF
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7138 rm -rf conftest*
7139 eval "ac_cv_func_$ac_func=yes"
7140 else
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7143 rm -rf conftest*
7144 eval "ac_cv_func_$ac_func=no"
7145 fi
7146 rm -f conftest*
7147
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151 { test "$extra_verbose" = "yes" && cat << EOF
7152 Defining $ac_tr_func
7153 EOF
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_func 1
7156 EOF
7157 }
7158
7159 else
7160 echo "$ac_t""no" 1>&6
7161 fi
7162 done
7163
7164 fi
7165
7166 if test "$with_postgresql" != "no"; then
7167 echo "checking for PostgreSQL" 1>&6
7168 echo "configure:7169: checking for PostgreSQL" >&5
7169
7170 for header_dir in "" "pgsql/" "postgresql/"; do
7171 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7172 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7173 echo "configure:7174: checking for ${header_dir}libpq-fe.h" >&5
7174
7175 cat > conftest.$ac_ext <<EOF
7176 #line 7177 "configure"
7177 #include "confdefs.h"
7178 #include <${header_dir}libpq-fe.h>
7179 EOF
7180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7181 { (eval echo configure:7182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7183 if test -z "$ac_err"; then
7184 rm -rf conftest*
7185 eval "ac_cv_header_$ac_safe=yes"
7186 else
7187 echo "$ac_err" >&5
7188 echo "configure: failed program was:" >&5
7189 cat conftest.$ac_ext >&5
7190 rm -rf conftest*
7191 eval "ac_cv_header_$ac_safe=no"
7192 fi
7193 rm -f conftest*
7194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7197 else
7198 echo "$ac_t""no" 1>&6
7199 fi
7200
7201 done
7202
7203 test -n "$libpq_fe_h_file" && {
7204 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7205 echo "configure:7206: checking for PQconnectdb in -lpq" >&5
7206 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7207
7208 xe_check_libs=" -lpq "
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7215 char PQconnectdb();
7216
7217 int main() {
7218 PQconnectdb()
7219 ; return 0; }
7220 EOF
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7222 rm -rf conftest*
7223 eval "ac_cv_lib_$ac_lib_var=yes"
7224 else
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7227 rm -rf conftest*
7228 eval "ac_cv_lib_$ac_lib_var=no"
7229 fi
7230 rm -f conftest*
7231 xe_check_libs=""
7232
7233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7234 echo "$ac_t""yes" 1>&6
7235 have_libpq=yes
7236 else
7237 echo "$ac_t""no" 1>&6
7238 fi
7239
7240 }
7241
7242 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7243 with_postgresql=yes
7244 { test "$extra_verbose" = "yes" && cat << \EOF 6464 { test "$extra_verbose" = "yes" && cat << \EOF
7245 Defining HAVE_POSTGRESQL 6465 Defining HAVE_NS_LDAP
7246 EOF 6466 EOF
7247 cat >> confdefs.h <<\EOF 6467 cat >> confdefs.h <<\EOF
7248 #define HAVE_POSTGRESQL 1 6468 #define HAVE_NS_LDAP 1
7249 EOF 6469 EOF
7250 } 6470 }
7251 6471
7252 6472 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
7253 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 6473 elif test "$with_ldap" = "yes" ; then
7254 echo "configure:7255: checking for PQconnectStart in -lpq" >&5 6474 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7255 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7256
7257 xe_check_libs=" -lpq "
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char PQconnectStart();
7265
7266 int main() {
7267 PQconnectStart()
7268 ; return 0; }
7269 EOF
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_lib_$ac_lib_var=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_lib_$ac_lib_var=no"
7278 fi
7279 rm -f conftest*
7280 xe_check_libs=""
7281
7282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7283 echo "$ac_t""yes" 1>&6
7284 with_postgresqlv7=yes;
7285 { test "$extra_verbose" = "yes" && cat << \EOF
7286 Defining HAVE_POSTGRESQLV7
7287 EOF
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_POSTGRESQLV7 1
7290 EOF
7291 }
7292
7293 else
7294 echo "$ac_t""no" 1>&6
7295 fi
7296
7297
7298 { test "$extra_verbose" = "yes" && cat << EOF
7299 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
7300 EOF
7301 cat >> confdefs.h <<EOF
7302 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
7303 EOF
7304 }
7305
7306 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
7307 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
7308 echo " xemacs will be linked with \"postgresql.o\""
7309 fi
7310 elif test "$with_postgresql" = "yes"; then
7311 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
7312 fi 6475 fi
7313 fi 6476 fi
7314 6477
7315 6478
7316 if test "$window_system" != "none"; then 6479 if test "$window_system" != "none"; then
7317 echo "checking for graphics libraries" 1>&6 6480 echo "checking for graphics libraries" 1>&6
7318 echo "configure:7319: checking for graphics libraries" >&5 6481 echo "configure:6482: checking for graphics libraries" >&5
7319 6482
7320 xpm_problem="" 6483 xpm_problem=""
7321 if test -z "$with_xpm"; then 6484 if test -z "$with_xpm"; then
7322 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6485 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7323 echo "configure:7324: checking for Xpm - no older than 3.4f" >&5 6486 echo "configure:6487: checking for Xpm - no older than 3.4f" >&5
7324 xe_check_libs=-lXpm 6487 xe_check_libs=-lXpm
7325 cat > conftest.$ac_ext <<EOF 6488 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure" 6489 #line 6490 "configure"
7327 #include "confdefs.h" 6490 #include "confdefs.h"
7328 #define XPM_NUMBERS
7329 #include <X11/xpm.h> 6491 #include <X11/xpm.h>
7330 int main(int c, char **v) { 6492 int main(int c, char **v) {
7331 return c == 1 ? 0 : 6493 return c == 1 ? 0 :
7332 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6494 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7333 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6495 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7334 EOF 6496 EOF
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6497 if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7336 then 6498 then
7337 ./conftest dummy_arg; xpm_status=$?; 6499 ./conftest dummy_arg; xpm_status=$?;
7338 if test "$xpm_status" = "0"; then 6500 if test "$xpm_status" = "0"; then
7339 with_xpm=yes; 6501 with_xpm=yes;
7340 else 6502 else
7372 EOF 6534 EOF
7373 } 6535 }
7374 6536
7375 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6537 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7376 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6538 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7377 echo "configure:7378: checking for \"FOR_MSW\" xpm" >&5 6539 echo "configure:6540: checking for \"FOR_MSW\" xpm" >&5
7378 xe_check_libs=-lXpm 6540 xe_check_libs=-lXpm
7379 cat > conftest.$ac_ext <<EOF 6541 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure" 6542 #line 6543 "configure"
7381 #include "confdefs.h" 6543 #include "confdefs.h"
7382 6544
7383 int main() { 6545 int main() {
7384 XpmCreatePixmapFromData() 6546 XpmCreatePixmapFromData()
7385 ; return 0; } 6547 ; return 0; }
7386 EOF 6548 EOF
7387 if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7388 rm -rf conftest* 6550 rm -rf conftest*
7389 xpm_for_msw=no 6551 xpm_for_msw=no
7390 else 6552 else
7391 echo "configure: failed program was:" >&5 6553 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5 6554 cat conftest.$ac_ext >&5
7408 fi 6570 fi
7409 fi 6571 fi
7410 6572
7411 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6573 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7412 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6574 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7413 echo "configure:7414: checking for compface.h" >&5 6575 echo "configure:6576: checking for compface.h" >&5
7414 6576
7415 cat > conftest.$ac_ext <<EOF 6577 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure" 6578 #line 6579 "configure"
7417 #include "confdefs.h" 6579 #include "confdefs.h"
7418 #include <compface.h> 6580 #include <compface.h>
7419 EOF 6581 EOF
7420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7421 { (eval echo configure:7422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6583 { (eval echo configure:6584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6584 ac_err=`grep -v '^ *+' conftest.out`
7423 if test -z "$ac_err"; then 6585 if test -z "$ac_err"; then
7424 rm -rf conftest* 6586 rm -rf conftest*
7425 eval "ac_cv_header_$ac_safe=yes" 6587 eval "ac_cv_header_$ac_safe=yes"
7426 else 6588 else
7427 echo "$ac_err" >&5 6589 echo "$ac_err" >&5
7439 with_xface=no 6601 with_xface=no
7440 fi 6602 fi
7441 } 6603 }
7442 test -z "$with_xface" && { 6604 test -z "$with_xface" && {
7443 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6605 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7444 echo "configure:7445: checking for UnGenFace in -lcompface" >&5 6606 echo "configure:6607: checking for UnGenFace in -lcompface" >&5
7445 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6607 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7446 6608
7447 xe_check_libs=" -lcompface " 6609 xe_check_libs=" -lcompface "
7448 cat > conftest.$ac_ext <<EOF 6610 cat > conftest.$ac_ext <<EOF
7449 #line 7450 "configure" 6611 #line 6612 "configure"
7450 #include "confdefs.h" 6612 #include "confdefs.h"
7451 /* Override any gcc2 internal prototype to avoid an error. */ 6613 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2 6614 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */ 6615 builtin and then its argument prototype would still apply. */
7454 char UnGenFace(); 6616 char UnGenFace();
7455 6617
7456 int main() { 6618 int main() {
7457 UnGenFace() 6619 UnGenFace()
7458 ; return 0; } 6620 ; return 0; }
7459 EOF 6621 EOF
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7461 rm -rf conftest* 6623 rm -rf conftest*
7462 eval "ac_cv_lib_$ac_lib_var=yes" 6624 eval "ac_cv_lib_$ac_lib_var=yes"
7463 else 6625 else
7464 echo "configure: failed program was:" >&5 6626 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5 6627 cat conftest.$ac_ext >&5
7507 fi 6669 fi
7508 6670
7509 if test "$with_png $with_tiff" != "no no"; then 6671 if test "$with_png $with_tiff" != "no no"; then
7510 6672
7511 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6673 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7512 echo "configure:7513: checking for inflate in -lc" >&5 6674 echo "configure:6675: checking for inflate in -lc" >&5
7513 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6675 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7514 6676
7515 xe_check_libs=" -lc " 6677 xe_check_libs=" -lc "
7516 cat > conftest.$ac_ext <<EOF 6678 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 6679 #line 6680 "configure"
7518 #include "confdefs.h" 6680 #include "confdefs.h"
7519 /* Override any gcc2 internal prototype to avoid an error. */ 6681 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2 6682 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */ 6683 builtin and then its argument prototype would still apply. */
7522 char inflate(); 6684 char inflate();
7523 6685
7524 int main() { 6686 int main() {
7525 inflate() 6687 inflate()
7526 ; return 0; } 6688 ; return 0; }
7527 EOF 6689 EOF
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7529 rm -rf conftest* 6691 rm -rf conftest*
7530 eval "ac_cv_lib_$ac_lib_var=yes" 6692 eval "ac_cv_lib_$ac_lib_var=yes"
7531 else 6693 else
7532 echo "configure: failed program was:" >&5 6694 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5 6695 cat conftest.$ac_ext >&5
7542 : 6704 :
7543 else 6705 else
7544 echo "$ac_t""no" 1>&6 6706 echo "$ac_t""no" 1>&6
7545 6707
7546 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6708 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7547 echo "configure:7548: checking for inflate in -lz" >&5 6709 echo "configure:6710: checking for inflate in -lz" >&5
7548 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6710 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7549 6711
7550 xe_check_libs=" -lz " 6712 xe_check_libs=" -lz "
7551 cat > conftest.$ac_ext <<EOF 6713 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure" 6714 #line 6715 "configure"
7553 #include "confdefs.h" 6715 #include "confdefs.h"
7554 /* Override any gcc2 internal prototype to avoid an error. */ 6716 /* Override any gcc2 internal prototype to avoid an error. */
7555 /* We use char because int might match the return type of a gcc2 6717 /* We use char because int might match the return type of a gcc2
7556 builtin and then its argument prototype would still apply. */ 6718 builtin and then its argument prototype would still apply. */
7557 char inflate(); 6719 char inflate();
7558 6720
7559 int main() { 6721 int main() {
7560 inflate() 6722 inflate()
7561 ; return 0; } 6723 ; return 0; }
7562 EOF 6724 EOF
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7564 rm -rf conftest* 6726 rm -rf conftest*
7565 eval "ac_cv_lib_$ac_lib_var=yes" 6727 eval "ac_cv_lib_$ac_lib_var=yes"
7566 else 6728 else
7567 echo "configure: failed program was:" >&5 6729 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5 6730 cat conftest.$ac_ext >&5
7577 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6739 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7578 else 6740 else
7579 echo "$ac_t""no" 1>&6 6741 echo "$ac_t""no" 1>&6
7580 6742
7581 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6743 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7582 echo "configure:7583: checking for inflate in -lgz" >&5 6744 echo "configure:6745: checking for inflate in -lgz" >&5
7583 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6745 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7584 6746
7585 xe_check_libs=" -lgz " 6747 xe_check_libs=" -lgz "
7586 cat > conftest.$ac_ext <<EOF 6748 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure" 6749 #line 6750 "configure"
7588 #include "confdefs.h" 6750 #include "confdefs.h"
7589 /* Override any gcc2 internal prototype to avoid an error. */ 6751 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2 6752 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */ 6753 builtin and then its argument prototype would still apply. */
7592 char inflate(); 6754 char inflate();
7593 6755
7594 int main() { 6756 int main() {
7595 inflate() 6757 inflate()
7596 ; return 0; } 6758 ; return 0; }
7597 EOF 6759 EOF
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7599 rm -rf conftest* 6761 rm -rf conftest*
7600 eval "ac_cv_lib_$ac_lib_var=yes" 6762 eval "ac_cv_lib_$ac_lib_var=yes"
7601 else 6763 else
7602 echo "configure: failed program was:" >&5 6764 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5 6765 cat conftest.$ac_ext >&5
7623 6785
7624 fi 6786 fi
7625 6787
7626 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6788 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6789 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7628 echo "configure:7629: checking for jpeglib.h" >&5 6790 echo "configure:6791: checking for jpeglib.h" >&5
7629 6791
7630 cat > conftest.$ac_ext <<EOF 6792 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure" 6793 #line 6794 "configure"
7632 #include "confdefs.h" 6794 #include "confdefs.h"
7633 #include <jpeglib.h> 6795 #include <jpeglib.h>
7634 EOF 6796 EOF
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6798 { (eval echo configure:6799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6799 ac_err=`grep -v '^ *+' conftest.out`
7638 if test -z "$ac_err"; then 6800 if test -z "$ac_err"; then
7639 rm -rf conftest* 6801 rm -rf conftest*
7640 eval "ac_cv_header_$ac_safe=yes" 6802 eval "ac_cv_header_$ac_safe=yes"
7641 else 6803 else
7642 echo "$ac_err" >&5 6804 echo "$ac_err" >&5
7654 with_jpeg=no 6816 with_jpeg=no
7655 fi 6817 fi
7656 } 6818 }
7657 test -z "$with_jpeg" && { 6819 test -z "$with_jpeg" && {
7658 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6820 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7659 echo "configure:7660: checking for jpeg_destroy_decompress in -ljpeg" >&5 6821 echo "configure:6822: checking for jpeg_destroy_decompress in -ljpeg" >&5
7660 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6822 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7661 6823
7662 xe_check_libs=" -ljpeg " 6824 xe_check_libs=" -ljpeg "
7663 cat > conftest.$ac_ext <<EOF 6825 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure" 6826 #line 6827 "configure"
7665 #include "confdefs.h" 6827 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */ 6828 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2 6829 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */ 6830 builtin and then its argument prototype would still apply. */
7669 char jpeg_destroy_decompress(); 6831 char jpeg_destroy_decompress();
7670 6832
7671 int main() { 6833 int main() {
7672 jpeg_destroy_decompress() 6834 jpeg_destroy_decompress()
7673 ; return 0; } 6835 ; return 0; }
7674 EOF 6836 EOF
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7676 rm -rf conftest* 6838 rm -rf conftest*
7677 eval "ac_cv_lib_$ac_lib_var=yes" 6839 eval "ac_cv_lib_$ac_lib_var=yes"
7678 else 6840 else
7679 echo "configure: failed program was:" >&5 6841 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5 6842 cat conftest.$ac_ext >&5
7706 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6868 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7707 fi 6869 fi
7708 6870
7709 png_problem="" 6871 png_problem=""
7710 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6872 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7711 echo "configure:7712: checking for pow" >&5 6873 echo "configure:6874: checking for pow" >&5
7712 6874
7713 cat > conftest.$ac_ext <<EOF 6875 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure" 6876 #line 6877 "configure"
7715 #include "confdefs.h" 6877 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes, 6878 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char pow(); below. */ 6879 which can conflict with char pow(); below. */
7718 #include <assert.h> 6880 #include <assert.h>
7719 /* Override any gcc2 internal prototype to avoid an error. */ 6881 /* Override any gcc2 internal prototype to avoid an error. */
7732 pow(); 6894 pow();
7733 #endif 6895 #endif
7734 6896
7735 ; return 0; } 6897 ; return 0; }
7736 EOF 6898 EOF
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7738 rm -rf conftest* 6900 rm -rf conftest*
7739 eval "ac_cv_func_pow=yes" 6901 eval "ac_cv_func_pow=yes"
7740 else 6902 else
7741 echo "configure: failed program was:" >&5 6903 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5 6904 cat conftest.$ac_ext >&5
7753 with_png=no 6915 with_png=no
7754 fi 6916 fi
7755 } 6917 }
7756 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6918 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7757 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6919 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7758 echo "configure:7759: checking for png.h" >&5 6920 echo "configure:6921: checking for png.h" >&5
7759 6921
7760 cat > conftest.$ac_ext <<EOF 6922 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure" 6923 #line 6924 "configure"
7762 #include "confdefs.h" 6924 #include "confdefs.h"
7763 #include <png.h> 6925 #include <png.h>
7764 EOF 6926 EOF
7765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7766 { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6929 ac_err=`grep -v '^ *+' conftest.out`
7768 if test -z "$ac_err"; then 6930 if test -z "$ac_err"; then
7769 rm -rf conftest* 6931 rm -rf conftest*
7770 eval "ac_cv_header_$ac_safe=yes" 6932 eval "ac_cv_header_$ac_safe=yes"
7771 else 6933 else
7772 echo "$ac_err" >&5 6934 echo "$ac_err" >&5
7784 with_png=no 6946 with_png=no
7785 fi 6947 fi
7786 } 6948 }
7787 test -z "$with_png" && { 6949 test -z "$with_png" && {
7788 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6950 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7789 echo "configure:7790: checking for png_read_image in -lpng" >&5 6951 echo "configure:6952: checking for png_read_image in -lpng" >&5
7790 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6952 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7791 6953
7792 xe_check_libs=" -lpng " 6954 xe_check_libs=" -lpng "
7793 cat > conftest.$ac_ext <<EOF 6955 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure" 6956 #line 6957 "configure"
7795 #include "confdefs.h" 6957 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */ 6958 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2 6959 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */ 6960 builtin and then its argument prototype would still apply. */
7799 char png_read_image(); 6961 char png_read_image();
7800 6962
7801 int main() { 6963 int main() {
7802 png_read_image() 6964 png_read_image()
7803 ; return 0; } 6965 ; return 0; }
7804 EOF 6966 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7806 rm -rf conftest* 6968 rm -rf conftest*
7807 eval "ac_cv_lib_$ac_lib_var=yes" 6969 eval "ac_cv_lib_$ac_lib_var=yes"
7808 else 6970 else
7809 echo "configure: failed program was:" >&5 6971 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5 6972 cat conftest.$ac_ext >&5
7823 fi 6985 fi
7824 6986
7825 } 6987 }
7826 if test -z "$with_png"; then 6988 if test -z "$with_png"; then
7827 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 6989 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7828 echo "configure:7829: checking for workable png version information" >&5 6990 echo "configure:6991: checking for workable png version information" >&5
7829 xe_check_libs="-lpng -lz" 6991 xe_check_libs="-lpng -lz"
7830 cat > conftest.$ac_ext <<EOF 6992 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure" 6993 #line 6994 "configure"
7832 #include "confdefs.h" 6994 #include "confdefs.h"
7833 #include <png.h> 6995 #include <png.h>
7834 int main(int c, char **v) { 6996 int main(int c, char **v) {
7835 if (c == 1) return 0; 6997 if (c == 1) return 0;
7836 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 6998 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7837 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 6999 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7838 EOF 7000 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7840 then 7002 then
7841 ./conftest dummy_arg; png_status=$?; 7003 ./conftest dummy_arg; png_status=$?;
7842 if test "$png_status" = "0"; then 7004 if test "$png_status" = "0"; then
7843 with_png=yes; 7005 with_png=yes;
7844 else 7006 else
7877 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7039 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7878 fi 7040 fi
7879 7041
7880 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7042 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7881 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7043 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7882 echo "configure:7883: checking for tiffio.h" >&5 7044 echo "configure:7045: checking for tiffio.h" >&5
7883 7045
7884 cat > conftest.$ac_ext <<EOF 7046 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure" 7047 #line 7048 "configure"
7886 #include "confdefs.h" 7048 #include "confdefs.h"
7887 #include <tiffio.h> 7049 #include <tiffio.h>
7888 EOF 7050 EOF
7889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7890 { (eval echo configure:7891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7052 { (eval echo configure:7053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7053 ac_err=`grep -v '^ *+' conftest.out`
7892 if test -z "$ac_err"; then 7054 if test -z "$ac_err"; then
7893 rm -rf conftest* 7055 rm -rf conftest*
7894 eval "ac_cv_header_$ac_safe=yes" 7056 eval "ac_cv_header_$ac_safe=yes"
7895 else 7057 else
7896 echo "$ac_err" >&5 7058 echo "$ac_err" >&5
7908 with_tiff=no 7070 with_tiff=no
7909 fi 7071 fi
7910 } 7072 }
7911 test -z "$with_tiff" && { 7073 test -z "$with_tiff" && {
7912 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7074 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7913 echo "configure:7914: checking for TIFFClientOpen in -ltiff" >&5 7075 echo "configure:7076: checking for TIFFClientOpen in -ltiff" >&5
7914 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7076 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7915 7077
7916 xe_check_libs=" -ltiff " 7078 xe_check_libs=" -ltiff "
7917 cat > conftest.$ac_ext <<EOF 7079 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure" 7080 #line 7081 "configure"
7919 #include "confdefs.h" 7081 #include "confdefs.h"
7920 /* Override any gcc2 internal prototype to avoid an error. */ 7082 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2 7083 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */ 7084 builtin and then its argument prototype would still apply. */
7923 char TIFFClientOpen(); 7085 char TIFFClientOpen();
7924 7086
7925 int main() { 7087 int main() {
7926 TIFFClientOpen() 7088 TIFFClientOpen()
7927 ; return 0; } 7089 ; return 0; }
7928 EOF 7090 EOF
7929 if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7930 rm -rf conftest* 7092 rm -rf conftest*
7931 eval "ac_cv_lib_$ac_lib_var=yes" 7093 eval "ac_cv_lib_$ac_lib_var=yes"
7932 else 7094 else
7933 echo "configure: failed program was:" >&5 7095 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5 7096 cat conftest.$ac_ext >&5
7963 7125
7964 7126
7965 if test "$with_x11" = "yes"; then 7127 if test "$with_x11" = "yes"; then
7966 7128
7967 echo "checking for X11 graphics libraries" 1>&6 7129 echo "checking for X11 graphics libraries" 1>&6
7968 echo "configure:7969: checking for X11 graphics libraries" >&5 7130 echo "configure:7131: checking for X11 graphics libraries" >&5
7969 7131
7970 echo "checking for the Athena widgets" 1>&6
7971 echo "configure:7972: checking for the Athena widgets" >&5
7972
7973 case "$with_athena" in
7974 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7975 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7976 "next") athena_variant=neXtaw athena_3d=yes ;;
7977 "95") athena_variant=Xaw95 athena_3d=yes ;;
7978 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7979 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7980 esac
7981
7982 if test "$athena_3d" = "no"; then
7983 7132
7984 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 7133 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7985 echo "configure:7986: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 7134 echo "configure:7135: checking for XawScrollbarSetThumb in -lXaw" >&5
7986 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7135 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7987 7136
7988 xe_check_libs=" -l$athena_variant " 7137 xe_check_libs=" -lXaw "
7989 cat > conftest.$ac_ext <<EOF 7138 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure" 7139 #line 7140 "configure"
7991 #include "confdefs.h" 7140 #include "confdefs.h"
7992 /* Override any gcc2 internal prototype to avoid an error. */ 7141 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2 7142 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */ 7143 builtin and then its argument prototype would still apply. */
7995 char XawScrollbarSetThumb(); 7144 char XawScrollbarSetThumb();
7996 7145
7997 int main() { 7146 int main() {
7998 XawScrollbarSetThumb() 7147 XawScrollbarSetThumb()
7999 ; return 0; } 7148 ; return 0; }
8000 EOF 7149 EOF
8001 if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8002 rm -rf conftest* 7151 rm -rf conftest*
8003 eval "ac_cv_lib_$ac_lib_var=yes" 7152 eval "ac_cv_lib_$ac_lib_var=yes"
8004 else 7153 else
8005 echo "configure: failed program was:" >&5 7154 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5 7155 cat conftest.$ac_ext >&5
8010 rm -f conftest* 7159 rm -f conftest*
8011 xe_check_libs="" 7160 xe_check_libs=""
8012 7161
8013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8014 echo "$ac_t""yes" 1>&6 7163 echo "$ac_t""yes" 1>&6
8015 7164 have_xaw=yes
8016 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 7165 else
8017 echo "configure:8018: checking for threeDClassRec in -l$athena_variant" >&5 7166 echo "$ac_t""no" 1>&6
8018 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 7167 have_xaw=no
8019 7168 fi
8020 xe_check_libs=" -l$athena_variant " 7169
8021 cat > conftest.$ac_ext <<EOF 7170
8022 #line 8023 "configure" 7171
8023 #include "confdefs.h"
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char threeDClassRec();
8028
8029 int main() {
8030 threeDClassRec()
8031 ; return 0; }
8032 EOF
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 rm -rf conftest*
8035 eval "ac_cv_lib_$ac_lib_var=yes"
8036 else
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 rm -rf conftest*
8040 eval "ac_cv_lib_$ac_lib_var=no"
8041 fi
8042 rm -f conftest*
8043 xe_check_libs=""
8044
8045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8046 echo "$ac_t""yes" 1>&6
8047 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8048 else
8049 echo "$ac_t""no" 1>&6
8050 athena_lib=$athena_variant
8051 fi
8052
8053
8054
8055 else
8056 echo "$ac_t""no" 1>&6
8057 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8058 fi
8059
8060
8061 else
8062
8063 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8064 echo "configure:8065: checking for threeDClassRec in -l$athena_variant" >&5
8065 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8066
8067 xe_check_libs=" -l$athena_variant "
8068 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char threeDClassRec();
8075
8076 int main() {
8077 threeDClassRec()
8078 ; return 0; }
8079 EOF
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 rm -rf conftest*
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8083 else
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 eval "ac_cv_lib_$ac_lib_var=no"
8088 fi
8089 rm -f conftest*
8090 xe_check_libs=""
8091
8092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8093 echo "$ac_t""yes" 1>&6
8094 athena_lib=$athena_variant
8095 else
8096 echo "$ac_t""no" 1>&6
8097 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8098 echo "configure:8099: checking for threeDClassRec in -lXaw" >&5
8099 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8100
8101 xe_check_libs=" -lXaw "
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8108 char threeDClassRec();
8109
8110 int main() {
8111 threeDClassRec()
8112 ; return 0; }
8113 EOF
8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8115 rm -rf conftest*
8116 eval "ac_cv_lib_$ac_lib_var=yes"
8117 else
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8120 rm -rf conftest*
8121 eval "ac_cv_lib_$ac_lib_var=no"
8122 fi
8123 rm -f conftest*
8124 xe_check_libs=""
8125
8126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8127 echo "$ac_t""yes" 1>&6
8128 athena_lib=Xaw;
8129 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8130
8131 else
8132 echo "$ac_t""no" 1>&6
8133 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8134 fi
8135
8136
8137 fi
8138
8139
8140 fi
8141
8142 if test "$athena_3d" = "no"; then
8143 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8144 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8145 echo "configure:8146: checking for X11/Xaw/ThreeD.h" >&5
8146
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 #include <X11/Xaw/ThreeD.h>
8151 EOF
8152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8153 { (eval echo configure:8154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8155 if test -z "$ac_err"; then
8156 rm -rf conftest*
8157 eval "ac_cv_header_$ac_safe=yes"
8158 else
8159 echo "$ac_err" >&5
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 rm -rf conftest*
8163 eval "ac_cv_header_$ac_safe=no"
8164 fi
8165 rm -f conftest*
8166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8167 echo "$ac_t""yes" 1>&6
8168 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8169 else
8170 echo "$ac_t""no" 1>&6
8171 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for X11/Xaw/XawInit.h" >&5
8174
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 #include <X11/Xaw/XawInit.h>
8179 EOF
8180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8181 { (eval echo configure:8182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8183 if test -z "$ac_err"; then
8184 rm -rf conftest*
8185 eval "ac_cv_header_$ac_safe=yes"
8186 else
8187 echo "$ac_err" >&5
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 rm -rf conftest*
8191 eval "ac_cv_header_$ac_safe=no"
8192 fi
8193 rm -f conftest*
8194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 athena_h_path=X11/Xaw
8197 else
8198 echo "$ac_t""no" 1>&6
8199 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8200 fi
8201
8202 fi
8203
8204 else
8205 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8206 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8207 echo "configure:8208: checking for X11/$athena_variant/XawInit.h" >&5
8208
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212 #include <X11/$athena_variant/XawInit.h>
8213 EOF
8214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8215 { (eval echo configure:8216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8217 if test -z "$ac_err"; then
8218 rm -rf conftest*
8219 eval "ac_cv_header_$ac_safe=yes"
8220 else
8221 echo "$ac_err" >&5
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8224 rm -rf conftest*
8225 eval "ac_cv_header_$ac_safe=no"
8226 fi
8227 rm -f conftest*
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8231 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8232 echo "configure:8233: checking for X11/$athena_variant/ThreeD.h" >&5
8233
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 #include <X11/$athena_variant/ThreeD.h>
8238 EOF
8239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8240 { (eval echo configure:8241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8242 if test -z "$ac_err"; then
8243 rm -rf conftest*
8244 eval "ac_cv_header_$ac_safe=yes"
8245 else
8246 echo "$ac_err" >&5
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -rf conftest*
8250 eval "ac_cv_header_$ac_safe=no"
8251 fi
8252 rm -f conftest*
8253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8255 athena_h_path=X11/$athena_variant
8256 else
8257 echo "$ac_t""no" 1>&6
8258 fi
8259
8260 else
8261 echo "$ac_t""no" 1>&6
8262 fi
8263
8264
8265 if test -z "$athena_h_path"; then
8266 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8267 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8268 echo "configure:8269: checking for $athena_variant/XawInit.h" >&5
8269
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 #include <$athena_variant/XawInit.h>
8274 EOF
8275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8276 { (eval echo configure:8277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8278 if test -z "$ac_err"; then
8279 rm -rf conftest*
8280 eval "ac_cv_header_$ac_safe=yes"
8281 else
8282 echo "$ac_err" >&5
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 rm -rf conftest*
8286 eval "ac_cv_header_$ac_safe=no"
8287 fi
8288 rm -f conftest*
8289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8291 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8292 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $athena_variant/ThreeD.h" >&5
8294
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 #include <$athena_variant/ThreeD.h>
8299 EOF
8300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8301 { (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8303 if test -z "$ac_err"; then
8304 rm -rf conftest*
8305 eval "ac_cv_header_$ac_safe=yes"
8306 else
8307 echo "$ac_err" >&5
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 rm -rf conftest*
8311 eval "ac_cv_header_$ac_safe=no"
8312 fi
8313 rm -f conftest*
8314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8316 athena_h_path=$athena_variant
8317 else
8318 echo "$ac_t""no" 1>&6
8319 fi
8320
8321 else
8322 echo "$ac_t""no" 1>&6
8323 fi
8324
8325 fi
8326
8327 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8328 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8329 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8330 echo "configure:8331: checking for X11/Xaw3d/XawInit.h" >&5
8331
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 #include <X11/Xaw3d/XawInit.h>
8336 EOF
8337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8338 { (eval echo configure:8339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8340 if test -z "$ac_err"; then
8341 rm -rf conftest*
8342 eval "ac_cv_header_$ac_safe=yes"
8343 else
8344 echo "$ac_err" >&5
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 rm -rf conftest*
8348 eval "ac_cv_header_$ac_safe=no"
8349 fi
8350 rm -f conftest*
8351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8354 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8355 echo "configure:8356: checking for X11/Xaw3d/ThreeD.h" >&5
8356
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <X11/Xaw3d/ThreeD.h>
8361 EOF
8362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8363 { (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8365 if test -z "$ac_err"; then
8366 rm -rf conftest*
8367 eval "ac_cv_header_$ac_safe=yes"
8368 else
8369 echo "$ac_err" >&5
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 rm -rf conftest*
8373 eval "ac_cv_header_$ac_safe=no"
8374 fi
8375 rm -f conftest*
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378
8379 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8380 athena_h_path=X11/Xaw3d
8381
8382 else
8383 echo "$ac_t""no" 1>&6
8384 fi
8385
8386 else
8387 echo "$ac_t""no" 1>&6
8388 fi
8389
8390 fi
8391
8392 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8393 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8394 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8395 echo "configure:8396: checking for Xaw3d/XawInit.h" >&5
8396
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 #include <Xaw3d/XawInit.h>
8401 EOF
8402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8403 { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8405 if test -z "$ac_err"; then
8406 rm -rf conftest*
8407 eval "ac_cv_header_$ac_safe=yes"
8408 else
8409 echo "$ac_err" >&5
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 rm -rf conftest*
8413 eval "ac_cv_header_$ac_safe=no"
8414 fi
8415 rm -f conftest*
8416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8419 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8420 echo "configure:8421: checking for Xaw3d/ThreeD.h" >&5
8421
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 #include <Xaw3d/ThreeD.h>
8426 EOF
8427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8428 { (eval echo configure:8429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8430 if test -z "$ac_err"; then
8431 rm -rf conftest*
8432 eval "ac_cv_header_$ac_safe=yes"
8433 else
8434 echo "$ac_err" >&5
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 rm -rf conftest*
8438 eval "ac_cv_header_$ac_safe=no"
8439 fi
8440 rm -f conftest*
8441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8442 echo "$ac_t""yes" 1>&6
8443
8444 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8445 athena_h_path=Xaw3d
8446
8447 else
8448 echo "$ac_t""no" 1>&6
8449 fi
8450
8451 else
8452 echo "$ac_t""no" 1>&6
8453 fi
8454
8455 fi
8456
8457 if test -z "$athena_h_path"; then
8458 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8460 echo "configure:8461: checking for X11/Xaw/ThreeD.h" >&5
8461
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 #include <X11/Xaw/ThreeD.h>
8466 EOF
8467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8468 { (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8470 if test -z "$ac_err"; then
8471 rm -rf conftest*
8472 eval "ac_cv_header_$ac_safe=yes"
8473 else
8474 echo "$ac_err" >&5
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 rm -rf conftest*
8478 eval "ac_cv_header_$ac_safe=no"
8479 fi
8480 rm -f conftest*
8481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8482 echo "$ac_t""yes" 1>&6
8483
8484 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8485 athena_h_path=X11/Xaw
8486
8487 else
8488 echo "$ac_t""no" 1>&6
8489 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8490 fi
8491
8492 fi
8493 fi
8494
8495 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8496 have_xaw=yes
8497 else
8498 have_xaw=no
8499 fi
8500
8501 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7172 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8502 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7173 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8503 echo "configure:8504: checking for Xm/Xm.h" >&5 7174 echo "configure:7175: checking for Xm/Xm.h" >&5
8504 7175
8505 cat > conftest.$ac_ext <<EOF 7176 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure" 7177 #line 7178 "configure"
8507 #include "confdefs.h" 7178 #include "confdefs.h"
8508 #include <Xm/Xm.h> 7179 #include <Xm/Xm.h>
8509 EOF 7180 EOF
8510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8511 { (eval echo configure:8512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7183 ac_err=`grep -v '^ *+' conftest.out`
8513 if test -z "$ac_err"; then 7184 if test -z "$ac_err"; then
8514 rm -rf conftest* 7185 rm -rf conftest*
8515 eval "ac_cv_header_$ac_safe=yes" 7186 eval "ac_cv_header_$ac_safe=yes"
8516 else 7187 else
8517 echo "$ac_err" >&5 7188 echo "$ac_err" >&5
8523 rm -f conftest* 7194 rm -f conftest*
8524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8525 echo "$ac_t""yes" 1>&6 7196 echo "$ac_t""yes" 1>&6
8526 7197
8527 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7198 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8528 echo "configure:8529: checking for XmStringFree in -lXm" >&5 7199 echo "configure:7200: checking for XmStringFree in -lXm" >&5
8529 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7200 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8530 7201
8531 xe_check_libs=" -lXm " 7202 xe_check_libs=" -lXm "
8532 cat > conftest.$ac_ext <<EOF 7203 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure" 7204 #line 7205 "configure"
8534 #include "confdefs.h" 7205 #include "confdefs.h"
8535 /* Override any gcc2 internal prototype to avoid an error. */ 7206 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2 7207 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */ 7208 builtin and then its argument prototype would still apply. */
8538 char XmStringFree(); 7209 char XmStringFree();
8539 7210
8540 int main() { 7211 int main() {
8541 XmStringFree() 7212 XmStringFree()
8542 ; return 0; } 7213 ; return 0; }
8543 EOF 7214 EOF
8544 if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8545 rm -rf conftest* 7216 rm -rf conftest*
8546 eval "ac_cv_lib_$ac_lib_var=yes" 7217 eval "ac_cv_lib_$ac_lib_var=yes"
8547 else 7218 else
8548 echo "configure: failed program was:" >&5 7219 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5 7220 cat conftest.$ac_ext >&5
8568 fi 7239 fi
8569 7240
8570 7241
8571 if test "$have_motif" = "yes"; then 7242 if test "$have_motif" = "yes"; then
8572 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7243 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8573 echo "configure:8574: checking for Lesstif" >&5 7244 echo "configure:7245: checking for Lesstif" >&5
8574 cat > conftest.$ac_ext <<EOF 7245 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure" 7246 #line 7247 "configure"
8576 #include "confdefs.h" 7247 #include "confdefs.h"
8577 #include <Xm/Xm.h> 7248 #include <Xm/Xm.h>
8578 #ifdef LESSTIF_VERSION 7249 #ifdef LESSTIF_VERSION
8579 yes 7250 yes
8580 #endif 7251 #endif
8593 echo "$ac_t""$have_lesstif" 1>&6 7264 echo "$ac_t""$have_lesstif" 1>&6
8594 fi 7265 fi
8595 7266
8596 fi 7267 fi
8597 7268
8598 case "$with_menubars" in "" | "yes" | "athena" ) 7269 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
8599 with_menubars="lucid" ;; 7270 with_menubars="lucid" ;;
8600 esac 7271 esac
8601 case "$with_dialogs" in "" | "yes" | "lucid" ) 7272 case "$with_dialogs" in "" | "yes" | "lucid" )
8602 if test "$have_motif" = "yes"; then with_dialogs="motif" 7273 if test "$have_motif" = "yes"; then with_dialogs="motif"
8603 elif test "$have_xaw" = "yes"; then with_dialogs="athena" 7274 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8604 else with_dialogs=no 7275 else with_dialogs=no
8605 fi ;; 7276 fi ;;
8606 esac 7277 esac
8607 case "$with_scrollbars" in "" | "yes" ) 7278 case "$with_scrollbars" in "" | "yes" )
8608 with_scrollbars="lucid" ;; 7279 with_scrollbars="lucid" ;;
8609 esac 7280 esac
8610 case "$with_widgets" in "" | "yes" | "lucid") 7281
8611 if test "$have_motif" = "yes"; then with_widgets="motif" 7282 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
8612 elif test "$have_xaw" = "yes"; then with_widgets="athena" 7283
8613 else with_widgets=no 7284 case "$all_widgets" in *athena* )
8614 fi ;; 7285 { test "$extra_verbose" = "yes" && cat << \EOF
8615 esac
8616
8617 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8618
8619 case "$all_widgets" in
8620 *athena* )
8621 if test "$have_xaw" != "yes"; then
8622 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8623 fi
8624
8625 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8626
8627 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8628
8629 { test "$extra_verbose" = "yes" && cat << EOF
8630 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
8631 EOF
8632 cat >> confdefs.h <<EOF
8633 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
8634 EOF
8635 }
8636
8637 { test "$extra_verbose" = "yes" && cat << EOF
8638 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
8639 EOF
8640 cat >> confdefs.h <<EOF
8641 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
8642 EOF
8643 }
8644
8645 { test "$extra_verbose" = "yes" && cat << EOF
8646 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
8647 EOF
8648 cat >> confdefs.h <<EOF
8649 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
8650 EOF
8651 }
8652
8653 { test "$extra_verbose" = "yes" && cat << EOF
8654 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
8655 EOF
8656 cat >> confdefs.h <<EOF
8657 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
8658 EOF
8659 }
8660
8661 { test "$extra_verbose" = "yes" && cat << EOF
8662 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
8663 EOF
8664 cat >> confdefs.h <<EOF
8665 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
8666 EOF
8667 }
8668
8669 { test "$extra_verbose" = "yes" && cat << EOF
8670 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
8671 EOF
8672 cat >> confdefs.h <<EOF
8673 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
8674 EOF
8675 }
8676
8677 { test "$extra_verbose" = "yes" && cat << EOF
8678 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
8679 EOF
8680 cat >> confdefs.h <<EOF
8681 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
8682 EOF
8683 }
8684
8685 { test "$extra_verbose" = "yes" && cat << EOF
8686 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
8687 EOF
8688 cat >> confdefs.h <<EOF
8689 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
8690 EOF
8691 }
8692
8693 { test "$extra_verbose" = "yes" && cat << EOF
8694 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
8695 EOF
8696 cat >> confdefs.h <<EOF
8697 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
8698 EOF
8699 }
8700
8701 { test "$extra_verbose" = "yes" && cat << EOF
8702 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
8703 EOF
8704 cat >> confdefs.h <<EOF
8705 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
8706 EOF
8707 }
8708
8709
8710 { test "$extra_verbose" = "yes" && cat << \EOF
8711 Defining LWLIB_USES_ATHENA 7286 Defining LWLIB_USES_ATHENA
8712 EOF 7287 EOF
8713 cat >> confdefs.h <<\EOF 7288 cat >> confdefs.h <<\EOF
8714 #define LWLIB_USES_ATHENA 1 7289 #define LWLIB_USES_ATHENA 1
8715 EOF 7290 EOF
8716 } 7291 }
8717 7292
8718 { test "$extra_verbose" = "yes" && cat << \EOF 7293 { test "$extra_verbose" = "yes" && cat << \EOF
8719 Defining NEED_ATHENA 7294 Defining NEED_ATHENA
8720 EOF 7295 EOF
8721 cat >> confdefs.h <<\EOF 7296 cat >> confdefs.h <<\EOF
8722 #define NEED_ATHENA 1 7297 #define NEED_ATHENA 1
8723 EOF 7298 EOF
8724 } 7299 }
8725 7300
8726 need_athena="yes" 7301 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8727 7302 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
8728 if test "$athena_3d" = "yes"; then
8729 { test "$extra_verbose" = "yes" && cat << \EOF
8730 Defining HAVE_ATHENA_3D
8731 EOF
8732 cat >> confdefs.h <<\EOF
8733 #define HAVE_ATHENA_3D 1
8734 EOF
8735 }
8736
8737 fi
8738 ;;
8739 esac 7303 esac
8740 7304
8741 case "$all_widgets" in *motif* ) 7305 case "$all_widgets" in *motif* )
8742 { test "$extra_verbose" = "yes" && cat << \EOF 7306 { test "$extra_verbose" = "yes" && cat << \EOF
8743 Defining LWLIB_USES_MOTIF 7307 Defining LWLIB_USES_MOTIF
8760 esac 7324 esac
8761 7325
8762 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi 7326 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8763 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi 7327 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8764 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi 7328 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8765 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8766 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8767 case "$with_widgets" in athena* )
8768 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
8769 esac
8770 case "$all_widgets" in *lucid* ) 7329 case "$all_widgets" in *lucid* )
8771 { test "$extra_verbose" = "yes" && cat << \EOF 7330 { test "$extra_verbose" = "yes" && cat << \EOF
8772 Defining NEED_LUCID 7331 Defining NEED_LUCID
8773 EOF 7332 EOF
8774 cat >> confdefs.h <<\EOF 7333 cat >> confdefs.h <<\EOF
8779 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;; 7338 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8780 esac 7339 esac
8781 7340
8782 7341
8783 7342
8784 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF 7343 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8785 Defining LWLIB_SCROLLBARS_ATHENA 7344 Defining LWLIB_SCROLLBARS_ATHENA
8786 EOF 7345 EOF
8787 cat >> confdefs.h <<\EOF 7346 cat >> confdefs.h <<\EOF
8788 #define LWLIB_SCROLLBARS_ATHENA 1 7347 #define LWLIB_SCROLLBARS_ATHENA 1
8789 EOF 7348 EOF
8790 } 7349 }
8791 7350 ;; esac
8792 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF 7351 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8793 Defining LWLIB_DIALOGS_ATHENA 7352 Defining LWLIB_DIALOGS_ATHENA
8794 EOF 7353 EOF
8795 cat >> confdefs.h <<\EOF 7354 cat >> confdefs.h <<\EOF
8796 #define LWLIB_DIALOGS_ATHENA 1 7355 #define LWLIB_DIALOGS_ATHENA 1
8797 EOF 7356 EOF
8798 } 7357 }
8799 7358 ;; esac
8800 7359 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
8801 if test "$athena_3d" = "yes"; then
8802 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8803 Defining LWLIB_SCROLLBARS_ATHENA3D 7360 Defining LWLIB_SCROLLBARS_ATHENA3D
8804 EOF 7361 EOF
8805 cat >> confdefs.h <<\EOF 7362 cat >> confdefs.h <<\EOF
8806 #define LWLIB_SCROLLBARS_ATHENA3D 1 7363 #define LWLIB_SCROLLBARS_ATHENA3D 1
8807 EOF 7364 EOF
8808 } 7365 }
8809 7366
8810 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF 7367 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
8811 Defining LWLIB_DIALOGS_ATHENA3D 7368 Defining LWLIB_DIALOGS_ATHENA3D
8812 EOF 7369 EOF
8813 cat >> confdefs.h <<\EOF 7370 cat >> confdefs.h <<\EOF
8814 #define LWLIB_DIALOGS_ATHENA3D 1 7371 #define LWLIB_DIALOGS_ATHENA3D 1
8815 EOF
8816 }
8817
8818 fi
8819
8820 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8821 Defining LWLIB_WIDGETS_ATHENA
8822 EOF
8823 cat >> confdefs.h <<\EOF
8824 #define LWLIB_WIDGETS_ATHENA 1
8825 EOF
8826 }
8827 ;; esac
8828 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8829 { test "$extra_verbose" = "yes" && cat << \EOF
8830 Defining LWLIB_TABS_LUCID
8831 EOF
8832 cat >> confdefs.h <<\EOF
8833 #define LWLIB_TABS_LUCID 1
8834 EOF 7372 EOF
8835 } 7373 }
8836 7374
8837 7375
8838 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF 7376 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8865 cat >> confdefs.h <<\EOF 7403 cat >> confdefs.h <<\EOF
8866 #define HAVE_TOOLBARS 1 7404 #define HAVE_TOOLBARS 1
8867 EOF 7405 EOF
8868 } 7406 }
8869 7407
8870 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8871 Defining HAVE_WIDGETS
8872 EOF
8873 cat >> confdefs.h <<\EOF
8874 #define HAVE_WIDGETS 1
8875 EOF
8876 }
8877
8878 7408
8879 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF 7409 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8880 Defining LWLIB_MENUBARS_LUCID 7410 Defining LWLIB_MENUBARS_LUCID
8881 EOF 7411 EOF
8882 cat >> confdefs.h <<\EOF 7412 cat >> confdefs.h <<\EOF
8915 cat >> confdefs.h <<\EOF 7445 cat >> confdefs.h <<\EOF
8916 #define LWLIB_DIALOGS_MOTIF 1 7446 #define LWLIB_DIALOGS_MOTIF 1
8917 EOF 7447 EOF
8918 } 7448 }
8919 7449
8920 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF 7450
8921 Defining LWLIB_WIDGETS_MOTIF 7451 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8922 EOF
8923 cat >> confdefs.h <<\EOF
8924 #define LWLIB_WIDGETS_MOTIF 1
8925 EOF
8926 }
8927
8928
8929 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8930 echo " xemacs will be linked with \"menubar.o\"" 7452 echo " xemacs will be linked with \"menubar.o\""
8931 fi 7453 fi
8932 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then 7454 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8933 echo " xemacs will be linked with \"scrollbar.o\"" 7455 echo " xemacs will be linked with \"scrollbar.o\""
8934 fi 7456 fi
8935 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then 7457 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8936 echo " xemacs will be linked with \"dialog.o\"" 7458 echo " xemacs will be linked with \"dialog.o\""
8937 fi 7459 fi
8938 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then 7460 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8939 echo " xemacs will be linked with \"toolbar.o\"" 7461 echo " xemacs will be linked with \"toolbar.o\""
8940 fi 7462 fi
8941 7463
8942 if test "$with_x11" = "yes"; then 7464 if test "$with_x11" = "yes"; then
8943 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then 7465 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8944 echo " xemacs will be linked with \"menubar-x.o\"" 7466 echo " xemacs will be linked with \"menubar-x.o\""
8945 fi 7467 fi
8946 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then 7468 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8947 echo " xemacs will be linked with \"scrollbar-x.o\"" 7469 echo " xemacs will be linked with \"scrollbar-x.o\""
8948 fi 7470 fi
8949 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then 7471 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8950 echo " xemacs will be linked with \"dialog-x.o\"" 7472 echo " xemacs will be linked with \"dialog-x.o\""
8951 fi 7473 fi
8952 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then 7474 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8953 echo " xemacs will be linked with \"toolbar-x.o\"" 7475 echo " xemacs will be linked with \"toolbar-x.o\""
8954 fi 7476 fi
8955 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then 7477 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8956 echo " xemacs will be linked with \"gui-x.o\"" 7478 echo " xemacs will be linked with \"gui-x.o\""
8957 fi 7479 fi
7480 else
7481 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7482 echo "Attempt to Build NAS sound without X"
7483 echo "Please remove NAS configuration or build with X"
7484 exit 1
7485 fi
8958 fi 7486 fi
8959 7487
8960 7488
8961 test -z "$with_mule" && with_mule=no 7489 test -z "$with_mule" && with_mule=no
8962 test -z "$with_file_coding" && with_file_coding=no 7490 test -z "$with_file_coding" && with_file_coding=no
8976 fi 7504 fi
8977 fi 7505 fi
8978 7506
8979 if test "$with_mule" = "yes" ; then 7507 if test "$with_mule" = "yes" ; then
8980 echo "checking for Mule-related features" 1>&6 7508 echo "checking for Mule-related features" 1>&6
8981 echo "configure:8982: checking for Mule-related features" >&5 7509 echo "configure:7510: checking for Mule-related features" >&5
8982 { test "$extra_verbose" = "yes" && cat << \EOF 7510 { test "$extra_verbose" = "yes" && cat << \EOF
8983 Defining MULE 7511 Defining MULE
8984 EOF 7512 EOF
8985 cat >> confdefs.h <<\EOF 7513 cat >> confdefs.h <<\EOF
8986 #define MULE 1 7514 #define MULE 1
9001 7529
9002 for ac_hdr in libintl.h 7530 for ac_hdr in libintl.h
9003 do 7531 do
9004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9006 echo "configure:9007: checking for $ac_hdr" >&5 7534 echo "configure:7535: checking for $ac_hdr" >&5
9007 7535
9008 cat > conftest.$ac_ext <<EOF 7536 cat > conftest.$ac_ext <<EOF
9009 #line 9010 "configure" 7537 #line 7538 "configure"
9010 #include "confdefs.h" 7538 #include "confdefs.h"
9011 #include <$ac_hdr> 7539 #include <$ac_hdr>
9012 EOF 7540 EOF
9013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9014 { (eval echo configure:9015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7542 { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7543 ac_err=`grep -v '^ *+' conftest.out`
9016 if test -z "$ac_err"; then 7544 if test -z "$ac_err"; then
9017 rm -rf conftest* 7545 rm -rf conftest*
9018 eval "ac_cv_header_$ac_safe=yes" 7546 eval "ac_cv_header_$ac_safe=yes"
9019 else 7547 else
9020 echo "$ac_err" >&5 7548 echo "$ac_err" >&5
9040 fi 7568 fi
9041 done 7569 done
9042 7570
9043 7571
9044 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7572 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9045 echo "configure:9046: checking for strerror in -lintl" >&5 7573 echo "configure:7574: checking for strerror in -lintl" >&5
9046 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7574 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9047 7575
9048 xe_check_libs=" -lintl " 7576 xe_check_libs=" -lintl "
9049 cat > conftest.$ac_ext <<EOF 7577 cat > conftest.$ac_ext <<EOF
9050 #line 9051 "configure" 7578 #line 7579 "configure"
9051 #include "confdefs.h" 7579 #include "confdefs.h"
9052 /* Override any gcc2 internal prototype to avoid an error. */ 7580 /* Override any gcc2 internal prototype to avoid an error. */
9053 /* We use char because int might match the return type of a gcc2 7581 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */ 7582 builtin and then its argument prototype would still apply. */
9055 char strerror(); 7583 char strerror();
9056 7584
9057 int main() { 7585 int main() {
9058 strerror() 7586 strerror()
9059 ; return 0; } 7587 ; return 0; }
9060 EOF 7588 EOF
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9062 rm -rf conftest* 7590 rm -rf conftest*
9063 eval "ac_cv_lib_$ac_lib_var=yes" 7591 eval "ac_cv_lib_$ac_lib_var=yes"
9064 else 7592 else
9065 echo "configure: failed program was:" >&5 7593 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5 7594 cat conftest.$ac_ext >&5
9089 fi 7617 fi
9090 7618
9091 7619
9092 7620
9093 echo "checking for Mule input methods" 1>&6 7621 echo "checking for Mule input methods" 1>&6
9094 echo "configure:9095: checking for Mule input methods" >&5 7622 echo "configure:7623: checking for Mule input methods" >&5
9095 case "$with_xim" in "" | "yes" ) 7623 case "$with_xim" in "" | "yes" )
9096 echo "checking for XIM" 1>&6 7624 echo "checking for XIM" 1>&6
9097 echo "configure:9098: checking for XIM" >&5 7625 echo "configure:7626: checking for XIM" >&5
9098 7626
9099 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7627 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9100 echo "configure:9101: checking for XOpenIM in -lX11" >&5 7628 echo "configure:7629: checking for XOpenIM in -lX11" >&5
9101 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7629 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9102 7630
9103 xe_check_libs=" -lX11 " 7631 xe_check_libs=" -lX11 "
9104 cat > conftest.$ac_ext <<EOF 7632 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure" 7633 #line 7634 "configure"
9106 #include "confdefs.h" 7634 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */ 7635 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2 7636 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */ 7637 builtin and then its argument prototype would still apply. */
9110 char XOpenIM(); 7638 char XOpenIM();
9111 7639
9112 int main() { 7640 int main() {
9113 XOpenIM() 7641 XOpenIM()
9114 ; return 0; } 7642 ; return 0; }
9115 EOF 7643 EOF
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9117 rm -rf conftest* 7645 rm -rf conftest*
9118 eval "ac_cv_lib_$ac_lib_var=yes" 7646 eval "ac_cv_lib_$ac_lib_var=yes"
9119 else 7647 else
9120 echo "configure: failed program was:" >&5 7648 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5 7649 cat conftest.$ac_ext >&5
9135 7663
9136 7664
9137 if test "$have_motif $have_lesstif" = "yes no"; then 7665 if test "$have_motif $have_lesstif" = "yes no"; then
9138 7666
9139 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7667 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9140 echo "configure:9141: checking for XmImMbLookupString in -lXm" >&5 7668 echo "configure:7669: checking for XmImMbLookupString in -lXm" >&5
9141 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7669 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9142 7670
9143 xe_check_libs=" -lXm " 7671 xe_check_libs=" -lXm "
9144 cat > conftest.$ac_ext <<EOF 7672 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure" 7673 #line 7674 "configure"
9146 #include "confdefs.h" 7674 #include "confdefs.h"
9147 /* Override any gcc2 internal prototype to avoid an error. */ 7675 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2 7676 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */ 7677 builtin and then its argument prototype would still apply. */
9150 char XmImMbLookupString(); 7678 char XmImMbLookupString();
9151 7679
9152 int main() { 7680 int main() {
9153 XmImMbLookupString() 7681 XmImMbLookupString()
9154 ; return 0; } 7682 ; return 0; }
9155 EOF 7683 EOF
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9157 rm -rf conftest* 7685 rm -rf conftest*
9158 eval "ac_cv_lib_$ac_lib_var=yes" 7686 eval "ac_cv_lib_$ac_lib_var=yes"
9159 else 7687 else
9160 echo "configure: failed program was:" >&5 7688 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5 7689 cat conftest.$ac_ext >&5
9216 fi 7744 fi
9217 fi 7745 fi
9218 7746
9219 if test "$with_xfs" = "yes" ; then 7747 if test "$with_xfs" = "yes" ; then
9220 echo "checking for XFontSet" 1>&6 7748 echo "checking for XFontSet" 1>&6
9221 echo "configure:9222: checking for XFontSet" >&5 7749 echo "configure:7750: checking for XFontSet" >&5
9222 7750
9223 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7751 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9224 echo "configure:9225: checking for XmbDrawString in -lX11" >&5 7752 echo "configure:7753: checking for XmbDrawString in -lX11" >&5
9225 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7753 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9226 7754
9227 xe_check_libs=" -lX11 " 7755 xe_check_libs=" -lX11 "
9228 cat > conftest.$ac_ext <<EOF 7756 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure" 7757 #line 7758 "configure"
9230 #include "confdefs.h" 7758 #include "confdefs.h"
9231 /* Override any gcc2 internal prototype to avoid an error. */ 7759 /* Override any gcc2 internal prototype to avoid an error. */
9232 /* We use char because int might match the return type of a gcc2 7760 /* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */ 7761 builtin and then its argument prototype would still apply. */
9234 char XmbDrawString(); 7762 char XmbDrawString();
9235 7763
9236 int main() { 7764 int main() {
9237 XmbDrawString() 7765 XmbDrawString()
9238 ; return 0; } 7766 ; return 0; }
9239 EOF 7767 EOF
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9241 rm -rf conftest* 7769 rm -rf conftest*
9242 eval "ac_cv_lib_$ac_lib_var=yes" 7770 eval "ac_cv_lib_$ac_lib_var=yes"
9243 else 7771 else
9244 echo "configure: failed program was:" >&5 7772 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5 7773 cat conftest.$ac_ext >&5
9275 fi 7803 fi
9276 fi 7804 fi
9277 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7805 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9278 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7806 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9279 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7807 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9280 echo "configure:9281: checking for wnn/jllib.h" >&5 7808 echo "configure:7809: checking for wnn/jllib.h" >&5
9281 7809
9282 cat > conftest.$ac_ext <<EOF 7810 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure" 7811 #line 7812 "configure"
9284 #include "confdefs.h" 7812 #include "confdefs.h"
9285 #include <wnn/jllib.h> 7813 #include <wnn/jllib.h>
9286 EOF 7814 EOF
9287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9288 { (eval echo configure:9289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7816 { (eval echo configure:7817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7817 ac_err=`grep -v '^ *+' conftest.out`
9290 if test -z "$ac_err"; then 7818 if test -z "$ac_err"; then
9291 rm -rf conftest* 7819 rm -rf conftest*
9292 eval "ac_cv_header_$ac_safe=yes" 7820 eval "ac_cv_header_$ac_safe=yes"
9293 else 7821 else
9294 echo "$ac_err" >&5 7822 echo "$ac_err" >&5
9308 } 7836 }
9309 if test "$with_wnn" != "no"; then 7837 if test "$with_wnn" != "no"; then
9310 for ac_func in crypt 7838 for ac_func in crypt
9311 do 7839 do
9312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9313 echo "configure:9314: checking for $ac_func" >&5 7841 echo "configure:7842: checking for $ac_func" >&5
9314 7842
9315 cat > conftest.$ac_ext <<EOF 7843 cat > conftest.$ac_ext <<EOF
9316 #line 9317 "configure" 7844 #line 7845 "configure"
9317 #include "confdefs.h" 7845 #include "confdefs.h"
9318 /* System header to define __stub macros and hopefully few prototypes, 7846 /* System header to define __stub macros and hopefully few prototypes,
9319 which can conflict with char $ac_func(); below. */ 7847 which can conflict with char $ac_func(); below. */
9320 #include <assert.h> 7848 #include <assert.h>
9321 /* Override any gcc2 internal prototype to avoid an error. */ 7849 /* Override any gcc2 internal prototype to avoid an error. */
9334 $ac_func(); 7862 $ac_func();
9335 #endif 7863 #endif
9336 7864
9337 ; return 0; } 7865 ; return 0; }
9338 EOF 7866 EOF
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9340 rm -rf conftest* 7868 rm -rf conftest*
9341 eval "ac_cv_func_$ac_func=yes" 7869 eval "ac_cv_func_$ac_func=yes"
9342 else 7870 else
9343 echo "configure: failed program was:" >&5 7871 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5 7872 cat conftest.$ac_ext >&5
9363 fi 7891 fi
9364 done 7892 done
9365 7893
9366 test "$ac_cv_func_crypt" != "yes" && { 7894 test "$ac_cv_func_crypt" != "yes" && {
9367 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7895 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9368 echo "configure:9369: checking for crypt in -lcrypt" >&5 7896 echo "configure:7897: checking for crypt in -lcrypt" >&5
9369 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7897 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9370 7898
9371 xe_check_libs=" -lcrypt " 7899 xe_check_libs=" -lcrypt "
9372 cat > conftest.$ac_ext <<EOF 7900 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure" 7901 #line 7902 "configure"
9374 #include "confdefs.h" 7902 #include "confdefs.h"
9375 /* Override any gcc2 internal prototype to avoid an error. */ 7903 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2 7904 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */ 7905 builtin and then its argument prototype would still apply. */
9378 char crypt(); 7906 char crypt();
9379 7907
9380 int main() { 7908 int main() {
9381 crypt() 7909 crypt()
9382 ; return 0; } 7910 ; return 0; }
9383 EOF 7911 EOF
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9385 rm -rf conftest* 7913 rm -rf conftest*
9386 eval "ac_cv_lib_$ac_lib_var=yes" 7914 eval "ac_cv_lib_$ac_lib_var=yes"
9387 else 7915 else
9388 echo "configure: failed program was:" >&5 7916 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5 7917 cat conftest.$ac_ext >&5
9414 } 7942 }
9415 fi 7943 fi
9416 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 7944 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9417 7945
9418 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7946 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9419 echo "configure:9420: checking for jl_dic_list_e in -lwnn" >&5 7947 echo "configure:7948: checking for jl_dic_list_e in -lwnn" >&5
9420 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7948 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9421 7949
9422 xe_check_libs=" -lwnn " 7950 xe_check_libs=" -lwnn "
9423 cat > conftest.$ac_ext <<EOF 7951 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure" 7952 #line 7953 "configure"
9425 #include "confdefs.h" 7953 #include "confdefs.h"
9426 /* Override any gcc2 internal prototype to avoid an error. */ 7954 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2 7955 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */ 7956 builtin and then its argument prototype would still apply. */
9429 char jl_dic_list_e(); 7957 char jl_dic_list_e();
9430 7958
9431 int main() { 7959 int main() {
9432 jl_dic_list_e() 7960 jl_dic_list_e()
9433 ; return 0; } 7961 ; return 0; }
9434 EOF 7962 EOF
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9436 rm -rf conftest* 7964 rm -rf conftest*
9437 eval "ac_cv_lib_$ac_lib_var=yes" 7965 eval "ac_cv_lib_$ac_lib_var=yes"
9438 else 7966 else
9439 echo "configure: failed program was:" >&5 7967 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5 7968 cat conftest.$ac_ext >&5
9448 echo "$ac_t""yes" 1>&6 7976 echo "$ac_t""yes" 1>&6
9449 libwnn=wnn 7977 libwnn=wnn
9450 else 7978 else
9451 echo "$ac_t""no" 1>&6 7979 echo "$ac_t""no" 1>&6
9452 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 7980 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9453 echo "configure:9454: checking for jl_dic_list_e in -lwnn4" >&5 7981 echo "configure:7982: checking for jl_dic_list_e in -lwnn4" >&5
9454 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7982 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9455 7983
9456 xe_check_libs=" -lwnn4 " 7984 xe_check_libs=" -lwnn4 "
9457 cat > conftest.$ac_ext <<EOF 7985 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure" 7986 #line 7987 "configure"
9459 #include "confdefs.h" 7987 #include "confdefs.h"
9460 /* Override any gcc2 internal prototype to avoid an error. */ 7988 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2 7989 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */ 7990 builtin and then its argument prototype would still apply. */
9463 char jl_dic_list_e(); 7991 char jl_dic_list_e();
9464 7992
9465 int main() { 7993 int main() {
9466 jl_dic_list_e() 7994 jl_dic_list_e()
9467 ; return 0; } 7995 ; return 0; }
9468 EOF 7996 EOF
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9470 rm -rf conftest* 7998 rm -rf conftest*
9471 eval "ac_cv_lib_$ac_lib_var=yes" 7999 eval "ac_cv_lib_$ac_lib_var=yes"
9472 else 8000 else
9473 echo "configure: failed program was:" >&5 8001 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5 8002 cat conftest.$ac_ext >&5
9482 echo "$ac_t""yes" 1>&6 8010 echo "$ac_t""yes" 1>&6
9483 libwnn=wnn4 8011 libwnn=wnn4
9484 else 8012 else
9485 echo "$ac_t""no" 1>&6 8013 echo "$ac_t""no" 1>&6
9486 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8014 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9487 echo "configure:9488: checking for jl_dic_list_e in -lwnn6" >&5 8015 echo "configure:8016: checking for jl_dic_list_e in -lwnn6" >&5
9488 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8016 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9489 8017
9490 xe_check_libs=" -lwnn6 " 8018 xe_check_libs=" -lwnn6 "
9491 cat > conftest.$ac_ext <<EOF 8019 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure" 8020 #line 8021 "configure"
9493 #include "confdefs.h" 8021 #include "confdefs.h"
9494 /* Override any gcc2 internal prototype to avoid an error. */ 8022 /* Override any gcc2 internal prototype to avoid an error. */
9495 /* We use char because int might match the return type of a gcc2 8023 /* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */ 8024 builtin and then its argument prototype would still apply. */
9497 char jl_dic_list_e(); 8025 char jl_dic_list_e();
9498 8026
9499 int main() { 8027 int main() {
9500 jl_dic_list_e() 8028 jl_dic_list_e()
9501 ; return 0; } 8029 ; return 0; }
9502 EOF 8030 EOF
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9504 rm -rf conftest* 8032 rm -rf conftest*
9505 eval "ac_cv_lib_$ac_lib_var=yes" 8033 eval "ac_cv_lib_$ac_lib_var=yes"
9506 else 8034 else
9507 echo "configure: failed program was:" >&5 8035 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5 8036 cat conftest.$ac_ext >&5
9516 echo "$ac_t""yes" 1>&6 8044 echo "$ac_t""yes" 1>&6
9517 libwnn=wnn6 8045 libwnn=wnn6
9518 else 8046 else
9519 echo "$ac_t""no" 1>&6 8047 echo "$ac_t""no" 1>&6
9520 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8048 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9521 echo "configure:9522: checking for dic_list_e in -lwnn6_fromsrc" >&5 8049 echo "configure:8050: checking for dic_list_e in -lwnn6_fromsrc" >&5
9522 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8050 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9523 8051
9524 xe_check_libs=" -lwnn6_fromsrc " 8052 xe_check_libs=" -lwnn6_fromsrc "
9525 cat > conftest.$ac_ext <<EOF 8053 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure" 8054 #line 8055 "configure"
9527 #include "confdefs.h" 8055 #include "confdefs.h"
9528 /* Override any gcc2 internal prototype to avoid an error. */ 8056 /* Override any gcc2 internal prototype to avoid an error. */
9529 /* We use char because int might match the return type of a gcc2 8057 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */ 8058 builtin and then its argument prototype would still apply. */
9531 char dic_list_e(); 8059 char dic_list_e();
9532 8060
9533 int main() { 8061 int main() {
9534 dic_list_e() 8062 dic_list_e()
9535 ; return 0; } 8063 ; return 0; }
9536 EOF 8064 EOF
9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8065 if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9538 rm -rf conftest* 8066 rm -rf conftest*
9539 eval "ac_cv_lib_$ac_lib_var=yes" 8067 eval "ac_cv_lib_$ac_lib_var=yes"
9540 else 8068 else
9541 echo "configure: failed program was:" >&5 8069 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5 8070 cat conftest.$ac_ext >&5
9580 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8108 echo " xemacs will be linked with \"mule-wnnfns.o\""
9581 fi 8109 fi
9582 if test "$with_wnn6" != "no"; then 8110 if test "$with_wnn6" != "no"; then
9583 8111
9584 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8112 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9585 echo "configure:9586: checking for jl_fi_dic_list in -l$libwnn" >&5 8113 echo "configure:8114: checking for jl_fi_dic_list in -l$libwnn" >&5
9586 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8114 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9587 8115
9588 xe_check_libs=" -l$libwnn " 8116 xe_check_libs=" -l$libwnn "
9589 cat > conftest.$ac_ext <<EOF 8117 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure" 8118 #line 8119 "configure"
9591 #include "confdefs.h" 8119 #include "confdefs.h"
9592 /* Override any gcc2 internal prototype to avoid an error. */ 8120 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2 8121 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */ 8122 builtin and then its argument prototype would still apply. */
9595 char jl_fi_dic_list(); 8123 char jl_fi_dic_list();
9596 8124
9597 int main() { 8125 int main() {
9598 jl_fi_dic_list() 8126 jl_fi_dic_list()
9599 ; return 0; } 8127 ; return 0; }
9600 EOF 8128 EOF
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9602 rm -rf conftest* 8130 rm -rf conftest*
9603 eval "ac_cv_lib_$ac_lib_var=yes" 8131 eval "ac_cv_lib_$ac_lib_var=yes"
9604 else 8132 else
9605 echo "configure: failed program was:" >&5 8133 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5 8134 cat conftest.$ac_ext >&5
9631 8159
9632 canna_includes_found=no 8160 canna_includes_found=no
9633 if test "$with_canna" != "no"; then 8161 if test "$with_canna" != "no"; then
9634 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8162 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9635 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8163 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9636 echo "configure:9637: checking for canna/jrkanji.h" >&5 8164 echo "configure:8165: checking for canna/jrkanji.h" >&5
9637 8165
9638 cat > conftest.$ac_ext <<EOF 8166 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure" 8167 #line 8168 "configure"
9640 #include "confdefs.h" 8168 #include "confdefs.h"
9641 #include <canna/jrkanji.h> 8169 #include <canna/jrkanji.h>
9642 EOF 8170 EOF
9643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9644 { (eval echo configure:9645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8172 { (eval echo configure:8173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8173 ac_err=`grep -v '^ *+' conftest.out`
9646 if test -z "$ac_err"; then 8174 if test -z "$ac_err"; then
9647 rm -rf conftest* 8175 rm -rf conftest*
9648 eval "ac_cv_header_$ac_safe=yes" 8176 eval "ac_cv_header_$ac_safe=yes"
9649 else 8177 else
9650 echo "$ac_err" >&5 8178 echo "$ac_err" >&5
9666 -d "/usr/local/canna/include"; then 8194 -d "/usr/local/canna/include"; then
9667 save_c_switch_site="$c_switch_site" 8195 save_c_switch_site="$c_switch_site"
9668 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8196 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9669 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8197 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9670 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8198 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9671 echo "configure:9672: checking for canna/jrkanji.h" >&5 8199 echo "configure:8200: checking for canna/jrkanji.h" >&5
9672 8200
9673 cat > conftest.$ac_ext <<EOF 8201 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure" 8202 #line 8203 "configure"
9675 #include "confdefs.h" 8203 #include "confdefs.h"
9676 #include <canna/jrkanji.h> 8204 #include <canna/jrkanji.h>
9677 EOF 8205 EOF
9678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679 { (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8207 { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8208 ac_err=`grep -v '^ *+' conftest.out`
9681 if test -z "$ac_err"; then 8209 if test -z "$ac_err"; then
9682 rm -rf conftest* 8210 rm -rf conftest*
9683 eval "ac_cv_header_$ac_safe=yes" 8211 eval "ac_cv_header_$ac_safe=yes"
9684 else 8212 else
9685 echo "$ac_err" >&5 8213 echo "$ac_err" >&5
9702 fi 8230 fi
9703 fi 8231 fi
9704 8232
9705 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8233 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9706 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8234 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9707 echo "configure:9708: checking for canna/RK.h" >&5 8235 echo "configure:8236: checking for canna/RK.h" >&5
9708 8236
9709 cat > conftest.$ac_ext <<EOF 8237 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure" 8238 #line 8239 "configure"
9711 #include "confdefs.h" 8239 #include "confdefs.h"
9712 #include <canna/RK.h> 8240 #include <canna/RK.h>
9713 EOF 8241 EOF
9714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9715 { (eval echo configure:9716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8243 { (eval echo configure:8244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8244 ac_err=`grep -v '^ *+' conftest.out`
9717 if test -z "$ac_err"; then 8245 if test -z "$ac_err"; then
9718 rm -rf conftest* 8246 rm -rf conftest*
9719 eval "ac_cv_header_$ac_safe=yes" 8247 eval "ac_cv_header_$ac_safe=yes"
9720 else 8248 else
9721 echo "$ac_err" >&5 8249 echo "$ac_err" >&5
9733 with_canna=no 8261 with_canna=no
9734 fi 8262 fi
9735 } 8263 }
9736 test -z "$with_canna" && { 8264 test -z "$with_canna" && {
9737 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8265 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9738 echo "configure:9739: checking for RkBgnBun in -lRKC" >&5 8266 echo "configure:8267: checking for RkBgnBun in -lRKC" >&5
9739 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8267 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9740 8268
9741 xe_check_libs=" -lRKC " 8269 xe_check_libs=" -lRKC "
9742 cat > conftest.$ac_ext <<EOF 8270 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure" 8271 #line 8272 "configure"
9744 #include "confdefs.h" 8272 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error. */ 8273 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2 8274 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */ 8275 builtin and then its argument prototype would still apply. */
9748 char RkBgnBun(); 8276 char RkBgnBun();
9749 8277
9750 int main() { 8278 int main() {
9751 RkBgnBun() 8279 RkBgnBun()
9752 ; return 0; } 8280 ; return 0; }
9753 EOF 8281 EOF
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9755 rm -rf conftest* 8283 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=yes" 8284 eval "ac_cv_lib_$ac_lib_var=yes"
9757 else 8285 else
9758 echo "configure: failed program was:" >&5 8286 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5 8287 cat conftest.$ac_ext >&5
9772 fi 8300 fi
9773 8301
9774 } 8302 }
9775 test -z "$with_canna" && { 8303 test -z "$with_canna" && {
9776 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8304 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9777 echo "configure:9778: checking for jrKanjiControl in -lcanna" >&5 8305 echo "configure:8306: checking for jrKanjiControl in -lcanna" >&5
9778 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8306 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9779 8307
9780 xe_check_libs=" -lcanna " 8308 xe_check_libs=" -lcanna "
9781 cat > conftest.$ac_ext <<EOF 8309 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure" 8310 #line 8311 "configure"
9783 #include "confdefs.h" 8311 #include "confdefs.h"
9784 /* Override any gcc2 internal prototype to avoid an error. */ 8312 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2 8313 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */ 8314 builtin and then its argument prototype would still apply. */
9787 char jrKanjiControl(); 8315 char jrKanjiControl();
9788 8316
9789 int main() { 8317 int main() {
9790 jrKanjiControl() 8318 jrKanjiControl()
9791 ; return 0; } 8319 ; return 0; }
9792 EOF 8320 EOF
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9794 rm -rf conftest* 8322 rm -rf conftest*
9795 eval "ac_cv_lib_$ac_lib_var=yes" 8323 eval "ac_cv_lib_$ac_lib_var=yes"
9796 else 8324 else
9797 echo "configure: failed program was:" >&5 8325 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5 8326 cat conftest.$ac_ext >&5
9837 8365
9838 if test "$need_motif" = "yes" ; then 8366 if test "$need_motif" = "yes" ; then
9839 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8367 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9840 8368
9841 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8369 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9842 echo "configure:9843: checking for layout_object_getvalue in -li18n" >&5 8370 echo "configure:8371: checking for layout_object_getvalue in -li18n" >&5
9843 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8371 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9844 8372
9845 xe_check_libs=" -li18n " 8373 xe_check_libs=" -li18n "
9846 cat > conftest.$ac_ext <<EOF 8374 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure" 8375 #line 8376 "configure"
9848 #include "confdefs.h" 8376 #include "confdefs.h"
9849 /* Override any gcc2 internal prototype to avoid an error. */ 8377 /* Override any gcc2 internal prototype to avoid an error. */
9850 /* We use char because int might match the return type of a gcc2 8378 /* We use char because int might match the return type of a gcc2
9851 builtin and then its argument prototype would still apply. */ 8379 builtin and then its argument prototype would still apply. */
9852 char layout_object_getvalue(); 8380 char layout_object_getvalue();
9853 8381
9854 int main() { 8382 int main() {
9855 layout_object_getvalue() 8383 layout_object_getvalue()
9856 ; return 0; } 8384 ; return 0; }
9857 EOF 8385 EOF
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9859 rm -rf conftest* 8387 rm -rf conftest*
9860 eval "ac_cv_lib_$ac_lib_var=yes" 8388 eval "ac_cv_lib_$ac_lib_var=yes"
9861 else 8389 else
9862 echo "configure: failed program was:" >&5 8390 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5 8391 cat conftest.$ac_ext >&5
9936 fi 8464 fi
9937 fi 8465 fi
9938 8466
9939 fi 8467 fi
9940 8468
9941 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask 8469 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname 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 strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
9942 do 8470 do
9943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9944 echo "configure:9945: checking for $ac_func" >&5 8472 echo "configure:8473: checking for $ac_func" >&5
9945 8473
9946 cat > conftest.$ac_ext <<EOF 8474 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure" 8475 #line 8476 "configure"
9948 #include "confdefs.h" 8476 #include "confdefs.h"
9949 /* System header to define __stub macros and hopefully few prototypes, 8477 /* System header to define __stub macros and hopefully few prototypes,
9950 which can conflict with char $ac_func(); below. */ 8478 which can conflict with char $ac_func(); below. */
9951 #include <assert.h> 8479 #include <assert.h>
9952 /* Override any gcc2 internal prototype to avoid an error. */ 8480 /* Override any gcc2 internal prototype to avoid an error. */
9965 $ac_func(); 8493 $ac_func();
9966 #endif 8494 #endif
9967 8495
9968 ; return 0; } 8496 ; return 0; }
9969 EOF 8497 EOF
9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9971 rm -rf conftest* 8499 rm -rf conftest*
9972 eval "ac_cv_func_$ac_func=yes" 8500 eval "ac_cv_func_$ac_func=yes"
9973 else 8501 else
9974 echo "configure: failed program was:" >&5 8502 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5 8503 cat conftest.$ac_ext >&5
9993 echo "$ac_t""no" 1>&6 8521 echo "$ac_t""no" 1>&6
9994 fi 8522 fi
9995 done 8523 done
9996 8524
9997 8525
9998 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then 8526
8527 case "$opsys" in
8528 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9999 echo " xemacs will be linked with \"realpath.o\"" 8529 echo " xemacs will be linked with \"realpath.o\""
10000 fi 8530 fi ;;
10001 8531 * )
10002 for ac_func in getloadavg 8532 case "$canonical" in
8533 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8534 echo " xemacs will be linked with \"realpath.o\""
8535 fi ;;
8536 * ) for ac_func in realpath
10003 do 8537 do
10004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10005 echo "configure:10006: checking for $ac_func" >&5 8539 echo "configure:8540: checking for $ac_func" >&5
10006 8540
10007 cat > conftest.$ac_ext <<EOF 8541 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure" 8542 #line 8543 "configure"
10009 #include "confdefs.h" 8543 #include "confdefs.h"
10010 /* System header to define __stub macros and hopefully few prototypes, 8544 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char $ac_func(); below. */ 8545 which can conflict with char $ac_func(); below. */
10012 #include <assert.h> 8546 #include <assert.h>
10013 /* Override any gcc2 internal prototype to avoid an error. */ 8547 /* Override any gcc2 internal prototype to avoid an error. */
10026 $ac_func(); 8560 $ac_func();
10027 #endif 8561 #endif
10028 8562
10029 ; return 0; } 8563 ; return 0; }
10030 EOF 8564 EOF
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8565 if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10032 rm -rf conftest* 8566 rm -rf conftest*
10033 eval "ac_cv_func_$ac_func=yes" 8567 eval "ac_cv_func_$ac_func=yes"
10034 else 8568 else
10035 echo "configure: failed program was:" >&5 8569 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5 8570 cat conftest.$ac_ext >&5
10053 else 8587 else
10054 echo "$ac_t""no" 1>&6 8588 echo "$ac_t""no" 1>&6
10055 fi 8589 fi
10056 done 8590 done
10057 8591
8592 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8593 echo " xemacs will be linked with \"realpath.o\""
8594 fi ;;
8595 esac ;;
8596 esac
8597
8598 for ac_func in getloadavg
8599 do
8600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8601 echo "configure:8602: checking for $ac_func" >&5
8602
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func(); below. */
8608 #include <assert.h>
8609 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612 char $ac_func();
8613
8614 int main() {
8615
8616 /* The GNU C library defines this for functions which it implements
8617 to always fail with ENOSYS. Some functions are actually named
8618 something starting with __ and the normal name is an alias. */
8619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8620 choke me
8621 #else
8622 $ac_func();
8623 #endif
8624
8625 ; return 0; }
8626 EOF
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8628 rm -rf conftest*
8629 eval "ac_cv_func_$ac_func=yes"
8630 else
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8633 rm -rf conftest*
8634 eval "ac_cv_func_$ac_func=no"
8635 fi
8636 rm -f conftest*
8637
8638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8641 { test "$extra_verbose" = "yes" && cat << EOF
8642 Defining $ac_tr_func
8643 EOF
8644 cat >> confdefs.h <<EOF
8645 #define $ac_tr_func 1
8646 EOF
8647 }
8648
8649 else
8650 echo "$ac_t""no" 1>&6
8651 fi
8652 done
8653
10058 8654
10059 if test "$ac_cv_func_getloadavg" != "yes" 8655 if test "$ac_cv_func_getloadavg" != "yes"
10060 then 8656 then
10061 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then 8657 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
10062 echo " xemacs will be linked with \"getloadavg.o\"" 8658 echo " xemacs will be linked with \"getloadavg.o\""
10063 fi 8659 fi
10064 8660
10065 8661
10066 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 8662 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10067 echo "configure:10068: checking for kstat_open in -lkstat" >&5 8663 echo "configure:8664: checking for kstat_open in -lkstat" >&5
10068 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 8664 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10069 8665
10070 xe_check_libs=" -lkstat " 8666 xe_check_libs=" -lkstat "
10071 cat > conftest.$ac_ext <<EOF 8667 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure" 8668 #line 8669 "configure"
10073 #include "confdefs.h" 8669 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */ 8670 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2 8671 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */ 8672 builtin and then its argument prototype would still apply. */
10077 char kstat_open(); 8673 char kstat_open();
10078 8674
10079 int main() { 8675 int main() {
10080 kstat_open() 8676 kstat_open()
10081 ; return 0; } 8677 ; return 0; }
10082 EOF 8678 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10084 rm -rf conftest* 8680 rm -rf conftest*
10085 eval "ac_cv_lib_$ac_lib_var=yes" 8681 eval "ac_cv_lib_$ac_lib_var=yes"
10086 else 8682 else
10087 echo "configure: failed program was:" >&5 8683 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5 8684 cat conftest.$ac_ext >&5
10112 8708
10113 8709
10114 8710
10115 8711
10116 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 8712 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10117 echo "configure:10118: checking for kvm_read in -lkvm" >&5 8713 echo "configure:8714: checking for kvm_read in -lkvm" >&5
10118 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 8714 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10119 8715
10120 xe_check_libs=" -lkvm " 8716 xe_check_libs=" -lkvm "
10121 cat > conftest.$ac_ext <<EOF 8717 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure" 8718 #line 8719 "configure"
10123 #include "confdefs.h" 8719 #include "confdefs.h"
10124 /* Override any gcc2 internal prototype to avoid an error. */ 8720 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2 8721 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */ 8722 builtin and then its argument prototype would still apply. */
10127 char kvm_read(); 8723 char kvm_read();
10128 8724
10129 int main() { 8725 int main() {
10130 kvm_read() 8726 kvm_read()
10131 ; return 0; } 8727 ; return 0; }
10132 EOF 8728 EOF
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10134 rm -rf conftest* 8730 rm -rf conftest*
10135 eval "ac_cv_lib_$ac_lib_var=yes" 8731 eval "ac_cv_lib_$ac_lib_var=yes"
10136 else 8732 else
10137 echo "configure: failed program was:" >&5 8733 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5 8734 cat conftest.$ac_ext >&5
10162 8758
10163 8759
10164 fi 8760 fi
10165 8761
10166 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8762 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10167 echo "configure:10168: checking whether netdb declares h_errno" >&5 8763 echo "configure:8764: checking whether netdb declares h_errno" >&5
10168 cat > conftest.$ac_ext <<EOF 8764 cat > conftest.$ac_ext <<EOF
10169 #line 10170 "configure" 8765 #line 8766 "configure"
10170 #include "confdefs.h" 8766 #include "confdefs.h"
10171 #include <netdb.h> 8767 #include <netdb.h>
10172 int main() { 8768 int main() {
10173 return h_errno; 8769 return h_errno;
10174 ; return 0; } 8770 ; return 0; }
10175 EOF 8771 EOF
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10177 rm -rf conftest* 8773 rm -rf conftest*
10178 echo "$ac_t""yes" 1>&6 8774 echo "$ac_t""yes" 1>&6
10179 { test "$extra_verbose" = "yes" && cat << \EOF 8775 { test "$extra_verbose" = "yes" && cat << \EOF
10180 Defining HAVE_H_ERRNO 8776 Defining HAVE_H_ERRNO
10181 EOF 8777 EOF
10191 echo "$ac_t""no" 1>&6 8787 echo "$ac_t""no" 1>&6
10192 fi 8788 fi
10193 rm -f conftest* 8789 rm -f conftest*
10194 8790
10195 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8791 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10196 echo "configure:10197: checking for sigsetjmp" >&5 8792 echo "configure:8793: checking for sigsetjmp" >&5
10197 cat > conftest.$ac_ext <<EOF 8793 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure" 8794 #line 8795 "configure"
10199 #include "confdefs.h" 8795 #include "confdefs.h"
10200 #include <setjmp.h> 8796 #include <setjmp.h>
10201 int main() { 8797 int main() {
10202 sigjmp_buf bar; sigsetjmp (bar, 0); 8798 sigjmp_buf bar; sigsetjmp (bar, 0);
10203 ; return 0; } 8799 ; return 0; }
10204 EOF 8800 EOF
10205 if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8801 if { (eval echo configure:8802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206 rm -rf conftest* 8802 rm -rf conftest*
10207 echo "$ac_t""yes" 1>&6 8803 echo "$ac_t""yes" 1>&6
10208 { test "$extra_verbose" = "yes" && cat << \EOF 8804 { test "$extra_verbose" = "yes" && cat << \EOF
10209 Defining HAVE_SIGSETJMP 8805 Defining HAVE_SIGSETJMP
10210 EOF 8806 EOF
10220 echo "$ac_t""no" 1>&6 8816 echo "$ac_t""no" 1>&6
10221 fi 8817 fi
10222 rm -f conftest* 8818 rm -f conftest*
10223 8819
10224 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8820 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10225 echo "configure:10226: checking whether localtime caches TZ" >&5 8821 echo "configure:8822: checking whether localtime caches TZ" >&5
10226 8822
10227 if test "$ac_cv_func_tzset" = "yes"; then 8823 if test "$ac_cv_func_tzset" = "yes"; then
10228 cat > conftest.$ac_ext <<EOF 8824 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure" 8825 #line 8826 "configure"
10230 #include "confdefs.h" 8826 #include "confdefs.h"
10231 #include <time.h> 8827 #include <time.h>
10232 #if STDC_HEADERS 8828 #if STDC_HEADERS
10233 # include <stdlib.h> 8829 # include <stdlib.h>
10234 #endif 8830 #endif
10259 if (localtime (&now)->tm_hour != hour_unset) 8855 if (localtime (&now)->tm_hour != hour_unset)
10260 exit (1); 8856 exit (1);
10261 exit (0); 8857 exit (0);
10262 } 8858 }
10263 EOF 8859 EOF
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8860 if { (eval echo configure:8861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10265 then 8861 then
10266 emacs_cv_localtime_cache=no 8862 emacs_cv_localtime_cache=no
10267 else 8863 else
10268 conftest_rc="$?" 8864 conftest_rc="$?"
10269 echo "configure: failed program was:" >&5 8865 echo "configure: failed program was:" >&5
10289 8885
10290 fi 8886 fi
10291 8887
10292 if test "$HAVE_TIMEVAL" = "yes"; then 8888 if test "$HAVE_TIMEVAL" = "yes"; then
10293 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8889 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10294 echo "configure:10295: checking whether gettimeofday accepts one or two arguments" >&5 8890 echo "configure:8891: checking whether gettimeofday accepts one or two arguments" >&5
10295 cat > conftest.$ac_ext <<EOF 8891 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure" 8892 #line 8893 "configure"
10297 #include "confdefs.h" 8893 #include "confdefs.h"
10298 8894
10299 #ifdef TIME_WITH_SYS_TIME 8895 #ifdef TIME_WITH_SYS_TIME
10300 #include <sys/time.h> 8896 #include <sys/time.h>
10301 #include <time.h> 8897 #include <time.h>
10308 #endif 8904 #endif
10309 8905
10310 int main() { 8906 int main() {
10311 8907
10312 struct timeval time; 8908 struct timeval time;
10313 gettimeofday (&time, 0); 8909 struct timezone dummy;
8910 gettimeofday (&time, &dummy);
10314 8911
10315 ; return 0; } 8912 ; return 0; }
10316 EOF 8913 EOF
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10318 rm -rf conftest* 8915 rm -rf conftest*
10319 echo "$ac_t""two" 1>&6 8916 echo "$ac_t""two" 1>&6
10320 else 8917 else
10321 echo "configure: failed program was:" >&5 8918 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5 8919 cat conftest.$ac_ext >&5
10334 rm -f conftest* 8931 rm -f conftest*
10335 fi 8932 fi
10336 8933
10337 8934
10338 echo $ac_n "checking for inline""... $ac_c" 1>&6 8935 echo $ac_n "checking for inline""... $ac_c" 1>&6
10339 echo "configure:10340: checking for inline" >&5 8936 echo "configure:8937: checking for inline" >&5
10340 8937
10341 ac_cv_c_inline=no 8938 ac_cv_c_inline=no
10342 for ac_kw in inline __inline__ __inline; do 8939 for ac_kw in inline __inline__ __inline; do
10343 cat > conftest.$ac_ext <<EOF 8940 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure" 8941 #line 8942 "configure"
10345 #include "confdefs.h" 8942 #include "confdefs.h"
10346 8943
10347 int main() { 8944 int main() {
10348 } $ac_kw foo() { 8945 } $ac_kw foo() {
10349 ; return 0; } 8946 ; return 0; }
10350 EOF 8947 EOF
10351 if { (eval echo configure:10352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8948 if { (eval echo configure:8949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10352 rm -rf conftest* 8949 rm -rf conftest*
10353 ac_cv_c_inline=$ac_kw; break 8950 ac_cv_c_inline=$ac_kw; break
10354 else 8951 else
10355 echo "configure: failed program was:" >&5 8952 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5 8953 cat conftest.$ac_ext >&5
10378 EOF 8975 EOF
10379 } 8976 }
10380 ;; 8977 ;;
10381 esac 8978 esac
10382 8979
10383 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then 8980 if test "$ac_cv_c_inline" != "no"; then
8981 { test "$extra_verbose" = "yes" && cat << \EOF
8982 Defining HAVE_INLINE
8983 EOF
8984 cat >> confdefs.h <<\EOF
8985 #define HAVE_INLINE 1
8986 EOF
8987 }
8988
8989 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10384 echo " xemacs will be linked with \"inline.o\"" 8990 echo " xemacs will be linked with \"inline.o\""
10385 fi 8991 fi
8992 fi
10386 8993
10387 8994
10388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8995 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10389 # for constant arguments. Useless! 8996 # for constant arguments. Useless!
10390 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8997 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10391 echo "configure:10392: checking for working alloca.h" >&5 8998 echo "configure:8999: checking for working alloca.h" >&5
10392 8999
10393 cat > conftest.$ac_ext <<EOF 9000 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure" 9001 #line 9002 "configure"
10395 #include "confdefs.h" 9002 #include "confdefs.h"
10396 #include <alloca.h> 9003 #include <alloca.h>
10397 int main() { 9004 int main() {
10398 char *p = alloca(2 * sizeof(int)); 9005 char *p = alloca(2 * sizeof(int));
10399 ; return 0; } 9006 ; return 0; }
10400 EOF 9007 EOF
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10402 rm -rf conftest* 9009 rm -rf conftest*
10403 ac_cv_header_alloca_h=yes 9010 ac_cv_header_alloca_h=yes
10404 else 9011 else
10405 echo "configure: failed program was:" >&5 9012 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5 9013 cat conftest.$ac_ext >&5
10420 } 9027 }
10421 9028
10422 fi 9029 fi
10423 9030
10424 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9031 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10425 echo "configure:10426: checking for alloca" >&5 9032 echo "configure:9033: checking for alloca" >&5
10426 9033
10427 cat > conftest.$ac_ext <<EOF 9034 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure" 9035 #line 9036 "configure"
10429 #include "confdefs.h" 9036 #include "confdefs.h"
10430 9037
10431 #ifdef __GNUC__ 9038 #ifdef __GNUC__
10432 # define alloca __builtin_alloca 9039 # define alloca __builtin_alloca
10433 #else 9040 #else
10434 # ifdef _MSC_VER 9041 # if HAVE_ALLOCA_H
10435 # include <malloc.h> 9042 # include <alloca.h>
10436 # define alloca _alloca
10437 # else 9043 # else
10438 # if HAVE_ALLOCA_H 9044 # ifdef _AIX
10439 # include <alloca.h> 9045 #pragma alloca
10440 # else 9046 # else
10441 # ifdef _AIX 9047 # ifndef alloca /* predefined by HP cc +Olibcalls */
10442 #pragma alloca
10443 # else
10444 # ifndef alloca /* predefined by HP cc +Olibcalls */
10445 char *alloca (); 9048 char *alloca ();
10446 # endif
10447 # endif 9049 # endif
10448 # endif 9050 # endif
10449 # endif 9051 # endif
10450 #endif 9052 #endif
10451 9053
10452 int main() { 9054 int main() {
10453 char *p = (char *) alloca(1); 9055 char *p = (char *) alloca(1);
10454 ; return 0; } 9056 ; return 0; }
10455 EOF 9057 EOF
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10457 rm -rf conftest* 9059 rm -rf conftest*
10458 ac_cv_func_alloca_works=yes 9060 ac_cv_func_alloca_works=yes
10459 else 9061 else
10460 echo "configure: failed program was:" >&5 9062 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5 9063 cat conftest.$ac_ext >&5
10479 if test $ac_cv_func_alloca_works = no; then 9081 if test $ac_cv_func_alloca_works = no; then
10480 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9082 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10481 # that cause trouble. Some versions do not even contain alloca or 9083 # that cause trouble. Some versions do not even contain alloca or
10482 # contain a buggy version. If you still want to use their alloca, 9084 # contain a buggy version. If you still want to use their alloca,
10483 # use ar to extract alloca.o from them instead of compiling alloca.c. 9085 # use ar to extract alloca.o from them instead of compiling alloca.c.
10484 ALLOCA=alloca.${ac_objext} 9086 ALLOCA=alloca.o
10485 { test "$extra_verbose" = "yes" && cat << \EOF 9087 { test "$extra_verbose" = "yes" && cat << \EOF
10486 Defining C_ALLOCA 9088 Defining C_ALLOCA
10487 EOF 9089 EOF
10488 cat >> confdefs.h <<\EOF 9090 cat >> confdefs.h <<\EOF
10489 #define C_ALLOCA 1 9091 #define C_ALLOCA 1
10490 EOF 9092 EOF
10491 } 9093 }
10492 9094
10493 9095
10494 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10495 echo "configure:10496: checking whether alloca needs Cray hooks" >&5 9097 echo "configure:9098: checking whether alloca needs Cray hooks" >&5
10496 9098
10497 cat > conftest.$ac_ext <<EOF 9099 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure" 9100 #line 9101 "configure"
10499 #include "confdefs.h" 9101 #include "confdefs.h"
10500 #if defined(CRAY) && ! defined(CRAY2) 9102 #if defined(CRAY) && ! defined(CRAY2)
10501 webecray 9103 webecray
10502 #else 9104 #else
10503 wenotbecray 9105 wenotbecray
10517 9119
10518 echo "$ac_t""$ac_cv_os_cray" 1>&6 9120 echo "$ac_t""$ac_cv_os_cray" 1>&6
10519 if test $ac_cv_os_cray = yes; then 9121 if test $ac_cv_os_cray = yes; then
10520 for ac_func in _getb67 GETB67 getb67; do 9122 for ac_func in _getb67 GETB67 getb67; do
10521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10522 echo "configure:10523: checking for $ac_func" >&5 9124 echo "configure:9125: checking for $ac_func" >&5
10523 9125
10524 cat > conftest.$ac_ext <<EOF 9126 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure" 9127 #line 9128 "configure"
10526 #include "confdefs.h" 9128 #include "confdefs.h"
10527 /* System header to define __stub macros and hopefully few prototypes, 9129 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func(); below. */ 9130 which can conflict with char $ac_func(); below. */
10529 #include <assert.h> 9131 #include <assert.h>
10530 /* Override any gcc2 internal prototype to avoid an error. */ 9132 /* Override any gcc2 internal prototype to avoid an error. */
10543 $ac_func(); 9145 $ac_func();
10544 #endif 9146 #endif
10545 9147
10546 ; return 0; } 9148 ; return 0; }
10547 EOF 9149 EOF
10548 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10549 rm -rf conftest* 9151 rm -rf conftest*
10550 eval "ac_cv_func_$ac_func=yes" 9152 eval "ac_cv_func_$ac_func=yes"
10551 else 9153 else
10552 echo "configure: failed program was:" >&5 9154 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5 9155 cat conftest.$ac_ext >&5
10573 9175
10574 done 9176 done
10575 fi 9177 fi
10576 9178
10577 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9179 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10578 echo "configure:10579: checking stack direction for C alloca" >&5 9180 echo "configure:9181: checking stack direction for C alloca" >&5
10579 9181
10580 cat > conftest.$ac_ext <<EOF 9182 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure" 9183 #line 9184 "configure"
10582 #include "confdefs.h" 9184 #include "confdefs.h"
10583 find_stack_direction () 9185 find_stack_direction ()
10584 { 9186 {
10585 static char *addr = 0; 9187 static char *addr = 0;
10586 auto char dummy; 9188 auto char dummy;
10595 main () 9197 main ()
10596 { 9198 {
10597 exit (find_stack_direction() < 0); 9199 exit (find_stack_direction() < 0);
10598 } 9200 }
10599 EOF 9201 EOF
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10601 then 9203 then
10602 ac_cv_c_stack_direction=1 9204 ac_cv_c_stack_direction=1
10603 else 9205 else
10604 conftest_rc="$?" 9206 conftest_rc="$?"
10605 echo "configure: failed program was:" >&5 9207 echo "configure: failed program was:" >&5
10624 echo " xemacs will be linked with \"$ALLOCA\"" 9226 echo " xemacs will be linked with \"$ALLOCA\""
10625 fi 9227 fi
10626 9228
10627 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9229 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10628 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9230 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10629 echo "configure:10630: checking for vfork.h" >&5 9231 echo "configure:9232: checking for vfork.h" >&5
10630 9232
10631 cat > conftest.$ac_ext <<EOF 9233 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure" 9234 #line 9235 "configure"
10633 #include "confdefs.h" 9235 #include "confdefs.h"
10634 #include <vfork.h> 9236 #include <vfork.h>
10635 EOF 9237 EOF
10636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10637 { (eval echo configure:10638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9239 { (eval echo configure:9240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9240 ac_err=`grep -v '^ *+' conftest.out`
10639 if test -z "$ac_err"; then 9241 if test -z "$ac_err"; then
10640 rm -rf conftest* 9242 rm -rf conftest*
10641 eval "ac_cv_header_$ac_safe=yes" 9243 eval "ac_cv_header_$ac_safe=yes"
10642 else 9244 else
10643 echo "$ac_err" >&5 9245 echo "$ac_err" >&5
10660 else 9262 else
10661 echo "$ac_t""no" 1>&6 9263 echo "$ac_t""no" 1>&6
10662 fi 9264 fi
10663 9265
10664 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9266 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10665 echo "configure:10666: checking for working vfork" >&5 9267 echo "configure:9268: checking for working vfork" >&5
10666 9268
10667 cat > conftest.$ac_ext <<EOF 9269 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure" 9270 #line 9271 "configure"
10669 #include "confdefs.h" 9271 #include "confdefs.h"
10670 /* Thanks to Paul Eggert for this test. */ 9272 /* Thanks to Paul Eggert for this test. */
10671 #include <stdio.h> 9273 #include <stdio.h>
10672 #include <sys/types.h> 9274 #include <sys/types.h>
10673 #include <sys/stat.h> 9275 #include <sys/stat.h>
10758 || fstat(fileno(stdout), &st) != 0 9360 || fstat(fileno(stdout), &st) != 0
10759 ); 9361 );
10760 } 9362 }
10761 } 9363 }
10762 EOF 9364 EOF
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10764 then 9366 then
10765 ac_cv_func_vfork_works=yes 9367 ac_cv_func_vfork_works=yes
10766 else 9368 else
10767 conftest_rc="$?" 9369 conftest_rc="$?"
10768 echo "configure: failed program was:" >&5 9370 echo "configure: failed program was:" >&5
10784 9386
10785 fi 9387 fi
10786 9388
10787 9389
10788 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9390 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10789 echo "configure:10790: checking for working strcoll" >&5 9391 echo "configure:9392: checking for working strcoll" >&5
10790 9392
10791 cat > conftest.$ac_ext <<EOF 9393 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure" 9394 #line 9395 "configure"
10793 #include "confdefs.h" 9395 #include "confdefs.h"
10794 #include <string.h> 9396 #include <string.h>
10795 main () 9397 main ()
10796 { 9398 {
10797 exit (strcoll ("abc", "def") >= 0 || 9399 exit (strcoll ("abc", "def") >= 0 ||
10798 strcoll ("ABC", "DEF") >= 0 || 9400 strcoll ("ABC", "DEF") >= 0 ||
10799 strcoll ("123", "456") >= 0); 9401 strcoll ("123", "456") >= 0);
10800 } 9402 }
10801 EOF 9403 EOF
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10803 then 9405 then
10804 ac_cv_func_strcoll_works=yes 9406 ac_cv_func_strcoll_works=yes
10805 else 9407 else
10806 conftest_rc="$?" 9408 conftest_rc="$?"
10807 echo "configure: failed program was:" >&5 9409 echo "configure: failed program was:" >&5
10825 9427
10826 9428
10827 for ac_func in getpgrp 9429 for ac_func in getpgrp
10828 do 9430 do
10829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10830 echo "configure:10831: checking for $ac_func" >&5 9432 echo "configure:9433: checking for $ac_func" >&5
10831 9433
10832 cat > conftest.$ac_ext <<EOF 9434 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure" 9435 #line 9436 "configure"
10834 #include "confdefs.h" 9436 #include "confdefs.h"
10835 /* System header to define __stub macros and hopefully few prototypes, 9437 /* System header to define __stub macros and hopefully few prototypes,
10836 which can conflict with char $ac_func(); below. */ 9438 which can conflict with char $ac_func(); below. */
10837 #include <assert.h> 9439 #include <assert.h>
10838 /* Override any gcc2 internal prototype to avoid an error. */ 9440 /* Override any gcc2 internal prototype to avoid an error. */
10851 $ac_func(); 9453 $ac_func();
10852 #endif 9454 #endif
10853 9455
10854 ; return 0; } 9456 ; return 0; }
10855 EOF 9457 EOF
10856 if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9458 if { (eval echo configure:9459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10857 rm -rf conftest* 9459 rm -rf conftest*
10858 eval "ac_cv_func_$ac_func=yes" 9460 eval "ac_cv_func_$ac_func=yes"
10859 else 9461 else
10860 echo "configure: failed program was:" >&5 9462 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5 9463 cat conftest.$ac_ext >&5
10879 echo "$ac_t""no" 1>&6 9481 echo "$ac_t""no" 1>&6
10880 fi 9482 fi
10881 done 9483 done
10882 9484
10883 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9485 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10884 echo "configure:10885: checking whether getpgrp takes no argument" >&5 9486 echo "configure:9487: checking whether getpgrp takes no argument" >&5
10885 9487
10886 cat > conftest.$ac_ext <<EOF 9488 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure" 9489 #line 9490 "configure"
10888 #include "confdefs.h" 9490 #include "confdefs.h"
10889 9491
10890 /* 9492 /*
10891 * If this system has a BSD-style getpgrp(), 9493 * If this system has a BSD-style getpgrp(),
10892 * which takes a pid argument, exit unsuccessfully. 9494 * which takes a pid argument, exit unsuccessfully.
10937 exit(s>>8); 9539 exit(s>>8);
10938 } 9540 }
10939 } 9541 }
10940 9542
10941 EOF 9543 EOF
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9544 if { (eval echo configure:9545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10943 then 9545 then
10944 ac_cv_func_getpgrp_void=yes 9546 ac_cv_func_getpgrp_void=yes
10945 else 9547 else
10946 conftest_rc="$?" 9548 conftest_rc="$?"
10947 echo "configure: failed program was:" >&5 9549 echo "configure: failed program was:" >&5
10964 9566
10965 fi 9567 fi
10966 9568
10967 9569
10968 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9570 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10969 echo "configure:10970: checking for working mmap" >&5 9571 echo "configure:9572: checking for working mmap" >&5
10970 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9572 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10971 cat > conftest.$ac_ext <<EOF 9573 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure" 9574 #line 9575 "configure"
10973 #include "confdefs.h" 9575 #include "confdefs.h"
10974 #include <stdio.h> 9576 #include <stdio.h>
10975 #include <unistd.h> 9577 #include <unistd.h>
10976 #include <fcntl.h> 9578 #include <fcntl.h>
10977 #include <sys/mman.h> 9579 #include <sys/mman.h>
11000 return 0; 9602 return 0;
11001 perror ("conftest: mmap failed"); 9603 perror ("conftest: mmap failed");
11002 return 1; 9604 return 1;
11003 } 9605 }
11004 EOF 9606 EOF
11005 if { (eval echo configure:11006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11006 then 9608 then
11007 have_mmap=yes 9609 have_mmap=yes
11008 else 9610 else
11009 conftest_rc="$?" 9611 conftest_rc="$?"
11010 echo "configure: failed program was:" >&5 9612 echo "configure: failed program was:" >&5
11021 cat >> confdefs.h <<\EOF 9623 cat >> confdefs.h <<\EOF
11022 #define HAVE_MMAP 1 9624 #define HAVE_MMAP 1
11023 EOF 9625 EOF
11024 } 9626 }
11025 9627
11026 9628 for ac_hdr in unistd.h
11027 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 9629 do
11028 if test "$rel_alloc $have_mmap" = "default yes"; then 9630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11029 if test "$doug_lea_malloc" = "yes"; then 9631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11030 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 9632 echo "configure:9633: checking for $ac_hdr" >&5
11031 echo "configure:11032: checking for M_MMAP_THRESHOLD" >&5 9633
11032 cat > conftest.$ac_ext <<EOF 9634 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure" 9635 #line 9636 "configure"
11034 #include "confdefs.h" 9636 #include "confdefs.h"
11035 #include <malloc.h> 9637 #include <$ac_hdr>
9638 EOF
9639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9640 { (eval echo configure:9641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9641 ac_err=`grep -v '^ *+' conftest.out`
9642 if test -z "$ac_err"; then
9643 rm -rf conftest*
9644 eval "ac_cv_header_$ac_safe=yes"
9645 else
9646 echo "$ac_err" >&5
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 rm -rf conftest*
9650 eval "ac_cv_header_$ac_safe=no"
9651 fi
9652 rm -f conftest*
9653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6
9655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9656 { test "$extra_verbose" = "yes" && cat << EOF
9657 Defining $ac_tr_hdr
9658 EOF
9659 cat >> confdefs.h <<EOF
9660 #define $ac_tr_hdr 1
9661 EOF
9662 }
9663
9664 else
9665 echo "$ac_t""no" 1>&6
9666 fi
9667 done
9668
9669 for ac_func in getpagesize
9670 do
9671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9672 echo "configure:9673: checking for $ac_func" >&5
9673
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func(); below. */
9679 #include <assert.h>
9680 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9683 char $ac_func();
9684
11036 int main() { 9685 int main() {
11037 9686
11038 #ifndef M_MMAP_THRESHOLD 9687 /* The GNU C library defines this for functions which it implements
11039 #error No M_MMAP_THRESHOLD :-( 9688 to always fail with ENOSYS. Some functions are actually named
11040 !@+$%^&*_)(_ - unlikely to compile... 9689 something starting with __ and the normal name is an alias. */
9690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9691 choke me
9692 #else
9693 $ac_func();
11041 #endif 9694 #endif
11042 9695
11043 ; return 0; } 9696 ; return 0; }
11044 EOF 9697 EOF
11045 if { (eval echo configure:11046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11046 rm -rf conftest* 9699 rm -rf conftest*
11047 rel_alloc=no; echo "$ac_t""yes" 1>&6; 9700 eval "ac_cv_func_$ac_func=yes"
11048 else 9701 else
11049 echo "configure: failed program was:" >&5 9702 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5 9703 cat conftest.$ac_ext >&5
11051 rm -rf conftest* 9704 rm -rf conftest*
11052 rel_alloc=yes; echo "$ac_t""no" 1>&6; 9705 eval "ac_cv_func_$ac_func=no"
11053 fi 9706 fi
11054 rm -f conftest* 9707 rm -f conftest*
11055 else 9708
11056 rel_alloc=yes 9709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057 fi 9710 echo "$ac_t""yes" 1>&6
11058 fi 9711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9712 { test "$extra_verbose" = "yes" && cat << EOF
9713 Defining $ac_tr_func
9714 EOF
9715 cat >> confdefs.h <<EOF
9716 #define $ac_tr_func 1
9717 EOF
9718 }
9719
9720 else
9721 echo "$ac_t""no" 1>&6
9722 fi
9723 done
9724
9725 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9726 echo "configure:9727: checking for working mmap" >&5
9727
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9731
9732 /* Thanks to Mike Haertel and Jim Avera for this test.
9733 Here is a matrix of mmap possibilities:
9734 mmap private not fixed
9735 mmap private fixed at somewhere currently unmapped
9736 mmap private fixed at somewhere already mapped
9737 mmap shared not fixed
9738 mmap shared fixed at somewhere currently unmapped
9739 mmap shared fixed at somewhere already mapped
9740 For private mappings, we should verify that changes cannot be read()
9741 back from the file, nor mmap's back from the file at a different
9742 address. (There have been systems where private was not correctly
9743 implemented like the infamous i386 svr4.0, and systems where the
9744 VM page cache was not coherent with the filesystem buffer cache
9745 like early versions of FreeBSD and possibly contemporary NetBSD.)
9746 For shared mappings, we should conversely verify that changes get
9747 propogated back to all the places they're supposed to be.
9748
9749 Grep wants private fixed already mapped.
9750 The main things grep needs to know about mmap are:
9751 * does it exist and is it safe to write into the mmap'd area
9752 * how to use it (BSD variants) */
9753 #include <sys/types.h>
9754 #include <fcntl.h>
9755 #include <sys/mman.h>
9756
9757 /* This mess was copied from the GNU getpagesize.h. */
9758 #ifndef HAVE_GETPAGESIZE
9759 # ifdef HAVE_UNISTD_H
9760 # include <unistd.h>
9761 # endif
9762
9763 /* Assume that all systems that can run configure have sys/param.h. */
9764 # ifndef HAVE_SYS_PARAM_H
9765 # define HAVE_SYS_PARAM_H 1
9766 # endif
9767
9768 # ifdef _SC_PAGESIZE
9769 # define getpagesize() sysconf(_SC_PAGESIZE)
9770 # else /* no _SC_PAGESIZE */
9771 # ifdef HAVE_SYS_PARAM_H
9772 # include <sys/param.h>
9773 # ifdef EXEC_PAGESIZE
9774 # define getpagesize() EXEC_PAGESIZE
9775 # else /* no EXEC_PAGESIZE */
9776 # ifdef NBPG
9777 # define getpagesize() NBPG * CLSIZE
9778 # ifndef CLSIZE
9779 # define CLSIZE 1
9780 # endif /* no CLSIZE */
9781 # else /* no NBPG */
9782 # ifdef NBPC
9783 # define getpagesize() NBPC
9784 # else /* no NBPC */
9785 # ifdef PAGESIZE
9786 # define getpagesize() PAGESIZE
9787 # endif /* PAGESIZE */
9788 # endif /* no NBPC */
9789 # endif /* no NBPG */
9790 # endif /* no EXEC_PAGESIZE */
9791 # else /* no HAVE_SYS_PARAM_H */
9792 # define getpagesize() 8192 /* punt totally */
9793 # endif /* no HAVE_SYS_PARAM_H */
9794 # endif /* no _SC_PAGESIZE */
9795
9796 #endif /* no HAVE_GETPAGESIZE */
9797
9798 #ifdef __cplusplus
9799 extern "C" { void *malloc(unsigned); }
9800 #else
9801 char *malloc();
9802 #endif
9803
9804 int
9805 main()
9806 {
9807 char *data, *data2, *data3;
9808 int i, pagesize;
9809 int fd;
9810
9811 pagesize = getpagesize();
9812
9813 /*
9814 * First, make a file with some known garbage in it.
9815 */
9816 data = malloc(pagesize);
9817 if (!data)
9818 exit(1);
9819 for (i = 0; i < pagesize; ++i)
9820 *(data + i) = rand();
9821 umask(0);
9822 fd = creat("conftestmmap", 0600);
9823 if (fd < 0)
9824 exit(1);
9825 if (write(fd, data, pagesize) != pagesize)
9826 exit(1);
9827 close(fd);
9828
9829 /*
9830 * Next, try to mmap the file at a fixed address which
9831 * already has something else allocated at it. If we can,
9832 * also make sure that we see the same garbage.
9833 */
9834 fd = open("conftestmmap", O_RDWR);
9835 if (fd < 0)
9836 exit(1);
9837 data2 = malloc(2 * pagesize);
9838 if (!data2)
9839 exit(1);
9840 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9841 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9842 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9843 exit(1);
9844 for (i = 0; i < pagesize; ++i)
9845 if (*(data + i) != *(data2 + i))
9846 exit(1);
9847
9848 /*
9849 * Finally, make sure that changes to the mapped area
9850 * do not percolate back to the file as seen by read().
9851 * (This is a bug on some variants of i386 svr4.0.)
9852 */
9853 for (i = 0; i < pagesize; ++i)
9854 *(data2 + i) = *(data2 + i) + 1;
9855 data3 = malloc(pagesize);
9856 if (!data3)
9857 exit(1);
9858 if (read(fd, data3, pagesize) != pagesize)
9859 exit(1);
9860 for (i = 0; i < pagesize; ++i)
9861 if (*(data + i) != *(data3 + i))
9862 exit(1);
9863 close(fd);
9864 unlink("conftestmmap");
9865 exit(0);
9866 }
9867
9868 EOF
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9870 then
9871 ac_cv_func_mmap_fixed_mapped=yes
9872 else
9873 conftest_rc="$?"
9874 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 rm -fr conftest*
9877 ac_cv_func_mmap_fixed_mapped=no
9878 fi
9879 rm -fr conftest*
9880
9881 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9882 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9883 { test "$extra_verbose" = "yes" && cat << \EOF
9884 Defining HAVE_MMAP
9885 EOF
9886 cat >> confdefs.h <<\EOF
9887 #define HAVE_MMAP 1
9888 EOF
9889 }
9890
9891 fi
9892
9893
9894 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9895 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
11059 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9896 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11060 Defining REL_ALLOC 9897 Defining REL_ALLOC
11061 EOF 9898 EOF
11062 cat >> confdefs.h <<\EOF 9899 cat >> confdefs.h <<\EOF
11063 #define REL_ALLOC 1 9900 #define REL_ALLOC 1
11065 } 9902 }
11066 9903
11067 9904
11068 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9905 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11069 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9906 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11070 echo "configure:11071: checking for termios.h" >&5 9907 echo "configure:9908: checking for termios.h" >&5
11071 9908
11072 cat > conftest.$ac_ext <<EOF 9909 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure" 9910 #line 9911 "configure"
11074 #include "confdefs.h" 9911 #include "confdefs.h"
11075 #include <termios.h> 9912 #include <termios.h>
11076 EOF 9913 EOF
11077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11078 { (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9916 ac_err=`grep -v '^ *+' conftest.out`
11080 if test -z "$ac_err"; then 9917 if test -z "$ac_err"; then
11081 rm -rf conftest* 9918 rm -rf conftest*
11082 eval "ac_cv_header_$ac_safe=yes" 9919 eval "ac_cv_header_$ac_safe=yes"
11083 else 9920 else
11084 echo "$ac_err" >&5 9921 echo "$ac_err" >&5
11116 9953
11117 else 9954 else
11118 echo "$ac_t""no" 1>&6 9955 echo "$ac_t""no" 1>&6
11119 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9956 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11120 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9957 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11121 echo "configure:11122: checking for termio.h" >&5 9958 echo "configure:9959: checking for termio.h" >&5
11122 9959
11123 cat > conftest.$ac_ext <<EOF 9960 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure" 9961 #line 9962 "configure"
11125 #include "confdefs.h" 9962 #include "confdefs.h"
11126 #include <termio.h> 9963 #include <termio.h>
11127 EOF 9964 EOF
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9966 { (eval echo configure:9967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9967 ac_err=`grep -v '^ *+' conftest.out`
11131 if test -z "$ac_err"; then 9968 if test -z "$ac_err"; then
11132 rm -rf conftest* 9969 rm -rf conftest*
11133 eval "ac_cv_header_$ac_safe=yes" 9970 eval "ac_cv_header_$ac_safe=yes"
11134 else 9971 else
11135 echo "$ac_err" >&5 9972 echo "$ac_err" >&5
11156 fi 9993 fi
11157 9994
11158 9995
11159 9996
11160 echo $ac_n "checking for socket""... $ac_c" 1>&6 9997 echo $ac_n "checking for socket""... $ac_c" 1>&6
11161 echo "configure:11162: checking for socket" >&5 9998 echo "configure:9999: checking for socket" >&5
11162 9999
11163 cat > conftest.$ac_ext <<EOF 10000 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure" 10001 #line 10002 "configure"
11165 #include "confdefs.h" 10002 #include "confdefs.h"
11166 /* System header to define __stub macros and hopefully few prototypes, 10003 /* System header to define __stub macros and hopefully few prototypes,
11167 which can conflict with char socket(); below. */ 10004 which can conflict with char socket(); below. */
11168 #include <assert.h> 10005 #include <assert.h>
11169 /* Override any gcc2 internal prototype to avoid an error. */ 10006 /* Override any gcc2 internal prototype to avoid an error. */
11182 socket(); 10019 socket();
11183 #endif 10020 #endif
11184 10021
11185 ; return 0; } 10022 ; return 0; }
11186 EOF 10023 EOF
11187 if { (eval echo configure:11188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11188 rm -rf conftest* 10025 rm -rf conftest*
11189 eval "ac_cv_func_socket=yes" 10026 eval "ac_cv_func_socket=yes"
11190 else 10027 else
11191 echo "configure: failed program was:" >&5 10028 echo "configure: failed program was:" >&5
11192 cat conftest.$ac_ext >&5 10029 cat conftest.$ac_ext >&5
11197 10034
11198 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10035 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11199 echo "$ac_t""yes" 1>&6 10036 echo "$ac_t""yes" 1>&6
11200 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10037 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11201 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10038 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11202 echo "configure:11203: checking for netinet/in.h" >&5 10039 echo "configure:10040: checking for netinet/in.h" >&5
11203 10040
11204 cat > conftest.$ac_ext <<EOF 10041 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure" 10042 #line 10043 "configure"
11206 #include "confdefs.h" 10043 #include "confdefs.h"
11207 #include <netinet/in.h> 10044 #include <netinet/in.h>
11208 EOF 10045 EOF
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10047 { (eval echo configure:10048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10048 ac_err=`grep -v '^ *+' conftest.out`
11212 if test -z "$ac_err"; then 10049 if test -z "$ac_err"; then
11213 rm -rf conftest* 10050 rm -rf conftest*
11214 eval "ac_cv_header_$ac_safe=yes" 10051 eval "ac_cv_header_$ac_safe=yes"
11215 else 10052 else
11216 echo "$ac_err" >&5 10053 echo "$ac_err" >&5
11222 rm -f conftest* 10059 rm -f conftest*
11223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6 10061 echo "$ac_t""yes" 1>&6
11225 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10062 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11226 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10063 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11227 echo "configure:11228: checking for arpa/inet.h" >&5 10064 echo "configure:10065: checking for arpa/inet.h" >&5
11228 10065
11229 cat > conftest.$ac_ext <<EOF 10066 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure" 10067 #line 10068 "configure"
11231 #include "confdefs.h" 10068 #include "confdefs.h"
11232 #include <arpa/inet.h> 10069 #include <arpa/inet.h>
11233 EOF 10070 EOF
11234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11235 { (eval echo configure:11236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10072 { (eval echo configure:10073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10073 ac_err=`grep -v '^ *+' conftest.out`
11237 if test -z "$ac_err"; then 10074 if test -z "$ac_err"; then
11238 rm -rf conftest* 10075 rm -rf conftest*
11239 eval "ac_cv_header_$ac_safe=yes" 10076 eval "ac_cv_header_$ac_safe=yes"
11240 else 10077 else
11241 echo "$ac_err" >&5 10078 echo "$ac_err" >&5
11255 #define HAVE_SOCKETS 1 10092 #define HAVE_SOCKETS 1
11256 EOF 10093 EOF
11257 } 10094 }
11258 10095
11259 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10096 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11260 echo "configure:11261: checking "for sun_len member in struct sockaddr_un"" >&5 10097 echo "configure:10098: checking "for sun_len member in struct sockaddr_un"" >&5
11261 cat > conftest.$ac_ext <<EOF 10098 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure" 10099 #line 10100 "configure"
11263 #include "confdefs.h" 10100 #include "confdefs.h"
11264 10101
11265 #include <sys/types.h> 10102 #include <sys/types.h>
11266 #include <sys/socket.h> 10103 #include <sys/socket.h>
11267 #include <sys/un.h> 10104 #include <sys/un.h>
11268 10105
11269 int main() { 10106 int main() {
11270 static struct sockaddr_un x; x.sun_len = 1; 10107 static struct sockaddr_un x; x.sun_len = 1;
11271 ; return 0; } 10108 ; return 0; }
11272 EOF 10109 EOF
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11274 rm -rf conftest* 10111 rm -rf conftest*
11275 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10112 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11276 Defining HAVE_SOCKADDR_SUN_LEN 10113 Defining HAVE_SOCKADDR_SUN_LEN
11277 EOF 10114 EOF
11278 cat >> confdefs.h <<\EOF 10115 cat >> confdefs.h <<\EOF
11286 rm -rf conftest* 10123 rm -rf conftest*
11287 echo "$ac_t""no" 1>&6 10124 echo "$ac_t""no" 1>&6
11288 fi 10125 fi
11289 rm -f conftest* 10126 rm -f conftest*
11290 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10127 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11291 echo "configure:11292: checking "for ip_mreq struct in netinet/in.h"" >&5 10128 echo "configure:10129: checking "for ip_mreq struct in netinet/in.h"" >&5
11292 cat > conftest.$ac_ext <<EOF 10129 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure" 10130 #line 10131 "configure"
11294 #include "confdefs.h" 10131 #include "confdefs.h"
11295 10132
11296 #include <sys/types.h> 10133 #include <sys/types.h>
11297 #include <netinet/in.h> 10134 #include <netinet/in.h>
11298 10135
11299 int main() { 10136 int main() {
11300 static struct ip_mreq x; 10137 static struct ip_mreq x;
11301 ; return 0; } 10138 ; return 0; }
11302 EOF 10139 EOF
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10140 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11304 rm -rf conftest* 10141 rm -rf conftest*
11305 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10142 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11306 Defining HAVE_MULTICAST 10143 Defining HAVE_MULTICAST
11307 EOF 10144 EOF
11308 cat >> confdefs.h <<\EOF 10145 cat >> confdefs.h <<\EOF
11329 echo "$ac_t""no" 1>&6 10166 echo "$ac_t""no" 1>&6
11330 fi 10167 fi
11331 10168
11332 10169
11333 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10170 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11334 echo "configure:11335: checking for msgget" >&5 10171 echo "configure:10172: checking for msgget" >&5
11335 10172
11336 cat > conftest.$ac_ext <<EOF 10173 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure" 10174 #line 10175 "configure"
11338 #include "confdefs.h" 10175 #include "confdefs.h"
11339 /* System header to define __stub macros and hopefully few prototypes, 10176 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char msgget(); below. */ 10177 which can conflict with char msgget(); below. */
11341 #include <assert.h> 10178 #include <assert.h>
11342 /* Override any gcc2 internal prototype to avoid an error. */ 10179 /* Override any gcc2 internal prototype to avoid an error. */
11355 msgget(); 10192 msgget();
11356 #endif 10193 #endif
11357 10194
11358 ; return 0; } 10195 ; return 0; }
11359 EOF 10196 EOF
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10197 if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11361 rm -rf conftest* 10198 rm -rf conftest*
11362 eval "ac_cv_func_msgget=yes" 10199 eval "ac_cv_func_msgget=yes"
11363 else 10200 else
11364 echo "configure: failed program was:" >&5 10201 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5 10202 cat conftest.$ac_ext >&5
11370 10207
11371 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10208 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11372 echo "$ac_t""yes" 1>&6 10209 echo "$ac_t""yes" 1>&6
11373 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10210 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11374 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10211 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11375 echo "configure:11376: checking for sys/ipc.h" >&5 10212 echo "configure:10213: checking for sys/ipc.h" >&5
11376 10213
11377 cat > conftest.$ac_ext <<EOF 10214 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure" 10215 #line 10216 "configure"
11379 #include "confdefs.h" 10216 #include "confdefs.h"
11380 #include <sys/ipc.h> 10217 #include <sys/ipc.h>
11381 EOF 10218 EOF
11382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11383 { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10220 { (eval echo configure:10221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10221 ac_err=`grep -v '^ *+' conftest.out`
11385 if test -z "$ac_err"; then 10222 if test -z "$ac_err"; then
11386 rm -rf conftest* 10223 rm -rf conftest*
11387 eval "ac_cv_header_$ac_safe=yes" 10224 eval "ac_cv_header_$ac_safe=yes"
11388 else 10225 else
11389 echo "$ac_err" >&5 10226 echo "$ac_err" >&5
11395 rm -f conftest* 10232 rm -f conftest*
11396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11397 echo "$ac_t""yes" 1>&6 10234 echo "$ac_t""yes" 1>&6
11398 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10235 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11399 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10236 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11400 echo "configure:11401: checking for sys/msg.h" >&5 10237 echo "configure:10238: checking for sys/msg.h" >&5
11401 10238
11402 cat > conftest.$ac_ext <<EOF 10239 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure" 10240 #line 10241 "configure"
11404 #include "confdefs.h" 10241 #include "confdefs.h"
11405 #include <sys/msg.h> 10242 #include <sys/msg.h>
11406 EOF 10243 EOF
11407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11408 { (eval echo configure:11409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10245 { (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10246 ac_err=`grep -v '^ *+' conftest.out`
11410 if test -z "$ac_err"; then 10247 if test -z "$ac_err"; then
11411 rm -rf conftest* 10248 rm -rf conftest*
11412 eval "ac_cv_header_$ac_safe=yes" 10249 eval "ac_cv_header_$ac_safe=yes"
11413 else 10250 else
11414 echo "$ac_err" >&5 10251 echo "$ac_err" >&5
11441 fi 10278 fi
11442 10279
11443 10280
11444 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10281 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11445 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10282 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11446 echo "configure:11447: checking for dirent.h" >&5 10283 echo "configure:10284: checking for dirent.h" >&5
11447 10284
11448 cat > conftest.$ac_ext <<EOF 10285 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure" 10286 #line 10287 "configure"
11450 #include "confdefs.h" 10287 #include "confdefs.h"
11451 #include <dirent.h> 10288 #include <dirent.h>
11452 EOF 10289 EOF
11453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11454 { (eval echo configure:11455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10291 { (eval echo configure:10292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10292 ac_err=`grep -v '^ *+' conftest.out`
11456 if test -z "$ac_err"; then 10293 if test -z "$ac_err"; then
11457 rm -rf conftest* 10294 rm -rf conftest*
11458 eval "ac_cv_header_$ac_safe=yes" 10295 eval "ac_cv_header_$ac_safe=yes"
11459 else 10296 else
11460 echo "$ac_err" >&5 10297 echo "$ac_err" >&5
11476 10313
11477 else 10314 else
11478 echo "$ac_t""no" 1>&6 10315 echo "$ac_t""no" 1>&6
11479 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10316 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11480 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10317 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11481 echo "configure:11482: checking for sys/dir.h" >&5 10318 echo "configure:10319: checking for sys/dir.h" >&5
11482 10319
11483 cat > conftest.$ac_ext <<EOF 10320 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure" 10321 #line 10322 "configure"
11485 #include "confdefs.h" 10322 #include "confdefs.h"
11486 #include <sys/dir.h> 10323 #include <sys/dir.h>
11487 EOF 10324 EOF
11488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11489 { (eval echo configure:11490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10326 { (eval echo configure:10327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10327 ac_err=`grep -v '^ *+' conftest.out`
11491 if test -z "$ac_err"; then 10328 if test -z "$ac_err"; then
11492 rm -rf conftest* 10329 rm -rf conftest*
11493 eval "ac_cv_header_$ac_safe=yes" 10330 eval "ac_cv_header_$ac_safe=yes"
11494 else 10331 else
11495 echo "$ac_err" >&5 10332 echo "$ac_err" >&5
11517 fi 10354 fi
11518 10355
11519 10356
11520 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10357 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11521 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10358 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11522 echo "configure:11523: checking for nlist.h" >&5 10359 echo "configure:10360: checking for nlist.h" >&5
11523 10360
11524 cat > conftest.$ac_ext <<EOF 10361 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure" 10362 #line 10363 "configure"
11526 #include "confdefs.h" 10363 #include "confdefs.h"
11527 #include <nlist.h> 10364 #include <nlist.h>
11528 EOF 10365 EOF
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10368 ac_err=`grep -v '^ *+' conftest.out`
11532 if test -z "$ac_err"; then 10369 if test -z "$ac_err"; then
11533 rm -rf conftest* 10370 rm -rf conftest*
11534 eval "ac_cv_header_$ac_safe=yes" 10371 eval "ac_cv_header_$ac_safe=yes"
11535 else 10372 else
11536 echo "$ac_err" >&5 10373 echo "$ac_err" >&5
11555 fi 10392 fi
11556 10393
11557 10394
11558 10395
11559 echo "checking "for sound support"" 1>&6 10396 echo "checking "for sound support"" 1>&6
11560 echo "configure:11561: checking "for sound support"" >&5 10397 echo "configure:10398: checking "for sound support"" >&5
10398 case "$with_sound" in
10399 native | both ) with_native_sound=yes;;
10400 nas | no ) with_native_sound=no;;
10401 esac
11561 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10402 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11562 10403
11563 if test "$with_native_sound" != "no"; then 10404 if test "$with_native_sound" != "no"; then
11564 if test -n "$native_sound_lib"; then 10405 if test -n "$native_sound_lib"; then
11565 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10406 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11566 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10407 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11567 echo "configure:11568: checking for multimedia/audio_device.h" >&5 10408 echo "configure:10409: checking for multimedia/audio_device.h" >&5
11568 10409
11569 cat > conftest.$ac_ext <<EOF 10410 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure" 10411 #line 10412 "configure"
11571 #include "confdefs.h" 10412 #include "confdefs.h"
11572 #include <multimedia/audio_device.h> 10413 #include <multimedia/audio_device.h>
11573 EOF 10414 EOF
11574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11575 { (eval echo configure:11576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10416 { (eval echo configure:10417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10417 ac_err=`grep -v '^ *+' conftest.out`
11577 if test -z "$ac_err"; then 10418 if test -z "$ac_err"; then
11578 rm -rf conftest* 10419 rm -rf conftest*
11579 eval "ac_cv_header_$ac_safe=yes" 10420 eval "ac_cv_header_$ac_safe=yes"
11580 else 10421 else
11581 echo "$ac_err" >&5 10422 echo "$ac_err" >&5
11618 case "$canonical" in 10459 case "$canonical" in
11619 *-sgi-* ) 10460 *-sgi-* )
11620 if test -z "$native_sound_lib"; then 10461 if test -z "$native_sound_lib"; then
11621 10462
11622 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10463 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11623 echo "configure:11624: checking for ALopenport in -laudio" >&5 10464 echo "configure:10465: checking for ALopenport in -laudio" >&5
11624 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10465 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11625 10466
11626 xe_check_libs=" -laudio " 10467 xe_check_libs=" -laudio "
11627 cat > conftest.$ac_ext <<EOF 10468 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure" 10469 #line 10470 "configure"
11629 #include "confdefs.h" 10470 #include "confdefs.h"
11630 /* Override any gcc2 internal prototype to avoid an error. */ 10471 /* Override any gcc2 internal prototype to avoid an error. */
11631 /* We use char because int might match the return type of a gcc2 10472 /* We use char because int might match the return type of a gcc2
11632 builtin and then its argument prototype would still apply. */ 10473 builtin and then its argument prototype would still apply. */
11633 char ALopenport(); 10474 char ALopenport();
11634 10475
11635 int main() { 10476 int main() {
11636 ALopenport() 10477 ALopenport()
11637 ; return 0; } 10478 ; return 0; }
11638 EOF 10479 EOF
11639 if { (eval echo configure:11640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11640 rm -rf conftest* 10481 rm -rf conftest*
11641 eval "ac_cv_lib_$ac_lib_var=yes" 10482 eval "ac_cv_lib_$ac_lib_var=yes"
11642 else 10483 else
11643 echo "configure: failed program was:" >&5 10484 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5 10485 cat conftest.$ac_ext >&5
11665 fi ;; 10506 fi ;;
11666 hppa*-hp-hpux* ) 10507 hppa*-hp-hpux* )
11667 if test -z "$native_sound_lib"; then 10508 if test -z "$native_sound_lib"; then
11668 10509
11669 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10510 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11670 echo "configure:11671: checking for AOpenAudio in -lAlib" >&5 10511 echo "configure:10512: checking for AOpenAudio in -lAlib" >&5
11671 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10512 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11672 10513
11673 xe_check_libs=" -lAlib " 10514 xe_check_libs=" -lAlib "
11674 cat > conftest.$ac_ext <<EOF 10515 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure" 10516 #line 10517 "configure"
11676 #include "confdefs.h" 10517 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */ 10518 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2 10519 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */ 10520 builtin and then its argument prototype would still apply. */
11680 char AOpenAudio(); 10521 char AOpenAudio();
11681 10522
11682 int main() { 10523 int main() {
11683 AOpenAudio() 10524 AOpenAudio()
11684 ; return 0; } 10525 ; return 0; }
11685 EOF 10526 EOF
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11687 rm -rf conftest* 10528 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=yes" 10529 eval "ac_cv_lib_$ac_lib_var=yes"
11689 else 10530 else
11690 echo "configure: failed program was:" >&5 10531 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5 10532 cat conftest.$ac_ext >&5
11719 10560
11720 if test -z "$sound_found"; then 10561 if test -z "$sound_found"; then
11721 for dir in "machine" "sys" "linux"; do 10562 for dir in "machine" "sys" "linux"; do
11722 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10563 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11723 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10564 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11724 echo "configure:11725: checking for ${dir}/soundcard.h" >&5 10565 echo "configure:10566: checking for ${dir}/soundcard.h" >&5
11725 10566
11726 cat > conftest.$ac_ext <<EOF 10567 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure" 10568 #line 10569 "configure"
11728 #include "confdefs.h" 10569 #include "confdefs.h"
11729 #include <${dir}/soundcard.h> 10570 #include <${dir}/soundcard.h>
11730 EOF 10571 EOF
11731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11732 { (eval echo configure:11733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10573 { (eval echo configure:10574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10574 ac_err=`grep -v '^ *+' conftest.out`
11734 if test -z "$ac_err"; then 10575 if test -z "$ac_err"; then
11735 rm -rf conftest* 10576 rm -rf conftest*
11736 eval "ac_cv_header_$ac_safe=yes" 10577 eval "ac_cv_header_$ac_safe=yes"
11737 else 10578 else
11738 echo "$ac_err" >&5 10579 echo "$ac_err" >&5
11743 fi 10584 fi
11744 rm -f conftest* 10585 rm -f conftest*
11745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6 10587 echo "$ac_t""yes" 1>&6
11747 sound_found=yes 10588 sound_found=yes
11748 need_miscplay=yes
11749 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then 10589 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11750 echo " xemacs will be linked with \"linuxplay.o\"" 10590 echo " xemacs will be linked with \"linuxplay.o\""
11751 fi 10591 fi
11752 { test "$extra_verbose" = "yes" && cat << EOF 10592 { test "$extra_verbose" = "yes" && cat << EOF
11753 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h" 10593 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11754 EOF 10594 EOF
11755 cat >> confdefs.h <<EOF 10595 cat >> confdefs.h <<EOF
11756 #define SOUNDCARD_H_FILE "${dir}/soundcard.h" 10596 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11757 EOF 10597 EOF
11758 } 10598 }
11759 10599
11760 break 10600 break
11761 else 10601 else
11763 fi 10603 fi
11764 10604
11765 done 10605 done
11766 fi 10606 fi
11767 10607
11768 if test -z "$sound_found"; then 10608 test "$sound_found" = "yes" && with_native_sound=yes
11769 if test "$with_msw" = "yes"; then 10609 fi
11770 sound_found=yes 10610
11771 native_sound_lib= 10611 if test -z "$with_sound"; then
11772 fi 10612 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10613 with_sound=native
11773 fi 10614 fi
11774
11775 test "$sound_found" = "yes" && with_native_sound=yes
11776 fi 10615 fi
11777 10616
11778 if test "$with_native_sound" = "yes"; then 10617 if test "$with_native_sound" = "yes"; then
11779 { test "$extra_verbose" = "yes" && cat << \EOF 10618 { test "$extra_verbose" = "yes" && cat << \EOF
11780 Defining HAVE_NATIVE_SOUND 10619 Defining HAVE_NATIVE_SOUND
11785 } 10624 }
11786 10625
11787 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi 10626 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11788 fi 10627 fi
11789 10628
11790 if test "$with_nas_sound" != "no"; then 10629 case "$with_sound" in both | nas )
11791 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 10630 { test "$extra_verbose" = "yes" && cat << \EOF
11792 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11793 echo "configure:11794: checking for audio/audiolib.h" >&5
11794
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <audio/audiolib.h>
11799 EOF
11800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11801 { (eval echo configure:11802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11803 if test -z "$ac_err"; then
11804 rm -rf conftest*
11805 eval "ac_cv_header_$ac_safe=yes"
11806 else
11807 echo "$ac_err" >&5
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 rm -rf conftest*
11811 eval "ac_cv_header_$ac_safe=no"
11812 fi
11813 rm -f conftest*
11814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816
11817
11818 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11819 echo "configure:11820: checking for AuOpenServer in -laudio" >&5
11820 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11821
11822 xe_check_libs=" -laudio "
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char AuOpenServer();
11830
11831 int main() {
11832 AuOpenServer()
11833 ; return 0; }
11834 EOF
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11836 rm -rf conftest*
11837 eval "ac_cv_lib_$ac_lib_var=yes"
11838 else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
11842 eval "ac_cv_lib_$ac_lib_var=no"
11843 fi
11844 rm -f conftest*
11845 xe_check_libs=""
11846
11847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11848 echo "$ac_t""yes" 1>&6
11849 have_nas_sound=yes
11850 else
11851 echo "$ac_t""no" 1>&6
11852 fi
11853
11854
11855 else
11856 echo "$ac_t""no" 1>&6
11857 fi
11858
11859 if test "$have_nas_sound" = "yes"; then
11860 with_nas_sound=yes
11861 { test "$extra_verbose" = "yes" && cat << \EOF
11862 Defining HAVE_NAS_SOUND 10631 Defining HAVE_NAS_SOUND
11863 EOF 10632 EOF
11864 cat >> confdefs.h <<\EOF 10633 cat >> confdefs.h <<\EOF
11865 #define HAVE_NAS_SOUND 1 10634 #define HAVE_NAS_SOUND 1
11866 EOF 10635 EOF
11867 } 10636 }
11868 10637
11869 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10638 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11870 echo " xemacs will be linked with \"nas.o\"" 10639 echo " xemacs will be linked with \"nas.o\""
11871 fi 10640 fi
11872 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10641 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11873 cat > conftest.$ac_ext <<EOF 10642 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure" 10643 #line 10644 "configure"
11875 #include "confdefs.h" 10644 #include "confdefs.h"
11876 #include <audio/Xtutil.h> 10645 #include <audio/Xtutil.h>
11877 EOF 10646 EOF
11878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11879 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10648 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11880 : 10649 :
11881 else 10650 else
11882 rm -rf conftest* 10651 rm -rf conftest*
11883 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF 10652 { test "$extra_verbose" = "yes" && cat << \EOF
11884 Defining NAS_NO_ERROR_JUMP 10653 Defining NAS_NO_ERROR_JUMP
11885 EOF 10654 EOF
11886 cat >> confdefs.h <<\EOF 10655 cat >> confdefs.h <<\EOF
11887 #define NAS_NO_ERROR_JUMP 1 10656 #define NAS_NO_ERROR_JUMP 1
11888 EOF 10657 EOF
11889 } 10658 }
11890 10659
11891 fi 10660 fi
11892 rm -f conftest* 10661 rm -f conftest*
11893 10662
11894 else 10663 esac
11895 test "$with_nas_sound" = "yes" && \
11896 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11897 with_nas_sound=no
11898 fi
11899 fi
11900
11901 if test "$with_esd_sound" != "no"; then
11902 # Extract the first word of "esd-config", so it can be a program name with args.
11903 set dummy esd-config; ac_word=$2
11904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11905 echo "configure:11906: checking for $ac_word" >&5
11906
11907 if test -n "$have_esd_config"; then
11908 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11909 else
11910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11911 ac_dummy="$PATH"
11912 for ac_dir in $ac_dummy; do
11913 test -z "$ac_dir" && ac_dir=.
11914 if test -f $ac_dir/$ac_word; then
11915 ac_cv_prog_have_esd_config="yes"
11916 break
11917 fi
11918 done
11919 IFS="$ac_save_ifs"
11920 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11921 fi
11922 have_esd_config="$ac_cv_prog_have_esd_config"
11923 if test -n "$have_esd_config"; then
11924 echo "$ac_t""$have_esd_config" 1>&6
11925 else
11926 echo "$ac_t""no" 1>&6
11927 fi
11928
11929 if test "$have_esd_config" = "yes"; then
11930 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11931 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
11932 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11933 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11934 echo "configure:11935: checking for esd_play_stream" >&5
11935
11936 cat > conftest.$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11939 /* System header to define __stub macros and hopefully few prototypes,
11940 which can conflict with char esd_play_stream(); below. */
11941 #include <assert.h>
11942 /* Override any gcc2 internal prototype to avoid an error. */
11943 /* We use char because int might match the return type of a gcc2
11944 builtin and then its argument prototype would still apply. */
11945 char esd_play_stream();
11946
11947 int main() {
11948
11949 /* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11953 choke me
11954 #else
11955 esd_play_stream();
11956 #endif
11957
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11961 rm -rf conftest*
11962 eval "ac_cv_func_esd_play_stream=yes"
11963 else
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 eval "ac_cv_func_esd_play_stream=no"
11968 fi
11969 rm -f conftest*
11970
11971 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11973 have_esd_sound=yes
11974 else
11975 echo "$ac_t""no" 1>&6
11976 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11977 fi
11978
11979 fi
11980
11981 if test "$have_esd_sound" = "yes"; then
11982 with_esd_sound=yes
11983 need_miscplay=yes
11984 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11985 echo " xemacs will be linked with \"esd.o\""
11986 fi
11987 { test "$extra_verbose" = "yes" && cat << \EOF
11988 Defining HAVE_ESD_SOUND
11989 EOF
11990 cat >> confdefs.h <<\EOF
11991 #define HAVE_ESD_SOUND 1
11992 EOF
11993 }
11994
11995 else
11996 test "$with_esd_sound" = "yes" && \
11997 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11998 with_esd_sound=no
11999 fi
12000 fi
12001
12002 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
12003 echo " xemacs will be linked with \"miscplay.o\""
12004 fi
12005 10664
12006 10665
12007 test -z "$with_tty" && with_tty=yes 10666 test -z "$with_tty" && with_tty=yes
12008 10667
12009 if test "$with_tty" = "yes" ; then 10668 if test "$with_tty" = "yes" ; then
12010 echo "checking for TTY-related features" 1>&6 10669 echo "checking for TTY-related features" 1>&6
12011 echo "configure:12012: checking for TTY-related features" >&5 10670 echo "configure:10671: checking for TTY-related features" >&5
12012 { test "$extra_verbose" = "yes" && cat << \EOF 10671 { test "$extra_verbose" = "yes" && cat << \EOF
12013 Defining HAVE_TTY 10672 Defining HAVE_TTY
12014 EOF 10673 EOF
12015 cat >> confdefs.h <<\EOF 10674 cat >> confdefs.h <<\EOF
12016 #define HAVE_TTY 1 10675 #define HAVE_TTY 1
12022 fi 10681 fi
12023 10682
12024 if test -z "$with_ncurses"; then 10683 if test -z "$with_ncurses"; then
12025 10684
12026 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10685 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12027 echo "configure:12028: checking for tgetent in -lncurses" >&5 10686 echo "configure:10687: checking for tgetent in -lncurses" >&5
12028 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10687 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12029 10688
12030 xe_check_libs=" -lncurses " 10689 xe_check_libs=" -lncurses "
12031 cat > conftest.$ac_ext <<EOF 10690 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure" 10691 #line 10692 "configure"
12033 #include "confdefs.h" 10692 #include "confdefs.h"
12034 /* Override any gcc2 internal prototype to avoid an error. */ 10693 /* Override any gcc2 internal prototype to avoid an error. */
12035 /* We use char because int might match the return type of a gcc2 10694 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */ 10695 builtin and then its argument prototype would still apply. */
12037 char tgetent(); 10696 char tgetent();
12038 10697
12039 int main() { 10698 int main() {
12040 tgetent() 10699 tgetent()
12041 ; return 0; } 10700 ; return 0; }
12042 EOF 10701 EOF
12043 if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12044 rm -rf conftest* 10703 rm -rf conftest*
12045 eval "ac_cv_lib_$ac_lib_var=yes" 10704 eval "ac_cv_lib_$ac_lib_var=yes"
12046 else 10705 else
12047 echo "configure: failed program was:" >&5 10706 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5 10707 cat conftest.$ac_ext >&5
12071 EOF 10730 EOF
12072 } 10731 }
12073 10732
12074 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10733 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12075 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10734 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12076 echo "configure:12077: checking for ncurses/curses.h" >&5 10735 echo "configure:10736: checking for ncurses/curses.h" >&5
12077 10736
12078 cat > conftest.$ac_ext <<EOF 10737 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure" 10738 #line 10739 "configure"
12080 #include "confdefs.h" 10739 #include "confdefs.h"
12081 #include <ncurses/curses.h> 10740 #include <ncurses/curses.h>
12082 EOF 10741 EOF
12083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12084 { (eval echo configure:12085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10743 { (eval echo configure:10744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10744 ac_err=`grep -v '^ *+' conftest.out`
12086 if test -z "$ac_err"; then 10745 if test -z "$ac_err"; then
12087 rm -rf conftest* 10746 rm -rf conftest*
12088 eval "ac_cv_header_$ac_safe=yes" 10747 eval "ac_cv_header_$ac_safe=yes"
12089 else 10748 else
12090 echo "$ac_err" >&5 10749 echo "$ac_err" >&5
12094 eval "ac_cv_header_$ac_safe=no" 10753 eval "ac_cv_header_$ac_safe=no"
12095 fi 10754 fi
12096 rm -f conftest* 10755 rm -f conftest*
12097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12098 echo "$ac_t""yes" 1>&6 10757 echo "$ac_t""yes" 1>&6
12099 curses_h_file=ncurses/curses.h 10758 curses_h_path=ncurses/curses.h
12100 else 10759 else
12101 echo "$ac_t""no" 1>&6 10760 echo "$ac_t""no" 1>&6
12102 fi 10761 fi
12103 10762
12104 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10763 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12105 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10764 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12106 echo "configure:12107: checking for ncurses/term.h" >&5 10765 echo "configure:10766: checking for ncurses/term.h" >&5
12107 10766
12108 cat > conftest.$ac_ext <<EOF 10767 cat > conftest.$ac_ext <<EOF
12109 #line 12110 "configure" 10768 #line 10769 "configure"
12110 #include "confdefs.h" 10769 #include "confdefs.h"
12111 #include <ncurses/term.h> 10770 #include <ncurses/term.h>
12112 EOF 10771 EOF
12113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12114 { (eval echo configure:12115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10774 ac_err=`grep -v '^ *+' conftest.out`
12116 if test -z "$ac_err"; then 10775 if test -z "$ac_err"; then
12117 rm -rf conftest* 10776 rm -rf conftest*
12118 eval "ac_cv_header_$ac_safe=yes" 10777 eval "ac_cv_header_$ac_safe=yes"
12119 else 10778 else
12120 echo "$ac_err" >&5 10779 echo "$ac_err" >&5
12124 eval "ac_cv_header_$ac_safe=no" 10783 eval "ac_cv_header_$ac_safe=no"
12125 fi 10784 fi
12126 rm -f conftest* 10785 rm -f conftest*
12127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12128 echo "$ac_t""yes" 1>&6 10787 echo "$ac_t""yes" 1>&6
12129 term_h_file=ncurses/term.h 10788 term_h_path=ncurses/term.h
12130 else 10789 else
12131 echo "$ac_t""no" 1>&6 10790 echo "$ac_t""no" 1>&6
12132 fi 10791 fi
12133 10792
12134 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then 10793 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
12139 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10798 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12140 save_c_switch_site="$c_switch_site" 10799 save_c_switch_site="$c_switch_site"
12141 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10800 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12142 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10801 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12143 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10802 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12144 echo "configure:12145: checking for ncurses/curses.h" >&5 10803 echo "configure:10804: checking for ncurses/curses.h" >&5
12145 10804
12146 cat > conftest.$ac_ext <<EOF 10805 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure" 10806 #line 10807 "configure"
12148 #include "confdefs.h" 10807 #include "confdefs.h"
12149 #include <ncurses/curses.h> 10808 #include <ncurses/curses.h>
12150 EOF 10809 EOF
12151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12152 { (eval echo configure:12153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10811 { (eval echo configure:10812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10812 ac_err=`grep -v '^ *+' conftest.out`
12154 if test -z "$ac_err"; then 10813 if test -z "$ac_err"; then
12155 rm -rf conftest* 10814 rm -rf conftest*
12156 eval "ac_cv_header_$ac_safe=yes" 10815 eval "ac_cv_header_$ac_safe=yes"
12157 else 10816 else
12158 echo "$ac_err" >&5 10817 echo "$ac_err" >&5
12162 eval "ac_cv_header_$ac_safe=no" 10821 eval "ac_cv_header_$ac_safe=no"
12163 fi 10822 fi
12164 rm -f conftest* 10823 rm -f conftest*
12165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12166 echo "$ac_t""yes" 1>&6 10825 echo "$ac_t""yes" 1>&6
12167 curses_h_file=ncurses/curses.h 10826 curses_h_path=ncurses/curses.h
12168 else 10827 else
12169 echo "$ac_t""no" 1>&6 10828 echo "$ac_t""no" 1>&6
12170 fi 10829 fi
12171 10830
12172 if test "$ac_cv_header_ncurses_curses_h" = "yes" 10831 if test "$ac_cv_header_ncurses_curses_h" = "yes"
12182 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10841 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12183 else 10842 else
12184 for lib in curses termlib termcap; do 10843 for lib in curses termlib termcap; do
12185 10844
12186 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10845 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12187 echo "configure:12188: checking for tgetent in -l$lib" >&5 10846 echo "configure:10847: checking for tgetent in -l$lib" >&5
12188 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10847 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12189 10848
12190 xe_check_libs=" -l$lib " 10849 xe_check_libs=" -l$lib "
12191 cat > conftest.$ac_ext <<EOF 10850 cat > conftest.$ac_ext <<EOF
12192 #line 12193 "configure" 10851 #line 10852 "configure"
12193 #include "confdefs.h" 10852 #include "confdefs.h"
12194 /* Override any gcc2 internal prototype to avoid an error. */ 10853 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2 10854 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */ 10855 builtin and then its argument prototype would still apply. */
12197 char tgetent(); 10856 char tgetent();
12198 10857
12199 int main() { 10858 int main() {
12200 tgetent() 10859 tgetent()
12201 ; return 0; } 10860 ; return 0; }
12202 EOF 10861 EOF
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10862 if { (eval echo configure:10863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12204 rm -rf conftest* 10863 rm -rf conftest*
12205 eval "ac_cv_lib_$ac_lib_var=yes" 10864 eval "ac_cv_lib_$ac_lib_var=yes"
12206 else 10865 else
12207 echo "configure: failed program was:" >&5 10866 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5 10867 cat conftest.$ac_ext >&5
12229 if test -n "$libs_termcap"; then 10888 if test -n "$libs_termcap"; then
12230 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10889 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12231 else 10890 else
12232 10891
12233 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10892 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12234 echo "configure:12235: checking for tgetent in -lcurses" >&5 10893 echo "configure:10894: checking for tgetent in -lcurses" >&5
12235 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10894 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12236 10895
12237 xe_check_libs=" -lcurses " 10896 xe_check_libs=" -lcurses "
12238 cat > conftest.$ac_ext <<EOF 10897 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure" 10898 #line 10899 "configure"
12240 #include "confdefs.h" 10899 #include "confdefs.h"
12241 /* Override any gcc2 internal prototype to avoid an error. */ 10900 /* Override any gcc2 internal prototype to avoid an error. */
12242 /* We use char because int might match the return type of a gcc2 10901 /* We use char because int might match the return type of a gcc2
12243 builtin and then its argument prototype would still apply. */ 10902 builtin and then its argument prototype would still apply. */
12244 char tgetent(); 10903 char tgetent();
12245 10904
12246 int main() { 10905 int main() {
12247 tgetent() 10906 tgetent()
12248 ; return 0; } 10907 ; return 0; }
12249 EOF 10908 EOF
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12251 rm -rf conftest* 10910 rm -rf conftest*
12252 eval "ac_cv_lib_$ac_lib_var=yes" 10911 eval "ac_cv_lib_$ac_lib_var=yes"
12253 else 10912 else
12254 echo "configure: failed program was:" >&5 10913 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5 10914 cat conftest.$ac_ext >&5
12263 echo "$ac_t""yes" 1>&6 10922 echo "$ac_t""yes" 1>&6
12264 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10923 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12265 else 10924 else
12266 echo "$ac_t""no" 1>&6 10925 echo "$ac_t""no" 1>&6
12267 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10926 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12268 echo "configure:12269: checking for tgetent in -ltermcap" >&5 10927 echo "configure:10928: checking for tgetent in -ltermcap" >&5
12269 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10928 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12270 10929
12271 xe_check_libs=" -ltermcap " 10930 xe_check_libs=" -ltermcap "
12272 cat > conftest.$ac_ext <<EOF 10931 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure" 10932 #line 10933 "configure"
12274 #include "confdefs.h" 10933 #include "confdefs.h"
12275 /* Override any gcc2 internal prototype to avoid an error. */ 10934 /* Override any gcc2 internal prototype to avoid an error. */
12276 /* We use char because int might match the return type of a gcc2 10935 /* We use char because int might match the return type of a gcc2
12277 builtin and then its argument prototype would still apply. */ 10936 builtin and then its argument prototype would still apply. */
12278 char tgetent(); 10937 char tgetent();
12279 10938
12280 int main() { 10939 int main() {
12281 tgetent() 10940 tgetent()
12282 ; return 0; } 10941 ; return 0; }
12283 EOF 10942 EOF
12284 if { (eval echo configure:12285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12285 rm -rf conftest* 10944 rm -rf conftest*
12286 eval "ac_cv_lib_$ac_lib_var=yes" 10945 eval "ac_cv_lib_$ac_lib_var=yes"
12287 else 10946 else
12288 echo "configure: failed program was:" >&5 10947 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5 10948 cat conftest.$ac_ext >&5
12309 10968
12310 fi 10969 fi
12311 fi 10970 fi
12312 fi 10971 fi
12313 { test "$extra_verbose" = "yes" && cat << EOF 10972 { test "$extra_verbose" = "yes" && cat << EOF
12314 Defining CURSES_H_FILE = "${curses_h_file-curses.h}" 10973 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
12315 EOF 10974 EOF
12316 cat >> confdefs.h <<EOF 10975 cat >> confdefs.h <<EOF
12317 #define CURSES_H_FILE "${curses_h_file-curses.h}" 10976 #define CURSES_H_PATH "${curses_h_path-curses.h}"
12318 EOF 10977 EOF
12319 } 10978 }
12320 10979
12321 { test "$extra_verbose" = "yes" && cat << EOF 10980 { test "$extra_verbose" = "yes" && cat << EOF
12322 Defining TERM_H_FILE = "${term_h_file-term.h}" 10981 Defining TERM_H_PATH = "${term_h_path-term.h}"
12323 EOF 10982 EOF
12324 cat >> confdefs.h <<EOF 10983 cat >> confdefs.h <<EOF
12325 #define TERM_H_FILE "${term_h_file-term.h}" 10984 #define TERM_H_PATH "${term_h_path-term.h}"
12326 EOF 10985 EOF
12327 } 10986 }
12328 10987
12329 10988
12330 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10989 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12331 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10990 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12332 echo "configure:12333: checking for gpm.h" >&5 10991 echo "configure:10992: checking for gpm.h" >&5
12333 10992
12334 cat > conftest.$ac_ext <<EOF 10993 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure" 10994 #line 10995 "configure"
12336 #include "confdefs.h" 10995 #include "confdefs.h"
12337 #include <gpm.h> 10996 #include <gpm.h>
12338 EOF 10997 EOF
12339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12340 { (eval echo configure:12341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10999 { (eval echo configure:11000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11000 ac_err=`grep -v '^ *+' conftest.out`
12342 if test -z "$ac_err"; then 11001 if test -z "$ac_err"; then
12343 rm -rf conftest* 11002 rm -rf conftest*
12344 eval "ac_cv_header_$ac_safe=yes" 11003 eval "ac_cv_header_$ac_safe=yes"
12345 else 11004 else
12346 echo "$ac_err" >&5 11005 echo "$ac_err" >&5
12358 with_gpm=no 11017 with_gpm=no
12359 fi 11018 fi
12360 } 11019 }
12361 test -z "$with_gpm" && { 11020 test -z "$with_gpm" && {
12362 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 11021 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12363 echo "configure:12364: checking for Gpm_Open in -lgpm" >&5 11022 echo "configure:11023: checking for Gpm_Open in -lgpm" >&5
12364 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 11023 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12365 11024
12366 xe_check_libs=" -lgpm " 11025 xe_check_libs=" -lgpm "
12367 cat > conftest.$ac_ext <<EOF 11026 cat > conftest.$ac_ext <<EOF
12368 #line 12369 "configure" 11027 #line 11028 "configure"
12369 #include "confdefs.h" 11028 #include "confdefs.h"
12370 /* Override any gcc2 internal prototype to avoid an error. */ 11029 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2 11030 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */ 11031 builtin and then its argument prototype would still apply. */
12373 char Gpm_Open(); 11032 char Gpm_Open();
12374 11033
12375 int main() { 11034 int main() {
12376 Gpm_Open() 11035 Gpm_Open()
12377 ; return 0; } 11036 ; return 0; }
12378 EOF 11037 EOF
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12380 rm -rf conftest* 11039 rm -rf conftest*
12381 eval "ac_cv_lib_$ac_lib_var=yes" 11040 eval "ac_cv_lib_$ac_lib_var=yes"
12382 else 11041 else
12383 echo "configure: failed program was:" >&5 11042 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5 11043 cat conftest.$ac_ext >&5
12422 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then 11081 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12423 echo " xemacs will be linked with \"event-unixoid.o\"" 11082 echo " xemacs will be linked with \"event-unixoid.o\""
12424 fi 11083 fi
12425 11084
12426 11085
12427 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 11086 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
12428 != "no no no" && echo "checking for database support" 1>&6 11087 != "no no no" && echo "checking for database support" 1>&6
12429 echo "configure:12430: checking for database support" >&5 11088 echo "configure:11089: checking for database support" >&5
12430 11089
12431 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 11090 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
12432 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 11091 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12433 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 11092 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12434 echo "configure:12435: checking for ndbm.h" >&5 11093 echo "configure:11094: checking for ndbm.h" >&5
12435 11094
12436 cat > conftest.$ac_ext <<EOF 11095 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure" 11096 #line 11097 "configure"
12438 #include "confdefs.h" 11097 #include "confdefs.h"
12439 #include <ndbm.h> 11098 #include <ndbm.h>
12440 EOF 11099 EOF
12441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12442 { (eval echo configure:12443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11101 { (eval echo configure:11102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11102 ac_err=`grep -v '^ *+' conftest.out`
12444 if test -z "$ac_err"; then 11103 if test -z "$ac_err"; then
12445 rm -rf conftest* 11104 rm -rf conftest*
12446 eval "ac_cv_header_$ac_safe=yes" 11105 eval "ac_cv_header_$ac_safe=yes"
12447 else 11106 else
12448 echo "$ac_err" >&5 11107 echo "$ac_err" >&5
12456 echo "$ac_t""yes" 1>&6 11115 echo "$ac_t""yes" 1>&6
12457 : 11116 :
12458 else 11117 else
12459 echo "$ac_t""no" 1>&6 11118 echo "$ac_t""no" 1>&6
12460 11119
12461 test "$with_database_gdbm" = "yes" -o \ 11120 test "$with_database_gnudbm" = "yes" -o \
12462 "$with_database_dbm" = "yes" && \ 11121 "$with_database_dbm" = "yes" && \
12463 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } 11122 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12464 with_database_gdbm=no with_database_dbm=no 11123 with_database_gnudbm=no with_database_dbm=no
12465 fi 11124 fi
12466 11125
12467 fi 11126 fi
12468 11127
12469 if test "$with_database_gdbm" != "no"; then 11128 if test "$with_database_gnudbm" != "no"; then
12470 11129
12471 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11130 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12472 echo "configure:12473: checking for dbm_open in -lgdbm" >&5 11131 echo "configure:11132: checking for dbm_open in -lgdbm" >&5
12473 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11132 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12474 11133
12475 xe_check_libs=" -lgdbm " 11134 xe_check_libs=" -lgdbm "
12476 cat > conftest.$ac_ext <<EOF 11135 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure" 11136 #line 11137 "configure"
12478 #include "confdefs.h" 11137 #include "confdefs.h"
12479 /* Override any gcc2 internal prototype to avoid an error. */ 11138 /* Override any gcc2 internal prototype to avoid an error. */
12480 /* We use char because int might match the return type of a gcc2 11139 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */ 11140 builtin and then its argument prototype would still apply. */
12482 char dbm_open(); 11141 char dbm_open();
12483 11142
12484 int main() { 11143 int main() {
12485 dbm_open() 11144 dbm_open()
12486 ; return 0; } 11145 ; return 0; }
12487 EOF 11146 EOF
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11147 if { (eval echo configure:11148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12489 rm -rf conftest* 11148 rm -rf conftest*
12490 eval "ac_cv_lib_$ac_lib_var=yes" 11149 eval "ac_cv_lib_$ac_lib_var=yes"
12491 else 11150 else
12492 echo "configure: failed program was:" >&5 11151 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5 11152 cat conftest.$ac_ext >&5
12497 rm -f conftest* 11156 rm -f conftest*
12498 xe_check_libs="" 11157 xe_check_libs=""
12499 11158
12500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12501 echo "$ac_t""yes" 1>&6 11160 echo "$ac_t""yes" 1>&6
12502 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm 11161 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm
12503 else 11162 else
12504 echo "$ac_t""no" 1>&6 11163 echo "$ac_t""no" 1>&6
12505 if test "$with_database_gdbm" = "yes"; then 11164 if test "$with_database_gnudbm" = "yes"; then
12506 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } 11165 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12507 fi 11166 fi
12508 with_database_gdbm=no 11167 with_database_gnudbm=no
12509 fi 11168 fi
12510 11169
12511 11170
12512 fi 11171 fi
12513 11172
12514 if test "$with_database_dbm" != "no"; then 11173 if test "$with_database_dbm" != "no"; then
12515 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11174 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12516 echo "configure:12517: checking for dbm_open" >&5 11175 echo "configure:11176: checking for dbm_open" >&5
12517 11176
12518 cat > conftest.$ac_ext <<EOF 11177 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure" 11178 #line 11179 "configure"
12520 #include "confdefs.h" 11179 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes, 11180 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char dbm_open(); below. */ 11181 which can conflict with char dbm_open(); below. */
12523 #include <assert.h> 11182 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error. */ 11183 /* Override any gcc2 internal prototype to avoid an error. */
12537 dbm_open(); 11196 dbm_open();
12538 #endif 11197 #endif
12539 11198
12540 ; return 0; } 11199 ; return 0; }
12541 EOF 11200 EOF
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11201 if { (eval echo configure:11202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12543 rm -rf conftest* 11202 rm -rf conftest*
12544 eval "ac_cv_func_dbm_open=yes" 11203 eval "ac_cv_func_dbm_open=yes"
12545 else 11204 else
12546 echo "configure: failed program was:" >&5 11205 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5 11206 cat conftest.$ac_ext >&5
12556 else 11215 else
12557 echo "$ac_t""no" 1>&6 11216 echo "$ac_t""no" 1>&6
12558 11217
12559 11218
12560 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11219 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12561 echo "configure:12562: checking for dbm_open in -ldbm" >&5 11220 echo "configure:11221: checking for dbm_open in -ldbm" >&5
12562 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11221 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12563 11222
12564 xe_check_libs=" -ldbm " 11223 xe_check_libs=" -ldbm "
12565 cat > conftest.$ac_ext <<EOF 11224 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure" 11225 #line 11226 "configure"
12567 #include "confdefs.h" 11226 #include "confdefs.h"
12568 /* Override any gcc2 internal prototype to avoid an error. */ 11227 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2 11228 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */ 11229 builtin and then its argument prototype would still apply. */
12571 char dbm_open(); 11230 char dbm_open();
12572 11231
12573 int main() { 11232 int main() {
12574 dbm_open() 11233 dbm_open()
12575 ; return 0; } 11234 ; return 0; }
12576 EOF 11235 EOF
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12578 rm -rf conftest* 11237 rm -rf conftest*
12579 eval "ac_cv_lib_$ac_lib_var=yes" 11238 eval "ac_cv_lib_$ac_lib_var=yes"
12580 else 11239 else
12581 echo "configure: failed program was:" >&5 11240 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5 11241 cat conftest.$ac_ext >&5
12600 fi 11259 fi
12601 11260
12602 fi 11261 fi
12603 11262
12604 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi 11263 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12605 test "$with_database_gdbm" = "yes" -o \ 11264 test "$with_database_gnudbm" = "yes" -o \
12606 "$with_database_dbm" = "yes" && \ 11265 "$with_database_dbm" = "yes" && \
12607 { test "$extra_verbose" = "yes" && cat << \EOF 11266 { test "$extra_verbose" = "yes" && cat << \EOF
12608 Defining HAVE_DBM 11267 Defining HAVE_DBM
12609 EOF 11268 EOF
12610 cat >> confdefs.h <<\EOF 11269 cat >> confdefs.h <<\EOF
12611 #define HAVE_DBM 1 11270 #define HAVE_DBM 1
12613 } 11272 }
12614 11273
12615 11274
12616 if test "$with_database_berkdb" != "no"; then 11275 if test "$with_database_berkdb" != "no"; then
12617 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11276 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12618 echo "configure:12619: checking for Berkeley db.h" >&5 11277 echo "configure:11278: checking for Berkeley db.h" >&5
12619 for header in "db/db.h" "db.h"; do 11278 for path in "db/db.h" "db.h"; do
12620 cat > conftest.$ac_ext <<EOF 11279 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure" 11280 #line 11281 "configure"
12622 #include "confdefs.h" 11281 #include "confdefs.h"
12623
12624 #include <stdlib.h>
12625 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12626 #ifdef HAVE_INTTYPES_H 11282 #ifdef HAVE_INTTYPES_H
12627 #define __BIT_TYPES_DEFINED__ 11283 #define __BIT_TYPES_DEFINED__
12628 #include <inttypes.h> 11284 #include <inttypes.h>
12629 typedef uint8_t u_int8_t; 11285 typedef uint8_t u_int8_t;
12630 typedef uint16_t u_int16_t; 11286 typedef uint16_t u_int16_t;
12631 typedef uint32_t u_int32_t; 11287 typedef uint32_t u_int32_t;
12632 #ifdef WE_DONT_NEED_QUADS 11288 #ifdef WE_DONT_NEED_QUADS
12633 typedef uint64_t u_int64_t; 11289 typedef uint64_t u_int64_t;
12634 #endif 11290 #endif
12635 #endif 11291 #endif
12636 #endif 11292 #include <$path>
12637 #include <$header>
12638 11293
12639 int main() { 11294 int main() {
12640 11295
12641 ; return 0; } 11296 ; return 0; }
12642 EOF 11297 EOF
12643 if { (eval echo configure:12644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11298 if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12644 rm -rf conftest* 11299 rm -rf conftest*
12645 db_h_file="$header"; break 11300 db_h_path="$path"; break
12646 else 11301 else
12647 echo "configure: failed program was:" >&5 11302 echo "configure: failed program was:" >&5
12648 cat conftest.$ac_ext >&5 11303 cat conftest.$ac_ext >&5
12649 fi 11304 fi
12650 rm -f conftest* 11305 rm -f conftest*
12651 done 11306 done
12652 if test -z "$db_h_file" 11307 if test -z "$db_h_path"
12653 then echo "$ac_t""no" 1>&6; with_database_berkdb=no 11308 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12654 else echo "$ac_t""$db_h_file" 1>&6 11309 else echo "$ac_t""$db_h_path" 1>&6
12655 fi 11310 fi
12656 11311
12657 if test "$with_database_berkdb" != "no"; then 11312 if test "$with_database_berkdb" != "no"; then
12658 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11313 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12659 echo "configure:12660: checking for Berkeley DB version" >&5 11314 echo "configure:11315: checking for Berkeley DB version" >&5
12660 cat > conftest.$ac_ext <<EOF 11315 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure" 11316 #line 11317 "configure"
12662 #include "confdefs.h" 11317 #include "confdefs.h"
12663 #include <$db_h_file> 11318 #include <$db_h_path>
12664 #if DB_VERSION_MAJOR > 1 11319 #if DB_VERSION_MAJOR > 1
12665 yes 11320 yes
12666 #endif 11321 #endif
12667 11322
12668 EOF 11323 EOF
12675 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11330 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12676 fi 11331 fi
12677 rm -f conftest* 11332 rm -f conftest*
12678 11333
12679 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11334 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12680 echo "configure:12681: checking for $dbfunc" >&5 11335 echo "configure:11336: checking for $dbfunc" >&5
12681 11336
12682 cat > conftest.$ac_ext <<EOF 11337 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure" 11338 #line 11339 "configure"
12684 #include "confdefs.h" 11339 #include "confdefs.h"
12685 /* System header to define __stub macros and hopefully few prototypes, 11340 /* System header to define __stub macros and hopefully few prototypes,
12686 which can conflict with char $dbfunc(); below. */ 11341 which can conflict with char $dbfunc(); below. */
12687 #include <assert.h> 11342 #include <assert.h>
12688 /* Override any gcc2 internal prototype to avoid an error. */ 11343 /* Override any gcc2 internal prototype to avoid an error. */
12701 $dbfunc(); 11356 $dbfunc();
12702 #endif 11357 #endif
12703 11358
12704 ; return 0; } 11359 ; return 0; }
12705 EOF 11360 EOF
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11361 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12707 rm -rf conftest* 11362 rm -rf conftest*
12708 eval "ac_cv_func_$dbfunc=yes" 11363 eval "ac_cv_func_$dbfunc=yes"
12709 else 11364 else
12710 echo "configure: failed program was:" >&5 11365 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5 11366 cat conftest.$ac_ext >&5
12720 else 11375 else
12721 echo "$ac_t""no" 1>&6 11376 echo "$ac_t""no" 1>&6
12722 11377
12723 11378
12724 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11379 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12725 echo "configure:12726: checking for $dbfunc in -ldb" >&5 11380 echo "configure:11381: checking for $dbfunc in -ldb" >&5
12726 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11381 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12727 11382
12728 xe_check_libs=" -ldb " 11383 xe_check_libs=" -ldb "
12729 cat > conftest.$ac_ext <<EOF 11384 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure" 11385 #line 11386 "configure"
12731 #include "confdefs.h" 11386 #include "confdefs.h"
12732 /* Override any gcc2 internal prototype to avoid an error. */ 11387 /* Override any gcc2 internal prototype to avoid an error. */
12733 /* We use char because int might match the return type of a gcc2 11388 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */ 11389 builtin and then its argument prototype would still apply. */
12735 char $dbfunc(); 11390 char $dbfunc();
12736 11391
12737 int main() { 11392 int main() {
12738 $dbfunc() 11393 $dbfunc()
12739 ; return 0; } 11394 ; return 0; }
12740 EOF 11395 EOF
12741 if { (eval echo configure:12742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12742 rm -rf conftest* 11397 rm -rf conftest*
12743 eval "ac_cv_lib_$ac_lib_var=yes" 11398 eval "ac_cv_lib_$ac_lib_var=yes"
12744 else 11399 else
12745 echo "configure: failed program was:" >&5 11400 echo "configure: failed program was:" >&5
12746 cat conftest.$ac_ext >&5 11401 cat conftest.$ac_ext >&5
12762 11417
12763 fi 11418 fi
12764 11419
12765 if test "$with_database_berkdb" = "yes"; then 11420 if test "$with_database_berkdb" = "yes"; then
12766 { test "$extra_verbose" = "yes" && cat << EOF 11421 { test "$extra_verbose" = "yes" && cat << EOF
12767 Defining DB_H_FILE = "$db_h_file" 11422 Defining DB_H_PATH = "$db_h_path"
12768 EOF 11423 EOF
12769 cat >> confdefs.h <<EOF 11424 cat >> confdefs.h <<EOF
12770 #define DB_H_FILE "$db_h_file" 11425 #define DB_H_PATH "$db_h_path"
12771 EOF 11426 EOF
12772 } 11427 }
12773 11428
12774 { test "$extra_verbose" = "yes" && cat << \EOF 11429 { test "$extra_verbose" = "yes" && cat << \EOF
12775 Defining HAVE_BERKELEY_DB 11430 Defining HAVE_BERKELEY_DB
12782 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi 11437 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12783 else with_database_berkdb=no 11438 else with_database_berkdb=no
12784 fi 11439 fi
12785 fi 11440 fi
12786 11441
12787 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 11442 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
12788 != "no no no"; then 11443 != "no no no"; then
12789 { test "$extra_verbose" = "yes" && cat << \EOF 11444 { test "$extra_verbose" = "yes" && cat << \EOF
12790 Defining HAVE_DATABASE 11445 Defining HAVE_DATABASE
12791 EOF 11446 EOF
12792 cat >> confdefs.h <<\EOF 11447 cat >> confdefs.h <<\EOF
12800 fi 11455 fi
12801 11456
12802 if test "$with_socks" = "yes"; then 11457 if test "$with_socks" = "yes"; then
12803 11458
12804 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11459 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12805 echo "configure:12806: checking for SOCKSinit in -lsocks" >&5 11460 echo "configure:11461: checking for SOCKSinit in -lsocks" >&5
12806 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11461 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12807 11462
12808 xe_check_libs=" -lsocks " 11463 xe_check_libs=" -lsocks "
12809 cat > conftest.$ac_ext <<EOF 11464 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure" 11465 #line 11466 "configure"
12811 #include "confdefs.h" 11466 #include "confdefs.h"
12812 /* Override any gcc2 internal prototype to avoid an error. */ 11467 /* Override any gcc2 internal prototype to avoid an error. */
12813 /* We use char because int might match the return type of a gcc2 11468 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */ 11469 builtin and then its argument prototype would still apply. */
12815 char SOCKSinit(); 11470 char SOCKSinit();
12816 11471
12817 int main() { 11472 int main() {
12818 SOCKSinit() 11473 SOCKSinit()
12819 ; return 0; } 11474 ; return 0; }
12820 EOF 11475 EOF
12821 if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12822 rm -rf conftest* 11477 rm -rf conftest*
12823 eval "ac_cv_lib_$ac_lib_var=yes" 11478 eval "ac_cv_lib_$ac_lib_var=yes"
12824 else 11479 else
12825 echo "configure: failed program was:" >&5 11480 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5 11481 cat conftest.$ac_ext >&5
12869 } 11524 }
12870 11525
12871 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 11526 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12872 fi 11527 fi
12873 11528
12874 if test "$with_modules" != "no"; then 11529 for ac_hdr in dlfcn.h
12875 echo "checking for module support" 1>&6 11530 do
12876 echo "configure:12877: checking for module support" >&5 11531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12877 11532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12878 if test "$with_msw" = "yes"; then 11533 echo "configure:11534: checking for $ac_hdr" >&5
12879 have_dl=yes; 11534
12880 else 11535 cat > conftest.$ac_ext <<EOF
12881 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 11536 #line 11537 "configure"
12882 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 11537 #include "confdefs.h"
12883 echo "configure:12884: checking for dlfcn.h" >&5 11538 #include <$ac_hdr>
12884
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888 #include <dlfcn.h>
12889 EOF 11539 EOF
12890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12891 { (eval echo configure:12892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11541 { (eval echo configure:11542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11542 ac_err=`grep -v '^ *+' conftest.out`
12893 if test -z "$ac_err"; then 11543 if test -z "$ac_err"; then
12894 rm -rf conftest* 11544 rm -rf conftest*
12895 eval "ac_cv_header_$ac_safe=yes" 11545 eval "ac_cv_header_$ac_safe=yes"
12896 else 11546 else
12897 echo "$ac_err" >&5 11547 echo "$ac_err" >&5
12901 eval "ac_cv_header_$ac_safe=no" 11551 eval "ac_cv_header_$ac_safe=no"
12902 fi 11552 fi
12903 rm -f conftest* 11553 rm -f conftest*
12904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12905 echo "$ac_t""yes" 1>&6 11555 echo "$ac_t""yes" 1>&6
12906 11556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12907 11557 { test "$extra_verbose" = "yes" && cat << EOF
11558 Defining $ac_tr_hdr
11559 EOF
11560 cat >> confdefs.h <<EOF
11561 #define $ac_tr_hdr 1
11562 EOF
11563 }
11564 have_dlfcn=yes
11565 { test "$extra_verbose" = "yes" && cat << \EOF
11566 Defining HAVE_DLFCN_H
11567 EOF
11568 cat >> confdefs.h <<\EOF
11569 #define HAVE_DLFCN_H 1
11570 EOF
11571 }
11572
11573 else
11574 echo "$ac_t""no" 1>&6
11575 fi
11576 done
11577
11578 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
12908 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11579 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12909 echo "configure:12910: checking for dlopen in -ldl" >&5 11580 echo "configure:11581: checking for dlopen in -ldl" >&5
12910 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11581 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12911 11582
12912 xe_check_libs=" -ldl " 11583 xe_check_libs=" -ldl "
12913 cat > conftest.$ac_ext <<EOF 11584 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure" 11585 #line 11586 "configure"
12915 #include "confdefs.h" 11586 #include "confdefs.h"
12916 /* Override any gcc2 internal prototype to avoid an error. */ 11587 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2 11588 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */ 11589 builtin and then its argument prototype would still apply. */
12919 char dlopen(); 11590 char dlopen();
12920 11591
12921 int main() { 11592 int main() {
12922 dlopen() 11593 dlopen()
12923 ; return 0; } 11594 ; return 0; }
12924 EOF 11595 EOF
12925 if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11596 if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12926 rm -rf conftest* 11597 rm -rf conftest*
12927 eval "ac_cv_lib_$ac_lib_var=yes" 11598 eval "ac_cv_lib_$ac_lib_var=yes"
12928 else 11599 else
12929 echo "configure: failed program was:" >&5 11600 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5 11601 cat conftest.$ac_ext >&5
12934 rm -f conftest* 11605 rm -f conftest*
12935 xe_check_libs="" 11606 xe_check_libs=""
12936 11607
12937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12938 echo "$ac_t""yes" 1>&6 11609 echo "$ac_t""yes" 1>&6
12939 have_dl=yes libdl=dl 11610 { test "$extra_verbose" = "yes" && cat << \EOF
12940 else 11611 Defining HAVE_DLOPEN
12941 echo "$ac_t""no" 1>&6 11612 EOF
12942 11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_DLOPEN 1
11615 EOF
11616 }
11617 DLL_LIB=dl; with_shlib=yes
11618 else
11619 echo "$ac_t""no" 1>&6
11620 fi
11621
11622 }
11623 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11624 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11625 echo "configure:11626: checking for _dlopen in -lc" >&5
11626 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11627
11628 xe_check_libs=" -lc "
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 /* Override any gcc2 internal prototype to avoid an error. */
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635 char _dlopen();
11636
11637 int main() {
11638 _dlopen()
11639 ; return 0; }
11640 EOF
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11642 rm -rf conftest*
11643 eval "ac_cv_lib_$ac_lib_var=yes"
11644 else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -rf conftest*
11648 eval "ac_cv_lib_$ac_lib_var=no"
11649 fi
11650 rm -f conftest*
11651 xe_check_libs=""
11652
11653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11654 echo "$ac_t""yes" 1>&6
11655 { test "$extra_verbose" = "yes" && cat << \EOF
11656 Defining HAVE_DLOPEN
11657 EOF
11658 cat >> confdefs.h <<\EOF
11659 #define HAVE_DLOPEN 1
11660 EOF
11661 }
11662 DLL_LIB=; with_shlib=yes
11663 else
11664 echo "$ac_t""no" 1>&6
11665 fi
11666
11667 }
11668 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
12943 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11669 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12944 echo "configure:12945: checking for dlopen in -lc" >&5 11670 echo "configure:11671: checking for dlopen in -lc" >&5
12945 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11671 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12946 11672
12947 xe_check_libs=" -lc " 11673 xe_check_libs=" -lc "
12948 cat > conftest.$ac_ext <<EOF 11674 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure" 11675 #line 11676 "configure"
12950 #include "confdefs.h" 11676 #include "confdefs.h"
12951 /* Override any gcc2 internal prototype to avoid an error. */ 11677 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2 11678 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */ 11679 builtin and then its argument prototype would still apply. */
12954 char dlopen(); 11680 char dlopen();
12955 11681
12956 int main() { 11682 int main() {
12957 dlopen() 11683 dlopen()
12958 ; return 0; } 11684 ; return 0; }
12959 EOF 11685 EOF
12960 if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12961 rm -rf conftest* 11687 rm -rf conftest*
12962 eval "ac_cv_lib_$ac_lib_var=yes" 11688 eval "ac_cv_lib_$ac_lib_var=yes"
12963 else 11689 else
12964 echo "configure: failed program was:" >&5 11690 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5 11691 cat conftest.$ac_ext >&5
12969 rm -f conftest* 11695 rm -f conftest*
12970 xe_check_libs="" 11696 xe_check_libs=""
12971 11697
12972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12973 echo "$ac_t""yes" 1>&6 11699 echo "$ac_t""yes" 1>&6
12974 have_dl=yes 11700 { test "$extra_verbose" = "yes" && cat << \EOF
12975 else
12976 echo "$ac_t""no" 1>&6
12977 fi
12978
12979
12980 fi
12981
12982
12983 else
12984 echo "$ac_t""no" 1>&6
12985 fi
12986
12987 if test -n "$have_dl"; then
12988 { test "$extra_verbose" = "yes" && cat << \EOF
12989 Defining HAVE_DLOPEN 11701 Defining HAVE_DLOPEN
12990 EOF 11702 EOF
12991 cat >> confdefs.h <<\EOF 11703 cat >> confdefs.h <<\EOF
12992 #define HAVE_DLOPEN 1 11704 #define HAVE_DLOPEN 1
12993 EOF 11705 EOF
12994 } 11706 }
12995 11707 DLL_LIB=; with_shlib=yes
12996 else 11708 else
12997 11709 echo "$ac_t""no" 1>&6
11710 fi
11711
11712 }
11713 test -z "$with_shlib" && {
12998 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11714 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12999 echo "configure:13000: checking for shl_load in -ldld" >&5 11715 echo "configure:11716: checking for shl_load in -ldld" >&5
13000 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11716 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13001 11717
13002 xe_check_libs=" -ldld " 11718 xe_check_libs=" -ldld "
13003 cat > conftest.$ac_ext <<EOF 11719 cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure" 11720 #line 11721 "configure"
13005 #include "confdefs.h" 11721 #include "confdefs.h"
13006 /* Override any gcc2 internal prototype to avoid an error. */ 11722 /* Override any gcc2 internal prototype to avoid an error. */
13007 /* We use char because int might match the return type of a gcc2 11723 /* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */ 11724 builtin and then its argument prototype would still apply. */
13009 char shl_load(); 11725 char shl_load();
13010 11726
13011 int main() { 11727 int main() {
13012 shl_load() 11728 shl_load()
13013 ; return 0; } 11729 ; return 0; }
13014 EOF 11730 EOF
13015 if { (eval echo configure:13016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13016 rm -rf conftest* 11732 rm -rf conftest*
13017 eval "ac_cv_lib_$ac_lib_var=yes" 11733 eval "ac_cv_lib_$ac_lib_var=yes"
13018 else 11734 else
13019 echo "configure: failed program was:" >&5 11735 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5 11736 cat conftest.$ac_ext >&5
13024 rm -f conftest* 11740 rm -f conftest*
13025 xe_check_libs="" 11741 xe_check_libs=""
13026 11742
13027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13028 echo "$ac_t""yes" 1>&6 11744 echo "$ac_t""yes" 1>&6
13029 libdl=dld have_dl=yes; 11745 { test "$extra_verbose" = "yes" && cat << \EOF
13030 { test "$extra_verbose" = "yes" && cat << \EOF
13031 Defining HAVE_SHL_LOAD 11746 Defining HAVE_SHL_LOAD
13032 EOF 11747 EOF
13033 cat >> confdefs.h <<\EOF 11748 cat >> confdefs.h <<\EOF
13034 #define HAVE_SHL_LOAD 1 11749 #define HAVE_SHL_LOAD 1
13035 EOF 11750 EOF
13036 } 11751 }
13037 11752 DLL_LIB=dld; with_shlib=yes
13038 else 11753 else
13039 echo "$ac_t""no" 1>&6 11754 echo "$ac_t""no" 1>&6
13040 11755 fi
11756
11757 }
11758 test -z "$with_shlib" && {
13041 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11759 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13042 echo "configure:13043: checking for dld_init in -ldld" >&5 11760 echo "configure:11761: checking for dld_init in -ldld" >&5
13043 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11761 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13044 11762
13045 xe_check_libs=" -ldld " 11763 xe_check_libs=" -ldld "
13046 cat > conftest.$ac_ext <<EOF 11764 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure" 11765 #line 11766 "configure"
13048 #include "confdefs.h" 11766 #include "confdefs.h"
13049 /* Override any gcc2 internal prototype to avoid an error. */ 11767 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2 11768 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */ 11769 builtin and then its argument prototype would still apply. */
13052 char dld_init(); 11770 char dld_init();
13053 11771
13054 int main() { 11772 int main() {
13055 dld_init() 11773 dld_init()
13056 ; return 0; } 11774 ; return 0; }
13057 EOF 11775 EOF
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13059 rm -rf conftest* 11777 rm -rf conftest*
13060 eval "ac_cv_lib_$ac_lib_var=yes" 11778 eval "ac_cv_lib_$ac_lib_var=yes"
13061 else 11779 else
13062 echo "configure: failed program was:" >&5 11780 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5 11781 cat conftest.$ac_ext >&5
13067 rm -f conftest* 11785 rm -f conftest*
13068 xe_check_libs="" 11786 xe_check_libs=""
13069 11787
13070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13071 echo "$ac_t""yes" 1>&6 11789 echo "$ac_t""yes" 1>&6
13072 libdl=dld have_dl=yes; 11790 { test "$extra_verbose" = "yes" && cat << \EOF
13073 { test "$extra_verbose" = "yes" && cat << \EOF
13074 Defining HAVE_DLD_INIT 11791 Defining HAVE_DLD_INIT
13075 EOF 11792 EOF
13076 cat >> confdefs.h <<\EOF 11793 cat >> confdefs.h <<\EOF
13077 #define HAVE_DLD_INIT 1 11794 #define HAVE_DLD_INIT 1
13078 EOF 11795 EOF
13079 } 11796 }
13080 11797 DLL_LIB=dld; with_shlib=yes
13081 else 11798 else
13082 echo "$ac_t""no" 1>&6 11799 echo "$ac_t""no" 1>&6
13083 fi 11800 fi
13084 11801
13085 11802 }
13086 fi 11803 if test "$with_shlib" = "yes"; then
13087 11804
13088
13089 fi
13090 fi
13091 if test -n "$have_dl"; then
13092
13093 dll_ld= 11805 dll_ld=
13094 dll_ldflags= 11806 dll_ldflags=
13095 dll_cflags= 11807 dll_cflags=
13096 dll_post= 11808 dll_post=
13097 dll_ldo="-o" 11809 dll_ldo="-o"
13098 ld_dynamic_link_flags= 11810 ld_dynamic_link_flags=
13099 xehost=$canonical 11811 xehost=$canonical
13100 xealias=$internal_configuration 11812 xealias=$internal_configuration
13101 11813
13102 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 11814 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13103 echo "configure:13104: checking how to build dynamic libraries for ${xehost}" >&5 11815 echo "configure:11816: checking how to build dynamic libraries for ${xehost}" >&5
13104 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 11816 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13105 case "$xehost" in 11817 case "$xehost" in
13106 *-*-linux-gnu*) ;; 11818 *-*-linux-gnu*) ;;
13107 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 11819 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13108 esac 11820 esac
13126 # Now see if the compiler is really GCC. 11838 # Now see if the compiler is really GCC.
13127 if test "$GCC" = "yes"; then 11839 if test "$GCC" = "yes"; then
13128 XEGCC=yes 11840 XEGCC=yes
13129 else 11841 else
13130 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 11842 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13131 echo "configure:13132: checking checking whether we are using GNU C" >&5 11843 echo "configure:11844: checking checking whether we are using GNU C" >&5
13132 cat > conftest.$ac_ext <<EOF 11844 cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure" 11845 #line 11846 "configure"
13134 #include "confdefs.h" 11846 #include "confdefs.h"
13135 11847
13136 #ifdef __GNUC__ 11848 #ifdef __GNUC__
13137 yes; 11849 yes;
13138 #endif 11850 #endif
13150 11862
13151 echo "$ac_t""${XEGCC}" 1>&6 11863 echo "$ac_t""${XEGCC}" 1>&6
13152 fi 11864 fi
13153 11865
13154 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 11866 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13155 echo "configure:13156: checking how to produce PIC code" >&5 11867 echo "configure:11868: checking how to produce PIC code" >&5
13156 wl= 11868 wl=
13157 11869
13158 can_build_shared=yes 11870 can_build_shared=yes
13159 if test "$XEGCC" = yes; then 11871 if test "$XEGCC" = yes; then
13160 wl='-Wl,' 11872 wl='-Wl,'
13162 case "$xehost_os" in 11874 case "$xehost_os" in
13163 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*) 11875 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
13164 # PIC is the default for these OSes. 11876 # PIC is the default for these OSes.
13165 ;; 11877 ;;
13166 11878
13167 aix3* | aix4* | os2*) 11879 os2*)
13168 # We can build DLLs from non-PIC. 11880 # We can build DLLs from non-PIC.
13169 ;; 11881 ;;
13170 amigaos*) 11882 amigaos*)
13171 # FIXME: we need at least 68020 code to build shared libraries, but 11883 # FIXME: we need at least 68020 code to build shared libraries, but
13172 # adding the `-m68020' flag to GCC prevents building anything better, 11884 # adding the `-m68020' flag to GCC prevents building anything better,
13173 # like `-m68040'. 11885 # like `-m68040'.
13174 dll_cflags='-m68020 -resident32 -malways-restore-a4' 11886 dll_cflags='-m68020 -resident32 -malways-restore-a4'
13175 ;; 11887 ;;
13176 *cygwin* | *mingw* )
13177 # PIC is the default
13178 ;;
13179 *) 11888 *)
13180 dll_cflags='-fPIC' 11889 dll_cflags='-fPIC'
13181 ;; 11890 ;;
13182 esac 11891 esac
13183 else 11892 else
13184 # PORTME Check for PIC flags for the system compiler. 11893 # PORTME Check for PIC flags for the system compiler.
13185 case "$xehost_os" in 11894 case "$xehost_os" in
13186 hpux9* | hpux1[0-9]*) 11895 hpux9* | hpux10*)
13187 # Is there a better link_static_flag that works with the bundled CC? 11896 # Is there a better link_static_flag that works with the bundled CC?
13188 wl='-Wl,' 11897 wl='-Wl,'
13189 dll_cflags='+Z' 11898 dll_cflags='+Z'
13190 ;; 11899 ;;
13191 11900
13246 if test -n "$dll_cflags"; then 11955 if test -n "$dll_cflags"; then
13247 echo "$ac_t""${dll_cflags}" 1>&6 11956 echo "$ac_t""${dll_cflags}" 1>&6
13248 11957
13249 # Check to make sure the dll_cflags actually works. 11958 # Check to make sure the dll_cflags actually works.
13250 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 11959 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13251 echo "configure:13252: checking if PIC flag ${dll_cflags} really works" >&5 11960 echo "configure:11961: checking if PIC flag ${dll_cflags} really works" >&5
13252 save_CFLAGS="$CFLAGS" 11961 save_CFLAGS="$CFLAGS"
13253 CFLAGS="$CFLAGS $dll_cflags -DPIC" 11962 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13254 cat > conftest.$ac_ext <<EOF 11963 cat > conftest.$ac_ext <<EOF
13255 #line 13256 "configure" 11964 #line 11965 "configure"
13256 #include "confdefs.h" 11965 #include "confdefs.h"
13257 11966
13258 int main() { 11967 int main() {
13259 int x=0; 11968 int x=0;
13260 ; return 0; } 11969 ; return 0; }
13261 EOF 11970 EOF
13262 if { (eval echo configure:13263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11971 if { (eval echo configure:11972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13263 rm -rf conftest* 11972 rm -rf conftest*
13264 11973
13265 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 11974 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13266 # reports no error. So, we need to grep stderr for (Bundled). 11975 # reports no error. So, we need to grep stderr for (Bundled).
13267 if grep '(Bundled)' config.log >/dev/null; then 11976 if grep '(Bundled)' config.log >/dev/null; then
13288 if test "$can_build_shared" = "yes"; then 11997 if test "$can_build_shared" = "yes"; then
13289 cc_produces_so=no 11998 cc_produces_so=no
13290 xldf= 11999 xldf=
13291 xcldf= 12000 xcldf=
13292 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 12001 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13293 echo "configure:13294: checking if C compiler can produce shared libraries" >&5 12002 echo "configure:12003: checking if C compiler can produce shared libraries" >&5
13294 if test "$XEGCC" = yes; then 12003 if test "$XEGCC" = yes; then
13295 xcldf="-shared" 12004 xcldf="-shared"
13296 xldf="-shared" 12005 xldf="-shared"
13297 else # Not using GCC 12006 else # Not using GCC
13298 case "$xehost_os" in 12007 case "$xehost_os" in
13339 LDFLAGS="$xcldf $LDFLAGS" 12048 LDFLAGS="$xcldf $LDFLAGS"
13340 LIBS= 12049 LIBS=
13341 xe_libs= 12050 xe_libs=
13342 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 12051 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13343 cat > conftest.$ac_ext <<EOF 12052 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure" 12053 #line 12054 "configure"
13345 #include "confdefs.h" 12054 #include "confdefs.h"
13346 12055
13347 int main() { 12056 int main() {
13348 int x=0; 12057 int x=0;
13349 ; return 0; } 12058 ; return 0; }
13350 EOF 12059 EOF
13351 if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13352 rm -rf conftest* 12061 rm -rf conftest*
13353 cc_produces_so=yes 12062 cc_produces_so=yes
13354 else 12063 else
13355 echo "configure: failed program was:" >&5 12064 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5 12065 cat conftest.$ac_ext >&5
13371 if test -z "$LTLD"; then 12080 if test -z "$LTLD"; then
13372 ac_prog=ld 12081 ac_prog=ld
13373 if test "$XEGCC" = yes; then 12082 if test "$XEGCC" = yes; then
13374 # Check if gcc -print-prog-name=ld gives a path. 12083 # Check if gcc -print-prog-name=ld gives a path.
13375 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 12084 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13376 echo "configure:13377: checking for ld used by GCC" >&5 12085 echo "configure:12086: checking for ld used by GCC" >&5
13377 ac_prog=`($CC -print-prog-name=ld) 2>&5` 12086 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13378 case "$ac_prog" in 12087 case "$ac_prog" in
13379 # Accept absolute paths. 12088 # Accept absolute paths.
13380 /*) 12089 /*)
13381 if test -z "$LTLD"; then 12090 if test -z "$LTLD"; then
13396 with_gnu_ld=unknown 12105 with_gnu_ld=unknown
13397 ;; 12106 ;;
13398 esac 12107 esac
13399 else 12108 else
13400 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 12109 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13401 echo "configure:13402: checking for GNU ld" >&5 12110 echo "configure:12111: checking for GNU ld" >&5
13402 fi 12111 fi
13403 12112
13404 if test -z "$LTLD"; then 12113 if test -z "$LTLD"; then
13405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13406 for ac_dir in $PATH; do 12115 for ac_dir in $PATH; do
13434 12143
13435 ld_dynamic_link_flags= 12144 ld_dynamic_link_flags=
13436 12145
13437 # Check to see if it really is or isn't GNU ld. 12146 # Check to see if it really is or isn't GNU ld.
13438 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 12147 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13439 echo "configure:13440: checking if the linker is GNU ld" >&5 12148 echo "configure:12149: checking if the linker is GNU ld" >&5
13440 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13441 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 12150 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13442 xe_gnu_ld=yes 12151 xe_gnu_ld=yes
13443 else 12152 else
13444 xe_gnu_ld=no 12153 xe_gnu_ld=no
13457 12166
13458 if test "$cc_produces_so" = "yes"; then 12167 if test "$cc_produces_so" = "yes"; then
13459 dll_ld=$CC 12168 dll_ld=$CC
13460 dll_ldflags=$xcldf 12169 dll_ldflags=$xcldf
13461 can_build_shared=yes 12170 can_build_shared=yes
13462 ld_shlibs=yes
13463 else 12171 else
13464 # OK - only NOW do we futz about with ld. 12172 # OK - only NOW do we futz about with ld.
13465 # See if the linker supports building shared libraries. 12173 # See if the linker supports building shared libraries.
13466 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 12174 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13467 echo "configure:13468: checking whether the linker supports shared libraries" >&5 12175 echo "configure:12176: checking whether the linker supports shared libraries" >&5
13468 dll_ld=$CC 12176 dll_ld=$CC
13469 dll_ldflags=$LDFLAGS 12177 dll_ldflags=$LDFLAGS
13470 ld_shlibs=yes 12178 ld_shlibs=yes
13471 can_build_shared=yes 12179 can_build_shared=yes
13472 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 12180 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13628 osf3* | osf4*) 12336 osf3* | osf4*)
13629 ld_dynamic_link_flags= 12337 ld_dynamic_link_flags=
13630 ;; 12338 ;;
13631 12339
13632 solaris2* | solaris7*) 12340 solaris2* | solaris7*)
13633 ld_dynamic_link_flags= 12341 ld_dynamic_link_flags="${wl}-Bdynamic"
13634 ;; 12342 ;;
13635 12343
13636 sco3.2v5* | unixware* | sysv5* | sysv4*) 12344 sco3.2v5* | unixware* | sysv5* | sysv4*)
13637 ld_dynamic_link_flags="${wl}-Bexport" 12345 ld_dynamic_link_flags="${wl}-Bexport"
13638 ;; 12346 ;;
13658 12366
13659 12367
13660 12368
13661 12369
13662 12370
13663 fi
13664
13665 if test "$can_build_shared" = "yes"; then 12371 if test "$can_build_shared" = "yes"; then
13666 { test "$extra_verbose" = "yes" && cat << \EOF 12372 { test "$extra_verbose" = "yes" && cat << \EOF
13667 Defining HAVE_SHLIB 12373 Defining HAVE_SHLIB
13668 EOF 12374 EOF
13669 cat >> confdefs.h <<\EOF 12375 cat >> confdefs.h <<\EOF
13670 #define HAVE_SHLIB 1 12376 #define HAVE_SHLIB 1
13671 EOF 12377 EOF
13672 } 12378 }
13673 12379
13674 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then 12380 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
13675 echo " xemacs will be linked with \"sysdll.o emodules.o\"" 12381 echo " xemacs will be linked with \"sysdll.o\""
12382 fi
12383 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12384 echo " xemacs will be linked with \"emodules.o\""
13676 fi 12385 fi
13677 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 12386 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13678 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 12387 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
13679 for ac_func in dlerror _dlerror 12388 for ac_func in dlerror _dlerror
13680 do 12389 do
13681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13682 echo "configure:13683: checking for $ac_func" >&5 12391 echo "configure:12392: checking for $ac_func" >&5
13683 12392
13684 cat > conftest.$ac_ext <<EOF 12393 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure" 12394 #line 12395 "configure"
13686 #include "confdefs.h" 12395 #include "confdefs.h"
13687 /* System header to define __stub macros and hopefully few prototypes, 12396 /* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func(); below. */ 12397 which can conflict with char $ac_func(); below. */
13689 #include <assert.h> 12398 #include <assert.h>
13690 /* Override any gcc2 internal prototype to avoid an error. */ 12399 /* Override any gcc2 internal prototype to avoid an error. */
13703 $ac_func(); 12412 $ac_func();
13704 #endif 12413 #endif
13705 12414
13706 ; return 0; } 12415 ; return 0; }
13707 EOF 12416 EOF
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13709 rm -rf conftest* 12418 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=yes" 12419 eval "ac_cv_func_$ac_func=yes"
13711 else 12420 else
13712 echo "configure: failed program was:" >&5 12421 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5 12422 cat conftest.$ac_ext >&5
13730 else 12439 else
13731 echo "$ac_t""no" 1>&6 12440 echo "$ac_t""no" 1>&6
13732 fi 12441 fi
13733 done 12442 done
13734 12443
13735 with_modules=yes
13736 else 12444 else
13737 if test "$with_modules" = "yes"; then 12445 echo "configure: warning: disabling shared library support" 1>&2
13738 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; } 12446 with_shlib=no
13739 else
13740 echo "configure: warning: "Module support cannot be provided."" 1>&2
13741 fi
13742 with_modules=no
13743 fi 12447 fi
13744 fi 12448 fi
13745 12449
13746 cat > conftest.$ac_ext <<EOF 12450 cat > conftest.$ac_ext <<EOF
13747 #line 13748 "configure" 12451 #line 12452 "configure"
13748 #include "confdefs.h" 12452 #include "confdefs.h"
13749 int main(int c,char *v[]){return 0;} 12453 int main(int c,char *v[]){return 0;}
13750 EOF 12454 EOF
13751 if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12455 if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13752 then 12456 then
13753 : 12457 :
13754 else 12458 else
13755 conftest_rc="$?" 12459 conftest_rc="$?"
13756 echo "configure: failed program was:" >&5 12460 echo "configure: failed program was:" >&5
13887 echo "" 12591 echo ""
13888 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done 12592 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
13889 echo "" 12593 echo ""
13890 fi 12594 fi
13891 12595
13892 12596 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
13893 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then 12597 echo "creating src/gdbinit"; echo ""
13894 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit" 12598 echo "source $srcdir/src/gdbinit" > src/gdbinit
13895 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13896 fi
13897
13898 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13899 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13900 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13901 fi
13902
13903 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13904 test "$extra_verbose" = "yes" && echo "creating TAGS"
13905 echo "
13906 $srcdir/TAGS,include" > "TAGS"
13907 fi 12599 fi
13908 12600
13909 if test "$__SUNPRO_C" = "yes"; then 12601 if test "$__SUNPRO_C" = "yes"; then
13910 test "$extra_verbose" = "yes" && echo "creating .sbinit" 12602 echo "creating .sbinit"; echo ""
13911 ( echo "# For use with Sun WorkShop's Source browser." 12603 ( echo "# For use with Sun WorkShop's Source browser."
13912 echo "# See sbquery(1) and sbinit(4) for more information" 12604 echo "# See sbquery(1) and sbinit(4) for more information"
13913 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 12605 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13914 ) > .sbinit 12606 ) > .sbinit
13915 fi 12607 fi
13916 12608
13917 rm -f core 12609 rm -f core
13918
13919
13920
13921 12610
13922 12611
13923 12612
13924 12613
13925 12614
13942 esac 12631 esac
13943 done 12632 done
13944 12633
13945 12634
13946 12635
13947
13948 EXEC_PREFIX=$exec_prefix 12636 EXEC_PREFIX=$exec_prefix
13949 while true; do 12637 while true; do
13950 case "$EXEC_PREFIX" in 12638 case "$EXEC_PREFIX" in
13951 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; 12639 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13952 *) break ;; 12640 *) break ;;
14042 done 12730 done
14043 12731
14044 12732
14045 12733
14046 12734
14047 DOCDIR=$docdir 12735 LOCKDIR=$lockdir
14048 while true; do 12736 while true; do
14049 case "$DOCDIR" in 12737 case "$LOCKDIR" in
14050 *\$* ) eval "DOCDIR=$DOCDIR" ;; 12738 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
14051 *) break ;; 12739 *) break ;;
14052 esac 12740 esac
14053 done 12741 done
14054 12742
14055 12743
14091 12779
14092 12780
14093 : ${XEMACS_CC:=$CC} 12781 : ${XEMACS_CC:=$CC}
14094 12782
14095 12783
14096 if test "$with_prefix" = "yes"; then
14097 { test "$extra_verbose" = "yes" && cat << \EOF
14098 Defining PREFIX_USER_DEFINED
14099 EOF
14100 cat >> confdefs.h <<\EOF
14101 #define PREFIX_USER_DEFINED 1
14102 EOF
14103 }
14104
14105 fi
14106 12784
14107 if test "$with_site_lisp" = "no"; then 12785 if test "$with_site_lisp" = "no"; then
14108 { test "$extra_verbose" = "yes" && cat << \EOF 12786 { test "$extra_verbose" = "yes" && cat << \EOF
14109 Defining INHIBIT_SITE_LISP 12787 Defining INHIBIT_SITE_LISP
14110 EOF 12788 EOF
14129 T="" 12807 T=""
14130 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 12808 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14131 ac_configure_args="$T" 12809 ac_configure_args="$T"
14132 12810
14133 { test "$extra_verbose" = "yes" && cat << EOF 12811 { test "$extra_verbose" = "yes" && cat << EOF
14134 Defining EMACS_CONFIGURATION = "$configuration" 12812 Defining EMACS_CONFIGURATION = "$canonical"
14135 EOF 12813 EOF
14136 cat >> confdefs.h <<EOF 12814 cat >> confdefs.h <<EOF
14137 #define EMACS_CONFIGURATION "$configuration" 12815 #define EMACS_CONFIGURATION "$canonical"
14138 EOF 12816 EOF
14139 } 12817 }
14140 12818
14141 { test "$extra_verbose" = "yes" && cat << EOF 12819 { test "$extra_verbose" = "yes" && cat << EOF
14142 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args" 12820 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
14262 cat >> confdefs.h <<\EOF 12940 cat >> confdefs.h <<\EOF
14263 #define EXTERNAL_WIDGET 1 12941 #define EXTERNAL_WIDGET 1
14264 EOF 12942 EOF
14265 } 12943 }
14266 12944
14267 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 12945 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14268 Defining QUICK_BUILD 12946 Defining NO_DOC_FILE
14269 EOF 12947 EOF
14270 cat >> confdefs.h <<\EOF 12948 cat >> confdefs.h <<\EOF
14271 #define QUICK_BUILD 1 12949 #define NO_DOC_FILE 1
14272 EOF 12950 EOF
14273 } 12951 }
14274 12952
14275 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 12953 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14276 Defining PURIFY 12954 Defining PURIFY
14315 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 12993 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14316 Defining USE_UNION_TYPE 12994 Defining USE_UNION_TYPE
14317 EOF 12995 EOF
14318 cat >> confdefs.h <<\EOF 12996 cat >> confdefs.h <<\EOF
14319 #define USE_UNION_TYPE 1 12997 #define USE_UNION_TYPE 1
14320 EOF
14321 }
14322
14323 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14324 Defining PDUMP
14325 EOF
14326 cat >> confdefs.h <<\EOF
14327 #define PDUMP 1
14328 EOF 12998 EOF
14329 } 12999 }
14330 13000
14331 13001
14332 13002
14337 fi 13007 fi
14338 echo "" 13008 echo ""
14339 echo "$0 $quoted_arguments" 13009 echo "$0 $quoted_arguments"
14340 ) > Installation 13010 ) > Installation
14341 13011
14342 if test ! -z ${emacs_beta_version} ; then 13012 xemacs_betaname=""
14343 if test -z "${emacs_is_beta}" ; then 13013 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
14344 xemacs_betaname=".${emacs_beta_version}"
14345 else
14346 xemacs_betaname="-b${emacs_beta_version}"
14347 fi
14348 else
14349 xemacs_betaname=""
14350 fi
14351 13014
14352 ( 13015 (
14353 echo " 13016 echo "
14354 13017
14355 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. 13018 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14356 " 13019
14357 echo " 13020 Where should the build process find the source code? $srcdir
14358 Compilation / Installation:" 13021 What installation prefix should install use? $prefix
14359 echo " Source code location: $srcdir" 13022 What operating system and machine description files should XEmacs use?
14360 echo " Installation prefix: $prefix" 13023 \`$opsysfile' and \`$machfile'
13024 What compiler should XEmacs be built with? $CC $CFLAGS
13025 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13026 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13027 What window system should XEmacs use? ${window_system}"
13028 if test "$with_x11" = "yes"; then
13029 echo " Where do we find X Windows header files? $x_includes"
13030 echo " Where do we find X Windows libraries? $x_libraries"
13031 fi
14361 if test -n "$site_includes"; then 13032 if test -n "$site_includes"; then
14362 echo " Additional header files: $site_includes" 13033 echo " Additional header files: $site_includes"
14363 fi 13034 fi
14364 if test -n "$site_libraries"; then 13035 if test -n "$site_libraries"; then
14365 echo " Additional libraries: $site_libraries" 13036 echo " Additional libraries: $site_libraries"
14366 fi 13037 fi
14367 if test -n "$site_prefixes"; then 13038 if test -n "$site_prefixes"; then
14368 echo " Additional prefixes: $site_prefixes" 13039 echo " Additional prefixes: $site_prefixes"
14369 fi 13040 fi
14370 if test -n "$runpath"; then 13041 if test -n "$runpath"; then
14371 echo " Runtime library search path: $runpath" 13042 echo " Runtime library search path: $runpath"
14372 fi 13043 fi
14373 echo " Operating system description file: \`$opsysfile'" 13044 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14374 echo " Machine description file: \`$machfile'" 13045 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14375 echo " Compiler: $CC $CFLAGS" 13046 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
14376 echo " Relocating allocator for buffers: $rel_alloc" 13047 if test "$with_xmu" != yes -a "$with_x11" = yes; then
14377 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" 13048 echo " No Xmu; substituting equivalent routines."
14378 13049 fi
14379 echo " 13050
14380 Window System:"
14381 if test "$with_msw" = "yes"; then
14382 echo " Compiling in support for the Microsoft window system."
14383 fi
14384 if test "$with_x11" = "yes"; then
14385 echo " Compiling in support for the X window system:"
14386 echo " - X Windows headers location: $x_includes"
14387 echo " - X Windows libraries location: $x_libraries"
14388 if test "$with_xauth" != yes; then
14389 echo " - Xau (X authority) not available."
14390 fi
14391 if test "$with_xmu" != yes; then
14392 echo " - Xmu library not available; substituting equivalent routines."
14393 fi
14394 if test "$with_wmcommand" != no; then
14395 echo " - Handling WM_COMMAND properly."
14396 fi
14397 fi
14398 if test "$need_athena" = "yes"; then
14399 echo " Compiling in support for the Athena widget set:"
14400 echo " - Athena headers location: $athena_h_path"
14401 echo " - Athena library to link: $athena_lib"
14402 fi
14403 case "$with_menubars" in
14404 lucid ) echo " Using Lucid menubars." ;;
14405 motif ) echo " Using Motif menubars."
14406 echo " *WARNING* The Motif menubar implementation is currently buggy."
14407 echo " We recommend using the Lucid menubar instead."
14408 echo " Re-run configure with --with-menubars='lucid'." ;;
14409 msw ) echo " Using MS-Windows menubars." ;;
14410 esac
14411 case "$with_scrollbars" in
14412 lucid ) echo " Using Lucid scrollbars." ;;
14413 motif ) echo " Using Motif scrollbars." ;;
14414 athena ) echo " Using Athena scrollbars." ;;
14415 msw ) echo " Using MS-Windows scrollbars." ;;
14416 esac
14417 case "$with_dialogs" in
14418 motif ) echo " Using Motif dialog boxes."
14419 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14420 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14421 echo " We recommend using the Athena dialog boxes instead."
14422 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14423 echo " Read the PROBLEMS file for more information."
14424 fi; fi ;;
14425 athena ) echo " Using Athena dialog boxes." ;;
14426 msw ) echo " Using MS-Windows dialog boxes." ;;
14427 esac
14428 case "$with_widgets" in
14429 motif ) echo " Using Motif native widgets." ;;
14430 athena ) echo " Using Athena native widgets." ;;
14431 msw ) echo " Using MS-Windows native widgets." ;;
14432 esac
14433 if test "$with_dragndrop" = yes; then
14434 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
14435 echo " - Drag'n'Drop prototype: $dragndrop_proto."
14436 fi
14437
14438 echo "
14439 TTY:"
14440 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14441 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14442
14443 echo "
14444 Images:"
14445 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
14446 if test "$with_xpm" = yes; then 13051 if test "$with_xpm" = yes; then
14447 echo " Compiling in support for XPM images." 13052 echo " Compiling in support for XPM images."
14448 elif test "$with_x11" = yes; then 13053 elif test "$with_x11" = yes; then
14449 echo " WARNING: -----------------------------------------------------------" 13054 echo " --------------------------------------------------------------------"
14450 echo " WARNING: Compiling without XPM image support." 13055 echo " WARNING: Compiling without XPM support."
14451 if test "$xpm_problem" != ""; then 13056 if test "$xpm_problem" != ""; then
14452 echo " Reason: $xpm_problem" 13057 echo " Reason: $xpm_problem"
14453 fi 13058 fi
14454 echo " WARNING: You should strongly consider installing XPM." 13059 echo " WARNING: You should strongly consider installing XPM."
14455 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." 13060 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14456 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" 13061 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14457 echo " WARNING: -----------------------------------------------------------" 13062 echo " --------------------------------------------------------------------"
14458 fi 13063 fi
14459 if test "$with_png" = yes; then 13064 if test "$with_png" = yes; then
14460 echo " Compiling in support for PNG images." 13065 echo " Compiling in support for PNG image handling."
14461 elif test "$window_system" != "none"; then 13066 elif test "$window_system" != "none"; then
14462 echo " WARNING: -----------------------------------------------------------" 13067 echo " --------------------------------------------------------------------"
14463 echo " WARNING: Compiling without PNG image support." 13068 echo " WARNING: Compiling without PNG image support."
14464 if test "$png_problem" != ""; then 13069 if test "$png_problem" != ""; then
14465 echo " Reason: $png_problem" 13070 echo " Reason: $png_problem"
14466 fi 13071 fi
14467 echo " WARNING: You should strongly consider installing the PNG libraries." 13072 echo " WARNING: You should strongly consider installing the PNG libraries."
14468 echo " WARNING: Otherwise certain images and glyphs may not display." 13073 echo " WARNING: Otherwise certain images and glyphs may not display."
14469 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" 13074 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14470 echo " WARNING: -----------------------------------------------------------" 13075 echo " --------------------------------------------------------------------"
14471 fi 13076 fi
14472 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images." 13077 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
14473 test "$with_tiff" = yes && echo " Compiling in support for TIFF images." 13078 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13079 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
14474 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 13080 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14475 13081 case "$with_sound" in
14476 echo " 13082 nas ) echo " Compiling in network sound (NAS) support." ;;
14477 Sound:" 13083 native ) echo " Compiling in native sound support." ;;
14478 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)." 13084 both ) echo " Compiling in both network and native sound support." ;;
14479 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)." 13085 esac
14480 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." 13086 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
14481 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." 13087
14482 13088 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
14483 echo "
14484 Databases:"
14485 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
14486 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 13089 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14487 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." 13090 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
14488 test "$with_ldap" = yes && echo " Compiling in support for LDAP." 13091
14489 if test "$with_postgresql" = yes; then 13092 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
14490 echo " Compiling in support for PostgreSQL." 13093 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
14491 echo " - Using PostgreSQL header file: $libpq_fe_h_file" 13094 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
14492 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." 13095
14493 fi 13096 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14494 13097 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14495 echo " 13098
14496 Internationalization:" 13099 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
14497 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." 13100 test "$with_file_coding" = yes && echo " Compiling in File coding support."
14498 test "$with_file_coding" = yes && echo " Compiling in support for file coding." 13101 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
14499 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." 13102 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
14500 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." 13103 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
14501 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." 13104 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
14502 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." 13105 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14503 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14504 if test "$with_wnn" = yes; then 13106 if test "$with_wnn" = yes; then
14505 echo " Compiling in support for the WNN input method on Mule." 13107 echo " Compiling in support for the WNN input method on Mule."
14506 test "$with_wnn6" = yes && echo " - Using WNN version 6." 13108 test "$with_wnn6" = yes && echo " Using WNN version 6."
14507 fi 13109 fi
14508 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)." 13110 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
14509 13111
14510 echo " 13112 test "$with_cde" = yes && echo " Compiling in support for CDE."
14511 Mail:"
14512 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
14513 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
14514 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
14515 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
14516
14517 echo "
14518 Other Features:"
14519 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 13113 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13114 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13115 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
14520 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 13116 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14521 test "$with_socks" = yes && echo " Compiling in support for SOCKS." 13117 test "$with_session" != no && echo " Compiling in support for proper session-management."
14522 test "$with_dnet" = yes && echo " Compiling in support for DNET." 13118 case "$with_menubars" in
14523 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." 13119 lucid ) echo " Using Lucid menubars." ;;
14524 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 13120 motif ) echo " Using Motif menubars."
14525 test "$pdump" = yes && echo " Using the new portable dumper." 13121 echo " *WARNING* The Motif menubar implementation is currently buggy."
14526 test "$debug" = yes && echo " Compiling in support for extra debugging code." 13122 echo " We recommend using the Lucid menubar instead."
14527 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." 13123 echo " Re-run configure with --with-menubars='lucid'." ;;
14528 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \ 13124 esac
14529 != "no no no no no no"; then 13125 case "$with_scrollbars" in
13126 lucid ) echo " Using Lucid scrollbars." ;;
13127 motif ) echo " Using Motif scrollbars." ;;
13128 athena ) echo " Using Athena scrollbars." ;;
13129 athena3d ) echo " Using Athena-3d scrollbars." ;;
13130 esac
13131 case "$with_dialogs" in
13132 motif )
13133 echo " Using Motif dialog boxes."
13134 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13135 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13136 echo " We recommend using the Athena dialog boxes instead."
13137 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13138 echo " Read the PROBLEMS file for more information."
13139 fi; fi
13140 ;;
13141 athena ) echo " Using Athena dialog boxes." ;;
13142 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13143 esac
13144 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
13145 test "$with_clash_detection" = yes && \
13146 echo " Clash detection will use \"$lockdir\" for locking files."
13147 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13148 test "$with_pop" = yes && echo " Using POP for mail access."
13149 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13150 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13151 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13152 test "$debug" = yes && echo " Compiling in extra code for debugging."
13153 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13154 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13155 != "no no no no no"; then
14530 echo " WARNING: ---------------------------------------------------------" 13156 echo " WARNING: ---------------------------------------------------------"
14531 echo " WARNING: Compiling in support for runtime error checking." 13157 echo " WARNING: Compiling in support for runtime error checking."
14532 echo " WARNING: XEmacs will run noticeably more slowly as a result." 13158 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14533 echo " WARNING: Error checking is on by default for XEmacs beta releases." 13159 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14534 echo " WARNING: ---------------------------------------------------------" 13160 echo " WARNING: ---------------------------------------------------------"
14546 13172
14547 13173
14548 for file in $internal_makefile_list; do 13174 for file in $internal_makefile_list; do
14549 test "$file" = src/Makefile.in && \ 13175 test "$file" = src/Makefile.in && \
14550 file="src/Makefile.in:src/Makefile.in.in:src/depend" 13176 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14551 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi 13177 ac_output_files="${ac_output_files+$ac_output_files }$file"
14552 done 13178 done
14553 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 13179 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14554 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi 13180 if test "$with_shlib" = "yes"; then
13181 ac_output_files="$ac_output_files lib-src/ellcc.h"
13182 fi
14555 13183
14556 trap '' 1 2 15 13184 trap '' 1 2 15
14557 13185
14558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 13186 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14559 13187
14595 case "\$ac_option" in 13223 case "\$ac_option" in
14596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14597 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 13225 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14598 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 13226 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14599 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 13227 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14600 echo "$CONFIG_STATUS generated by autoconf version 2.13" 13228 echo "$CONFIG_STATUS generated by autoconf version 2.12"
14601 exit 0 ;; 13229 exit 0 ;;
14602 -help | --help | --hel | --he | --h) 13230 -help | --help | --hel | --he | --h)
14603 echo "\$ac_cs_usage"; exit 0 ;; 13231 echo "\$ac_cs_usage"; exit 0 ;;
14604 *) echo "\$ac_cs_usage"; exit 1 ;; 13232 *) echo "\$ac_cs_usage"; exit 1 ;;
14605 esac 13233 esac
14615 # Protect against being on the right side of a sed subst in config.status. 13243 # Protect against being on the right side of a sed subst in config.status.
14616 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 13244 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14617 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 13245 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14618 $ac_vpsub 13246 $ac_vpsub
14619 $extrasub 13247 $extrasub
14620 s%@SHELL@%$SHELL%g
14621 s%@CFLAGS@%$CFLAGS%g 13248 s%@CFLAGS@%$CFLAGS%g
14622 s%@CPPFLAGS@%$CPPFLAGS%g 13249 s%@CPPFLAGS@%$CPPFLAGS%g
14623 s%@CXXFLAGS@%$CXXFLAGS%g 13250 s%@CXXFLAGS@%$CXXFLAGS%g
14624 s%@FFLAGS@%$FFLAGS%g
14625 s%@DEFS@%$DEFS%g 13251 s%@DEFS@%$DEFS%g
14626 s%@LDFLAGS@%$LDFLAGS%g 13252 s%@LDFLAGS@%$LDFLAGS%g
14627 s%@LIBS@%$LIBS%g 13253 s%@LIBS@%$LIBS%g
14628 s%@exec_prefix@%$exec_prefix%g 13254 s%@exec_prefix@%$exec_prefix%g
14629 s%@prefix@%$prefix%g 13255 s%@prefix@%$prefix%g
14649 s%@start_files@%$start_files%g 13275 s%@start_files@%$start_files%g
14650 s%@ld@%$ld%g 13276 s%@ld@%$ld%g
14651 s%@lib_gcc@%$lib_gcc%g 13277 s%@lib_gcc@%$lib_gcc%g
14652 s%@RANLIB@%$RANLIB%g 13278 s%@RANLIB@%$RANLIB%g
14653 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 13279 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14654 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14655 s%@INSTALL_DATA@%$INSTALL_DATA%g 13280 s%@INSTALL_DATA@%$INSTALL_DATA%g
14656 s%@YACC@%$YACC%g 13281 s%@YACC@%$YACC%g
14657 s%@SET_MAKE@%$SET_MAKE%g 13282 s%@SET_MAKE@%$SET_MAKE%g
14658 s%@X_CFLAGS@%$X_CFLAGS%g 13283 s%@X_CFLAGS@%$X_CFLAGS%g
14659 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 13284 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14662 s%@install_pp@%$install_pp%g 13287 s%@install_pp@%$install_pp%g
14663 s%@libs_xauth@%$libs_xauth%g 13288 s%@libs_xauth@%$libs_xauth%g
14664 s%@dnd_objs@%$dnd_objs%g 13289 s%@dnd_objs@%$dnd_objs%g
14665 s%@lwlib_objs@%$lwlib_objs%g 13290 s%@lwlib_objs@%$lwlib_objs%g
14666 s%@ALLOCA@%$ALLOCA%g 13291 s%@ALLOCA@%$ALLOCA%g
14667 s%@have_esd_config@%$have_esd_config%g
14668 s%@dll_ld@%$dll_ld%g 13292 s%@dll_ld@%$dll_ld%g
14669 s%@dll_cflags@%$dll_cflags%g 13293 s%@dll_cflags@%$dll_cflags%g
14670 s%@dll_ldflags@%$dll_ldflags%g 13294 s%@dll_ldflags@%$dll_ldflags%g
14671 s%@dll_post@%$dll_post%g 13295 s%@dll_post@%$dll_post%g
14672 s%@dll_ldo@%$dll_ldo%g 13296 s%@dll_ldo@%$dll_ldo%g
14677 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 13301 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14678 s%@PROGNAME@%$PROGNAME%g 13302 s%@PROGNAME@%$PROGNAME%g
14679 s%@version@%$version%g 13303 s%@version@%$version%g
14680 s%@configuration@%$configuration%g 13304 s%@configuration@%$configuration%g
14681 s%@canonical@%$canonical%g 13305 s%@canonical@%$canonical%g
14682 s%@inststaticdir@%$inststaticdir%g
14683 s%@instvardir@%$instvardir%g
14684 s%@srcdir@%$srcdir%g 13306 s%@srcdir@%$srcdir%g
14685 s%@pkgdir@%$pkgdir%g 13307 s%@pkgdir@%$pkgdir%g
14686 s%@statedir@%$statedir%g 13308 s%@statedir@%$statedir%g
14687 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14688 s%@PREFIX@%$PREFIX%g 13309 s%@PREFIX@%$PREFIX%g
14689 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14690 s%@EXEC_PREFIX@%$EXEC_PREFIX%g 13310 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14691 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g 13311 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14692 s%@INFODIR@%$INFODIR%g 13312 s%@INFODIR@%$INFODIR%g
14693 s%@infopath@%$infopath%g 13313 s%@infopath@%$infopath%g
14694 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g 13314 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14709 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g 13329 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14710 s%@SITEMODULEDIR@%$SITEMODULEDIR%g 13330 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14711 s%@etcdir@%$etcdir%g 13331 s%@etcdir@%$etcdir%g
14712 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g 13332 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14713 s%@ETCDIR@%$ETCDIR%g 13333 s%@ETCDIR@%$ETCDIR%g
14714 s%@docdir@%$docdir%g 13334 s%@lockdir@%$lockdir%g
14715 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g 13335 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14716 s%@DOCDIR@%$DOCDIR%g 13336 s%@LOCKDIR@%$LOCKDIR%g
14717 s%@archlibdir@%$archlibdir%g 13337 s%@archlibdir@%$archlibdir%g
14718 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g 13338 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14719 s%@ARCHLIBDIR@%$ARCHLIBDIR%g 13339 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13340 s%@docdir@%$docdir%g
14720 s%@bitmapdir@%$bitmapdir%g 13341 s%@bitmapdir@%$bitmapdir%g
14721 s%@extra_objs@%$extra_objs%g 13342 s%@extra_objs@%$extra_objs%g
14722 s%@machfile@%$machfile%g 13343 s%@machfile@%$machfile%g
14723 s%@opsysfile@%$opsysfile%g 13344 s%@opsysfile@%$opsysfile%g
14724 s%@c_switch_general@%$c_switch_general%g 13345 s%@c_switch_general@%$c_switch_general%g