3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
262 with_ipv6_cname="yes"
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 Option \`all' or \`none' must be first in the list.
476 The default is to autodetect native and NAS sound support."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
478 elif test -n "$new_sdefault" ; then
479 with_native_sound=$new_sdefault
480 with_nas_sound=$new_sdefault
481 with_esd_sound=$new_sdefault
482 new_sdefault= # reset this
490 xa | xaw ) val=xaw ;;
491 3 | 3d | xaw3d ) val=3d ;;
492 ne | nex | next | naxtaw) val=next ;;
493 9 | 95 | xaw95 ) val=95 ;;
494 xp | xpm | xawxpm ) val=xpm ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
505 y | ye | yes ) val=yes ;;
506 n | no | non | none ) val=no ;;
507 x | xl | xli | xlib ) val=xlib ;;
508 m | mo | mot | moti | motif ) val=motif ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`motif', \`xlib', \`yes', or \`no'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 file | dot ) val=file ;;
522 locking ) val=locking ;;
523 * ) (echo "$progname: Usage error:"
524 echo " " "The \`--$optname' option must have one of these values:
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
535 n | no | non | none ) new_default=no ;;
536 a | al | all ) new_default=yes ;;
538 extents ) error_check_extents=yes ;;
539 noextents ) error_check_extents=no ;;
541 typecheck ) error_check_typecheck=yes ;;
542 notypecheck ) error_check_typecheck=no ;;
544 bufpos ) error_check_bufpos=yes ;;
545 nobufpos ) error_check_bufpos=no ;;
547 gc ) error_check_gc=yes ;;
548 nogc ) error_check_gc=no ;;
550 malloc ) error_check_malloc=yes ;;
551 nomalloc ) error_check_malloc=no ;;
553 byte_code ) error_check_byte_code=yes ;;
554 nobyte_code ) error_check_byte_code=no ;;
556 glyphs ) error_check_glyphs=yes ;;
557 noglyphs ) error_check_glyphs=no ;;
559 * ) bogus_error_check=yes ;;
561 if test "$bogus_error_check" -o \
562 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
563 if test "$error_check_default" = yes ; then
564 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
566 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
568 (echo "$progname: Usage error:"
569 echo " " "Valid types for the \`--$optname' option are:
571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
572 elif test -n "$new_default" ; then
573 error_check_extents=$new_default
574 error_check_typecheck=$new_default
575 error_check_bufpos=$new_default
576 error_check_gc=$new_default
577 error_check_malloc=$new_default
578 error_check_byte_code=$new_default
579 error_check_glyphs=$new_default
580 new_default= # reset this
587 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
588 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
589 archlibdir | docdir | package_path )
590 if test "$valomitted" = "yes"; then
591 if test "$#" = 0; then
592 (echo "$progname: Usage error:"
593 echo " " "The \`--$optname' option requires a value."
594 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
601 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining EXEC_PREFIX_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define EXEC_PREFIX_USER_DEFINED 1
609 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining LISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define LISPDIR_USER_DEFINED 1
617 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining SITELISPDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define SITELISPDIR_USER_DEFINED 1
625 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining MODULEDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define MODULEDIR_USER_DEFINED 1
633 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining ETCDIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define ETCDIR_USER_DEFINED 1
641 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining INFODIR_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define INFODIR_USER_DEFINED 1
649 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
650 Defining INFOPATH_USER_DEFINED
652 cat >> confdefs.h <<\EOF
653 #define INFOPATH_USER_DEFINED 1
657 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
658 Defining PACKAGE_PATH_USER_DEFINED
660 cat >> confdefs.h <<\EOF
661 #define PACKAGE_PATH_USER_DEFINED 1
666 { test "$extra_verbose" = "yes" && cat << \EOF
667 Defining INFODIR_USER_DEFINED
669 cat >> confdefs.h <<\EOF
670 #define INFODIR_USER_DEFINED 1
674 { test "$extra_verbose" = "yes" && cat << \EOF
675 Defining LISPDIR_USER_DEFINED
677 cat >> confdefs.h <<\EOF
678 #define LISPDIR_USER_DEFINED 1
682 { test "$extra_verbose" = "yes" && cat << \EOF
683 Defining MODULEDIR_USER_DEFINED
685 cat >> confdefs.h <<\EOF
686 #define MODULEDIR_USER_DEFINED 1
690 { test "$extra_verbose" = "yes" && cat << \EOF
691 Defining ETCDIR_USER_DEFINED
693 cat >> confdefs.h <<\EOF
694 #define ETCDIR_USER_DEFINED 1
698 { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
714 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
715 Defining DOCDIR_USER_DEFINED
717 cat >> confdefs.h <<\EOF
718 #define DOCDIR_USER_DEFINED 1
722 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
723 Defining ARCHLIBDIR_USER_DEFINED
725 cat >> confdefs.h <<\EOF
726 #define ARCHLIBDIR_USER_DEFINED 1
735 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
738 "with_scrollbars" | \
742 l | lu | luc | luci | lucid ) val=lucid ;;
743 mo | mot | moti | motif ) val=motif ;;
744 a | at | ath | athe | athen | athena ) val=athena ;;
745 n | no | non | none ) val=no ;;
746 y | ye | yes ) val=yes ;;
747 g | gt | gtk ) val=gtk ;;
748 ms | msw ) val=msw ;;
749 * ) (echo "$progname: Usage error:"
750 echo " " "The \`--$optname' option must have one of these values:
751 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
752 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
757 "use_minimal_tagbits" | \
758 "use_indexed_lrecord_implementation" | \
760 "const_is_losing" | \
762 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
765 * ) (echo "$progname: Usage error:"
766 echo " " "Unrecognized option: $arg"
767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
772 *-*-*) configuration="$arg" ;;
774 *) (echo "$progname: Usage error:"
775 echo " " "Unrecognized argument: $arg"
776 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
782 test -n "$cpp" && CPP="$cpp"
783 test -n "$cppflags" && CPPFLAGS="$cppflags"
784 test -n "$libs" && LIBS="$libs"
785 test -n "$ldflags" && LDFLAGS="$ldflags"
787 eval set x "$quoted_arguments"; shift
789 test "$extra_verbose" = "yes" && verbose=yes
791 test -n "$with_x" && with_x11="$with_x"
793 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
794 test "$with_system_malloc" = "default" && with_system_malloc=yes
799 if test "$with_cde $with_tooltalk" = "yes no"; then
800 (echo "$progname: Usage error:"
801 echo " " "--with-cde requires --with-tooltalk"
802 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
803 elif test "$with_tooltalk" = "no" ; then with_cde=no
804 elif test "$with_cde" = "yes"; then with_tooltalk=yes
811 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
812 if test -f "$dir/src/lisp.h" -a \
813 -f "$dir/lisp/version.el" ; then
818 if test -z "$srcdir" ; then
819 (echo "$progname: Usage error:"
820 echo " " "Neither the current directory nor its parent seem to
821 contain the XEmacs sources. If you do not want to build XEmacs in its
822 source tree, you should run \`$progname' in the directory in which
823 you wish to build XEmacs, using the \`--srcdir' option to say where the
824 sources may be found."
825 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
830 if test ! -f "$srcdir/src/lisp.h" -o \
831 ! -f "$srcdir/lisp/version.el" ; then
832 (echo "$progname: Usage error:"
833 echo " " "The directory specified with the \`--srcdir' option,
834 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
835 either run the \`$progname' script at the top of the XEmacs source
836 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
837 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
842 if test -z "$configuration"; then
843 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
844 if test -z "$configuration"; then
845 (echo "$progname: Usage error:"
846 echo " " "XEmacs has not been ported to this host type.
847 Try explicitly specifying the CONFIGURATION when rerunning configure."
848 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
852 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
853 echo "configure:854: checking whether ln -s works" >&5
856 if ln -s X conftestdata 2>/dev/null
859 ac_cv_prog_LN_S="ln -s"
863 LN_S="$ac_cv_prog_LN_S"
864 if test "$ac_cv_prog_LN_S" = "ln -s"; then
865 echo "$ac_t""yes" 1>&6
867 echo "$ac_t""no" 1>&6
871 for dir in lisp etc man info tests; do
872 if test ! -d "$dir" ; then
873 echo Making symbolic link to "$srcdir/$dir"
874 ${LN_S} "$srcdir/$dir" "$dir"
879 absolute_pwd="`pwd`";
880 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
882 else blddir="$absolute_pwd"; if test -d "/net"; then
883 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
884 blddir=`echo "$blddir" | \
885 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
892 . ) srcdir="$blddir" ;;
893 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
894 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
895 srcdir=`echo "$srcdir" | \
896 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
900 if test `pwd` != `sh -c cd $srcdir && pwd` \
901 && test -f "$srcdir/src/config.h"; then
902 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
903 echo " as a build directory right now; it has been configured in its own"
904 echo " right. To configure in another directory as well, you MUST"
905 echo " use GNU make. If you do not have GNU make, then you must"
906 echo " now do \`make distclean' in $srcdir,"
907 echo " and then run $progname again.") >&2
908 extrasub='/^VPATH[ ]*=/c\
914 vpath %.in $(srcdir)'
917 . "$srcdir/version.sh" || exit 1;
918 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
919 : "${extra_verbose=$beta}"
920 version="${emacs_major_version}.${emacs_minor_version}"
921 { test "$extra_verbose" = "yes" && cat << EOF
922 Defining EMACS_MAJOR_VERSION = $emacs_major_version
924 cat >> confdefs.h <<EOF
925 #define EMACS_MAJOR_VERSION $emacs_major_version
929 { test "$extra_verbose" = "yes" && cat << EOF
930 Defining EMACS_MINOR_VERSION = $emacs_minor_version
932 cat >> confdefs.h <<EOF
933 #define EMACS_MINOR_VERSION $emacs_minor_version
937 if test -n "$emacs_beta_version" ; then
938 if test "$beta" = "yes"; then
939 version="${version}-b${emacs_beta_version}"
940 { test "$extra_verbose" = "yes" && cat << EOF
941 Defining EMACS_BETA_VERSION = $emacs_beta_version
943 cat >> confdefs.h <<EOF
944 #define EMACS_BETA_VERSION $emacs_beta_version
949 version="${version}.${emacs_beta_version}"
950 { test "$extra_verbose" = "yes" && cat << EOF
951 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
953 cat >> confdefs.h <<EOF
954 #define EMACS_PATCH_LEVEL $emacs_beta_version
960 { test "$extra_verbose" = "yes" && cat << EOF
961 Defining XEMACS_CODENAME = "$xemacs_codename"
963 cat >> confdefs.h <<EOF
964 #define XEMACS_CODENAME "$xemacs_codename"
968 { test "$extra_verbose" = "yes" && cat << EOF
969 Defining EMACS_VERSION = "$version"
971 cat >> confdefs.h <<EOF
972 #define EMACS_VERSION "$version"
977 if test "$with_infodock" = "yes"; then
978 if test ! -f ../../ID-INSTALL; then
979 echo "Cannot build InfoDock without InfoDock sources"
984 if test "$with_infodock" = "yes"; then
985 { test "$extra_verbose" = "yes" && cat << EOF
986 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
988 cat >> confdefs.h <<EOF
989 #define INFODOCK_MAJOR_VERSION $infodock_major_version
993 { test "$extra_verbose" = "yes" && cat << EOF
994 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
996 cat >> confdefs.h <<EOF
997 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1001 { test "$extra_verbose" = "yes" && cat << EOF
1002 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1004 cat >> confdefs.h <<EOF
1005 #define INFODOCK_BUILD_VERSION $infodock_build_version
1009 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1011 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1016 { test "$extra_verbose" = "yes" && cat << EOF
1017 Defining EMACS_PROGNAME = "$PROGNAME"
1019 cat >> confdefs.h <<EOF
1020 #define EMACS_PROGNAME "$PROGNAME"
1025 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1026 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1027 Defining ERROR_CHECK_EXTENTS
1029 cat >> confdefs.h <<\EOF
1030 #define ERROR_CHECK_EXTENTS 1
1034 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1035 Defining ERROR_CHECK_TYPECHECK
1037 cat >> confdefs.h <<\EOF
1038 #define ERROR_CHECK_TYPECHECK 1
1042 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1043 Defining ERROR_CHECK_BUFPOS
1045 cat >> confdefs.h <<\EOF
1046 #define ERROR_CHECK_BUFPOS 1
1050 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1051 Defining ERROR_CHECK_GC
1053 cat >> confdefs.h <<\EOF
1054 #define ERROR_CHECK_GC 1
1058 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1059 Defining ERROR_CHECK_MALLOC
1061 cat >> confdefs.h <<\EOF
1062 #define ERROR_CHECK_MALLOC 1
1066 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1067 Defining ERROR_CHECK_BYTE_CODE
1069 cat >> confdefs.h <<\EOF
1070 #define ERROR_CHECK_BYTE_CODE 1
1074 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1075 Defining ERROR_CHECK_GLYPHS
1077 cat >> confdefs.h <<\EOF
1078 #define ERROR_CHECK_GLYPHS 1
1082 if test "${debug:=$beta}" = "yes"; then
1083 use_assertions=yes memory_usage_stats=yes
1084 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1085 echo " xemacs will be linked with \"debug.o\""
1087 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1088 echo " xemacs will be linked with \"tests.o\""
1090 { test "$extra_verbose" = "yes" && cat << \EOF
1091 Defining DEBUG_XEMACS
1093 cat >> confdefs.h <<\EOF
1094 #define DEBUG_XEMACS 1
1099 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1100 Defining USE_ASSERTIONS
1102 cat >> confdefs.h <<\EOF
1103 #define USE_ASSERTIONS 1
1107 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1108 Defining MEMORY_USAGE_STATS
1110 cat >> confdefs.h <<\EOF
1111 #define MEMORY_USAGE_STATS 1
1117 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1118 echo "configure:1119: checking "host system type"" >&5
1119 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1120 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1121 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1122 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1123 echo "$ac_t""$configuration" 1>&6
1131 case "$canonical" in
1132 sparc-*-* ) machine=sparc ;;
1133 alpha*-*-* ) machine=alpha ;;
1134 vax-*-* ) machine=vax ;;
1135 mips-dec-* ) machine=pmax ;;
1136 mips-sgi-irix6* ) machine=iris6d ;;
1137 mips-sgi-* ) machine=iris4d ;;
1138 mips*-linux ) machine=mips ;;
1139 romp-ibm-* ) machine=ibmrt ;;
1140 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1141 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1142 powerpc*-* ) machine=powerpc ;;
1143 hppa-*-* ) machine=hp800 ;;
1144 m88k-dg-* ) machine=aviion ;;
1145 m68*-sony-* ) machine=news ;;
1146 mips-sony-* ) machine=news-risc ;;
1147 clipper-* ) machine=clipper ;;
1148 arm* ) machine=arm ;;
1149 ns32k-* ) machine=ns32000 ;;
1152 case "$canonical" in
1153 *-*-linux* ) opsys=linux ;;
1154 *-*-netbsd* ) opsys=netbsd ;;
1155 *-*-openbsd* ) opsys=openbsd ;;
1156 *-*-nextstep* ) opsys=nextstep ;;
1157 *-*-vms ) opsys=vms ;;
1159 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1160 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1161 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1162 *-dec-osf3* ) opsys=decosf3-1 ;;
1163 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1165 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1166 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1167 *-*-ultrix* ) opsys=ultrix4-3 ;;
1169 *-*-aix3.1* ) opsys=aix3-1 ;;
1170 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1171 *-*-aix3* ) opsys=aix3-2 ;;
1172 *-*-aix4.0* ) opsys=aix4 ;;
1173 *-*-aix4.1* ) opsys=aix4-1 ;;
1174 *-*-aix4* ) opsys=aix4-2 ;;
1176 *-gnu* ) opsys=gnu ;;
1177 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1178 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1179 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1180 *-*-aos4.2 ) opsys=bsd4-2 ;;
1181 *-*-aos* ) opsys=bsd4-3 ;;
1182 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1183 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1184 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1185 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1186 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1187 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1188 if test -z "$NON_GNU_CPP" ; then
1189 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1190 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1194 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1195 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1198 case "$canonical" in
1201 case "$canonical" in
1202 i[3-9]86-*-netbsd*) machine=intel386 ;;
1203 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1204 machine=hp9000s300 ;;
1205 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1206 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1211 case "${canonical}" in
1212 i386-*-openbsd*) machine=intel386 ;;
1213 m68k-*-openbsd*) machine=hp9000s300 ;;
1214 mipsel-*-openbsd*) machine=pmax ;;
1218 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1219 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1221 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1222 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1224 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1226 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1228 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1230 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1232 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1234 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1235 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1236 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1239 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1241 *-convex-bsd* | *-convex-convexos* )
1242 machine=convex opsys=bsd4-3
1243 NON_GNU_CPP="cc -E -P"
1246 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1248 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1249 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1250 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1251 m88k-dg-dgux* ) opsys=dgux ;;
1253 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1254 m88k-motorola-sysv4* )
1255 machine=delta88k opsys=usg5-4-2
1257 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1259 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1260 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1262 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1264 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1265 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1266 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1269 case "`uname -r`" in
1270 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1271 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1273 NON_GNU_CPP="/lib/cpp"
1275 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1276 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1278 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1280 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1283 case "$canonical" in
1284 m68* ) machine=hp9000s300 ;;
1285 hppa* ) machine=hp800 ;;
1288 case "$canonical" in
1289 *-hp-hpux7* ) opsys=hpux ;;
1290 *-hp-hpux8* ) opsys=hpux8 ;;
1291 *-hp-hpux9* ) opsys=hpux9 ;;
1292 *-hp-hpux10* ) opsys=hpux10 ;;
1293 *-hp-hpux11* ) opsys=hpux11 ;;
1297 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1298 echo " xemacs will be linked with \"strcat.o\""
1301 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1302 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1303 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1305 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1308 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1309 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1311 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1312 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1313 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1314 romp-ibm-aos* ) opsys=bsd4-3 ;;
1315 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1316 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1318 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1319 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1321 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1323 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1325 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1327 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1329 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1331 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1333 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1335 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1337 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1339 mips-mips-usg* ) machine=mips4 ;;
1342 NON_GNU_CC="cc -systype bsd43"
1343 NON_GNU_CPP="cc -systype bsd43 -E"
1344 case "$canonical" in
1345 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1346 mips-mips-riscos5* ) opsys=riscos5 ;;
1349 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1350 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1352 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1354 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1356 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1357 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1359 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1361 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1363 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1365 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1367 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1368 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1370 mips-siemens-sysv* | mips-sni-sysv*)
1371 machine=mips-siemens opsys=usg5-4
1372 NON_GNU_CC=/usr/ccs/bin/cc
1373 NON_GNU_CPP=/usr/ccs/lib/cpp
1378 NON_GNU_CC=/usr/ccs/bin/cc
1379 NON_GNU_CPP=/usr/ccs/lib/cpp
1382 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1383 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1384 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1385 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1386 mips-sgi-irix6* ) opsys=irix6-0 ;;
1387 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1388 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1389 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1390 mips-sgi-irix* ) opsys=irix5-0 ;;
1392 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1393 *-sony-news* ) opsys=newsos5 ;;
1395 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1397 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1398 case "$canonical" in
1399 m68*-sunos1* ) machine=sun1 ;;
1400 m68*-sunos2* ) machine=sun2 ;;
1401 m68* ) machine=sun3 ;;
1402 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1403 i*86-*-* ) machine=intel386 ;;
1404 rs6000* ) machine=rs6000 ;;
1407 case "$canonical" in *-sunos5*)
1408 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1411 case "$canonical" in
1413 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1416 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1420 case "$canonical" in
1423 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1424 { test "$extra_verbose" = "yes" && cat << EOF
1425 Defining OS_RELEASE = $os_release
1427 cat >> confdefs.h <<EOF
1428 #define OS_RELEASE $os_release
1433 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1434 *-sunos4.0* ) opsys=sunos4-0 ;;
1435 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1436 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1437 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1438 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1439 *-mach* ) opsys=mach-bsd4-3 ;;
1443 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1445 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1448 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1450 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1451 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1453 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1455 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1457 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1458 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1460 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1462 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1465 case "$canonical" in
1466 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1467 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1468 *-mach* ) opsys=mach-bsd4-3 ;;
1472 ns16k-whitechapel-* ) machine=mg1 ;;
1474 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1478 case "$canonical" in
1479 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1480 *-isc2.2* ) opsys=isc2-2 ;;
1481 *-isc4.0* ) opsys=isc4-0 ;;
1482 *-isc4.* ) opsys=isc4-1
1483 GCC_TEST_OPTIONS=-posix
1484 NON_GCC_TEST_OPTIONS=-Xp
1486 *-isc* ) opsys=isc3-0 ;;
1487 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1488 *-esix* ) opsys=esix ;;
1489 *-mach* ) opsys=mach-bsd4-3 ;;
1490 *-xenix* ) opsys=xenix ;;
1491 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1492 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1493 *-bsdi4* ) opsys=bsdos4 ;;
1494 *-bsdi3* ) opsys=bsdos3 ;;
1495 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1496 *-bsdi2* ) opsys=bsdos2 ;;
1497 *-sco3.2v5* ) opsys=sco5 ;;
1498 *-sysv5* ) opsys=sco7 ;;
1499 *-386bsd* ) opsys=386bsd ;;
1500 *-freebsd* ) opsys=freebsd ;;
1501 *-nextstep* ) opsys=nextstep ;;
1502 *-pc-cygwin* ) opsys=cygwin32 ;;
1503 *-pc-mingw* ) opsys=mingw32 ;
1504 test -z "$with_tty" && with_tty="no";;
1508 m68k-*-linux* ) machine=m68k opsys=linux ;;
1512 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1514 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1516 if test -r "${srcdir}/src/m/${machine}.h"; then
1517 machfile="m/${machine}.h"
1518 { test "$extra_verbose" = "yes" && cat << EOF
1519 Defining config_machfile = "$machfile"
1521 cat >> confdefs.h <<EOF
1522 #define config_machfile "$machfile"
1527 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1528 echo "Using configure-time autodetection only."
1531 if test -r "${srcdir}/src/s/${opsys}.h"; then
1532 opsysfile="s/${opsys}.h"
1533 { test "$extra_verbose" = "yes" && cat << EOF
1534 Defining config_opsysfile = "$opsysfile"
1536 cat >> confdefs.h <<EOF
1537 #define config_opsysfile "$opsysfile"
1542 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1543 echo "Using configure-time autodetection only."
1547 if test -z "$dynamic"; then
1549 hpux* | sunos4* ) dynamic=no ;;
1553 if test "$dynamic" = "yes"; then
1555 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1556 decosf* ) ld_call_shared="-call_shared" ;;
1558 else case "$opsys" in
1560 echo "Static linking is not supported on Solaris 2."
1561 echo "Rerun configure without specifying --dynamic=no."
1563 linux ) ld_call_shared="-Bstatic" ;;
1564 decosf* ) ld_call_shared="-non_shared" ;;
1568 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1570 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1571 { test "$extra_verbose" = "yes" && cat << EOF
1572 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1574 cat >> confdefs.h <<EOF
1575 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1581 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1582 if test "$with_workshop $with_tooltalk" = "yes no"; then
1583 (echo "$progname: Usage error:"
1584 echo " " "--with-workshop requires --with-tooltalk"
1585 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1586 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1587 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1590 if test "$with_workshop" = "yes"; then
1591 { test "$extra_verbose" = "yes" && cat << \EOF
1594 cat >> confdefs.h <<\EOF
1599 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1600 echo " xemacs will be linked with \"sunpro.o\""
1604 if test "$with_clash_detection" != "no"; then
1605 { test "$extra_verbose" = "yes" && cat << \EOF
1606 Defining CLASH_DETECTION
1608 cat >> confdefs.h <<\EOF
1609 #define CLASH_DETECTION 1
1613 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1614 echo " xemacs will be linked with \"filelock.o\""
1618 test -n "$compiler" && CC="$compiler"
1619 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1622 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1623 if test "${CFLAGS-unset}" != unset
1624 then cflags_specified=yes;
1625 else cflags_specified=no;
1628 xe_save_CFLAGS="$CFLAGS"
1630 # Extract the first word of "gcc", so it can be a program name with args.
1631 set dummy gcc; ac_word=$2
1632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_word" >&5
1635 if test -n "$CC"; then
1636 ac_cv_prog_CC="$CC" # Let the user override the test.
1638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1640 for ac_dir in $ac_dummy; do
1641 test -z "$ac_dir" && ac_dir=.
1642 if test -f $ac_dir/$ac_word; then
1650 if test -n "$CC"; then
1651 echo "$ac_t""$CC" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 if test -z "$CC"; then
1657 # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1668 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 if test -f $ac_dir/$ac_word; then
1671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1672 ac_prog_rejected=yes
1680 if test $ac_prog_rejected = yes; then
1681 # We found a bogon in the path, so make sure we never use it.
1682 set dummy $ac_cv_prog_CC
1684 if test $# -gt 0; then
1685 # We chose a different compiler from the bogus one.
1686 # However, it has the same basename, so the bogon will be chosen
1687 # first if we set CC to just the basename; use the full file name.
1689 set dummy "$ac_dir/$ac_word" "$@"
1696 if test -n "$CC"; then
1697 echo "$ac_t""$CC" 1>&6
1699 echo "$ac_t""no" 1>&6
1702 if test -z "$CC"; then
1703 case "`uname -s`" in
1705 # Extract the first word of "cl", so it can be a program name with args.
1706 set dummy cl; ac_word=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC="$CC" # Let the user override the test.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1725 if test -n "$CC"; then
1726 echo "$ac_t""$CC" 1>&6
1728 echo "$ac_t""no" 1>&6
1733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1740 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1741 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1742 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1743 ac_cpp='$CPP '"$xe_cppflags"
1744 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1745 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1748 cat > conftest.$ac_ext << EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 ac_cv_prog_cc_works=yes
1757 # If we can't run a trivial program, we are probably using a cross compiler.
1758 if (./conftest; exit) 2>/dev/null; then
1759 ac_cv_prog_cc_cross=no
1761 ac_cv_prog_cc_cross=yes
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 ac_cv_prog_cc_works=no
1770 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1771 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1772 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1773 ac_cpp='$CPP '"$xe_cppflags"
1774 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1775 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1779 if test $ac_cv_prog_cc_works = no; then
1780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1785 cross_compiling=$ac_cv_prog_cc_cross
1787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether we are using GNU C" >&5
1790 cat > conftest.c <<EOF
1795 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1801 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1803 if test $ac_cv_prog_gcc = yes; then
1809 ac_test_CFLAGS="${CFLAGS+set}"
1810 ac_save_CFLAGS="$CFLAGS"
1812 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ${CC-cc} accepts -g" >&5
1815 echo 'void f(){}' > conftest.c
1816 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1824 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1825 if test "$ac_test_CFLAGS" = set; then
1826 CFLAGS="$ac_save_CFLAGS"
1827 elif test $ac_cv_prog_cc_g = yes; then
1828 if test "$GCC" = yes; then
1834 if test "$GCC" = yes; then
1841 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1843 # Extract the first word of "gcc", so it can be a program name with args.
1844 set dummy gcc; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1863 if test -n "$CC"; then
1864 echo "$ac_t""$CC" 1>&6
1866 echo "$ac_t""no" 1>&6
1869 if test -z "$CC"; then
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_word" >&5
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1884 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1885 ac_prog_rejected=yes
1893 if test $ac_prog_rejected = yes; then
1894 # We found a bogon in the path, so make sure we never use it.
1895 set dummy $ac_cv_prog_CC
1897 if test $# -gt 0; then
1898 # We chose a different compiler from the bogus one.
1899 # However, it has the same basename, so the bogon will be chosen
1900 # first if we set CC to just the basename; use the full file name.
1902 set dummy "$ac_dir/$ac_word" "$@"
1909 if test -n "$CC"; then
1910 echo "$ac_t""$CC" 1>&6
1912 echo "$ac_t""no" 1>&6
1915 if test -z "$CC"; then
1916 case "`uname -s`" in
1918 # Extract the first word of "cl", so it can be a program name with args.
1919 set dummy cl; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1928 for ac_dir in $ac_dummy; do
1929 test -z "$ac_dir" && ac_dir=.
1930 if test -f $ac_dir/$ac_word; then
1938 if test -n "$CC"; then
1939 echo "$ac_t""$CC" 1>&6
1941 echo "$ac_t""no" 1>&6
1946 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1949 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1950 echo "configure:1951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1953 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1954 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1955 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1956 ac_cpp='$CPP '"$xe_cppflags"
1957 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1958 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1961 cat > conftest.$ac_ext << EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1969 ac_cv_prog_cc_works=yes
1970 # If we can't run a trivial program, we are probably using a cross compiler.
1971 if (./conftest; exit) 2>/dev/null; then
1972 ac_cv_prog_cc_cross=no
1974 ac_cv_prog_cc_cross=yes
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 ac_cv_prog_cc_works=no
1983 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1984 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1985 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1986 ac_cpp='$CPP '"$xe_cppflags"
1987 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1988 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1991 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1992 if test $ac_cv_prog_cc_works = no; then
1993 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1995 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1997 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1998 cross_compiling=$ac_cv_prog_cc_cross
2000 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether we are using GNU C" >&5
2003 cat > conftest.c <<EOF
2008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2014 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2016 if test $ac_cv_prog_gcc = yes; then
2022 ac_test_CFLAGS="${CFLAGS+set}"
2023 ac_save_CFLAGS="$CFLAGS"
2025 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether ${CC-cc} accepts -g" >&5
2028 echo 'void f(){}' > conftest.c
2029 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2037 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2038 if test "$ac_test_CFLAGS" = set; then
2039 CFLAGS="$ac_save_CFLAGS"
2040 elif test $ac_cv_prog_cc_g = yes; then
2041 if test "$GCC" = yes; then
2047 if test "$GCC" = yes; then
2054 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2056 # Extract the first word of "gcc", so it can be a program name with args.
2057 set dummy gcc; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 for ac_dir in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2076 if test -n "$CC"; then
2077 echo "$ac_t""$CC" 1>&6
2079 echo "$ac_t""no" 1>&6
2082 if test -z "$CC"; then
2083 # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2088 if test -n "$CC"; then
2089 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/$ac_word; then
2097 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2098 ac_prog_rejected=yes
2106 if test $ac_prog_rejected = yes; then
2107 # We found a bogon in the path, so make sure we never use it.
2108 set dummy $ac_cv_prog_CC
2110 if test $# -gt 0; then
2111 # We chose a different compiler from the bogus one.
2112 # However, it has the same basename, so the bogon will be chosen
2113 # first if we set CC to just the basename; use the full file name.
2115 set dummy "$ac_dir/$ac_word" "$@"
2122 if test -n "$CC"; then
2123 echo "$ac_t""$CC" 1>&6
2125 echo "$ac_t""no" 1>&6
2128 if test -z "$CC"; then
2129 case "`uname -s`" in
2131 # Extract the first word of "cl", so it can be a program name with args.
2132 set dummy cl; ac_word=$2
2133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_word" >&5
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 for ac_dir in $ac_dummy; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f $ac_dir/$ac_word; then
2151 if test -n "$CC"; then
2152 echo "$ac_t""$CC" 1>&6
2154 echo "$ac_t""no" 1>&6
2159 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2162 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2163 echo "configure:2164: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2166 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2167 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2168 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2169 ac_cpp='$CPP '"$xe_cppflags"
2170 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2171 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2174 cat > conftest.$ac_ext << EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2181 if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2182 ac_cv_prog_cc_works=yes
2183 # If we can't run a trivial program, we are probably using a cross compiler.
2184 if (./conftest; exit) 2>/dev/null; then
2185 ac_cv_prog_cc_cross=no
2187 ac_cv_prog_cc_cross=yes
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 ac_cv_prog_cc_works=no
2196 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2197 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2198 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2199 ac_cpp='$CPP '"$xe_cppflags"
2200 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2201 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2204 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2205 if test $ac_cv_prog_cc_works = no; then
2206 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2208 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2210 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2211 cross_compiling=$ac_cv_prog_cc_cross
2213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2214 echo "configure:2215: checking whether we are using GNU C" >&5
2216 cat > conftest.c <<EOF
2221 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2227 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2229 if test $ac_cv_prog_gcc = yes; then
2235 ac_test_CFLAGS="${CFLAGS+set}"
2236 ac_save_CFLAGS="$CFLAGS"
2238 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether ${CC-cc} accepts -g" >&5
2241 echo 'void f(){}' > conftest.c
2242 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2250 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2251 if test "$ac_test_CFLAGS" = set; then
2252 CFLAGS="$ac_save_CFLAGS"
2253 elif test $ac_cv_prog_cc_g = yes; then
2254 if test "$GCC" = yes; then
2260 if test "$GCC" = yes; then
2268 CFLAGS="$xe_save_CFLAGS"
2271 test -n "$CPP" -a -d "$CPP" && CPP=
2273 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2275 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2276 echo "configure:2277: checking how to run the C preprocessor" >&5
2277 # On Suns, sometimes $CPP names a directory.
2278 if test -n "$CPP" && test -d "$CPP"; then
2281 if test -z "$CPP"; then
2283 # This must be in double quotes, not single quotes, because CPP may get
2284 # substituted into the Makefile and "${CC-cc}" will confuse make.
2286 # On the NeXT, cc -E runs the code through the compiler's parser,
2287 # not just through cpp.
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2297 if test -z "$ac_err"; then
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 CPP="${CC-cc} -E -traditional-cpp"
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 CPP="${CC-cc} -nologo -E"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2345 ac_cv_prog_CPP="$CPP"
2346 CPP="$ac_cv_prog_CPP"
2348 ac_cv_prog_CPP="$CPP"
2350 echo "$ac_t""$CPP" 1>&6
2354 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2355 echo "configure:2356: checking for AIX" >&5
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2365 egrep "yes" >/dev/null 2>&1; then
2367 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2368 Defining _ALL_SOURCE
2370 cat >> confdefs.h <<\EOF
2371 #define _ALL_SOURCE 1
2377 echo "$ac_t""no" 1>&6
2383 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2384 echo "configure:2385: checking for GNU libc" >&5
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 #include <features.h>
2391 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2392 #error Not a GNU libc system :-(
2393 ******* ======= ******** &&&&&&&&
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2408 echo "$ac_t""$have_glibc" 1>&6
2409 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2410 Defining _GNU_SOURCE
2412 cat >> confdefs.h <<\EOF
2413 #define _GNU_SOURCE 1
2420 { test "$extra_verbose" = "yes" && cat << \EOF
2421 Defining __EXTENSIONS__
2423 cat >> confdefs.h <<\EOF
2424 #define __EXTENSIONS__ 1
2428 if test "$os_release" -ge 55; then
2429 { test "$extra_verbose" = "yes" && cat << \EOF
2430 Defining _XOPEN_SOURCE = 500
2432 cat >> confdefs.h <<\EOF
2433 #define _XOPEN_SOURCE 500
2437 { test "$extra_verbose" = "yes" && cat << \EOF
2438 Defining _XOPEN_SOURCE_EXTENDED
2440 cat >> confdefs.h <<\EOF
2441 #define _XOPEN_SOURCE_EXTENDED 1
2447 { test "$extra_verbose" = "yes" && cat << \EOF
2448 Defining _POSIX_C_SOURCE = 199506L
2450 cat >> confdefs.h <<\EOF
2451 #define _POSIX_C_SOURCE 199506L
2455 { test "$extra_verbose" = "yes" && cat << \EOF
2456 Defining _XOPEN_SOURCE = 500
2458 cat >> confdefs.h <<\EOF
2459 #define _XOPEN_SOURCE 500
2463 { test "$extra_verbose" = "yes" && cat << \EOF
2464 Defining _XOPEN_SOURCE_EXTENDED
2466 cat >> confdefs.h <<\EOF
2467 #define _XOPEN_SOURCE_EXTENDED 1
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2478 #if defined __SUNPRO_C
2480 #elif defined __DECC
2482 #elif defined __USLC__ && defined __SCO_VERSION__
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 case "$conftest_rc" in
2498 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2499 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2500 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2508 echo "Extracting information from the machine- and system-dependent headers..."
2510 tempcname="conftest.c"
2514 cat > $tempcname < confdefs.h
2515 cat >> $tempcname <<EOF
2517 #define C_SWITCH_SITE
2518 #define C_SWITCH_X_SITE
2519 #define LD_SWITCH_SITE
2520 #define LD_SWITCH_X_SITE
2521 #define LD_SWITCH_X_SITE_AUX
2522 #define OS_RELEASE $os_release
2524 #ifdef config_opsysfile
2525 #include "$srcdir/src/$opsysfile"
2528 #ifdef config_machfile
2529 #include "$srcdir/src/$machfile"
2532 #ifndef LIBS_MACHINE
2533 #define LIBS_MACHINE
2535 configure___ libs_machine=LIBS_MACHINE
2540 configure___ libs_system=LIBS_SYSTEM
2542 #ifndef LIBS_TERMCAP
2543 #define LIBS_TERMCAP
2545 configure___ libs_termcap=LIBS_TERMCAP
2547 #ifndef LIB_STANDARD
2548 #define LIB_STANDARD
2550 configure___ libs_standard=LIB_STANDARD
2553 #ifndef OBJECTS_MACHINE
2554 #define OBJECTS_MACHINE
2556 configure___ objects_machine=OBJECTS_MACHINE
2558 #ifndef OBJECTS_SYSTEM
2559 #define OBJECTS_SYSTEM
2561 configure___ objects_system=OBJECTS_SYSTEM
2564 #ifndef C_SWITCH_MACHINE
2565 #define C_SWITCH_MACHINE
2567 configure___ c_switch_machine=C_SWITCH_MACHINE
2569 #ifndef C_SWITCH_SYSTEM
2570 #define C_SWITCH_SYSTEM
2572 configure___ c_switch_system=C_SWITCH_SYSTEM
2575 #ifndef LD_SWITCH_MACHINE
2576 #define LD_SWITCH_MACHINE
2578 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2580 #ifndef LD_SWITCH_SYSTEM
2581 #define LD_SWITCH_SYSTEM
2583 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2587 #define UNEXEC "unexec.o"
2589 configure___ unexec=UNEXEC
2592 #ifndef LD_SWITCH_SHARED
2593 #define LD_SWITCH_SHARED "-c"
2595 configure___ ld_switch_shared=LD_SWITCH_SHARED
2598 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2599 configure___ ordinary_ld=ORDINARY_LD
2601 #ifdef ORDINARY_LINK
2602 #define LD ORDINARY_LD
2603 #else /* no ORDINARY LINK */
2604 #ifdef COFF_ENCAPSULATE
2605 #define LD "\$(CC) -nostdlib"
2606 #else /* not COFF_ENCAPSULATE */
2609 #else /* ! defined (LINKER) */
2611 #endif /* ! defined (LINKER) */
2612 #endif /* ! defined (COFF_ENCAPSULATE) */
2613 #endif /* not ORDINARY_LINK */
2619 configure___ lib_gcc=LIB_GCC
2621 #ifndef LD_TEXT_START_ADDR
2622 #define LD_TEXT_START_ADDR
2624 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2627 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2629 #ifdef COFF_ENCAPSULATE
2630 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2631 #else /* ! defined (COFF_ENCAPSULATE) */
2632 #define START_FILES "pre-crt0.o /lib/crt0.o"
2633 #endif /* ! defined (COFF_ENCAPSULATE) */
2634 #else /* ! defined (NO_REMAP) */
2635 #define START_FILES "ecrt0.o"
2636 #endif /* ! defined (NO_REMAP) */
2637 #endif /* no ORDINARY_LINK */
2641 configure___ start_files=START_FILES
2643 #ifdef ORDINARY_LINK
2644 configure___ ordinary_link=yes
2646 configure___ ordinary_link=no
2649 #ifdef SYSTEM_MALLOC
2650 configure___ system_malloc=yes
2652 configure___ system_malloc=no
2656 configure___ have_terminfo=yes
2658 configure___ have_terminfo=no
2661 #ifdef MAIL_USE_FLOCK
2662 configure___ mail_use_flock=yes
2664 configure___ mail_use_flock=no
2667 #ifdef MAIL_USE_LOCKF
2668 configure___ mail_use_lockf=yes
2670 configure___ mail_use_lockf=no
2673 #ifdef MAIL_USE_LOCKING
2674 configure___ mail_use_locking=yes
2676 configure___ mail_use_locking=no
2679 #ifdef HAVE_WIN32_PROCESSES
2680 configure___ win32_processes=yes
2682 configure___ win32_processes=no
2687 CPP=`eval "echo $CPP $CPPFLAGS"`
2688 eval `$CPP -Isrc $tempcname \
2689 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2693 if test "$pdump" = "yes"; then
2702 test "$extra_verbose" = "yes" && \
2703 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 ""
2705 case "$opsys" in mingw* | cygwin*)
2706 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2707 cygwin_include=`eval "dirname $cygwin_include"` ;
2708 cygwin_include="-I$cygwin_include/../include" ;
2709 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2710 case "$opsys" in mingw*)
2711 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2716 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2719 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2721 if test "$__USLC__" = yes; then
2722 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2723 echo "configure:2724: checking for whether the -Kalloca compiler flag is needed" >&5
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2730 void *x = alloca(4);
2733 if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2741 xe_save_c_switch_system="$c_switch_system"
2742 c_switch_system="$c_switch_system -Kalloca"
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 void *x = alloca(4);
2751 if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2759 c_switch_system="$xe_save_c_switch_system"
2762 echo "$ac_t""$need_kalloca" 1>&6
2763 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2766 if test "$cflags_specified" = "no"; then
2767 if test "$GCC" = "yes"; then
2768 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2769 CFLAGS="$CFLAGS -Wsign-compare"
2770 if test "$xemacs_compiler" != "g++"; then
2771 CFLAGS="$CFLAGS -Wshadow"
2773 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2774 elif test "$__SUNPRO_C" = "yes"; then
2776 sol2 ) CFLAGS="-v -xO4" ;;
2777 sunos4* ) CFLAGS="-xO2";;
2779 elif test "$__DECC" = "yes"; then
2781 elif test "$CC" = "xlc"; then
2782 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2787 if test "$GCC" = "yes"; then
2788 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2789 echo "configure:2790: checking for buggy gcc versions" >&5
2790 GCC_VERSION=`$CC --version`
2791 case `uname -s`:`uname -m`:$GCC_VERSION in
2792 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2796 *-fno-schedule-insns*) ;;
2798 echo "$ac_t""yes" 1>&6
2799 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2800 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2801 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2807 Linux:alpha:egcs-2.91.*)
2808 echo "$ac_t""yes" 1>&6
2809 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2810 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2811 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2816 case "$GCC_VERSION" in
2819 *-fno-strength-reduce*) ;;
2821 echo "$ac_t""yes" 1>&6
2822 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2823 echo "configure: warning: -fno-strength-reduce." 1>&2
2824 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2830 *-fno-caller-saves*) ;;
2832 echo "$ac_t""yes" 1>&6
2833 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2834 echo "configure: warning: -fno-caller-saves." 1>&2
2835 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2842 echo "$ac_t""no" 1>&6
2846 if test "$GCC" = "yes"; then
2847 set x $ld_switch_system; shift; ld_switch_system=""
2848 while test -n "$1"; do
2850 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2851 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2853 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2859 if test "$GCC" = "yes"; then
2860 set x $ld_switch_machine; shift; ld_switch_machine=""
2861 while test -n "$1"; do
2863 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2864 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2866 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2872 if test "$GCC" = "yes"; then
2873 set x $LDFLAGS; shift; LDFLAGS=""
2874 while test -n "$1"; do
2876 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2877 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2879 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2885 if test "$GCC" = "yes"; then
2886 set x $ld_call_shared; shift; ld_call_shared=""
2887 while test -n "$1"; do
2889 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2890 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2892 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2898 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2899 echo " xemacs will be linked with \"$objects_machine\""
2901 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2902 echo " xemacs will be linked with \"$objects_system\""
2904 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2905 echo " xemacs will be linked with \"$unexec\""
2907 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2908 echo " xemacs will be linked with \"dumper.o\""
2911 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2912 echo "configure:2913: checking for dynodump" >&5
2913 if test "$unexec" != "unexsol2.o"; then
2914 echo "$ac_t""no" 1>&6
2916 echo "$ac_t""yes" 1>&6
2917 { test "$extra_verbose" = "yes" && cat << \EOF
2920 cat >> confdefs.h <<\EOF
2925 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2926 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2928 sparc ) dynodump_arch=sparc ;;
2929 *86* ) dynodump_arch=i386 ;;
2930 powerpc ) dynodump_arch=ppc ;;
2932 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2936 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2938 if test "$unexec" = "unexaix.o"; then
2939 if test "$dynamic" = "no"; then
2940 start_flags="-Wl,-bnso,-bnodelcsect"
2941 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2942 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2943 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2945 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2946 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2949 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2950 echo "configure:2951: checking for terminateAndUnload in -lC" >&5
2951 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2953 xe_check_libs=" -lC "
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2957 /* Override any gcc2 internal prototype to avoid an error. */
2958 /* We use char because int might match the return type of a gcc2
2959 builtin and then its argument prototype would still apply. */
2960 char terminateAndUnload();
2963 terminateAndUnload()
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2968 eval "ac_cv_lib_$ac_lib_var=yes"
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 eval "ac_cv_lib_$ac_lib_var=no"
2978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2979 echo "$ac_t""yes" 1>&6
2980 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2982 echo "$ac_t""no" 1>&6
2987 elif test -n "$ld_text_start_addr"; then
2988 start_flags="-T $ld_text_start_addr -e __start"
2994 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2995 test -z "$linker" && linker='$(CC) -nostdlib'
2996 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2998 test "$GCC" != "yes" && lib_gcc=
3004 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3005 if test -n "$site_libraries"; then
3006 for arg in $site_libraries; do
3009 * ) test -d "$arg" || \
3010 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3013 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3017 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3018 if test -n "$site_includes"; then
3019 for arg in $site_includes; do
3022 * ) test -d "$arg" || \
3023 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3026 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3030 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3031 if test -n "$site_prefixes"; then
3032 for dir in $site_prefixes; do
3033 lib_dir="${dir}/lib"
3034 inc_dir="${dir}/include"
3035 if test ! -d "$dir"; then
3036 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3037 elif test ! -d "$lib_dir"; then
3038 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3040 if test -d "$inc_dir"; then
3041 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
3043 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
3049 for dir in "/usr/ccs/lib"; do
3050 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
3053 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3054 if test -n "$site_runtime_libraries"; then
3055 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3063 if test -n "$add_runtime_path"; then :;
3064 elif test "$dynamic" = "no"; then add_runtime_path=no
3065 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3066 else case "$opsys" in
3067 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3068 * ) add_runtime_path=no ;;
3072 if test "$add_runtime_path" = "yes"; then
3073 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3074 echo "configure:3075: checking "for runtime libraries flag"" >&5
3076 sol2 ) dash_r="-R" ;;
3077 decosf* | linux* | irix*) dash_r="-rpath " ;;
3080 for try_dash_r in "-R" "-R " "-rpath "; do
3081 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3083 if test "$GCC" = "yes"; then
3084 set x $xe_check_libs; shift; xe_check_libs=""
3085 while test -n "$1"; do
3087 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3088 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3090 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3105 dash_r="$try_dash_r"
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3112 test -n "$dash_r" && break
3115 if test -n "$dash_r";
3116 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3117 else echo "$ac_t""NONE" 1>&6
3121 xe_add_unique_runpath_dir='
3123 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3125 if test "$xe_add_p" = "yes"; then
3126 test -n "$runpath" && runpath="${runpath}:"
3127 runpath="${runpath}${xe_runpath_dir}"
3128 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3134 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3135 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3136 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3138 runpath="" runpath_dirs=""
3139 if test -n "$LD_RUN_PATH"; then
3140 runpath="$LD_RUN_PATH"
3141 elif test "$GCC" = "yes"; then
3142 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3143 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3144 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3145 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3146 case "$arg" in P,* | -L* | -R* )
3147 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3149 xe_runpath_dir="$dir"
3150 test "$xe_runpath_dir" != "/lib" -a \
3151 "$xe_runpath_dir" != "/usr/lib" -a \
3152 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3153 eval "$xe_add_unique_runpath_dir"
3158 ld_switch_run="$ld_switch_run_save"
3161 for arg in $ld_switch_site $ld_switch_x_site; do
3162 case "$arg" in -L*) {
3163 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3164 test "$xe_runpath_dir" != "/lib" -a \
3165 "$xe_runpath_dir" != "/usr/lib" -a \
3166 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3167 eval "$xe_add_unique_runpath_dir"
3170 if test "$opsys $need_motif" = "sol2 yes"; then
3171 xe_runpath_dir="/opt/SUNWdt/lib";
3172 eval "$xe_add_unique_runpath_dir";
3175 if test -n "$runpath"; then
3176 ld_switch_run="${dash_r}${runpath}"
3178 if test "$GCC" = "yes"; then
3179 set x $ld_switch_run; shift; ld_switch_run=""
3180 while test -n "$1"; do
3182 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3183 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3185 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3190 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3197 if test "$with_dlmalloc" != "no"; then
3202 after_morecore_hook_exists=yes
3203 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3204 echo "configure:3205: checking for malloc_set_state" >&5
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210 which can conflict with char malloc_set_state(); below. */
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char malloc_set_state();
3219 /* The GNU C library defines this for functions which it implements
3220 to always fail with ENOSYS. Some functions are actually named
3221 something starting with __ and the normal name is an alias. */
3222 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3232 eval "ac_cv_func_malloc_set_state=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 eval "ac_cv_func_malloc_set_state=no"
3241 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3245 echo "$ac_t""no" 1>&6
3249 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3250 echo "configure:3251: checking whether __after_morecore_hook exists" >&5
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 extern void (* __after_morecore_hook)();
3256 __after_morecore_hook = 0
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 echo "$ac_t""yes" 1>&6
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 echo "$ac_t""no" 1>&6
3267 after_morecore_hook_exists=no
3270 if test "$system_malloc" = "yes" ; then
3273 - The GNU allocators don't work with this system configuration."
3274 elif test "$with_system_malloc" = "yes" ; then
3277 - User chose not to use GNU allocators."
3278 elif test "$with_debug_malloc" = "yes" ; then
3281 - User chose to use Debugging Malloc."
3284 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3286 - Using Doug Lea's new malloc from the GNU C Library."
3287 { test "$extra_verbose" = "yes" && cat << \EOF
3288 Defining DOUG_LEA_MALLOC
3290 cat >> confdefs.h <<\EOF
3291 #define DOUG_LEA_MALLOC 1
3295 if test "$after_morecore_hook_exists" = "no" ; then
3297 - Using Doug Lea's new malloc from the Linux C Library."
3298 { test "$extra_verbose" = "yes" && cat << \EOF
3299 Defining _NO_MALLOC_WARNING_
3301 cat >> confdefs.h <<\EOF
3302 #define _NO_MALLOC_WARNING_ 1
3312 # Extract the first word of "ranlib", so it can be a program name with args.
3313 set dummy ranlib; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3317 if test -n "$RANLIB"; then
3318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3322 for ac_dir in $ac_dummy; do
3323 test -z "$ac_dir" && ac_dir=.
3324 if test -f $ac_dir/$ac_word; then
3325 ac_cv_prog_RANLIB="ranlib"
3330 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3332 RANLIB="$ac_cv_prog_RANLIB"
3333 if test -n "$RANLIB"; then
3334 echo "$ac_t""$RANLIB" 1>&6
3336 echo "$ac_t""no" 1>&6
3340 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3341 if test -f $ac_dir/install-sh; then
3343 ac_install_sh="$ac_aux_dir/install-sh -c"
3345 elif test -f $ac_dir/install.sh; then
3347 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 if test -z "$ac_aux_dir"; then
3352 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3354 ac_config_guess=$ac_aux_dir/config.guess
3355 ac_config_sub=$ac_aux_dir/config.sub
3356 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3358 # Find a good install program. We prefer a C program (faster),
3359 # so one script is as good as another. But avoid the broken or
3360 # incompatible versions:
3361 # SysV /etc/install, /usr/sbin/install
3362 # SunOS /usr/etc/install
3363 # IRIX /sbin/install
3365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3368 # ./install, which can be erroneously created by make from ./install.sh.
3369 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3370 echo "configure:3371: checking for a BSD compatible install" >&5
3371 if test -z "$INSTALL"; then
3373 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3374 for ac_dir in $PATH; do
3375 # Account for people who put trailing slashes in PATH elements.
3377 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3379 # OSF1 and SCO ODT 3.0 have their own names for install.
3380 # Don't use installbsd from OSF since it installs stuff as root
3382 for ac_prog in ginstall scoinst install; do
3383 if test -f $ac_dir/$ac_prog; then
3384 if test $ac_prog = install &&
3385 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3386 # AIX install. It has an incompatible calling convention.
3389 ac_cv_path_install="$ac_dir/$ac_prog -c"
3399 if test "${ac_cv_path_install+set}" = set; then
3400 INSTALL="$ac_cv_path_install"
3402 # As a last resort, use the slow shell script. We don't cache a
3403 # path for INSTALL within a source directory, because that will
3404 # break other packages using the cache if that directory is
3405 # removed, or if the path is relative.
3406 INSTALL="$ac_install_sh"
3409 echo "$ac_t""$INSTALL" 1>&6
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3419 for ac_prog in 'bison -y' byacc
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3426 if test -n "$YACC"; then
3427 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3431 for ac_dir in $ac_dummy; do
3432 test -z "$ac_dir" && ac_dir=.
3433 if test -f $ac_dir/$ac_word; then
3434 ac_cv_prog_YACC="$ac_prog"
3440 YACC="$ac_cv_prog_YACC"
3441 if test -n "$YACC"; then
3442 echo "$ac_t""$YACC" 1>&6
3444 echo "$ac_t""no" 1>&6
3447 test -n "$YACC" && break
3449 test -n "$YACC" || YACC="yacc"
3452 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3456 echo "configure:3457: checking for $ac_hdr" >&5
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3464 { (eval echo configure:3465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3466 if test -z "$ac_err"; then
3468 eval "ac_cv_header_$ac_safe=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_header_$ac_safe=no"
3477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3480 { test "$extra_verbose" = "yes" && cat << EOF
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_hdr 1
3489 echo "$ac_t""no" 1>&6
3493 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3494 echo "configure:3495: checking for sys/wait.h that is POSIX.1 compatible" >&5
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3500 #include <sys/wait.h>
3502 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3505 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3510 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 ac_cv_header_sys_wait_h=yes
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 ac_cv_header_sys_wait_h=no
3524 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3525 if test $ac_cv_header_sys_wait_h = yes; then
3526 { test "$extra_verbose" = "yes" && cat << \EOF
3527 Defining HAVE_SYS_WAIT_H
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_SYS_WAIT_H 1
3536 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3537 echo "configure:3538: checking for ANSI C header files" >&5
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3548 { (eval echo configure:3549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3550 if test -z "$ac_err"; then
3552 ac_cv_header_stdc=yes
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3558 ac_cv_header_stdc=no
3562 if test $ac_cv_header_stdc = yes; then
3563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "memchr" >/dev/null 2>&1; then
3574 ac_cv_header_stdc=no
3580 if test $ac_cv_header_stdc = yes; then
3581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3588 egrep "free" >/dev/null 2>&1; then
3592 ac_cv_header_stdc=no
3598 if test $ac_cv_header_stdc = yes; then
3599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3604 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3605 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3607 int main () { int i; for (i = 0; i < 256; i++)
3608 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 ac_cv_header_stdc=no
3625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3626 if test $ac_cv_header_stdc = yes; then
3627 { test "$extra_verbose" = "yes" && cat << \EOF
3628 Defining STDC_HEADERS
3630 cat >> confdefs.h <<\EOF
3631 #define STDC_HEADERS 1
3637 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3638 echo "configure:3639: checking whether time.h and sys/time.h may both be included" >&5
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3644 #include <sys/time.h>
3650 if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652 ac_cv_header_time=yes
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 ac_cv_header_time=no
3661 echo "$ac_t""$ac_cv_header_time" 1>&6
3662 if test $ac_cv_header_time = yes; then
3663 { test "$extra_verbose" = "yes" && cat << \EOF
3664 Defining TIME_WITH_SYS_TIME
3666 cat >> confdefs.h <<\EOF
3667 #define TIME_WITH_SYS_TIME 1
3673 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3674 echo "configure:3675: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <sys/types.h>
3681 /* NetBSD declares sys_siglist in unistd.h. */
3682 #ifdef HAVE_UNISTD_H
3686 char *msg = *(sys_siglist + 1);
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 ac_cv_decl_sys_siglist=yes
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 ac_cv_decl_sys_siglist=no
3700 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3701 if test $ac_cv_decl_sys_siglist = yes; then
3702 { test "$extra_verbose" = "yes" && cat << \EOF
3703 Defining SYS_SIGLIST_DECLARED
3705 cat >> confdefs.h <<\EOF
3706 #define SYS_SIGLIST_DECLARED 1
3714 echo $ac_n "checking for utime""... $ac_c" 1>&6
3715 echo "configure:3716: checking for utime" >&5
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3722 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 echo "$ac_t""yes" 1>&6
3728 { test "$extra_verbose" = "yes" && cat << \EOF
3731 cat >> confdefs.h <<\EOF
3732 #define HAVE_UTIME 1
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 echo "$ac_t""no" 1>&6
3741 for ac_func in utimes
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 /* System header to define __stub macros and hopefully few prototypes,
3750 which can conflict with char $ac_func(); below. */
3752 /* Override any gcc2 internal prototype to avoid an error. */
3753 /* We use char because int might match the return type of a gcc2
3754 builtin and then its argument prototype would still apply. */
3759 /* The GNU C library defines this for functions which it implements
3760 to always fail with ENOSYS. Some functions are actually named
3761 something starting with __ and the normal name is an alias. */
3762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3772 eval "ac_cv_func_$ac_func=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3777 eval "ac_cv_func_$ac_func=no"
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784 { test "$extra_verbose" = "yes" && cat << EOF
3785 Defining $ac_tr_func
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_func 1
3793 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3802 echo "configure:3803: checking return type of signal handlers" >&5
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 #include <sys/types.h>
3813 extern "C" void (*signal (int, void (*)(int)))(int);
3815 void (*signal ()) ();
3822 if { (eval echo configure:3823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3824 ac_cv_type_signal=void
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 ac_cv_type_signal=int
3833 echo "$ac_t""$ac_cv_type_signal" 1>&6
3834 { test "$extra_verbose" = "yes" && cat << EOF
3835 Defining RETSIGTYPE = $ac_cv_type_signal
3837 cat >> confdefs.h <<EOF
3838 #define RETSIGTYPE $ac_cv_type_signal
3843 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3844 echo "configure:3845: checking for size_t" >&5
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 #include <sys/types.h>
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3858 ac_cv_type_size_t=yes
3861 ac_cv_type_size_t=no
3865 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3866 if test $ac_cv_type_size_t = no; then
3867 { test "$extra_verbose" = "yes" && cat << \EOF
3868 Defining size_t = unsigned
3870 cat >> confdefs.h <<\EOF
3871 #define size_t unsigned
3877 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3878 echo "configure:3879: checking for pid_t" >&5
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 #include <sys/types.h>
3889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3892 ac_cv_type_pid_t=yes
3899 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3900 if test $ac_cv_type_pid_t = no; then
3901 { test "$extra_verbose" = "yes" && cat << \EOF
3902 Defining pid_t = int
3904 cat >> confdefs.h <<\EOF
3911 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3912 echo "configure:3913: checking for uid_t in sys/types.h" >&5
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 egrep "uid_t" >/dev/null 2>&1; then
3922 ac_cv_type_uid_t=yes
3930 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3931 if test $ac_cv_type_uid_t = no; then
3932 { test "$extra_verbose" = "yes" && cat << \EOF
3933 Defining uid_t = int
3935 cat >> confdefs.h <<\EOF
3940 { test "$extra_verbose" = "yes" && cat << \EOF
3941 Defining gid_t = int
3943 cat >> confdefs.h <<\EOF
3950 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3951 echo "configure:3952: checking for mode_t" >&5
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 #include <sys/types.h>
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3965 ac_cv_type_mode_t=yes
3968 ac_cv_type_mode_t=no
3972 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3973 if test $ac_cv_type_mode_t = no; then
3974 { test "$extra_verbose" = "yes" && cat << \EOF
3975 Defining mode_t = int
3977 cat >> confdefs.h <<\EOF
3984 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3985 echo "configure:3986: checking for off_t" >&5
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 #include <sys/types.h>
3996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3997 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3999 ac_cv_type_off_t=yes
4006 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4007 if test $ac_cv_type_off_t = no; then
4008 { test "$extra_verbose" = "yes" && cat << \EOF
4009 Defining off_t = long
4011 cat >> confdefs.h <<\EOF
4018 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4019 echo "configure:4020: checking for ssize_t" >&5
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 #include <sys/types.h>
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4033 ac_cv_type_ssize_t=yes
4036 ac_cv_type_ssize_t=no
4040 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4041 if test $ac_cv_type_ssize_t = no; then
4042 { test "$extra_verbose" = "yes" && cat << \EOF
4043 Defining ssize_t = int
4045 cat >> confdefs.h <<\EOF
4053 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4054 echo "configure:4055: checking for socklen_t" >&5
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 #include <sys/socket.h>
4065 if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4067 echo "$ac_t""yes" 1>&6
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <sys/socket.h>
4077 int accept (int, struct sockaddr *, size_t *);
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 echo "$ac_t""size_t" 1>&6
4087 { test "$extra_verbose" = "yes" && cat << \EOF
4088 Defining socklen_t = size_t
4090 cat >> confdefs.h <<\EOF
4091 #define socklen_t size_t
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4100 echo "$ac_t""int" 1>&6
4101 { test "$extra_verbose" = "yes" && cat << \EOF
4102 Defining socklen_t = int
4104 cat >> confdefs.h <<\EOF
4105 #define socklen_t int
4114 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4115 echo "configure:4116: checking for struct timeval" >&5
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 #ifdef TIME_WITH_SYS_TIME
4120 #include <sys/time.h>
4123 #ifdef HAVE_SYS_TIME_H
4124 #include <sys/time.h>
4130 static struct timeval x; x.tv_sec = x.tv_usec;
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4135 echo "$ac_t""yes" 1>&6
4137 { test "$extra_verbose" = "yes" && cat << \EOF
4138 Defining HAVE_TIMEVAL
4140 cat >> confdefs.h <<\EOF
4141 #define HAVE_TIMEVAL 1
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 echo "$ac_t""no" 1>&6
4154 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4155 echo "configure:4156: checking whether struct tm is in sys/time.h or time.h" >&5
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <sys/types.h>
4163 struct tm *tp; tp->tm_sec;
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 ac_cv_struct_tm=time.h
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 ac_cv_struct_tm=sys/time.h
4177 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4178 if test $ac_cv_struct_tm = sys/time.h; then
4179 { test "$extra_verbose" = "yes" && cat << \EOF
4180 Defining TM_IN_SYS_TIME
4182 cat >> confdefs.h <<\EOF
4183 #define TM_IN_SYS_TIME 1
4189 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4190 echo "configure:4191: checking for tm_zone in struct tm" >&5
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 #include <sys/types.h>
4196 #include <$ac_cv_struct_tm>
4198 struct tm tm; tm.tm_zone;
4201 if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 ac_cv_struct_tm_zone=yes
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 ac_cv_struct_tm_zone=no
4212 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4213 if test "$ac_cv_struct_tm_zone" = yes; then
4214 { test "$extra_verbose" = "yes" && cat << \EOF
4215 Defining HAVE_TM_ZONE
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_TM_ZONE 1
4223 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4224 echo "configure:4225: checking for tzname" >&5
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4230 #ifndef tzname /* For SGI. */
4231 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 ac_cv_var_tzname=yes
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4248 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4249 if test $ac_cv_var_tzname = yes; then
4250 { test "$extra_verbose" = "yes" && cat << \EOF
4251 Defining HAVE_TZNAME
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_TZNAME 1
4262 echo $ac_n "checking for working const""... $ac_c" 1>&6
4263 echo "configure:4264: checking for working const" >&5
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4271 /* Ultrix mips cc rejects this. */
4272 typedef int charset[2]; const charset x;
4273 /* SunOS 4.1.1 cc rejects this. */
4274 char const *const *ccp;
4276 /* NEC SVR4.0.2 mips cc rejects this. */
4277 struct point {int x, y;};
4278 static struct point const zero = {0,0};
4279 /* AIX XL C 1.02.0.0 rejects this.
4280 It does not let you subtract one const X* pointer from another in an arm
4281 of an if-expression whose if-part is not a constant expression */
4282 const char *g = "string";
4283 ccp = &g + (g ? g-g : 0);
4284 /* HPUX 7.0 cc rejects these. */
4287 ccp = (char const *const *) p;
4288 { /* SCO 3.2v4 cc rejects this. */
4290 char const *s = 0 ? (char *) 0 : (char const *) 0;
4294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4296 const int *foo = &x[0];
4299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4300 typedef const int *iptr;
4304 { /* AIX XL C 1.02.0.0 rejects this saying
4305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4306 struct s { int j; const int *ap[3]; };
4307 struct s *b; b->j = 5;
4309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4315 if { (eval echo configure:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4326 echo "$ac_t""$ac_cv_c_const" 1>&6
4327 if test $ac_cv_c_const = no; then
4328 { test "$extra_verbose" = "yes" && cat << \EOF
4331 cat >> confdefs.h <<\EOF
4339 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4340 echo "configure:4341: checking whether ${MAKE-make} sets \${MAKE}" >&5
4341 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4343 cat > conftestmake <<\EOF
4345 @echo 'ac_maketemp="${MAKE}"'
4347 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4348 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4349 if test -n "$ac_maketemp"; then
4350 eval ac_cv_prog_make_${ac_make}_set=yes
4352 eval ac_cv_prog_make_${ac_make}_set=no
4355 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4359 echo "$ac_t""no" 1>&6
4360 SET_MAKE="MAKE=${MAKE-make}"
4364 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4365 echo "configure:4366: checking whether byte ordering is bigendian" >&5
4367 ac_cv_c_bigendian=unknown
4368 # See if sys/param.h defines the BYTE_ORDER macro.
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <sys/types.h>
4373 #include <sys/param.h>
4376 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4383 # It does; now see whether it defined to BIG_ENDIAN or not.
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 #include <sys/types.h>
4388 #include <sys/param.h>
4391 #if BYTE_ORDER != BIG_ENDIAN
4396 if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4398 ac_cv_c_bigendian=yes
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 ac_cv_c_bigendian=no
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4411 if test $ac_cv_c_bigendian = unknown; then
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4416 /* Are we little or big endian? From Harbison&Steele. */
4420 char c[sizeof (long)];
4423 exit (u.c[sizeof (long) - 1] == 1);
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4428 ac_cv_c_bigendian=no
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 ac_cv_c_bigendian=yes
4439 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4440 if test $ac_cv_c_bigendian = yes; then
4441 { test "$extra_verbose" = "yes" && cat << \EOF
4442 Defining WORDS_BIGENDIAN
4444 cat >> confdefs.h <<\EOF
4445 #define WORDS_BIGENDIAN 1
4452 echo $ac_n "checking size of short""... $ac_c" 1>&6
4453 echo "configure:4454: checking size of short" >&5
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4459 #include <sys/types.h>
4462 FILE *f=fopen("conftestval", "w");
4464 fprintf(f, "%d\n", sizeof(short));
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4470 ac_cv_sizeof_short=`cat conftestval`
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 ac_cv_sizeof_short=0
4479 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4480 { test "$extra_verbose" = "yes" && cat << EOF
4481 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4483 cat >> confdefs.h <<EOF
4484 #define SIZEOF_SHORT $ac_cv_sizeof_short
4489 if test "$ac_cv_sizeof_short" = 0; then
4491 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4492 echo "*** PANIC *** Please examine config.log for compilation errors."
4495 echo $ac_n "checking size of int""... $ac_c" 1>&6
4496 echo "configure:4497: checking size of int" >&5
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4502 #include <sys/types.h>
4505 FILE *f=fopen("conftestval", "w");
4507 fprintf(f, "%d\n", sizeof(int));
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4513 ac_cv_sizeof_int=`cat conftestval`
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4522 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4523 { test "$extra_verbose" = "yes" && cat << EOF
4524 Defining SIZEOF_INT = $ac_cv_sizeof_int
4526 cat >> confdefs.h <<EOF
4527 #define SIZEOF_INT $ac_cv_sizeof_int
4532 echo $ac_n "checking size of long""... $ac_c" 1>&6
4533 echo "configure:4534: checking size of long" >&5
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4539 #include <sys/types.h>
4542 FILE *f=fopen("conftestval", "w");
4544 fprintf(f, "%d\n", sizeof(long));
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4550 ac_cv_sizeof_long=`cat conftestval`
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4559 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4560 { test "$extra_verbose" = "yes" && cat << EOF
4561 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4563 cat >> confdefs.h <<EOF
4564 #define SIZEOF_LONG $ac_cv_sizeof_long
4569 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4570 echo "configure:4571: checking size of long long" >&5
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4576 #include <sys/types.h>
4579 FILE *f=fopen("conftestval", "w");
4581 fprintf(f, "%d\n", sizeof(long long));
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4587 ac_cv_sizeof_long_long=`cat conftestval`
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 ac_cv_sizeof_long_long=0
4596 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4597 { test "$extra_verbose" = "yes" && cat << EOF
4598 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4600 cat >> confdefs.h <<EOF
4601 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4606 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4607 echo "configure:4608: checking size of void *" >&5
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4613 #include <sys/types.h>
4616 FILE *f=fopen("conftestval", "w");
4618 fprintf(f, "%d\n", sizeof(void *));
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4624 ac_cv_sizeof_void_p=`cat conftestval`
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 ac_cv_sizeof_void_p=0
4633 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4634 { test "$extra_verbose" = "yes" && cat << EOF
4635 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4637 cat >> confdefs.h <<EOF
4638 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4644 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4645 echo "configure:4646: checking for long file names" >&5
4647 ac_cv_sys_long_file_names=yes
4648 # Test for long file names in all the places we know might matter:
4649 # . the current directory, where building will happen
4650 # $prefix/lib where we will be installing things
4651 # $exec_prefix/lib likewise
4652 # eval it to expand exec_prefix.
4653 # $TMPDIR if set, where it might want to write temporary files
4654 # if $TMPDIR is not set:
4655 # /tmp where it might want to write temporary files
4658 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4659 ac_tmpdirs="$TMPDIR"
4661 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4663 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4664 test -d $ac_dir || continue
4665 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4666 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4667 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4668 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4669 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4670 ac_cv_sys_long_file_names=no
4671 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4674 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4677 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4678 if test $ac_cv_sys_long_file_names = yes; then
4679 { test "$extra_verbose" = "yes" && cat << \EOF
4680 Defining HAVE_LONG_FILE_NAMES
4682 cat >> confdefs.h <<\EOF
4683 #define HAVE_LONG_FILE_NAMES 1
4690 echo $ac_n "checking for sin""... $ac_c" 1>&6
4691 echo "configure:4692: checking for sin" >&5
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 /* System header to define __stub macros and hopefully few prototypes,
4697 which can conflict with char sin(); below. */
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4706 /* The GNU C library defines this for functions which it implements
4707 to always fail with ENOSYS. Some functions are actually named
4708 something starting with __ and the normal name is an alias. */
4709 #if defined (__stub_sin) || defined (__stub___sin)
4717 if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4719 eval "ac_cv_func_sin=yes"
4721 echo "configure: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4724 eval "ac_cv_func_sin=no"
4728 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4732 echo "$ac_t""no" 1>&6
4734 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4735 echo "configure:4736: checking for sin in -lm" >&5
4736 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4738 xe_check_libs=" -lm "
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753 eval "ac_cv_lib_$ac_lib_var=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_lib_$ac_lib_var=no"
4763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4767 { test "$extra_verbose" = "yes" && cat << EOF
4770 cat >> confdefs.h <<EOF
4771 #define $ac_tr_lib 1
4775 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4778 echo "$ac_t""no" 1>&6
4785 { test "$extra_verbose" = "yes" && cat << \EOF
4786 Defining LISP_FLOAT_TYPE
4788 cat >> confdefs.h <<\EOF
4789 #define LISP_FLOAT_TYPE 1
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4799 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 { test "$extra_verbose" = "yes" && cat << \EOF
4805 Defining HAVE_INVERSE_HYPERBOLIC
4807 cat >> confdefs.h <<\EOF
4808 #define HAVE_INVERSE_HYPERBOLIC 1
4813 echo "configure: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4818 echo "checking type of mail spool file locking" 1>&6
4819 echo "configure:4820: checking type of mail spool file locking" >&5
4820 for ac_func in lockf flock
4822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_func" >&5
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 /* System header to define __stub macros and hopefully few prototypes,
4829 which can conflict with char $ac_func(); below. */
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4838 /* The GNU C library defines this for functions which it implements
4839 to always fail with ENOSYS. Some functions are actually named
4840 something starting with __ and the normal name is an alias. */
4841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4849 if { (eval echo configure:4850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 eval "ac_cv_func_$ac_func=yes"
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4856 eval "ac_cv_func_$ac_func=no"
4860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4863 { test "$extra_verbose" = "yes" && cat << EOF
4864 Defining $ac_tr_func
4866 cat >> confdefs.h <<EOF
4867 #define $ac_tr_func 1
4872 echo "$ac_t""no" 1>&6
4876 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4877 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4878 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4879 if test -z "$mail_locking"; then
4880 case "$opsys" in cygwin* | mingw*)
4885 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4886 Defining MAIL_LOCK_LOCKF
4888 cat >> confdefs.h <<\EOF
4889 #define MAIL_LOCK_LOCKF 1
4893 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4894 Defining MAIL_LOCK_FLOCK
4896 cat >> confdefs.h <<\EOF
4897 #define MAIL_LOCK_FLOCK 1
4901 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4902 Defining MAIL_LOCK_LOCKING
4904 cat >> confdefs.h <<\EOF
4905 #define MAIL_LOCK_LOCKING 1
4909 elif test "$mail_locking" = "pop"; then
4912 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4913 Defining MAIL_LOCK_DOT
4915 cat >> confdefs.h <<\EOF
4916 #define MAIL_LOCK_DOT 1
4921 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4922 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4923 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4924 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4925 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4926 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4928 case "$opsys" in decosf*)
4930 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4931 echo "configure:4932: checking for cma_open in -lpthreads" >&5
4932 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4934 xe_check_libs=" -lpthreads "
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 /* We use char because int might match the return type of a gcc2
4940 builtin and then its argument prototype would still apply. */
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 eval "ac_cv_lib_$ac_lib_var=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_lib_$ac_lib_var=no"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4963 { test "$extra_verbose" = "yes" && cat << EOF
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_lib 1
4971 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4974 echo "$ac_t""no" 1>&6
4978 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4979 c_switch_site="$c_switch_site -threads" ;;
4982 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4983 echo "configure:4984: checking whether the -xildoff compiler flag is required" >&5
4984 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4985 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4986 then echo "$ac_t""no" 1>&6;
4987 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
4989 else echo "$ac_t""no" 1>&6
4992 if test "$opsys" = "sol2"; then
4993 if test "$os_release" -ge 56; then
4994 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4995 echo "configure:4996: checking for \"-z ignore\" linker flag" >&5
4996 case "`ld -h 2>&1`" in
4997 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4998 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4999 *) echo "$ac_t""no" 1>&6 ;;
5005 echo "checking "for specified window system"" 1>&6
5006 echo "configure:5007: checking "for specified window system"" >&5
5012 if test "$with_gnome" != "no"; then
5013 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5014 echo "configure:5015: checking for GNOME configuration script" >&5
5015 for possible in gnome-config
5017 possible_version=`${possible} --version 2> /dev/null`
5018 if test "x${possible_version}" != "x"; then
5019 GNOME_CONFIG="${possible}"
5025 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5028 if test "${GNOME_CONFIG}" != "no"; then
5029 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5030 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5031 { test "$extra_verbose" = "yes" && cat << \EOF
5034 cat >> confdefs.h <<\EOF
5035 #define HAVE_GNOME 1
5039 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5040 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5043 if test "$with_gtk" != "no";then
5044 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5045 echo "configure:5046: checking for GTK configuration script" >&5
5046 for possible in gtk12-config gtk14-config gtk-config
5048 possible_version=`${possible} --version 2> /dev/null`
5049 if test "x${possible_version}" != "x"; then
5050 GTK_CONFIG="${possible}"
5052 case "${possible_version}" in
5053 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5054 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5059 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5062 echo "$ac_t""${GTK_CONFIG}" 1>&6
5065 if test "${GTK_CONFIG}" != "no"; then
5066 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5067 echo "configure:5068: checking gtk version" >&5
5068 GTK_VERSION=`${GTK_CONFIG} --version`
5069 echo "$ac_t""${GTK_VERSION}" 1>&6
5071 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5072 echo "configure:5073: checking gtk libs" >&5
5073 GTK_LIBS=`${GTK_CONFIG} --libs`
5074 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5075 echo "$ac_t""${GTK_LIBS}" 1>&6
5077 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5078 echo "configure:5079: checking gtk cflags" >&5
5079 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5080 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5081 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5084 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5085 echo "configure:5086: checking for main in -lgdk_imlib" >&5
5086 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5088 xe_check_libs=" -lgdk_imlib "
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5097 if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5099 eval "ac_cv_lib_$ac_lib_var=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5104 eval "ac_cv_lib_$ac_lib_var=no"
5109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5110 echo "$ac_t""yes" 1>&6
5111 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5113 echo "$ac_t""no" 1>&6
5118 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5119 echo "configure:5120: checking for Imlib_init in -lImlib" >&5
5120 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5122 xe_check_libs=" -lImlib "
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5135 if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5137 eval "ac_cv_lib_$ac_lib_var=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5142 eval "ac_cv_lib_$ac_lib_var=no"
5147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5148 echo "$ac_t""yes" 1>&6
5149 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5151 echo "$ac_t""no" 1>&6
5155 for ac_func in gdk_imlib_init
5157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5158 echo "configure:5159: checking for $ac_func" >&5
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func(); below. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186 eval "ac_cv_func_$ac_func=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 eval "ac_cv_func_$ac_func=no"
5195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5198 { test "$extra_verbose" = "yes" && cat << EOF
5199 Defining $ac_tr_func
5201 cat >> confdefs.h <<EOF
5202 #define $ac_tr_func 1
5207 echo "$ac_t""no" 1>&6
5212 { test "$extra_verbose" = "yes" && cat << \EOF
5215 cat >> confdefs.h <<\EOF
5220 { test "$extra_verbose" = "yes" && cat << \EOF
5223 cat >> confdefs.h <<\EOF
5234 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5235 test "${with_toolbars}" != no && with_toolbars=gtk
5236 test "${with_menubars}" != "no" && with_menubars=gtk
5237 test "${with_dialogs}" != "no" && with_dialogs=gtk
5238 test "${with_widgets}" != "no" && with_widgets=gtk
5240 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5241 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5243 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5244 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5246 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5247 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5249 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5250 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5253 OLD_CFLAGS="${CFLAGS}"
5254 OLD_CPPFLAGS="${CPPFLAGS}"
5255 OLD_LDFLAGS="${LDFLAGS}"
5256 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5257 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5258 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5259 for ac_hdr in glade/glade.h glade.h
5261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5263 echo "configure:5264: checking for $ac_hdr" >&5
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5271 { (eval echo configure:5272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5273 if test -z "$ac_err"; then
5275 eval "ac_cv_header_$ac_safe=yes"
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 eval "ac_cv_header_$ac_safe=no"
5284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5287 { test "$extra_verbose" = "yes" && cat << EOF
5290 cat >> confdefs.h <<EOF
5291 #define $ac_tr_hdr 1
5296 echo "$ac_t""no" 1>&6
5301 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5302 echo "configure:5303: checking for main in -lxml" >&5
5303 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5305 xe_check_libs=" -lxml "
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5316 eval "ac_cv_lib_$ac_lib_var=yes"
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 eval "ac_cv_lib_$ac_lib_var=no"
5326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5327 echo "$ac_t""yes" 1>&6
5328 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5330 echo "$ac_t""no" 1>&6
5335 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5336 echo "configure:5337: checking for main in -lglade" >&5
5337 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5339 xe_check_libs=" -lglade "
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 eval "ac_cv_lib_$ac_lib_var=yes"
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5355 eval "ac_cv_lib_$ac_lib_var=no"
5360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5361 echo "$ac_t""yes" 1>&6
5362 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5364 echo "$ac_t""no" 1>&6
5369 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5370 echo "configure:5371: checking for main in -lglade-gnome" >&5
5371 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5373 xe_check_libs=" -lglade-gnome "
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5384 eval "ac_cv_lib_$ac_lib_var=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5389 eval "ac_cv_lib_$ac_lib_var=no"
5394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5395 echo "$ac_t""yes" 1>&6
5396 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5398 echo "$ac_t""no" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 #include <glade/glade-xml.h>
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5410 echo "$ac_t""yes" 1>&6
5411 { test "$extra_verbose" = "yes" && cat << \EOF
5412 Defining LIBGLADE_XML_TXTDOMAIN = 1
5414 cat >> confdefs.h <<\EOF
5415 #define LIBGLADE_XML_TXTDOMAIN 1
5421 echo "$ac_t""no" 1>&6
5425 CFLAGS="${OLD_CFLAGS}"
5426 CPPFLAGS="${OLD_CPPFLAGS}"
5427 LDFLAGS="${OLD_LDFLAGS}"
5431 if test "$with_x11" != "no"; then
5432 test "$x_includes $x_libraries" != "NONE NONE" && \
5433 window_system=x11 with_x11=yes
5436 if test "$x_includes $x_libraries" = "NONE NONE" \
5437 -a -n "$OPENWINHOME" \
5438 -a "$OPENWINHOME" != "/usr/openwin" \
5439 -a -d "$OPENWINHOME"; then
5440 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5441 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5442 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5445 if test "$x_includes" = "NONE"; then
5446 for dir in "/usr/X11" "/usr/X11R6"; do
5447 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5451 if test "$x_libraries" = "NONE"; then
5452 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5453 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5457 # If we find X, set shell vars x_includes and x_libraries to the
5458 # paths, otherwise set no_x=yes.
5459 # Uses ac_ vars as temps to allow command line to override cache and checks.
5460 # --without-x overrides everything else, but does not touch the cache.
5461 echo $ac_n "checking for X""... $ac_c" 1>&6
5462 echo "configure:5463: checking for X" >&5
5464 # Check whether --with-x or --without-x was given.
5465 if test "${with_x+set}" = set; then
5470 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5471 if test "x$with_x" = xno; then
5472 # The user explicitly disabled X.
5475 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5476 # Both variables are already set.
5480 # One or both of the vars are not set, and there is no cached value.
5481 ac_x_includes=NO ac_x_libraries=NO
5483 if mkdir conftestdir; then
5485 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5486 cat > Imakefile <<'EOF'
5488 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5490 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5492 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5493 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5494 for ac_extension in a so sl; do
5495 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5496 test -f $ac_im_libdir/libX11.$ac_extension; then
5497 ac_im_usrlibdir=$ac_im_libdir; break
5500 # Screen out bogus values from the imake configuration. They are
5501 # bogus both because they are the default anyway, and because
5502 # using them would break gcc on systems where it needs fixed includes.
5503 case "$ac_im_incroot" in
5505 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5507 case "$ac_im_usrlibdir" in
5509 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5516 if test "$ac_x_includes" = NO; then
5517 # Guess where to find include files, by looking for this one X11 .h file.
5518 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5520 # First, try using that file with no special directory specified.
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <$x_direct_test_include>
5526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5527 { (eval echo configure:5528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5529 if test -z "$ac_err"; then
5531 # We can compile using X headers with no special include directory.
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 # Look for the header file in a standard set of common directories.
5539 # Check X11 before X11Rn because it is often a symlink to the current release.
5542 /usr/X11R6/include \
5543 /usr/X11R5/include \
5544 /usr/X11R4/include \
5547 /usr/include/X11R6 \
5548 /usr/include/X11R5 \
5549 /usr/include/X11R4 \
5551 /usr/local/X11/include \
5552 /usr/local/X11R6/include \
5553 /usr/local/X11R5/include \
5554 /usr/local/X11R4/include \
5556 /usr/local/include/X11 \
5557 /usr/local/include/X11R6 \
5558 /usr/local/include/X11R5 \
5559 /usr/local/include/X11R4 \
5563 /usr/XFree86/include/X11 \
5566 /usr/local/include \
5567 /usr/unsupported/include \
5568 /usr/athena/include \
5569 /usr/local/x11r5/include \
5570 /usr/lpp/Xamples/include \
5572 /usr/openwin/include \
5573 /usr/openwin/share/include \
5576 if test -r "$ac_dir/$x_direct_test_include"; then
5577 ac_x_includes=$ac_dir
5583 fi # $ac_x_includes = NO
5585 if test "$ac_x_libraries" = NO; then
5586 # Check for the libraries.
5588 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5589 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5591 # See if we find them without any special options.
5592 # Don't add to $LIBS permanently.
5593 ac_save_LIBS="$LIBS"
5594 LIBS="-l$x_direct_test_library $LIBS"
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5600 ${x_direct_test_function}()
5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605 LIBS="$ac_save_LIBS"
5606 # We can link X programs with no special library path.
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 LIBS="$ac_save_LIBS"
5613 # First see if replacing the include by lib works.
5614 # Check X11 before X11Rn because it is often a symlink to the current release.
5615 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5626 /usr/local/X11/lib \
5627 /usr/local/X11R6/lib \
5628 /usr/local/X11R5/lib \
5629 /usr/local/X11R4/lib \
5631 /usr/local/lib/X11 \
5632 /usr/local/lib/X11R6 \
5633 /usr/local/lib/X11R5 \
5634 /usr/local/lib/X11R4 \
5638 /usr/XFree86/lib/X11 \
5642 /usr/unsupported/lib \
5644 /usr/local/x11r5/lib \
5645 /usr/lpp/Xamples/lib \
5649 /usr/openwin/share/lib \
5652 for ac_extension in a so sl; do
5653 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5654 ac_x_libraries=$ac_dir
5661 fi # $ac_x_libraries = NO
5663 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5664 # Didn't find X anywhere. Cache the known absence of X.
5665 ac_cv_have_x="have_x=no"
5667 # Record where we found X for the cache.
5668 ac_cv_have_x="have_x=yes \
5669 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5672 eval "$ac_cv_have_x"
5675 if test "$have_x" != yes; then
5676 echo "$ac_t""$have_x" 1>&6
5679 # If each of the values was on the command line, it overrides each guess.
5680 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5681 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5682 # Update the cache value to reflect the command line values.
5683 ac_cv_have_x="have_x=yes \
5684 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5685 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5688 if test "$no_x" = yes; then
5689 # Not all programs may use this symbol, but it does not hurt to define it.
5690 { test "$extra_verbose" = "yes" && cat << \EOF
5691 Defining X_DISPLAY_MISSING
5693 cat >> confdefs.h <<\EOF
5694 #define X_DISPLAY_MISSING 1
5698 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5700 if test -n "$x_includes"; then
5701 X_CFLAGS="$X_CFLAGS -I$x_includes"
5704 # It would also be nice to do this for all -L options, not just this one.
5705 if test -n "$x_libraries"; then
5706 X_LIBS="$X_LIBS -L$x_libraries"
5707 # For Solaris; some versions of Sun CC require a space after -R and
5708 # others require no space. Words are not sufficient . . . .
5709 case "`(uname -sr) 2>/dev/null`" in
5711 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5712 echo "configure:5713: checking whether -R must be followed by a space" >&5
5713 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5732 if test $ac_R_nospace = yes; then
5733 echo "$ac_t""no" 1>&6
5734 X_LIBS="$X_LIBS -R$x_libraries"
5736 LIBS="$ac_xsave_LIBS -R $x_libraries"
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5755 if test $ac_R_space = yes; then
5756 echo "$ac_t""yes" 1>&6
5757 X_LIBS="$X_LIBS -R $x_libraries"
5759 echo "$ac_t""neither works" 1>&6
5762 LIBS="$ac_xsave_LIBS"
5766 # Check for system-dependent libraries X programs must link with.
5767 # Do this before checking for the system-independent R6 libraries
5768 # (-lICE), since we may need -lsocket or whatever for X linking.
5770 if test "$ISC" = yes; then
5771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5773 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5774 # libraries were built with DECnet support. And karl@cs.umb.edu says
5775 # the Alpha needs dnet_stub (dnet does not exist).
5776 if test "$with_dnet" = "no" ; then
5777 ac_cv_lib_dnet_dnet_ntoa=no
5780 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5781 echo "configure:5782: checking for dnet_ntoa in -ldnet" >&5
5782 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5784 xe_check_libs=" -ldnet "
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799 eval "ac_cv_lib_$ac_lib_var=yes"
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 eval "ac_cv_lib_$ac_lib_var=no"
5809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5810 echo "$ac_t""yes" 1>&6
5811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5813 echo "$ac_t""no" 1>&6
5818 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5820 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5821 echo "configure:5822: checking for dnet_ntoa in -ldnet_stub" >&5
5822 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5824 xe_check_libs=" -ldnet_stub "
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 eval "ac_cv_lib_$ac_lib_var=yes"
5841 echo "configure: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 eval "ac_cv_lib_$ac_lib_var=no"
5849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5850 echo "$ac_t""yes" 1>&6
5851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5853 echo "$ac_t""no" 1>&6
5859 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5860 # to get the SysV transport functions.
5861 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5863 # The nsl library prevents programs from opening the X display
5864 # on Irix 5.2, according to dickey@clark.net.
5865 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5866 echo "configure:5867: checking for gethostbyname" >&5
5868 cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char gethostbyname(); below. */
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5877 char gethostbyname();
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 eval "ac_cv_func_gethostbyname=yes"
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5899 eval "ac_cv_func_gethostbyname=no"
5903 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5907 echo "$ac_t""no" 1>&6
5910 if test $ac_cv_func_gethostbyname = no; then
5912 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5913 echo "configure:5914: checking for gethostbyname in -lnsl" >&5
5914 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5916 xe_check_libs=" -lnsl "
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5923 char gethostbyname();
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 eval "ac_cv_lib_$ac_lib_var=yes"
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5936 eval "ac_cv_lib_$ac_lib_var=no"
5941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5942 echo "$ac_t""yes" 1>&6
5943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5945 echo "$ac_t""no" 1>&6
5951 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5952 # socket/setsockopt and other routines are undefined under SCO ODT
5953 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5954 # on later versions), says simon@lia.di.epfl.ch: it contains
5955 # gethostby* variants that don't use the nameserver (or something).
5956 # -lsocket must be given before -lnsl if both are needed.
5957 # We assume that if connect needs -lnsl, so does gethostbyname.
5958 echo $ac_n "checking for connect""... $ac_c" 1>&6
5959 echo "configure:5960: checking for connect" >&5
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char connect(); below. */
5967 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5974 /* The GNU C library defines this for functions which it implements
5975 to always fail with ENOSYS. Some functions are actually named
5976 something starting with __ and the normal name is an alias. */
5977 #if defined (__stub_connect) || defined (__stub___connect)
5985 if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987 eval "ac_cv_func_connect=yes"
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5992 eval "ac_cv_func_connect=no"
5996 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5997 echo "$ac_t""yes" 1>&6
6000 echo "$ac_t""no" 1>&6
6003 if test $ac_cv_func_connect = no; then
6005 xe_msg_checking="for connect in -lsocket"
6006 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6007 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6008 echo "configure:6009: checking "$xe_msg_checking"" >&5
6009 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6011 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 /* Override any gcc2 internal prototype to avoid an error. */
6016 /* We use char because int might match the return type of a gcc2
6017 builtin and then its argument prototype would still apply. */
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 eval "ac_cv_lib_$ac_lib_var=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_lib_$ac_lib_var=no"
6036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6037 echo "$ac_t""yes" 1>&6
6038 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6040 echo "$ac_t""no" 1>&6
6046 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6047 echo $ac_n "checking for remove""... $ac_c" 1>&6
6048 echo "configure:6049: checking for remove" >&5
6050 cat > conftest.$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 /* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char remove(); below. */
6056 /* Override any gcc2 internal prototype to avoid an error. */
6057 /* We use char because int might match the return type of a gcc2
6058 builtin and then its argument prototype would still apply. */
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined (__stub_remove) || defined (__stub___remove)
6074 if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6076 eval "ac_cv_func_remove=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6081 eval "ac_cv_func_remove=no"
6085 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6089 echo "$ac_t""no" 1>&6
6092 if test $ac_cv_func_remove = no; then
6094 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6095 echo "configure:6096: checking for remove in -lposix" >&5
6096 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6098 xe_check_libs=" -lposix "
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 eval "ac_cv_lib_$ac_lib_var=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6118 eval "ac_cv_lib_$ac_lib_var=no"
6123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6124 echo "$ac_t""yes" 1>&6
6125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6127 echo "$ac_t""no" 1>&6
6133 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6134 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6135 echo "configure:6136: checking for shmat" >&5
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char shmat(); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_shmat) || defined (__stub___shmat)
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6163 eval "ac_cv_func_shmat=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 eval "ac_cv_func_shmat=no"
6172 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6173 echo "$ac_t""yes" 1>&6
6176 echo "$ac_t""no" 1>&6
6179 if test $ac_cv_func_shmat = no; then
6181 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6182 echo "configure:6183: checking for shmat in -lipc" >&5
6183 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6185 xe_check_libs=" -lipc "
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6189 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6200 eval "ac_cv_lib_$ac_lib_var=yes"
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 eval "ac_cv_lib_$ac_lib_var=no"
6210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6211 echo "$ac_t""yes" 1>&6
6212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6214 echo "$ac_t""no" 1>&6
6221 # Check for libraries that X11R6 Xt/Xaw programs need.
6222 ac_save_LDFLAGS="$LDFLAGS"
6223 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6224 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6225 # check for ICE first), but we must link in the order -lSM -lICE or
6226 # we get undefined symbols. So assume we have SM if we have ICE.
6227 # These have to be linked with before -lX11, unlike the other
6228 # libraries we check for below, so use a different variable.
6229 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6231 xe_msg_checking="for IceConnectionNumber in -lICE"
6232 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6233 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6234 echo "configure:6235: checking "$xe_msg_checking"" >&5
6235 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6237 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6244 char IceConnectionNumber();
6247 IceConnectionNumber()
6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252 eval "ac_cv_lib_$ac_lib_var=yes"
6254 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6257 eval "ac_cv_lib_$ac_lib_var=no"
6262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6263 echo "$ac_t""yes" 1>&6
6264 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6266 echo "$ac_t""no" 1>&6
6270 LDFLAGS="$ac_save_LDFLAGS"
6273 # Autoconf claims to find X library and include dirs for us.
6274 if test "$no_x" = "yes"
6275 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6276 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6281 if test "$with_x11" = "yes"; then
6282 { test "$extra_verbose" = "yes" && cat << \EOF
6283 Defining HAVE_X_WINDOWS
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_X_WINDOWS 1
6290 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6291 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6293 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6294 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6295 if test -d "$lib_dir" -a -d "$inc_dir"; then
6296 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6297 x_libraries="$lib_dir $x_libraries"
6298 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6300 case "$x_includes" in "$inc_dir"* ) ;; *)
6301 x_includes="$inc_dir $x_includes"
6302 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6307 for rel in "X11R6" "X11R5" "X11R4"; do
6308 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6309 if test -d "$lib_dir" -a -d "$inc_dir"; then
6310 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6311 x_libraries="$x_libraries $lib_dir"
6312 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6314 case "$x_includes" in "$inc_dir"* ) ;; *)
6315 x_includes="$x_includes $inc_dir"
6316 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6322 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
6325 ld_switch_x_site="$X_LIBS"
6328 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6329 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6330 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6332 runpath="" runpath_dirs=""
6333 if test -n "$LD_RUN_PATH"; then
6334 runpath="$LD_RUN_PATH"
6335 elif test "$GCC" = "yes"; then
6336 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6337 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6338 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6339 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6340 case "$arg" in P,* | -L* | -R* )
6341 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6343 xe_runpath_dir="$dir"
6344 test "$xe_runpath_dir" != "/lib" -a \
6345 "$xe_runpath_dir" != "/usr/lib" -a \
6346 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6347 eval "$xe_add_unique_runpath_dir"
6352 ld_switch_run="$ld_switch_run_save"
6355 for arg in $ld_switch_site $ld_switch_x_site; do
6356 case "$arg" in -L*) {
6357 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6358 test "$xe_runpath_dir" != "/lib" -a \
6359 "$xe_runpath_dir" != "/usr/lib" -a \
6360 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6361 eval "$xe_add_unique_runpath_dir"
6364 if test "$opsys $need_motif" = "sol2 yes"; then
6365 xe_runpath_dir="/opt/SUNWdt/lib";
6366 eval "$xe_add_unique_runpath_dir";
6369 if test -n "$runpath"; then
6370 ld_switch_run="${dash_r}${runpath}"
6372 if test "$GCC" = "yes"; then
6373 set x $ld_switch_run; shift; ld_switch_run=""
6374 while test -n "$1"; do
6376 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6377 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6379 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6384 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6389 if test "$extra_verbose" = "yes"; then
6390 echo; echo "X11 compilation variables:"
6391 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6396 if test "$x_includes" != NONE; then
6397 for i in $x_includes; do
6398 if test -d "$i/bitmaps"; then
6399 bitmapdirs="$i/bitmaps:$bitmapdirs"
6401 if test -d "$i/X11/bitmaps"; then
6402 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6405 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6407 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6408 Defining BITMAPDIR = "$bitmapdirs"
6410 cat >> confdefs.h <<EOF
6411 #define BITMAPDIR "$bitmapdirs"
6416 echo "checking for X defines extracted by xmkmf" 1>&6
6417 echo "configure:6418: checking for X defines extracted by xmkmf" >&5
6419 if mkdir conftestdir; then
6421 cat > Imakefile <<'EOF'
6423 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6425 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6426 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6427 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6431 for word in $xmkmf_defines; do
6435 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6437 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6440 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6441 if test "$val" = "1"
6442 then { test "$extra_verbose" = "yes" && cat << EOF
6445 cat >> confdefs.h <<EOF
6450 else { test "$extra_verbose" = "yes" && cat << EOF
6451 Defining $sym = $val
6453 cat >> confdefs.h <<EOF
6464 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6465 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6466 echo "configure:6467: checking for X11/Intrinsic.h" >&5
6468 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 #include <X11/Intrinsic.h>
6473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6474 { (eval echo configure:6475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6476 if test -z "$ac_err"; then
6478 eval "ac_cv_header_$ac_safe=yes"
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 eval "ac_cv_header_$ac_safe=no"
6487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6491 echo "$ac_t""no" 1>&6
6492 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6497 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6498 echo "configure:6499: checking for XOpenDisplay in -lX11" >&5
6499 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6501 xe_check_libs=" -lX11 "
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char XOpenDisplay();
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_lib_$ac_lib_var=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_lib_$ac_lib_var=no"
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6527 echo "$ac_t""yes" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 if test "$have_lib_x11" != "yes"; then
6536 xe_msg_checking="for XGetFontProperty in -lX11"
6537 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6538 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6539 echo "configure:6540: checking "$xe_msg_checking"" >&5
6540 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6542 xe_check_libs=" -lX11 -b i486-linuxaout"
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6549 char XGetFontProperty();
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6557 eval "ac_cv_lib_$ac_lib_var=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 eval "ac_cv_lib_$ac_lib_var=no"
6567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6568 echo "$ac_t""yes" 1>&6
6569 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6571 echo "$ac_t""no" 1>&6
6572 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6578 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6581 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6582 echo "configure:6583: checking for XShapeSelectInput in -lXext" >&5
6583 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6585 xe_check_libs=" -lXext "
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char XShapeSelectInput();
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 eval "ac_cv_lib_$ac_lib_var=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 eval "ac_cv_lib_$ac_lib_var=no"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6611 echo "$ac_t""yes" 1>&6
6612 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6614 echo "$ac_t""no" 1>&6
6620 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6621 echo "configure:6622: checking for XtOpenDisplay in -lXt" >&5
6622 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6624 xe_check_libs=" -lXt "
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6631 char XtOpenDisplay();
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639 eval "ac_cv_lib_$ac_lib_var=yes"
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6644 eval "ac_cv_lib_$ac_lib_var=no"
6649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6650 echo "$ac_t""yes" 1>&6
6651 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6653 echo "$ac_t""no" 1>&6
6654 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6659 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6660 echo "configure:6661: checking the version of X11 being used" >&5
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 #include <X11/Intrinsic.h>
6665 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6669 ./conftest foobar; x11_release=$?
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6678 echo "$ac_t""R${x11_release}" 1>&6
6679 { test "$extra_verbose" = "yes" && cat << EOF
6680 Defining THIS_IS_X11R${x11_release}
6682 cat >> confdefs.h <<EOF
6683 #define THIS_IS_X11R${x11_release} 1
6688 if test "${x11_release}" = "4"; then
6689 case "$with_widgets" in
6690 "" | "no") with_widgets=no ;;
6691 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6695 for ac_func in XConvertCase
6697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6698 echo "configure:6699: checking for $ac_func" >&5
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func(); below. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6726 eval "ac_cv_func_$ac_func=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 eval "ac_cv_func_$ac_func=no"
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6738 { test "$extra_verbose" = "yes" && cat << EOF
6739 Defining $ac_tr_func
6741 cat >> confdefs.h <<EOF
6742 #define $ac_tr_func 1
6747 echo "$ac_t""no" 1>&6
6752 for ac_hdr in X11/Xlocale.h
6754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6756 echo "configure:6757: checking for $ac_hdr" >&5
6758 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6766 if test -z "$ac_err"; then
6768 eval "ac_cv_header_$ac_safe=yes"
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 eval "ac_cv_header_$ac_safe=no"
6777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6778 echo "$ac_t""yes" 1>&6
6779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6780 { test "$extra_verbose" = "yes" && cat << EOF
6783 cat >> confdefs.h <<EOF
6784 #define $ac_tr_hdr 1
6789 echo "$ac_t""no" 1>&6
6794 for ac_func in XRegisterIMInstantiateCallback
6796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6797 echo "configure:6798: checking for $ac_func" >&5
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* System header to define __stub macros and hopefully few prototypes,
6803 which can conflict with char $ac_func(); below. */
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6812 /* The GNU C library defines this for functions which it implements
6813 to always fail with ENOSYS. Some functions are actually named
6814 something starting with __ and the normal name is an alias. */
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 eval "ac_cv_func_$ac_func=yes"
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6830 eval "ac_cv_func_$ac_func=no"
6834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6837 { test "$extra_verbose" = "yes" && cat << EOF
6838 Defining $ac_tr_func
6840 cat >> confdefs.h <<EOF
6841 #define $ac_tr_func 1
6846 echo "$ac_t""no" 1>&6
6850 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6851 echo "configure:6852: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6856 #define NeedFunctionPrototypes 1
6857 #include <X11/Xlib.h>
6858 extern Bool XRegisterIMInstantiateCallback(
6859 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6865 if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6867 echo "$ac_t""yes" 1>&6
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 echo "$ac_t""no" 1>&6
6873 { test "$extra_verbose" = "yes" && cat << \EOF
6874 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6876 cat >> confdefs.h <<\EOF
6877 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6884 test -z "$with_xmu" && {
6885 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6886 echo "configure:6887: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6887 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6889 xe_check_libs=" -lXmu "
6890 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6893 /* Override any gcc2 internal prototype to avoid an error. */
6894 /* We use char because int might match the return type of a gcc2
6895 builtin and then its argument prototype would still apply. */
6896 char XmuReadBitmapDataFromFile();
6899 XmuReadBitmapDataFromFile()
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6904 eval "ac_cv_lib_$ac_lib_var=yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 eval "ac_cv_lib_$ac_lib_var=no"
6914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6915 echo "$ac_t""yes" 1>&6
6918 echo "$ac_t""no" 1>&6
6923 if test "$with_xmu" = "no"; then
6924 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6925 echo " xemacs will be linked with \"xmu.o\""
6928 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6929 { test "$extra_verbose" = "yes" && cat << \EOF
6932 cat >> confdefs.h <<\EOF
6940 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6941 echo "configure:6942: checking for main in -lXbsd" >&5
6942 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6944 xe_check_libs=" -lXbsd "
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 eval "ac_cv_lib_$ac_lib_var=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6960 eval "ac_cv_lib_$ac_lib_var=no"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6966 echo "$ac_t""yes" 1>&6
6967 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6969 echo "$ac_t""no" 1>&6
6974 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6975 if test "$GCC" = "yes"; then
6976 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6977 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6980 "xlc" ) CC="xlc_r" ;;
6981 "xlC" ) CC="xlC_r" ;;
6988 if test "$with_msw" != "no"; then
6989 echo "checking for MS-Windows" 1>&6
6990 echo "configure:6991: checking for MS-Windows" >&5
6992 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6993 echo "configure:6994: checking for main in -lgdi32" >&5
6994 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6996 xe_check_libs=" -lgdi32 "
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7005 if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7007 eval "ac_cv_lib_$ac_lib_var=yes"
7009 echo "configure: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7012 eval "ac_cv_lib_$ac_lib_var=no"
7017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7018 echo "$ac_t""yes" 1>&6
7021 echo "$ac_t""no" 1>&6
7025 if test "$with_msw" = "yes"; then
7026 { test "$extra_verbose" = "yes" && cat << \EOF
7027 Defining HAVE_MS_WINDOWS
7029 cat >> confdefs.h <<\EOF
7030 #define HAVE_MS_WINDOWS 1
7035 if test "$with_netinstall" = "yes"; then
7036 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7037 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7038 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7041 install_pp="$blddir/lib-src/installexe.sh"
7042 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
7043 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7044 if test "$window_system" != x11; then
7046 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7047 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7048 echo " xemacs will be linked with \"scrollbar-msw.o\""
7050 test "$with_menubars" != "no" && with_menubars=msw \
7051 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7052 echo " xemacs will be linked with \"menubar-msw.o\""
7054 test "$with_toolbars" != "no" && with_toolbars=msw \
7055 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7056 echo " xemacs will be linked with \"toolbar-msw.o\""
7058 test "$with_dialogs" != "no" && with_dialogs=msw \
7059 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7060 echo " xemacs will be linked with \"dialog-msw.o\""
7062 test "$with_widgets" != "no" && with_widgets=msw
7064 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7065 echo " xemacs will be linked with \"scrollbar-msw.o\""
7067 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7068 echo " xemacs will be linked with \"menubar-msw.o\""
7070 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7071 echo " xemacs will be linked with \"toolbar-msw.o\""
7073 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7074 echo " xemacs will be linked with \"dialog-msw.o\""
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7081 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7085 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7086 Defining HAVE_MSG_SELECT
7088 cat >> confdefs.h <<\EOF
7089 #define HAVE_MSG_SELECT 1
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7099 with_file_coding=yes
7100 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
7101 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\""
7108 test -z "$window_system" && window_system="none"
7110 if test "$window_system" = "none"; then
7111 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7113 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7114 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7116 eval "with_${feature}=no"
7119 test -z "$with_toolbars" && with_toolbars=yes
7122 if test "$with_msw" != "yes"; then
7123 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7125 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7126 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7128 eval "with_${feature}=no"
7134 if test "$with_x11" != "yes"; then
7135 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7137 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7138 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7140 eval "with_${feature}=no"
7144 if test "$with_x11" = "yes"; then
7145 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7146 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7147 echo "configure:7148: checking for X11/extensions/shape.h" >&5
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 #include <X11/extensions/shape.h>
7154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7155 { (eval echo configure:7156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7157 if test -z "$ac_err"; then
7159 eval "ac_cv_header_$ac_safe=yes"
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7165 eval "ac_cv_header_$ac_safe=no"
7168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7171 { test "$extra_verbose" = "yes" && cat << \EOF
7172 Defining HAVE_BALLOON_HELP
7174 cat >> confdefs.h <<\EOF
7175 #define HAVE_BALLOON_HELP 1
7179 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7180 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7183 echo "$ac_t""no" 1>&6
7190 case "$window_system" in
7191 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7192 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7195 test "$with_gnome" = "yes" && echo " Using GNOME."
7196 test "$with_gnome" = "no" && echo " Using GTK."
7198 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7201 case "$x_libraries" in *X11R4* )
7202 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7203 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7206 echo "checking for WM_COMMAND option" 1>&6
7207 echo "configure:7208: checking for WM_COMMAND option" >&5;
7208 if test "$with_wmcommand" != "no"; then
7209 { test "$extra_verbose" = "yes" && cat << \EOF
7210 Defining HAVE_WMCOMMAND
7212 cat >> confdefs.h <<\EOF
7213 #define HAVE_WMCOMMAND 1
7219 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7220 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7221 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7222 echo "configure:7223: checking for X11/Xauth.h" >&5
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 #include <X11/Xauth.h>
7229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7230 { (eval echo configure:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7232 if test -z "$ac_err"; then
7234 eval "ac_cv_header_$ac_safe=yes"
7237 echo "configure: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7240 eval "ac_cv_header_$ac_safe=no"
7243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7247 echo "$ac_t""no" 1>&6
7251 test -z "$with_xauth" && {
7252 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7253 echo "configure:7254: checking for XauGetAuthByAddr in -lXau" >&5
7254 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7256 xe_check_libs=" -lXau "
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* Override any gcc2 internal prototype to avoid an error. */
7261 /* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */
7263 char XauGetAuthByAddr();
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 eval "ac_cv_lib_$ac_lib_var=yes"
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 eval "ac_cv_lib_$ac_lib_var=no"
7281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7282 echo "$ac_t""yes" 1>&6
7285 echo "$ac_t""no" 1>&6
7290 test -z "$with_xauth" && with_xauth=yes
7291 if test "$with_xauth" = "yes"; then
7292 { test "$extra_verbose" = "yes" && cat << \EOF
7295 cat >> confdefs.h <<\EOF
7296 #define HAVE_XAUTH 1
7302 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7310 if test "$with_tooltalk" != "no" ; then
7311 for dir in "" "Tt/" "desktop/" ; do
7312 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7313 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7314 echo "configure:7315: checking for ${dir}tt_c.h" >&5
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 #include <${dir}tt_c.h>
7321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7322 { (eval echo configure:7323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7324 if test -z "$ac_err"; then
7326 eval "ac_cv_header_$ac_safe=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 eval "ac_cv_header_$ac_safe=no"
7335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 tt_c_h_file="${dir}tt_c.h"; break
7339 echo "$ac_t""no" 1>&6
7343 if test -z "$tt_c_h_file"; then
7344 if test "$with_tooltalk" = "yes"; then
7345 (echo "$progname: Usage error:"
7346 echo " " "Unable to find required tooltalk header files."
7347 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7352 if test "$with_tooltalk" != "no" ; then
7353 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7355 xe_msg_checking="for tt_message_create in -ltt"
7356 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7357 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7358 echo "configure:7359: checking "$xe_msg_checking"" >&5
7359 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7361 xe_check_libs=" -ltt $extra_libs"
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* Override any gcc2 internal prototype to avoid an error. */
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7368 char tt_message_create();
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7376 eval "ac_cv_lib_$ac_lib_var=yes"
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7381 eval "ac_cv_lib_$ac_lib_var=no"
7386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7387 echo "$ac_t""yes" 1>&6
7388 tt_libs="-ltt $extra_libs"; break
7390 echo "$ac_t""no" 1>&6
7396 if test -z "$tt_libs"; then
7397 if test "$with_tooltalk" = "yes"; then
7398 (echo "$progname: Usage error:"
7399 echo " " "Unable to find required tooltalk libraries."
7400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7405 test -z "$with_tooltalk" && with_tooltalk=yes
7406 if test "$with_tooltalk" = "yes"; then
7407 { test "$extra_verbose" = "yes" && cat << \EOF
7410 cat >> confdefs.h <<\EOF
7415 { test "$extra_verbose" = "yes" && cat << EOF
7416 Defining TT_C_H_FILE = "$tt_c_h_file"
7418 cat >> confdefs.h <<EOF
7419 #define TT_C_H_FILE "$tt_c_h_file"
7423 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7424 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7425 echo " xemacs will be linked with \"tooltalk.o\""
7429 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7430 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7431 echo "configure:7432: checking for Dt/Dt.h" >&5
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7439 { (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7441 if test -z "$ac_err"; then
7443 eval "ac_cv_header_$ac_safe=yes"
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 eval "ac_cv_header_$ac_safe=no"
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453 echo "$ac_t""yes" 1>&6
7456 echo "$ac_t""no" 1>&6
7460 test -z "$with_cde" && {
7461 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7462 echo "configure:7463: checking for DtDndDragStart in -lDtSvc" >&5
7463 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7465 xe_check_libs=" -lDtSvc "
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7472 char DtDndDragStart();
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 eval "ac_cv_lib_$ac_lib_var=yes"
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7485 eval "ac_cv_lib_$ac_lib_var=no"
7490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7491 echo "$ac_t""yes" 1>&6
7494 echo "$ac_t""no" 1>&6
7499 test -z "$with_cde" && with_cde=yes
7500 if test "$with_dragndrop" = no; then
7501 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7504 if test "$with_cde" = "yes" ; then
7505 { test "$extra_verbose" = "yes" && cat << \EOF
7508 cat >> confdefs.h <<\EOF
7513 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7514 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7515 with_tooltalk=yes # CDE requires Tooltalk
7516 need_motif=yes # CDE requires Motif
7519 test "$window_system" != "x11" && with_offix=no
7520 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7521 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7524 if test "$with_dragndrop" = no; then
7525 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7528 if test "$with_cde" = yes; then
7529 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7532 test -z "$with_offix" && with_offix=no
7533 if test "$with_offix" = "yes"; then
7534 { test "$extra_verbose" = "yes" && cat << \EOF
7535 Defining HAVE_OFFIX_DND
7537 cat >> confdefs.h <<\EOF
7538 #define HAVE_OFFIX_DND 1
7542 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7543 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7545 if test "$with_gtk" = "yes"; then
7546 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7549 if test "$with_dragndrop" != "no" ; then
7550 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7551 echo "configure:7552: checking if drag and drop API is needed" >&5
7552 if test -n "$dragndrop_proto" ; then
7554 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7555 { test "$extra_verbose" = "yes" && cat << \EOF
7556 Defining HAVE_DRAGNDROP
7558 cat >> confdefs.h <<\EOF
7559 #define HAVE_DRAGNDROP 1
7563 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7566 echo "$ac_t""no" 1>&6
7570 echo "checking for LDAP" 1>&6
7571 echo "configure:7572: checking for LDAP" >&5
7572 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7573 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7574 echo "configure:7575: checking for ldap.h" >&5
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584 if test -z "$ac_err"; then
7586 eval "ac_cv_header_$ac_safe=yes"
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7592 eval "ac_cv_header_$ac_safe=no"
7595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7599 echo "$ac_t""no" 1>&6
7603 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7604 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7605 echo "configure:7606: checking for lber.h" >&5
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7613 { (eval echo configure:7614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7615 if test -z "$ac_err"; then
7617 eval "ac_cv_header_$ac_safe=yes"
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7623 eval "ac_cv_header_$ac_safe=no"
7626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7630 echo "$ac_t""no" 1>&6
7634 if test "$with_ldap" != "no"; then
7636 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7637 echo "configure:7638: checking for ldap_search in -lldap" >&5
7638 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7640 xe_check_libs=" -lldap "
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7655 eval "ac_cv_lib_$ac_lib_var=yes"
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 eval "ac_cv_lib_$ac_lib_var=no"
7665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7666 echo "$ac_t""yes" 1>&6
7667 with_ldap_nolber=yes
7669 echo "$ac_t""no" 1>&6
7674 test "$with_ldap_nolber" = "no" && {
7675 xe_msg_checking="for ldap_open in -lldap"
7676 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7677 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7678 echo "configure:7679: checking "$xe_msg_checking"" >&5
7679 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7681 xe_check_libs=" -lldap -llber"
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 eval "ac_cv_lib_$ac_lib_var=yes"
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 eval "ac_cv_lib_$ac_lib_var=no"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7707 echo "$ac_t""yes" 1>&6
7710 echo "$ac_t""no" 1>&6
7715 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7716 xe_msg_checking="for ldap_open in -lldap"
7717 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7718 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7719 echo "configure:7720: checking "$xe_msg_checking"" >&5
7720 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7722 xe_check_libs=" -lldap -llber -lkrb"
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 eval "ac_cv_lib_$ac_lib_var=yes"
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 eval "ac_cv_lib_$ac_lib_var=no"
7747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7748 echo "$ac_t""yes" 1>&6
7751 echo "$ac_t""no" 1>&6
7756 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7757 xe_msg_checking="for ldap_open in -lldap"
7758 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7759 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7760 echo "configure:7761: checking "$xe_msg_checking"" >&5
7761 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7763 xe_check_libs=" -lldap -llber -lkrb -ldes"
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 eval "ac_cv_lib_$ac_lib_var=yes"
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 eval "ac_cv_lib_$ac_lib_var=no"
7788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7789 echo "$ac_t""yes" 1>&6
7790 with_ldap_krbdes=yes
7792 echo "$ac_t""no" 1>&6
7797 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
7799 if test "$with_ldap" = "yes"; then
7800 { test "$extra_verbose" = "yes" && cat << \EOF
7803 cat >> confdefs.h <<\EOF
7808 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7809 echo " xemacs will be linked with \"eldap.o\""
7811 if test "$with_ldap_nolber" = "yes" ; then
7812 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7814 if test "$with_ldap_krb" = "yes" ; then
7815 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7817 if test "$with_ldap_krbdes" = "yes" ; then
7818 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7819 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7821 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7822 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7824 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_func" >&5
7829 cat > conftest.$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7832 /* System header to define __stub macros and hopefully few prototypes,
7833 which can conflict with char $ac_func(); below. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7842 /* The GNU C library defines this for functions which it implements
7843 to always fail with ENOSYS. Some functions are actually named
7844 something starting with __ and the normal name is an alias. */
7845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7855 eval "ac_cv_func_$ac_func=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 eval "ac_cv_func_$ac_func=no"
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867 { test "$extra_verbose" = "yes" && cat << EOF
7868 Defining $ac_tr_func
7870 cat >> confdefs.h <<EOF
7871 #define $ac_tr_func 1
7876 echo "$ac_t""no" 1>&6
7882 if test "$with_postgresql" != "no"; then
7883 echo "checking for PostgreSQL" 1>&6
7884 echo "configure:7885: checking for PostgreSQL" >&5
7886 for header_dir in "" "pgsql/" "postgresql/"; do
7887 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7888 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7889 echo "configure:7890: checking for ${header_dir}libpq-fe.h" >&5
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <${header_dir}libpq-fe.h>
7896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7897 { (eval echo configure:7898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7899 if test -z "$ac_err"; then
7901 eval "ac_cv_header_$ac_safe=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7907 eval "ac_cv_header_$ac_safe=no"
7910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7914 echo "$ac_t""no" 1>&6
7919 test -n "$libpq_fe_h_file" && {
7920 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7921 echo "configure:7922: checking for PQconnectdb in -lpq" >&5
7922 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7924 xe_check_libs=" -lpq "
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7939 eval "ac_cv_lib_$ac_lib_var=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_lib_$ac_lib_var=no"
7949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7950 echo "$ac_t""yes" 1>&6
7953 echo "$ac_t""no" 1>&6
7958 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7960 { test "$extra_verbose" = "yes" && cat << \EOF
7961 Defining HAVE_POSTGRESQL
7963 cat >> confdefs.h <<\EOF
7964 #define HAVE_POSTGRESQL 1
7969 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7970 echo "configure:7971: checking for PQconnectStart in -lpq" >&5
7971 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7973 xe_check_libs=" -lpq "
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char PQconnectStart();
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7999 echo "$ac_t""yes" 1>&6
8000 with_postgresqlv7=yes;
8001 { test "$extra_verbose" = "yes" && cat << \EOF
8002 Defining HAVE_POSTGRESQLV7
8004 cat >> confdefs.h <<\EOF
8005 #define HAVE_POSTGRESQLV7 1
8010 echo "$ac_t""no" 1>&6
8014 { test "$extra_verbose" = "yes" && cat << EOF
8015 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8017 cat >> confdefs.h <<EOF
8018 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8022 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8023 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8024 echo " xemacs will be linked with \"postgresql.o\""
8026 elif test "$with_postgresql" = "yes"; then
8027 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8032 if test "$window_system" != "none"; then
8033 echo "checking for graphics libraries" 1>&6
8034 echo "configure:8035: checking for graphics libraries" >&5
8040 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8041 cygwin_top=`eval "dirname ${cygwin_top}"`;
8042 cygwin_top="${cygwin_top}/..";
8043 case "$window_system" in
8045 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8046 incpath_xpm="-I${cygwin_top}/include/noX"
8056 if test -z "$with_xpm"; then
8057 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8058 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8059 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8060 echo "configure:8061: checking for Xpm - no older than 3.4f" >&5
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8066 #include <X11/xpm.h>
8067 int main(int c, char **v) {
8069 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8070 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8072 if { (eval echo configure:8073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8074 ./conftest dummy_arg; xpm_status=$?;
8075 if test "$xpm_status" = "0"; then
8079 if test "$xpm_status" = "1"; then
8080 xpm_problem="Xpm library version and header file version don't match!"
8081 elif test "$xpm_status" = "2"; then
8082 xpm_problem="Xpm library version is too old!"
8084 xpm_problem="Internal xpm detection logic error!"
8087 *** WARNING *** $xpm_problem
8088 I'm not touching that with a 10-foot pole!
8089 If you really want to use the installed version of Xpm, rerun
8090 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8101 echo "$ac_t""$with_xpm" 1>&6
8103 if test "$with_xpm" = "yes"; then
8104 { test "$extra_verbose" = "yes" && cat << \EOF
8107 cat >> confdefs.h <<\EOF
8112 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8113 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8114 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8115 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8116 echo "configure:8117: checking for \"FOR_MSW\" xpm" >&5
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8123 XpmCreatePixmapFromData()
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8137 echo "$ac_t""$xpm_for_msw" 1>&6
8138 if test "$xpm_for_msw" = "yes"; then
8139 { test "$extra_verbose" = "yes" && cat << \EOF
8142 cat >> confdefs.h <<\EOF
8150 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8151 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8152 echo "configure:8153: checking for compface.h" >&5
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 #include <compface.h>
8159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8160 { (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162 if test -z "$ac_err"; then
8164 eval "ac_cv_header_$ac_safe=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 eval "ac_cv_header_$ac_safe=no"
8173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8174 echo "$ac_t""yes" 1>&6
8177 echo "$ac_t""no" 1>&6
8181 test -z "$with_xface" && {
8182 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8183 echo "configure:8184: checking for UnGenFace in -lcompface" >&5
8184 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8186 xe_check_libs=" -lcompface "
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8201 eval "ac_cv_lib_$ac_lib_var=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8206 eval "ac_cv_lib_$ac_lib_var=no"
8211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8212 echo "$ac_t""yes" 1>&6
8215 echo "$ac_t""no" 1>&6
8220 test -z "$with_xface" && with_xface=yes
8221 if test "$with_xface" = "yes"; then
8222 { test "$extra_verbose" = "yes" && cat << \EOF
8225 cat >> confdefs.h <<\EOF
8226 #define HAVE_XFACE 1
8230 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8233 if test "$with_gif" != "no"; then
8235 { test "$extra_verbose" = "yes" && cat << \EOF
8238 cat >> confdefs.h <<\EOF
8243 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8244 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8248 if test "$with_png $with_tiff" != "no no"; then
8250 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8251 echo "configure:8252: checking for inflate in -lc" >&5
8252 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8254 xe_check_libs=" -lc "
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8280 echo "$ac_t""yes" 1>&6
8283 echo "$ac_t""no" 1>&6
8285 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8286 echo "configure:8287: checking for inflate in -lz" >&5
8287 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8289 xe_check_libs=" -lz "
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 eval "ac_cv_lib_$ac_lib_var=no"
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8315 echo "$ac_t""yes" 1>&6
8316 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8318 echo "$ac_t""no" 1>&6
8320 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8321 echo "configure:8322: checking for inflate in -lgz" >&5
8322 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8324 xe_check_libs=" -lgz "
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8328 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 eval "ac_cv_lib_$ac_lib_var=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8344 eval "ac_cv_lib_$ac_lib_var=no"
8349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8350 echo "$ac_t""yes" 1>&6
8351 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8353 echo "$ac_t""no" 1>&6
8365 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8366 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8367 echo "configure:8368: checking for jpeglib.h" >&5
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 #include <jpeglib.h>
8374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8375 { (eval echo configure:8376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8377 if test -z "$ac_err"; then
8379 eval "ac_cv_header_$ac_safe=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_header_$ac_safe=no"
8388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8392 echo "$ac_t""no" 1>&6
8396 test -z "$with_jpeg" && {
8397 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8398 echo "configure:8399: checking for jpeg_destroy_decompress in -ljpeg" >&5
8399 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8401 xe_check_libs=" -ljpeg "
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8408 char jpeg_destroy_decompress();
8411 jpeg_destroy_decompress()
8414 if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8416 eval "ac_cv_lib_$ac_lib_var=yes"
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8421 eval "ac_cv_lib_$ac_lib_var=no"
8426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8427 echo "$ac_t""yes" 1>&6
8430 echo "$ac_t""no" 1>&6
8435 test -z "$with_jpeg" && with_jpeg=yes
8436 if test "$with_jpeg" = "yes"; then
8437 { test "$extra_verbose" = "yes" && cat << \EOF
8440 cat >> confdefs.h <<\EOF
8445 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8449 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8450 echo "configure:8451: checking for pow" >&5
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456 which can conflict with char pow(); below. */
8458 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8465 /* The GNU C library defines this for functions which it implements
8466 to always fail with ENOSYS. Some functions are actually named
8467 something starting with __ and the normal name is an alias. */
8468 #if defined (__stub_pow) || defined (__stub___pow)
8476 if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478 eval "ac_cv_func_pow=yes"
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8483 eval "ac_cv_func_pow=no"
8487 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8488 echo "$ac_t""yes" 1>&6
8491 echo "$ac_t""no" 1>&6
8495 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8496 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8497 echo "configure:8498: checking for png.h" >&5
8499 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8505 { (eval echo configure:8506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8507 if test -z "$ac_err"; then
8509 eval "ac_cv_header_$ac_safe=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 eval "ac_cv_header_$ac_safe=no"
8518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8522 echo "$ac_t""no" 1>&6
8526 test -z "$with_png" && {
8527 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8528 echo "configure:8529: checking for png_read_image in -lpng" >&5
8529 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8531 xe_check_libs=" -lpng "
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538 char png_read_image();
8544 if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8546 eval "ac_cv_lib_$ac_lib_var=yes"
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 eval "ac_cv_lib_$ac_lib_var=no"
8556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8557 echo "$ac_t""yes" 1>&6
8560 echo "$ac_t""no" 1>&6
8565 if test -z "$with_png"; then
8566 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8567 echo "configure:8568: checking for workable png version information" >&5
8568 xe_check_libs="-lpng -lz"
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8573 int main(int c, char **v) {
8574 if (c == 1) return 0;
8575 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8576 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8580 ./conftest dummy_arg; png_status=$?;
8581 if test "$png_status" = "0"; then
8585 if test "$png_status" = "1"; then
8586 png_problem="PNG library version and header file don't match!"
8587 elif test "$png_status" = "2"; then
8588 png_problem="PNG library version too old (pre 1.0.2)!"
8591 *** WARNING *** $png_problem
8592 I'm not touching that with a 10-foot pole!
8593 If you really want to use the installed version of libPNG, rerun
8594 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8605 echo "$ac_t""$with_png" 1>&6
8607 if test "$with_png" = "yes"; then
8608 { test "$extra_verbose" = "yes" && cat << \EOF
8611 cat >> confdefs.h <<\EOF
8616 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8619 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8620 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8621 echo "configure:8622: checking for tiffio.h" >&5
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8629 { (eval echo configure:8630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8631 if test -z "$ac_err"; then
8633 eval "ac_cv_header_$ac_safe=yes"
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 eval "ac_cv_header_$ac_safe=no"
8642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8643 echo "$ac_t""yes" 1>&6
8646 echo "$ac_t""no" 1>&6
8650 test -z "$with_tiff" && {
8651 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8652 echo "configure:8653: checking for TIFFClientOpen in -ltiff" >&5
8653 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8655 xe_check_libs=" -ltiff "
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8662 char TIFFClientOpen();
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8670 eval "ac_cv_lib_$ac_lib_var=yes"
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 eval "ac_cv_lib_$ac_lib_var=no"
8680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8681 echo "$ac_t""yes" 1>&6
8684 echo "$ac_t""no" 1>&6
8689 test -z "$with_tiff" && with_tiff=yes
8690 if test "$with_tiff" = "yes"; then
8691 { test "$extra_verbose" = "yes" && cat << \EOF
8694 cat >> confdefs.h <<\EOF
8699 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8704 if test "$with_gtk" = "yes"; then
8705 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8706 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8707 echo "configure:8708: checking for compface.h" >&5
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 #include <compface.h>
8714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8715 { (eval echo configure:8716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8717 if test -z "$ac_err"; then
8719 eval "ac_cv_header_$ac_safe=yes"
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8725 eval "ac_cv_header_$ac_safe=no"
8728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8729 echo "$ac_t""yes" 1>&6
8732 echo "$ac_t""no" 1>&6
8736 test -z "$with_xface" && {
8737 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8738 echo "configure:8739: checking for UnGenFace in -lcompface" >&5
8739 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8741 xe_check_libs=" -lcompface "
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 /* Override any gcc2 internal prototype to avoid an error. */
8746 /* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 eval "ac_cv_lib_$ac_lib_var=yes"
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8761 eval "ac_cv_lib_$ac_lib_var=no"
8766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8767 echo "$ac_t""yes" 1>&6
8770 echo "$ac_t""no" 1>&6
8775 test -z "$with_xface" && with_xface=yes
8776 if test "$with_xface" = "yes"; then
8777 { test "$extra_verbose" = "yes" && cat << \EOF
8780 cat >> confdefs.h <<\EOF
8781 #define HAVE_XFACE 1
8785 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8791 if test "$with_x11" = "yes"; then
8792 echo "checking for X11 graphics libraries" 1>&6
8793 echo "configure:8794: checking for X11 graphics libraries" >&5
8796 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
8797 echo "checking for the Athena widgets" 1>&6
8798 echo "configure:8799: checking for the Athena widgets" >&5
8800 case "$with_athena" in
8801 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8802 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8803 "next") athena_variant=neXtaw athena_3d=yes ;;
8804 "95") athena_variant=Xaw95 athena_3d=yes ;;
8805 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8806 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8809 if test "$athena_3d" = "no"; then
8811 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8812 echo "configure:8813: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8813 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8815 xe_check_libs=" -l$athena_variant "
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8819 /* Override any gcc2 internal prototype to avoid an error. */
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8822 char XawScrollbarSetThumb();
8825 XawScrollbarSetThumb()
8828 if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8830 eval "ac_cv_lib_$ac_lib_var=yes"
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8835 eval "ac_cv_lib_$ac_lib_var=no"
8840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8841 echo "$ac_t""yes" 1>&6
8843 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8844 echo "configure:8845: checking for threeDClassRec in -l$athena_variant" >&5
8845 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8847 xe_check_libs=" -l$athena_variant "
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 /* Override any gcc2 internal prototype to avoid an error. */
8852 /* We use char because int might match the return type of a gcc2
8853 builtin and then its argument prototype would still apply. */
8854 char threeDClassRec();
8860 if { (eval echo configure:8861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8862 eval "ac_cv_lib_$ac_lib_var=yes"
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8867 eval "ac_cv_lib_$ac_lib_var=no"
8872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8873 echo "$ac_t""yes" 1>&6
8874 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8876 echo "$ac_t""no" 1>&6
8877 athena_lib=$athena_variant
8883 echo "$ac_t""no" 1>&6
8884 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8890 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8891 echo "configure:8892: checking for threeDClassRec in -l$athena_variant" >&5
8892 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8894 xe_check_libs=" -l$athena_variant "
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* Override any gcc2 internal prototype to avoid an error. */
8899 /* We use char because int might match the return type of a gcc2
8900 builtin and then its argument prototype would still apply. */
8901 char threeDClassRec();
8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8909 eval "ac_cv_lib_$ac_lib_var=yes"
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 eval "ac_cv_lib_$ac_lib_var=no"
8919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8920 echo "$ac_t""yes" 1>&6
8921 athena_lib=$athena_variant
8923 echo "$ac_t""no" 1>&6
8924 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8925 echo "configure:8926: checking for threeDClassRec in -lXaw" >&5
8926 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8928 xe_check_libs=" -lXaw "
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8932 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935 char threeDClassRec();
8941 if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8943 eval "ac_cv_lib_$ac_lib_var=yes"
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8948 eval "ac_cv_lib_$ac_lib_var=no"
8953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8954 echo "$ac_t""yes" 1>&6
8956 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8959 echo "$ac_t""no" 1>&6
8960 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8969 if test "$athena_3d" = "no"; then
8970 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8971 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8972 echo "configure:8973: checking for X11/Xaw/ThreeD.h" >&5
8974 cat > conftest.$ac_ext <<EOF
8975 #line 8976 "configure"
8976 #include "confdefs.h"
8977 #include <X11/Xaw/ThreeD.h>
8979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8980 { (eval echo configure:8981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8982 if test -z "$ac_err"; then
8984 eval "ac_cv_header_$ac_safe=yes"
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8990 eval "ac_cv_header_$ac_safe=no"
8993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8994 echo "$ac_t""yes" 1>&6
8995 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8997 echo "$ac_t""no" 1>&6
8998 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8999 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9000 echo "configure:9001: checking for X11/Xaw/XawInit.h" >&5
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 #include <X11/Xaw/XawInit.h>
9007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9008 { (eval echo configure:9009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9010 if test -z "$ac_err"; then
9012 eval "ac_cv_header_$ac_safe=yes"
9015 echo "configure: failed program was:" >&5
9016 cat conftest.$ac_ext >&5
9018 eval "ac_cv_header_$ac_safe=no"
9021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9022 echo "$ac_t""yes" 1>&6
9023 athena_h_path=X11/Xaw
9025 echo "$ac_t""no" 1>&6
9026 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9032 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9033 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9034 echo "configure:9035: checking for X11/$athena_variant/XawInit.h" >&5
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 #include <X11/$athena_variant/XawInit.h>
9041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9042 { (eval echo configure:9043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9044 if test -z "$ac_err"; then
9046 eval "ac_cv_header_$ac_safe=yes"
9049 echo "configure: failed program was:" >&5
9050 cat conftest.$ac_ext >&5
9052 eval "ac_cv_header_$ac_safe=no"
9055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9056 echo "$ac_t""yes" 1>&6
9057 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9058 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9059 echo "configure:9060: checking for X11/$athena_variant/ThreeD.h" >&5
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <X11/$athena_variant/ThreeD.h>
9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9069 if test -z "$ac_err"; then
9071 eval "ac_cv_header_$ac_safe=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_header_$ac_safe=no"
9080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9081 echo "$ac_t""yes" 1>&6
9082 athena_h_path=X11/$athena_variant
9084 echo "$ac_t""no" 1>&6
9088 echo "$ac_t""no" 1>&6
9092 if test -z "$athena_h_path"; then
9093 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9094 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9095 echo "configure:9096: checking for $athena_variant/XawInit.h" >&5
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 #include <$athena_variant/XawInit.h>
9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9105 if test -z "$ac_err"; then
9107 eval "ac_cv_header_$ac_safe=yes"
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 eval "ac_cv_header_$ac_safe=no"
9116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for $athena_variant/ThreeD.h" >&5
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9124 "configure"
9124 #include "confdefs.h"
9125 #include <$athena_variant/ThreeD.h>
9127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9128 { (eval echo configure:9129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9130 if test -z "$ac_err"; then
9132 eval "ac_cv_header_$ac_safe=yes"
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 eval "ac_cv_header_$ac_safe=no"
9141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9143 athena_h_path=$athena_variant
9145 echo "$ac_t""no" 1>&6
9149 echo "$ac_t""no" 1>&6
9154 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9155 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9156 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9157 echo "configure:9158: checking for X11/Xaw3d/XawInit.h" >&5
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9162 #include <X11/Xaw3d/XawInit.h>
9164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9165 { (eval echo configure:9166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9167 if test -z "$ac_err"; then
9169 eval "ac_cv_header_$ac_safe=yes"
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9175 eval "ac_cv_header_$ac_safe=no"
9178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9179 echo "$ac_t""yes" 1>&6
9180 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9181 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9182 echo "configure:9183: checking for X11/Xaw3d/ThreeD.h" >&5
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <X11/Xaw3d/ThreeD.h>
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9194 eval "ac_cv_header_$ac_safe=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_header_$ac_safe=no"
9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9206 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9207 athena_h_path=X11/Xaw3d
9210 echo "$ac_t""no" 1>&6
9214 echo "$ac_t""no" 1>&6
9219 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9220 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9221 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9222 echo "configure:9223: checking for Xaw3d/XawInit.h" >&5
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9227 #include <Xaw3d/XawInit.h>
9229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9230 { (eval echo configure:9231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9232 if test -z "$ac_err"; then
9234 eval "ac_cv_header_$ac_safe=yes"
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9240 eval "ac_cv_header_$ac_safe=no"
9243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9245 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9246 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9247 echo "configure:9248: checking for Xaw3d/ThreeD.h" >&5
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 #include <Xaw3d/ThreeD.h>
9254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9255 { (eval echo configure:9256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9257 if test -z "$ac_err"; then
9259 eval "ac_cv_header_$ac_safe=yes"
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 eval "ac_cv_header_$ac_safe=no"
9268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9269 echo "$ac_t""yes" 1>&6
9271 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9275 echo "$ac_t""no" 1>&6
9279 echo "$ac_t""no" 1>&6
9284 if test -z "$athena_h_path"; then
9285 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9286 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9287 echo "configure:9288: checking for X11/Xaw/ThreeD.h" >&5
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 #include <X11/Xaw/ThreeD.h>
9294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9295 { (eval echo configure:9296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9297 if test -z "$ac_err"; then
9299 eval "ac_cv_header_$ac_safe=yes"
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 eval "ac_cv_header_$ac_safe=no"
9308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9309 echo "$ac_t""yes" 1>&6
9311 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9312 athena_h_path=X11/Xaw
9315 echo "$ac_t""no" 1>&6
9316 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9322 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9331 if test "$with_x11" = "yes"; then
9332 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9333 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9334 echo "configure:9335: checking for Xm/Xm.h" >&5
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9342 { (eval echo configure:9343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9344 if test -z "$ac_err"; then
9346 eval "ac_cv_header_$ac_safe=yes"
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 eval "ac_cv_header_$ac_safe=no"
9355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9356 echo "$ac_t""yes" 1>&6
9358 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9359 echo "configure:9360: checking for XmStringFree in -lXm" >&5
9360 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9362 xe_check_libs=" -lXm "
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369 char XmStringFree();
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9388 echo "$ac_t""yes" 1>&6
9391 echo "$ac_t""no" 1>&6
9397 echo "$ac_t""no" 1>&6
9402 if test "$have_motif" = "yes"; then
9403 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9404 echo "configure:9405: checking for Lesstif" >&5
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9409 #ifdef LESSTIF_VERSION
9414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9415 egrep "yes" >/dev/null 2>&1; then
9424 echo "$ac_t""$have_lesstif" 1>&6
9429 case "$with_menubars" in "" | "yes" | "athena" )
9430 with_menubars="lucid" ;;
9432 case "$with_dialogs" in "" | "yes" | "lucid" )
9433 if test "$have_motif" = "yes"; then with_dialogs="motif"
9434 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9435 else with_dialogs=no
9438 case "$with_scrollbars" in "" | "yes" )
9439 with_scrollbars="lucid" ;;
9441 case "$with_widgets" in "" | "yes" | "lucid")
9442 if test "$have_motif" = "yes"; then with_widgets="motif"
9443 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9444 else with_widgets=no
9448 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9450 case "$all_widgets" in
9452 if test "$have_xaw" != "yes"; then
9453 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9456 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9458 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9460 { test "$extra_verbose" = "yes" && cat << EOF
9461 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9463 cat >> confdefs.h <<EOF
9464 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9468 { test "$extra_verbose" = "yes" && cat << EOF
9469 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9471 cat >> confdefs.h <<EOF
9472 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9476 { test "$extra_verbose" = "yes" && cat << EOF
9477 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9479 cat >> confdefs.h <<EOF
9480 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9484 { test "$extra_verbose" = "yes" && cat << EOF
9485 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9487 cat >> confdefs.h <<EOF
9488 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9492 { test "$extra_verbose" = "yes" && cat << EOF
9493 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9495 cat >> confdefs.h <<EOF
9496 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9500 { test "$extra_verbose" = "yes" && cat << EOF
9501 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9503 cat >> confdefs.h <<EOF
9504 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9508 { test "$extra_verbose" = "yes" && cat << EOF
9509 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9511 cat >> confdefs.h <<EOF
9512 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9516 { test "$extra_verbose" = "yes" && cat << EOF
9517 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9519 cat >> confdefs.h <<EOF
9520 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9524 { test "$extra_verbose" = "yes" && cat << EOF
9525 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9527 cat >> confdefs.h <<EOF
9528 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9532 { test "$extra_verbose" = "yes" && cat << EOF
9533 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9535 cat >> confdefs.h <<EOF
9536 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9541 { test "$extra_verbose" = "yes" && cat << \EOF
9542 Defining LWLIB_USES_ATHENA
9544 cat >> confdefs.h <<\EOF
9545 #define LWLIB_USES_ATHENA 1
9549 { test "$extra_verbose" = "yes" && cat << \EOF
9550 Defining NEED_ATHENA
9552 cat >> confdefs.h <<\EOF
9553 #define NEED_ATHENA 1
9559 if test "$athena_3d" = "yes"; then
9560 { test "$extra_verbose" = "yes" && cat << \EOF
9561 Defining HAVE_ATHENA_3D
9563 cat >> confdefs.h <<\EOF
9564 #define HAVE_ATHENA_3D 1
9572 case "$all_widgets" in *motif* )
9573 { test "$extra_verbose" = "yes" && cat << \EOF
9574 Defining LWLIB_USES_MOTIF
9576 cat >> confdefs.h <<\EOF
9577 #define LWLIB_USES_MOTIF 1
9581 { test "$extra_verbose" = "yes" && cat << \EOF
9584 cat >> confdefs.h <<\EOF
9585 #define NEED_MOTIF 1
9589 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9593 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9594 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9595 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9596 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9597 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9598 case "$with_widgets" in athena* )
9599 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;;
9601 case "$all_widgets" in *lucid* )
9602 { test "$extra_verbose" = "yes" && cat << \EOF
9605 cat >> confdefs.h <<\EOF
9606 #define NEED_LUCID 1
9610 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9615 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9616 Defining LWLIB_SCROLLBARS_ATHENA
9618 cat >> confdefs.h <<\EOF
9619 #define LWLIB_SCROLLBARS_ATHENA 1
9623 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9624 Defining LWLIB_DIALOGS_ATHENA
9626 cat >> confdefs.h <<\EOF
9627 #define LWLIB_DIALOGS_ATHENA 1
9632 if test "$athena_3d" = "yes"; then
9633 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9634 Defining LWLIB_SCROLLBARS_ATHENA3D
9636 cat >> confdefs.h <<\EOF
9637 #define LWLIB_SCROLLBARS_ATHENA3D 1
9641 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9642 Defining LWLIB_DIALOGS_ATHENA3D
9644 cat >> confdefs.h <<\EOF
9645 #define LWLIB_DIALOGS_ATHENA3D 1
9651 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9652 Defining LWLIB_WIDGETS_ATHENA
9654 cat >> confdefs.h <<\EOF
9655 #define LWLIB_WIDGETS_ATHENA 1
9659 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9660 { test "$extra_verbose" = "yes" && cat << \EOF
9661 Defining LWLIB_TABS_LUCID
9663 cat >> confdefs.h <<\EOF
9664 #define LWLIB_TABS_LUCID 1
9669 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9670 Defining HAVE_MENUBARS
9672 cat >> confdefs.h <<\EOF
9673 #define HAVE_MENUBARS 1
9677 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9678 Defining HAVE_SCROLLBARS
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_SCROLLBARS 1
9685 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9686 Defining HAVE_DIALOGS
9688 cat >> confdefs.h <<\EOF
9689 #define HAVE_DIALOGS 1
9693 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9694 Defining HAVE_TOOLBARS
9696 cat >> confdefs.h <<\EOF
9697 #define HAVE_TOOLBARS 1
9701 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9702 Defining HAVE_WIDGETS
9704 cat >> confdefs.h <<\EOF
9705 #define HAVE_WIDGETS 1
9710 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9711 Defining LWLIB_MENUBARS_LUCID
9713 cat >> confdefs.h <<\EOF
9714 #define LWLIB_MENUBARS_LUCID 1
9718 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9719 Defining LWLIB_SCROLLBARS_LUCID
9721 cat >> confdefs.h <<\EOF
9722 #define LWLIB_SCROLLBARS_LUCID 1
9727 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9728 Defining LWLIB_MENUBARS_MOTIF
9730 cat >> confdefs.h <<\EOF
9731 #define LWLIB_MENUBARS_MOTIF 1
9735 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9736 Defining LWLIB_SCROLLBARS_MOTIF
9738 cat >> confdefs.h <<\EOF
9739 #define LWLIB_SCROLLBARS_MOTIF 1
9743 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9744 Defining LWLIB_DIALOGS_MOTIF
9746 cat >> confdefs.h <<\EOF
9747 #define LWLIB_DIALOGS_MOTIF 1
9751 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9752 Defining LWLIB_WIDGETS_MOTIF
9754 cat >> confdefs.h <<\EOF
9755 #define LWLIB_WIDGETS_MOTIF 1
9760 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9761 echo " xemacs will be linked with \"menubar.o\""
9763 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9764 echo " xemacs will be linked with \"scrollbar.o\""
9766 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9767 echo " xemacs will be linked with \"dialog.o\""
9769 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9770 echo " xemacs will be linked with \"toolbar.o\""
9773 if test "$with_gtk" = "yes"; then
9774 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9775 echo " xemacs will be linked with \"menubar-gtk.o\""
9777 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9778 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9780 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9781 echo " xemacs will be linked with \"dialog-gtk.o\""
9783 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9784 echo " xemacs will be linked with \"toolbar-gtk.o\""
9786 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9787 echo " xemacs will be linked with \"gui-gtk.o\""
9791 if test "$with_x11" = "yes"; then
9792 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9793 echo " xemacs will be linked with \"menubar-x.o\""
9795 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9796 echo " xemacs will be linked with \"scrollbar-x.o\""
9798 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9799 echo " xemacs will be linked with \"dialog-x.o\""
9801 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9802 echo " xemacs will be linked with \"toolbar-x.o\""
9804 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9805 echo " xemacs will be linked with \"gui-x.o\""
9810 test -z "$with_mule" && with_mule=no
9811 test -z "$with_file_coding" && with_file_coding=no
9814 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9815 { test "$extra_verbose" = "yes" && cat << \EOF
9816 Defining FILE_CODING
9818 cat >> confdefs.h <<\EOF
9819 #define FILE_CODING 1
9823 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9824 echo " xemacs will be linked with \"file-coding.o\""
9828 if test "$with_mule" = "yes" ; then
9829 echo "checking for Mule-related features" 1>&6
9830 echo "configure:9831: checking for Mule-related features" >&5
9831 { test "$extra_verbose" = "yes" && cat << \EOF
9834 cat >> confdefs.h <<\EOF
9839 { test "$extra_verbose" = "yes" && cat << \EOF
9840 Defining FILE_CODING
9842 cat >> confdefs.h <<\EOF
9843 #define FILE_CODING 1
9847 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9848 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9850 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9851 { test "$extra_verbose" = "yes" && cat << \EOF
9852 Defining TEXT_CODING
9854 cat >> confdefs.h <<\EOF
9855 #define TEXT_CODING 1
9859 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9860 echo " xemacs will be linked with \"text-coding.o\""
9863 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9864 echo " xemacs will be linked with \"file-coding.o\""
9867 for ac_hdr in libintl.h
9869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9871 echo "configure:9872: checking for $ac_hdr" >&5
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9879 { (eval echo configure:9880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9881 if test -z "$ac_err"; then
9883 eval "ac_cv_header_$ac_safe=yes"
9886 echo "configure: failed program was:" >&5
9887 cat conftest.$ac_ext >&5
9889 eval "ac_cv_header_$ac_safe=no"
9892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 { test "$extra_verbose" = "yes" && cat << EOF
9898 cat >> confdefs.h <<EOF
9899 #define $ac_tr_hdr 1
9904 echo "$ac_t""no" 1>&6
9909 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9910 echo "configure:9911: checking for strerror in -lintl" >&5
9911 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9913 xe_check_libs=" -lintl "
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9928 eval "ac_cv_lib_$ac_lib_var=yes"
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9933 eval "ac_cv_lib_$ac_lib_var=no"
9938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9939 echo "$ac_t""yes" 1>&6
9940 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9942 { test "$extra_verbose" = "yes" && cat << EOF
9945 cat >> confdefs.h <<EOF
9946 #define $ac_tr_lib 1
9950 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9953 echo "$ac_t""no" 1>&6
9958 if test "$with_utf_2000" = "yes" ; then
9959 { test "$extra_verbose" = "yes" && cat << \EOF
9960 Defining CHAR_IS_UCS4
9962 cat >> confdefs.h <<\EOF
9963 #define CHAR_IS_UCS4 1
9967 { test "$extra_verbose" = "yes" && cat << \EOF
9970 cat >> confdefs.h <<\EOF
9977 echo "checking for Mule input methods" 1>&6
9978 echo "configure:9979: checking for Mule input methods" >&5
9979 case "$with_xim" in "" | "yes" )
9980 echo "checking for XIM" 1>&6
9981 echo "configure:9982: checking for XIM" >&5
9983 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9984 echo "configure:9985: checking for XOpenIM in -lX11" >&5
9985 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9987 xe_check_libs=" -lX11 "
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 eval "ac_cv_lib_$ac_lib_var=yes"
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 eval "ac_cv_lib_$ac_lib_var=no"
10012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10013 echo "$ac_t""yes" 1>&6
10016 echo "$ac_t""no" 1>&6
10021 if test "$have_motif $have_lesstif" = "yes no"; then
10023 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10024 echo "configure:10025: checking for XmImMbLookupString in -lXm" >&5
10025 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10027 xe_check_libs=" -lXm "
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 /* Override any gcc2 internal prototype to avoid an error. */
10032 /* We use char because int might match the return type of a gcc2
10033 builtin and then its argument prototype would still apply. */
10034 char XmImMbLookupString();
10037 XmImMbLookupString()
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10042 eval "ac_cv_lib_$ac_lib_var=yes"
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10047 eval "ac_cv_lib_$ac_lib_var=no"
10052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10053 echo "$ac_t""yes" 1>&6
10056 echo "$ac_t""no" 1>&6
10062 if test "$with_xim" != "no"; then
10063 { test "$extra_verbose" = "yes" && cat << \EOF
10066 cat >> confdefs.h <<\EOF
10071 if test "$with_xim" = "xlib"; then
10072 { test "$extra_verbose" = "yes" && cat << \EOF
10075 cat >> confdefs.h <<\EOF
10080 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10081 echo " xemacs will be linked with \"input-method-xlib.o\""
10084 if test "$with_xim" = "motif"; then
10085 { test "$extra_verbose" = "yes" && cat << \EOF
10088 cat >> confdefs.h <<\EOF
10089 #define XIM_MOTIF 1
10094 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10095 echo " xemacs will be linked with \"input-method-motif.o\""
10098 if test "$with_xim" = "motif"; then
10103 if test "$with_xfs" = "yes" ; then
10104 echo "checking for XFontSet" 1>&6
10105 echo "configure:10106: checking for XFontSet" >&5
10107 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10108 echo "configure:10109: checking for XmbDrawString in -lX11" >&5
10109 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10111 xe_check_libs=" -lX11 "
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118 char XmbDrawString();
10124 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 eval "ac_cv_lib_$ac_lib_var=no"
10136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10137 echo "$ac_t""yes" 1>&6
10140 echo "$ac_t""no" 1>&6
10145 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10146 { test "$extra_verbose" = "yes" && cat << \EOF
10147 Defining USE_XFONTSET
10149 cat >> confdefs.h <<\EOF
10150 #define USE_XFONTSET 1
10154 if test "$with_xim" = "no" ; then
10155 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10156 echo " xemacs will be linked with \"input-method-xlib.o\""
10161 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10162 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10163 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10164 echo "configure:10165: checking for wnn/jllib.h" >&5
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #include <wnn/jllib.h>
10171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10172 { (eval echo configure:10173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10174 if test -z "$ac_err"; then
10176 eval "ac_cv_header_$ac_safe=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_header_$ac_safe=no"
10185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10189 echo "$ac_t""no" 1>&6
10193 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10194 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10195 echo "configure:10196: checking for wnn/commonhd.h" >&5
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 #include <wnn/commonhd.h>
10202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10203 { (eval echo configure:10204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10205 if test -z "$ac_err"; then
10207 eval "ac_cv_header_$ac_safe=yes"
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 eval "ac_cv_header_$ac_safe=no"
10216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10217 echo "$ac_t""yes" 1>&6
10220 echo "$ac_t""no" 1>&6
10224 if test "$with_wnn" != "no"; then
10225 for ac_func in crypt
10227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10228 echo "configure:10229: checking for $ac_func" >&5
10230 cat > conftest.$ac_ext <<EOF
10231 #line 10232 "configure"
10232 #include "confdefs.h"
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char $ac_func(); below. */
10235 #include <assert.h>
10236 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10254 if { (eval echo configure:10255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10256 eval "ac_cv_func_$ac_func=yes"
10258 echo "configure: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10261 eval "ac_cv_func_$ac_func=no"
10265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10266 echo "$ac_t""yes" 1>&6
10267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10268 { test "$extra_verbose" = "yes" && cat << EOF
10269 Defining $ac_tr_func
10271 cat >> confdefs.h <<EOF
10272 #define $ac_tr_func 1
10277 echo "$ac_t""no" 1>&6
10281 test "$ac_cv_func_crypt" != "yes" && {
10282 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10283 echo "configure:10284: checking for crypt in -lcrypt" >&5
10284 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10286 xe_check_libs=" -lcrypt "
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10301 eval "ac_cv_lib_$ac_lib_var=yes"
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 eval "ac_cv_lib_$ac_lib_var=no"
10311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10312 echo "$ac_t""yes" 1>&6
10313 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10315 { test "$extra_verbose" = "yes" && cat << EOF
10316 Defining $ac_tr_lib
10318 cat >> confdefs.h <<EOF
10319 #define $ac_tr_lib 1
10323 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10326 echo "$ac_t""no" 1>&6
10331 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10333 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10334 echo "configure:10335: checking for jl_dic_list_e in -lwnn" >&5
10335 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10337 xe_check_libs=" -lwnn "
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 /* Override any gcc2 internal prototype to avoid an error. */
10342 /* We use char because int might match the return type of a gcc2
10343 builtin and then its argument prototype would still apply. */
10344 char jl_dic_list_e();
10350 if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10352 eval "ac_cv_lib_$ac_lib_var=yes"
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10357 eval "ac_cv_lib_$ac_lib_var=no"
10362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10363 echo "$ac_t""yes" 1>&6
10366 echo "$ac_t""no" 1>&6
10367 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10368 echo "configure:10369: checking for jl_dic_list_e in -lwnn4" >&5
10369 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10371 xe_check_libs=" -lwnn4 "
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10375 /* Override any gcc2 internal prototype to avoid an error. */
10376 /* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10378 char jl_dic_list_e();
10384 if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10386 eval "ac_cv_lib_$ac_lib_var=yes"
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 eval "ac_cv_lib_$ac_lib_var=no"
10396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10397 echo "$ac_t""yes" 1>&6
10400 echo "$ac_t""no" 1>&6
10401 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10402 echo "configure:10403: checking for jl_dic_list_e in -lwnn6" >&5
10403 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10405 xe_check_libs=" -lwnn6 "
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 /* Override any gcc2 internal prototype to avoid an error. */
10410 /* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
10412 char jl_dic_list_e();
10418 if { (eval echo configure:10419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 eval "ac_cv_lib_$ac_lib_var=yes"
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10425 eval "ac_cv_lib_$ac_lib_var=no"
10430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10431 echo "$ac_t""yes" 1>&6
10434 echo "$ac_t""no" 1>&6
10435 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10436 echo "configure:10437: checking for dic_list_e in -lwnn6_fromsrc" >&5
10437 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10439 xe_check_libs=" -lwnn6_fromsrc "
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10452 if { (eval echo configure:10453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10454 eval "ac_cv_lib_$ac_lib_var=yes"
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10459 eval "ac_cv_lib_$ac_lib_var=no"
10464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10465 echo "$ac_t""yes" 1>&6
10466 libwnn=wnn6_fromsrc
10468 echo "$ac_t""no" 1>&6
10483 test -z "$with_wnn" && with_wnn=yes
10484 if test "$with_wnn" = "yes"; then
10485 { test "$extra_verbose" = "yes" && cat << \EOF
10488 cat >> confdefs.h <<\EOF
10493 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10494 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10495 echo " xemacs will be linked with \"mule-wnnfns.o\""
10497 if test "$with_wnn6" != "no"; then
10499 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10500 echo "configure:10501: checking for jl_fi_dic_list in -l$libwnn" >&5
10501 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10503 xe_check_libs=" -l$libwnn "
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure"
10506 #include "confdefs.h"
10507 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10510 char jl_fi_dic_list();
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 eval "ac_cv_lib_$ac_lib_var=yes"
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 eval "ac_cv_lib_$ac_lib_var=no"
10528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10529 echo "$ac_t""yes" 1>&6
10532 echo "$ac_t""no" 1>&6
10536 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10539 cat >> confdefs.h <<\EOF
10547 canna_includes_found=no
10548 if test "$with_canna" != "no"; then
10549 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10550 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10551 echo "configure:10552: checking for canna/jrkanji.h" >&5
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 #include <canna/jrkanji.h>
10558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10559 { (eval echo configure:10560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10561 if test -z "$ac_err"; then
10563 eval "ac_cv_header_$ac_safe=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_header_$ac_safe=no"
10572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10573 echo "$ac_t""yes" 1>&6
10574 canna_includes_found=yes
10576 echo "$ac_t""no" 1>&6
10580 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10581 -d "/usr/local/canna/include"; then
10582 save_c_switch_site="$c_switch_site"
10583 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10584 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10585 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10586 echo "configure:10587: checking for canna/jrkanji.h" >&5
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 #include <canna/jrkanji.h>
10593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10594 { (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596 if test -z "$ac_err"; then
10598 eval "ac_cv_header_$ac_safe=yes"
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10604 eval "ac_cv_header_$ac_safe=no"
10607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10609 canna_includes_found=yes
10611 echo "$ac_t""no" 1>&6
10614 if test "$canna_includes_found" != "yes"; then
10615 c_switch_site="$save_c_switch_site"
10620 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10621 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10622 echo "configure:10623: checking for canna/RK.h" >&5
10624 cat > conftest.$ac_ext <<EOF
10625 #line 10626 "configure"
10626 #include "confdefs.h"
10627 #include <canna/RK.h>
10629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10630 { (eval echo configure:10631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10632 if test -z "$ac_err"; then
10634 eval "ac_cv_header_$ac_safe=yes"
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10640 eval "ac_cv_header_$ac_safe=no"
10643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10644 echo "$ac_t""yes" 1>&6
10647 echo "$ac_t""no" 1>&6
10651 test -z "$with_canna" && {
10652 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10653 echo "configure:10654: checking for RkBgnBun in -lRKC" >&5
10654 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10656 xe_check_libs=" -lRKC "
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 /* Override any gcc2 internal prototype to avoid an error. */
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_lib_$ac_lib_var=no"
10681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10682 echo "$ac_t""yes" 1>&6
10685 echo "$ac_t""no" 1>&6
10690 test -z "$with_canna" && {
10691 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10692 echo "configure:10693: checking for jrKanjiControl in -lcanna" >&5
10693 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10695 xe_check_libs=" -lcanna "
10696 cat > conftest.$ac_ext <<EOF
10697 #line 10698 "configure"
10698 #include "confdefs.h"
10699 /* Override any gcc2 internal prototype to avoid an error. */
10700 /* We use char because int might match the return type of a gcc2
10701 builtin and then its argument prototype would still apply. */
10702 char jrKanjiControl();
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 eval "ac_cv_lib_$ac_lib_var=yes"
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 eval "ac_cv_lib_$ac_lib_var=no"
10720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10721 echo "$ac_t""yes" 1>&6
10724 echo "$ac_t""no" 1>&6
10729 test -z "$with_canna" && with_canna=yes
10730 if test "$with_canna" = "yes"; then
10731 { test "$extra_verbose" = "yes" && cat << \EOF
10732 Defining HAVE_CANNA
10734 cat >> confdefs.h <<\EOF
10735 #define HAVE_CANNA 1
10739 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10740 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10741 echo " xemacs will be linked with \"mule-canna.o\""
10745 else for feature in xim canna wnn; do
10746 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10747 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10749 eval "with_${feature}=no"
10753 if test "$need_motif" = "yes" ; then
10754 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10756 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10757 echo "configure:10758: checking for layout_object_getvalue in -li18n" >&5
10758 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10760 xe_check_libs=" -li18n "
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 /* We use char because int might match the return type of a gcc2
10766 builtin and then its argument prototype would still apply. */
10767 char layout_object_getvalue();
10770 layout_object_getvalue()
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10775 eval "ac_cv_lib_$ac_lib_var=yes"
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10780 eval "ac_cv_lib_$ac_lib_var=no"
10785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10786 echo "$ac_t""yes" 1>&6
10787 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10789 echo "$ac_t""no" 1>&6
10794 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10795 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10796 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10798 runpath="" runpath_dirs=""
10799 if test -n "$LD_RUN_PATH"; then
10800 runpath="$LD_RUN_PATH"
10801 elif test "$GCC" = "yes"; then
10802 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10803 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10804 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10805 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10806 case "$arg" in P,* | -L* | -R* )
10807 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10809 xe_runpath_dir="$dir"
10810 test "$xe_runpath_dir" != "/lib" -a \
10811 "$xe_runpath_dir" != "/usr/lib" -a \
10812 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10813 eval "$xe_add_unique_runpath_dir"
10818 ld_switch_run="$ld_switch_run_save"
10821 for arg in $ld_switch_site $ld_switch_x_site; do
10822 case "$arg" in -L*) {
10823 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10824 test "$xe_runpath_dir" != "/lib" -a \
10825 "$xe_runpath_dir" != "/usr/lib" -a \
10826 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10827 eval "$xe_add_unique_runpath_dir"
10830 if test "$opsys $need_motif" = "sol2 yes"; then
10831 xe_runpath_dir="/opt/SUNWdt/lib";
10832 eval "$xe_add_unique_runpath_dir";
10835 if test -n "$runpath"; then
10836 ld_switch_run="${dash_r}${runpath}"
10838 if test "$GCC" = "yes"; then
10839 set x $ld_switch_run; shift; ld_switch_run=""
10840 while test -n "$1"; do
10842 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10843 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10845 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10850 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10856 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10859 echo "configure:10860: checking for $ac_func" >&5
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 /* System header to define __stub macros and hopefully few prototypes,
10865 which can conflict with char $ac_func(); below. */
10866 #include <assert.h>
10867 /* Override any gcc2 internal prototype to avoid an error. */
10868 /* We use char because int might match the return type of a gcc2
10869 builtin and then its argument prototype would still apply. */
10874 /* The GNU C library defines this for functions which it implements
10875 to always fail with ENOSYS. Some functions are actually named
10876 something starting with __ and the normal name is an alias. */
10877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 eval "ac_cv_func_$ac_func=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 eval "ac_cv_func_$ac_func=no"
10896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10899 { test "$extra_verbose" = "yes" && cat << EOF
10900 Defining $ac_tr_func
10902 cat >> confdefs.h <<EOF
10903 #define $ac_tr_func 1
10908 echo "$ac_t""no" 1>&6
10914 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10917 echo "configure:10918: checking for $ac_func" >&5
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10922 /* System header to define __stub macros and hopefully few prototypes,
10923 which can conflict with char $ac_func(); below. */
10924 #include <assert.h>
10925 /* Override any gcc2 internal prototype to avoid an error. */
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10932 /* The GNU C library defines this for functions which it implements
10933 to always fail with ENOSYS. Some functions are actually named
10934 something starting with __ and the normal name is an alias. */
10935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10945 eval "ac_cv_func_$ac_func=yes"
10947 echo "configure: failed program was:" >&5
10948 cat conftest.$ac_ext >&5
10950 eval "ac_cv_func_$ac_func=no"
10954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10955 echo "$ac_t""yes" 1>&6
10956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10957 { test "$extra_verbose" = "yes" && cat << EOF
10958 Defining $ac_tr_func
10960 cat >> confdefs.h <<EOF
10961 #define $ac_tr_func 1
10966 echo "$ac_t""no" 1>&6
10971 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10972 echo "configure:10973: checking for openpty" >&5
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 /* System header to define __stub macros and hopefully few prototypes,
10978 which can conflict with char openpty(); below. */
10979 #include <assert.h>
10980 /* Override any gcc2 internal prototype to avoid an error. */
10981 /* We use char because int might match the return type of a gcc2
10982 builtin and then its argument prototype would still apply. */
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined (__stub_openpty) || defined (__stub___openpty)
10998 if { (eval echo configure:10999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11000 eval "ac_cv_func_openpty=yes"
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11005 eval "ac_cv_func_openpty=no"
11009 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11010 echo "$ac_t""yes" 1>&6
11013 echo "$ac_t""no" 1>&6
11016 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11017 echo "configure:11018: checking for openpty in -lutil" >&5
11018 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11020 xe_check_libs=" -lutil "
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11024 /* Override any gcc2 internal prototype to avoid an error. */
11025 /* We use char because int might match the return type of a gcc2
11026 builtin and then its argument prototype would still apply. */
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11035 eval "ac_cv_lib_$ac_lib_var=yes"
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11040 eval "ac_cv_lib_$ac_lib_var=no"
11045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11046 echo "$ac_t""yes" 1>&6
11047 have_openpty=yes need_libutil=yes
11049 echo "$ac_t""no" 1>&6
11055 if test "$have_openpty" = "yes"; then
11056 { test "$extra_verbose" = "yes" && cat << \EOF
11057 Defining HAVE_OPENPTY
11059 cat >> confdefs.h <<\EOF
11060 #define HAVE_OPENPTY 1
11064 for ac_hdr in pty.h libutil.h util.h
11066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11068 echo "configure:11069: checking for $ac_hdr" >&5
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11076 { (eval echo configure:11077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11078 if test -z "$ac_err"; then
11080 eval "ac_cv_header_$ac_safe=yes"
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11086 eval "ac_cv_header_$ac_safe=no"
11089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11092 { test "$extra_verbose" = "yes" && cat << EOF
11093 Defining $ac_tr_hdr
11095 cat >> confdefs.h <<EOF
11096 #define $ac_tr_hdr 1
11101 echo "$ac_t""no" 1>&6
11105 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11108 for ac_hdr in stropts.h
11110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11112 echo "configure:11113: checking for $ac_hdr" >&5
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11120 { (eval echo configure:11121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11122 if test -z "$ac_err"; then
11124 eval "ac_cv_header_$ac_safe=yes"
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11130 eval "ac_cv_header_$ac_safe=no"
11133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11134 echo "$ac_t""yes" 1>&6
11135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11136 { test "$extra_verbose" = "yes" && cat << EOF
11137 Defining $ac_tr_hdr
11139 cat >> confdefs.h <<EOF
11140 #define $ac_tr_hdr 1
11145 echo "$ac_t""no" 1>&6
11149 if test "$ac_cv_header_stropts_h" = "yes"; then
11150 for ac_func in isastream
11152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11153 echo "configure:11154: checking for $ac_func" >&5
11155 cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 /* System header to define __stub macros and hopefully few prototypes,
11159 which can conflict with char $ac_func(); below. */
11160 #include <assert.h>
11161 /* Override any gcc2 internal prototype to avoid an error. */
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11168 /* The GNU C library defines this for functions which it implements
11169 to always fail with ENOSYS. Some functions are actually named
11170 something starting with __ and the normal name is an alias. */
11171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11179 if { (eval echo configure:11180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11181 eval "ac_cv_func_$ac_func=yes"
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 eval "ac_cv_func_$ac_func=no"
11190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11193 { test "$extra_verbose" = "yes" && cat << EOF
11194 Defining $ac_tr_func
11196 cat >> confdefs.h <<EOF
11197 #define $ac_tr_func 1
11202 echo "$ac_t""no" 1>&6
11206 for ac_hdr in strtio.h
11208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11210 echo "configure:11211: checking for $ac_hdr" >&5
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11218 { (eval echo configure:11219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11220 if test -z "$ac_err"; then
11222 eval "ac_cv_header_$ac_safe=yes"
11225 echo "configure: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11228 eval "ac_cv_header_$ac_safe=no"
11231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11232 echo "$ac_t""yes" 1>&6
11233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11234 { test "$extra_verbose" = "yes" && cat << EOF
11235 Defining $ac_tr_hdr
11237 cat >> confdefs.h <<EOF
11238 #define $ac_tr_hdr 1
11243 echo "$ac_t""no" 1>&6
11248 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11249 echo " xemacs will be linked with \"realpath.o\""
11252 for ac_func in getloadavg
11254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11255 echo "configure:11256: checking for $ac_func" >&5
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char $ac_func(); below. */
11262 #include <assert.h>
11263 /* Override any gcc2 internal prototype to avoid an error. */
11264 /* We use char because int might match the return type of a gcc2
11265 builtin and then its argument prototype would still apply. */
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11283 eval "ac_cv_func_$ac_func=yes"
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11288 eval "ac_cv_func_$ac_func=no"
11292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11295 { test "$extra_verbose" = "yes" && cat << EOF
11296 Defining $ac_tr_func
11298 cat >> confdefs.h <<EOF
11299 #define $ac_tr_func 1
11304 echo "$ac_t""no" 1>&6
11309 if test "$ac_cv_func_getloadavg" = "yes"; then
11310 for ac_hdr in sys/loadavg.h
11312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11314 echo "configure:11315: checking for $ac_hdr" >&5
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11322 { (eval echo configure:11323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11324 if test -z "$ac_err"; then
11326 eval "ac_cv_header_$ac_safe=yes"
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11332 eval "ac_cv_header_$ac_safe=no"
11335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11338 { test "$extra_verbose" = "yes" && cat << EOF
11339 Defining $ac_tr_hdr
11341 cat >> confdefs.h <<EOF
11342 #define $ac_tr_hdr 1
11347 echo "$ac_t""no" 1>&6
11352 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11353 echo " xemacs will be linked with \"getloadavg.o\""
11357 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11358 echo "configure:11359: checking for kstat_open in -lkstat" >&5
11359 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11361 xe_check_libs=" -lkstat "
11362 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11365 /* Override any gcc2 internal prototype to avoid an error. */
11366 /* We use char because int might match the return type of a gcc2
11367 builtin and then its argument prototype would still apply. */
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11376 eval "ac_cv_lib_$ac_lib_var=yes"
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11381 eval "ac_cv_lib_$ac_lib_var=no"
11386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11387 echo "$ac_t""yes" 1>&6
11388 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11390 { test "$extra_verbose" = "yes" && cat << EOF
11391 Defining $ac_tr_lib
11393 cat >> confdefs.h <<EOF
11394 #define $ac_tr_lib 1
11398 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11401 echo "$ac_t""no" 1>&6
11405 for ac_hdr in kstat.h
11407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11409 echo "configure:11410: checking for $ac_hdr" >&5
11411 cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11417 { (eval echo configure:11418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11419 if test -z "$ac_err"; then
11421 eval "ac_cv_header_$ac_safe=yes"
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 eval "ac_cv_header_$ac_safe=no"
11430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11431 echo "$ac_t""yes" 1>&6
11432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11433 { test "$extra_verbose" = "yes" && cat << EOF
11434 Defining $ac_tr_hdr
11436 cat >> confdefs.h <<EOF
11437 #define $ac_tr_hdr 1
11442 echo "$ac_t""no" 1>&6
11448 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11449 echo "configure:11450: checking for kvm_read in -lkvm" >&5
11450 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11452 xe_check_libs=" -lkvm "
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 eval "ac_cv_lib_$ac_lib_var=yes"
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11472 eval "ac_cv_lib_$ac_lib_var=no"
11477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11478 echo "$ac_t""yes" 1>&6
11479 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11481 { test "$extra_verbose" = "yes" && cat << EOF
11482 Defining $ac_tr_lib
11484 cat >> confdefs.h <<EOF
11485 #define $ac_tr_lib 1
11489 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11492 echo "$ac_t""no" 1>&6
11498 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11499 echo "configure:11500: checking whether netdb declares h_errno" >&5
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11508 if { (eval echo configure:11509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11510 echo "$ac_t""yes" 1>&6
11511 { test "$extra_verbose" = "yes" && cat << \EOF
11512 Defining HAVE_H_ERRNO
11514 cat >> confdefs.h <<\EOF
11515 #define HAVE_H_ERRNO 1
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 echo "$ac_t""no" 1>&6
11527 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11528 echo "configure:11529: checking for sigsetjmp" >&5
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11532 #include <setjmp.h>
11534 sigjmp_buf bar; sigsetjmp (bar, 0);
11537 if { (eval echo configure:11538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11539 echo "$ac_t""yes" 1>&6
11540 { test "$extra_verbose" = "yes" && cat << \EOF
11541 Defining HAVE_SIGSETJMP
11543 cat >> confdefs.h <<\EOF
11544 #define HAVE_SIGSETJMP 1
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11552 echo "$ac_t""no" 1>&6
11556 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11557 echo "configure:11558: checking whether localtime caches TZ" >&5
11559 if test "$ac_cv_func_tzset" = "yes"; then
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11565 # include <stdlib.h>
11567 extern char **environ;
11571 for (to = from = environ; (*to = *from); from++)
11572 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11575 char TZ_GMT0[] = "TZ=GMT0";
11576 char TZ_PST8[] = "TZ=PST8";
11579 time_t now = time ((time_t *) 0);
11580 int hour_GMT0, hour_unset;
11581 if (putenv (TZ_GMT0) != 0)
11583 hour_GMT0 = localtime (&now)->tm_hour;
11585 hour_unset = localtime (&now)->tm_hour;
11586 if (putenv (TZ_PST8) != 0)
11588 if (localtime (&now)->tm_hour == hour_GMT0)
11591 if (localtime (&now)->tm_hour != hour_unset)
11596 if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11598 emacs_cv_localtime_cache=no
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 emacs_cv_localtime_cache=yes
11608 # If we lack tzset, report that localtime does not cache TZ,
11609 # since we can't invalidate the cache if we don't have tzset.
11610 emacs_cv_localtime_cache=no
11612 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11613 if test $emacs_cv_localtime_cache = yes; then
11614 { test "$extra_verbose" = "yes" && cat << \EOF
11615 Defining LOCALTIME_CACHE
11617 cat >> confdefs.h <<\EOF
11618 #define LOCALTIME_CACHE 1
11624 if test "$HAVE_TIMEVAL" = "yes"; then
11625 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11626 echo "configure:11627: checking whether gettimeofday accepts one or two arguments" >&5
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11631 #ifdef TIME_WITH_SYS_TIME
11632 #include <sys/time.h>
11635 #ifdef HAVE_SYS_TIME_H
11636 #include <sys/time.h>
11644 struct timeval time;
11645 gettimeofday (&time, 0);
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11651 echo "$ac_t""two" 1>&6
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 echo "$ac_t""one" 1>&6
11657 { test "$extra_verbose" = "yes" && cat << \EOF
11658 Defining GETTIMEOFDAY_ONE_ARGUMENT
11660 cat >> confdefs.h <<\EOF
11661 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11670 echo $ac_n "checking for inline""... $ac_c" 1>&6
11671 echo "configure:11672: checking for inline" >&5
11674 for ac_kw in inline __inline__ __inline; do
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11683 if { (eval echo configure:11684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11685 ac_cv_c_inline=$ac_kw; break
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11694 echo "$ac_t""$ac_cv_c_inline" 1>&6
11695 case "$ac_cv_c_inline" in
11697 no) { test "$extra_verbose" = "yes" && cat << \EOF
11700 cat >> confdefs.h <<\EOF
11705 *) { test "$extra_verbose" = "yes" && cat << EOF
11706 Defining inline = $ac_cv_c_inline
11708 cat >> confdefs.h <<EOF
11709 #define inline $ac_cv_c_inline
11715 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11716 echo " xemacs will be linked with \"inline.o\""
11720 if test "$__DECC" != "yes"; then
11721 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11722 # for constant arguments. Useless!
11723 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11724 echo "configure:11725: checking for working alloca.h" >&5
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 #include <alloca.h>
11731 char *p = alloca(2 * sizeof(int));
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11736 ac_cv_header_alloca_h=yes
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11741 ac_cv_header_alloca_h=no
11745 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11746 if test $ac_cv_header_alloca_h = yes; then
11747 { test "$extra_verbose" = "yes" && cat << \EOF
11748 Defining HAVE_ALLOCA_H
11750 cat >> confdefs.h <<\EOF
11751 #define HAVE_ALLOCA_H 1
11757 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11758 echo "configure:11759: checking for alloca" >&5
11760 cat > conftest.$ac_ext <<EOF
11761 #line 11762 "configure"
11762 #include "confdefs.h"
11765 # define alloca __builtin_alloca
11768 # include <malloc.h>
11769 # define alloca _alloca
11772 # include <alloca.h>
11777 # ifndef alloca /* predefined by HP cc +Olibcalls */
11786 char *p = (char *) alloca(1);
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11791 ac_cv_func_alloca_works=yes
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11796 ac_cv_func_alloca_works=no
11800 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11801 if test $ac_cv_func_alloca_works = yes; then
11802 { test "$extra_verbose" = "yes" && cat << \EOF
11803 Defining HAVE_ALLOCA
11805 cat >> confdefs.h <<\EOF
11806 #define HAVE_ALLOCA 1
11812 if test $ac_cv_func_alloca_works = no; then
11813 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11814 # that cause trouble. Some versions do not even contain alloca or
11815 # contain a buggy version. If you still want to use their alloca,
11816 # use ar to extract alloca.o from them instead of compiling alloca.c.
11817 ALLOCA=alloca.${ac_objext}
11818 { test "$extra_verbose" = "yes" && cat << \EOF
11821 cat >> confdefs.h <<\EOF
11827 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11828 echo "configure:11829: checking whether alloca needs Cray hooks" >&5
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #if defined(CRAY) && ! defined(CRAY2)
11840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11841 egrep "webecray" >/dev/null 2>&1; then
11851 echo "$ac_t""$ac_cv_os_cray" 1>&6
11852 if test $ac_cv_os_cray = yes; then
11853 for ac_func in _getb67 GETB67 getb67; do
11854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11855 echo "configure:11856: checking for $ac_func" >&5
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func(); below. */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error. */
11864 /* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11870 /* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11881 if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11883 eval "ac_cv_func_$ac_func=yes"
11885 echo "configure: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11888 eval "ac_cv_func_$ac_func=no"
11892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11893 echo "$ac_t""yes" 1>&6
11894 { test "$extra_verbose" = "yes" && cat << EOF
11895 Defining CRAY_STACKSEG_END = $ac_func
11897 cat >> confdefs.h <<EOF
11898 #define CRAY_STACKSEG_END $ac_func
11904 echo "$ac_t""no" 1>&6
11910 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11911 echo "configure:11912: checking stack direction for C alloca" >&5
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916 find_stack_direction ()
11918 static char *addr = 0;
11923 return find_stack_direction ();
11926 return (&dummy > addr) ? 1 : -1;
11930 exit (find_stack_direction() < 0);
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11935 ac_cv_c_stack_direction=1
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11941 ac_cv_c_stack_direction=-1
11945 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11946 { test "$extra_verbose" = "yes" && cat << EOF
11947 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11949 cat >> confdefs.h <<EOF
11950 #define STACK_DIRECTION $ac_cv_c_stack_direction
11956 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11957 echo " xemacs will be linked with \"$ALLOCA\""
11961 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11962 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11963 echo "configure:11964: checking for vfork.h" >&5
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11971 { (eval echo configure:11972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11973 if test -z "$ac_err"; then
11975 eval "ac_cv_header_$ac_safe=yes"
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11981 eval "ac_cv_header_$ac_safe=no"
11984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11985 echo "$ac_t""yes" 1>&6
11986 { test "$extra_verbose" = "yes" && cat << \EOF
11987 Defining HAVE_VFORK_H
11989 cat >> confdefs.h <<\EOF
11990 #define HAVE_VFORK_H 1
11995 echo "$ac_t""no" 1>&6
11998 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11999 echo "configure:12000: checking for working vfork" >&5
12001 cat > conftest.$ac_ext <<EOF
12002 #line 12003 "configure"
12003 #include "confdefs.h"
12004 /* Thanks to Paul Eggert for this test. */
12006 #include <sys/types.h>
12007 #include <sys/stat.h>
12008 #ifdef HAVE_UNISTD_H
12009 #include <unistd.h>
12011 #ifdef HAVE_VFORK_H
12014 /* On some sparc systems, changes by the child to local and incoming
12015 argument registers are propagated back to the parent.
12016 The compiler is told about this with #include <vfork.h>,
12017 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12018 Test for this by using a static variable whose address
12019 is put into a register that is clobbered by the vfork. */
12022 sparc_address_test (int arg)
12024 sparc_address_test (arg) int arg;
12027 static pid_t child;
12042 pid_t parent = getpid ();
12045 sparc_address_test ();
12050 /* Here is another test for sparc vfork register problems.
12051 This test uses lots of local variables, at least
12052 as many local variables as main has allocated so far
12053 including compiler temporaries. 4 locals are enough for
12054 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12055 A buggy compiler should reuse the register of parent
12056 for one of the local variables, since it will think that
12057 parent can't possibly be used any more in this routine.
12058 Assigning to the local variable will thus munge parent
12059 in the parent process. */
12061 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12062 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12063 /* Convince the compiler that p..p7 are live; otherwise, it might
12064 use the same hardware register for all 8 local variables. */
12065 if (p != p1 || p != p2 || p != p3 || p != p4
12066 || p != p5 || p != p6 || p != p7)
12069 /* On some systems (e.g. IRIX 3.3),
12070 vfork doesn't separate parent from child file descriptors.
12071 If the child closes a descriptor before it execs or exits,
12072 this munges the parent's descriptor as well.
12073 Test for this by closing stdout in the child. */
12074 _exit(close(fileno(stdout)) != 0);
12079 while (wait(&status) != child)
12082 /* Was there some problem with vforking? */
12085 /* Did the child fail? (This shouldn't happen.) */
12088 /* Did the vfork/compiler bug occur? */
12089 || parent != getpid()
12091 /* Did the file descriptor bug occur? */
12092 || fstat(fileno(stdout), &st) != 0
12097 if { (eval echo configure:12098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12099 ac_cv_func_vfork_works=yes
12102 echo "configure: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12105 ac_cv_func_vfork_works=no
12109 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12110 if test $ac_cv_func_vfork_works = no; then
12111 { test "$extra_verbose" = "yes" && cat << \EOF
12112 Defining vfork = fork
12114 cat >> confdefs.h <<\EOF
12122 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12123 echo "configure:12124: checking for working strcoll" >&5
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 #include <string.h>
12131 exit (strcoll ("abc", "def") >= 0 ||
12132 strcoll ("ABC", "DEF") >= 0 ||
12133 strcoll ("123", "456") >= 0);
12136 if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12138 ac_cv_func_strcoll_works=yes
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12144 ac_cv_func_strcoll_works=no
12148 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12149 if test $ac_cv_func_strcoll_works = yes; then
12150 { test "$extra_verbose" = "yes" && cat << \EOF
12151 Defining HAVE_STRCOLL
12153 cat >> confdefs.h <<\EOF
12154 #define HAVE_STRCOLL 1
12161 for ac_func in getpgrp
12163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12164 echo "configure:12165: checking for $ac_func" >&5
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 /* System header to define __stub macros and hopefully few prototypes,
12170 which can conflict with char $ac_func(); below. */
12171 #include <assert.h>
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12179 /* The GNU C library defines this for functions which it implements
12180 to always fail with ENOSYS. Some functions are actually named
12181 something starting with __ and the normal name is an alias. */
12182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12190 if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12192 eval "ac_cv_func_$ac_func=yes"
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12197 eval "ac_cv_func_$ac_func=no"
12201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12202 echo "$ac_t""yes" 1>&6
12203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12204 { test "$extra_verbose" = "yes" && cat << EOF
12205 Defining $ac_tr_func
12207 cat >> confdefs.h <<EOF
12208 #define $ac_tr_func 1
12213 echo "$ac_t""no" 1>&6
12217 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12218 echo "configure:12219: checking whether getpgrp takes no argument" >&5
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12225 * If this system has a BSD-style getpgrp(),
12226 * which takes a pid argument, exit unsuccessfully.
12228 * Snarfed from Chet Ramey's bash pgrp.c test program
12231 #include <sys/types.h>
12234 int pg1, pg2, pg3, pg4;
12235 int ng, np, s, child;
12242 pg3 = getpgrp(pid);
12246 * If all of these values are the same, it's pretty sure that
12247 * we're on a system that ignores getpgrp's first argument.
12249 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12255 else if (child == 0) {
12258 * If this is Sys V, this will not work; pgrp will be
12259 * set to np because setpgrp just changes a pgrp to be
12260 * the same as the pid.
12263 ng = getpgrp(0); /* Same result for Sys V and BSD */
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12278 ac_cv_func_getpgrp_void=yes
12281 echo "configure: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12284 ac_cv_func_getpgrp_void=no
12289 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12290 if test $ac_cv_func_getpgrp_void = yes; then
12291 { test "$extra_verbose" = "yes" && cat << \EOF
12292 Defining GETPGRP_VOID
12294 cat >> confdefs.h <<\EOF
12295 #define GETPGRP_VOID 1
12302 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12303 echo "configure:12304: checking for working mmap" >&5
12304 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12309 #include <unistd.h>
12311 #include <sys/mman.h>
12313 #ifndef MAP_VARIABLE
12314 #define MAP_VARIABLE 0
12318 #define MAP_FAILED -1
12321 int main (int argc, char *argv[])
12325 #ifndef MAP_ANONYMOUS
12326 fd = open ("/dev/zero", O_RDWR);
12329 #define MAP_ANONYMOUS 0
12331 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12332 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12333 fd, 0) != (void *) MAP_FAILED)
12335 perror ("conftest: mmap failed");
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12349 rm -fr conftest* ;;
12351 echo "$ac_t""$have_mmap" 1>&6
12352 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12355 cat >> confdefs.h <<\EOF
12356 #define HAVE_MMAP 1
12361 case "$opsys" in cygwin*)
12362 test "$rel_alloc" = "default" && rel_alloc=no ;;
12364 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12365 if test "$rel_alloc $have_mmap" = "default yes"; then
12366 if test "$doug_lea_malloc" = "yes"; then
12367 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12368 echo "configure:12369: checking for M_MMAP_THRESHOLD" >&5
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <malloc.h>
12375 #ifndef M_MMAP_THRESHOLD
12376 #error No M_MMAP_THRESHOLD :-(
12377 !@+$%^&*_)(_ - unlikely to compile...
12382 if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12384 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12389 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12396 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12399 cat >> confdefs.h <<\EOF
12400 #define REL_ALLOC 1
12405 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12406 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12407 echo "configure:12408: checking for termios.h" >&5
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412 #include <termios.h>
12414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12415 { (eval echo configure:12416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12417 if test -z "$ac_err"; then
12419 eval "ac_cv_header_$ac_safe=yes"
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12425 eval "ac_cv_header_$ac_safe=no"
12428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12429 echo "$ac_t""yes" 1>&6
12430 { test "$extra_verbose" = "yes" && cat << \EOF
12431 Defining HAVE_TERMIOS
12433 cat >> confdefs.h <<\EOF
12434 #define HAVE_TERMIOS 1
12438 { test "$extra_verbose" = "yes" && cat << \EOF
12439 Defining SIGNALS_VIA_CHARACTERS
12441 cat >> confdefs.h <<\EOF
12442 #define SIGNALS_VIA_CHARACTERS 1
12446 { test "$extra_verbose" = "yes" && cat << \EOF
12449 cat >> confdefs.h <<\EOF
12450 #define NO_TERMIO 1
12455 echo "$ac_t""no" 1>&6
12456 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12457 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12458 echo "configure:12459: checking for termio.h" >&5
12460 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12463 #include <termio.h>
12465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12466 { (eval echo configure:12467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12468 if test -z "$ac_err"; then
12470 eval "ac_cv_header_$ac_safe=yes"
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12476 eval "ac_cv_header_$ac_safe=no"
12479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12480 echo "$ac_t""yes" 1>&6
12481 { test "$extra_verbose" = "yes" && cat << \EOF
12482 Defining HAVE_TERMIO
12484 cat >> confdefs.h <<\EOF
12485 #define HAVE_TERMIO 1
12490 echo "$ac_t""no" 1>&6
12497 echo $ac_n "checking for socket""... $ac_c" 1>&6
12498 echo "configure:12499: checking for socket" >&5
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char socket(); below. */
12505 #include <assert.h>
12506 /* Override any gcc2 internal prototype to avoid an error. */
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined (__stub_socket) || defined (__stub___socket)
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 eval "ac_cv_func_socket=yes"
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 eval "ac_cv_func_socket=no"
12535 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12536 echo "$ac_t""yes" 1>&6
12537 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12538 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12539 echo "configure:12540: checking for netinet/in.h" >&5
12541 cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 #include <netinet/in.h>
12546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12547 { (eval echo configure:12548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12549 if test -z "$ac_err"; then
12551 eval "ac_cv_header_$ac_safe=yes"
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12557 eval "ac_cv_header_$ac_safe=no"
12560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12563 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12564 echo "configure:12565: checking for arpa/inet.h" >&5
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 #include <arpa/inet.h>
12571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12572 { (eval echo configure:12573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12574 if test -z "$ac_err"; then
12576 eval "ac_cv_header_$ac_safe=yes"
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12582 eval "ac_cv_header_$ac_safe=no"
12585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12586 echo "$ac_t""yes" 1>&6
12588 { test "$extra_verbose" = "yes" && cat << \EOF
12589 Defining HAVE_SOCKETS
12591 cat >> confdefs.h <<\EOF
12592 #define HAVE_SOCKETS 1
12596 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12597 echo "configure:12598: checking "for sun_len member in struct sockaddr_un"" >&5
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12600 "configure"
12600 #include "confdefs.h"
12602 #include <sys/types.h>
12603 #include <sys/socket.h>
12604 #include <sys/un.h>
12607 static struct sockaddr_un x; x.sun_len = 1;
12610 if { (eval echo configure:12611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12612 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12613 Defining HAVE_SOCKADDR_SUN_LEN
12615 cat >> confdefs.h <<\EOF
12616 #define HAVE_SOCKADDR_SUN_LEN 1
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12624 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12628 echo "configure:12629: checking "for ip_mreq struct in netinet/in.h"" >&5
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12633 #include <sys/types.h>
12634 #include <netinet/in.h>
12637 static struct ip_mreq x;
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12643 Defining HAVE_MULTICAST
12645 cat >> confdefs.h <<\EOF
12646 #define HAVE_MULTICAST 1
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 echo "$ac_t""no" 1>&6
12658 echo "$ac_t""no" 1>&6
12662 echo "$ac_t""no" 1>&6
12666 echo "$ac_t""no" 1>&6
12670 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12671 echo "configure:12672: checking for msgget" >&5
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12676 /* System header to define __stub macros and hopefully few prototypes,
12677 which can conflict with char msgget(); below. */
12678 #include <assert.h>
12679 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_msgget) || defined (__stub___msgget)
12697 if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12699 eval "ac_cv_func_msgget=yes"
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 eval "ac_cv_func_msgget=no"
12708 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12709 echo "$ac_t""yes" 1>&6
12710 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12711 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12712 echo "configure:12713: checking for sys/ipc.h" >&5
12714 cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 #include <sys/ipc.h>
12719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12720 { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722 if test -z "$ac_err"; then
12724 eval "ac_cv_header_$ac_safe=yes"
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 eval "ac_cv_header_$ac_safe=no"
12733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12734 echo "$ac_t""yes" 1>&6
12735 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12736 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12737 echo "configure:12738: checking for sys/msg.h" >&5
12739 cat > conftest.$ac_ext <<EOF
12740 #line 12741 "configure"
12741 #include "confdefs.h"
12742 #include <sys/msg.h>
12744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12745 { (eval echo configure:12746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12747 if test -z "$ac_err"; then
12749 eval "ac_cv_header_$ac_safe=yes"
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12755 eval "ac_cv_header_$ac_safe=no"
12758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12759 echo "$ac_t""yes" 1>&6
12760 { test "$extra_verbose" = "yes" && cat << \EOF
12761 Defining HAVE_SYSVIPC
12763 cat >> confdefs.h <<\EOF
12764 #define HAVE_SYSVIPC 1
12769 echo "$ac_t""no" 1>&6
12773 echo "$ac_t""no" 1>&6
12777 echo "$ac_t""no" 1>&6
12781 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12782 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12783 echo "configure:12784: checking for dirent.h" >&5
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12788 #include <dirent.h>
12790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12791 { (eval echo configure:12792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12793 if test -z "$ac_err"; then
12795 eval "ac_cv_header_$ac_safe=yes"
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12801 eval "ac_cv_header_$ac_safe=no"
12804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12805 echo "$ac_t""yes" 1>&6
12806 { test "$extra_verbose" = "yes" && cat << \EOF
12807 Defining SYSV_SYSTEM_DIR
12809 cat >> confdefs.h <<\EOF
12810 #define SYSV_SYSTEM_DIR 1
12815 echo "$ac_t""no" 1>&6
12816 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12817 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12818 echo "configure:12819: checking for sys/dir.h" >&5
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 #include <sys/dir.h>
12825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12826 { (eval echo configure:12827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12828 if test -z "$ac_err"; then
12830 eval "ac_cv_header_$ac_safe=yes"
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 eval "ac_cv_header_$ac_safe=no"
12839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12840 echo "$ac_t""yes" 1>&6
12843 echo "$ac_t""no" 1>&6
12844 { test "$extra_verbose" = "yes" && cat << \EOF
12845 Defining NONSYSTEM_DIR_LIBRARY
12847 cat >> confdefs.h <<\EOF
12848 #define NONSYSTEM_DIR_LIBRARY 1
12857 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12858 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12859 echo "configure:12860: checking for nlist.h" >&5
12861 cat > conftest.$ac_ext <<EOF
12862 #line 12863 "configure"
12863 #include "confdefs.h"
12866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12867 { (eval echo configure:12868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12869 if test -z "$ac_err"; then
12871 eval "ac_cv_header_$ac_safe=yes"
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12877 eval "ac_cv_header_$ac_safe=no"
12880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12881 echo "$ac_t""yes" 1>&6
12882 { test "$extra_verbose" = "yes" && cat << \EOF
12883 Defining NLIST_STRUCT
12885 cat >> confdefs.h <<\EOF
12886 #define NLIST_STRUCT 1
12891 echo "$ac_t""no" 1>&6
12896 echo "checking "for sound support"" 1>&6
12897 echo "configure:12898: checking "for sound support"" >&5
12898 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12900 if test "$with_native_sound" != "no"; then
12901 if test -n "$native_sound_lib"; then
12902 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12903 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12904 echo "configure:12905: checking for multimedia/audio_device.h" >&5
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12908 "configure"
12908 #include "confdefs.h"
12909 #include <multimedia/audio_device.h>
12911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12912 { (eval echo configure:12913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12914 if test -z "$ac_err"; then
12916 eval "ac_cv_header_$ac_safe=yes"
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12922 eval "ac_cv_header_$ac_safe=no"
12925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12926 echo "$ac_t""yes" 1>&6
12927 sound_found=yes sound_cflags=""
12928 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12929 echo " xemacs will be linked with \"sunplay.o\""
12932 echo "$ac_t""no" 1>&6
12937 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12939 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12940 echo " xemacs will be linked with \"sunplay.o\""
12942 if test -d "/usr/demo/SOUND/include"
12943 then sound_cflags="-I/usr/demo/SOUND/include"
12944 else sound_cflags="-I/usr/demo/SOUND"
12946 if test -z "$native_sound_lib" ; then
12947 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12948 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12949 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12954 if test -z "$sound_found"; then
12955 case "$canonical" in
12957 if test -z "$native_sound_lib"; then
12959 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12960 echo "configure:12961: checking for ALopenport in -laudio" >&5
12961 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12963 xe_check_libs=" -laudio "
12964 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 /* Override any gcc2 internal prototype to avoid an error. */
12968 /* We use char because int might match the return type of a gcc2
12969 builtin and then its argument prototype would still apply. */
12976 if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12978 eval "ac_cv_lib_$ac_lib_var=yes"
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12983 eval "ac_cv_lib_$ac_lib_var=no"
12988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12989 echo "$ac_t""yes" 1>&6
12990 native_sound_lib="-laudio"
12992 echo "$ac_t""no" 1>&6
12997 if test -n "$native_sound_lib"; then
12998 sound_found=yes sound_cflags=""
12999 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13000 echo " xemacs will be linked with \"sgiplay.o\""
13004 if test -z "$native_sound_lib"; then
13006 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13007 echo "configure:13008: checking for AOpenAudio in -lAlib" >&5
13008 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13010 xe_check_libs=" -lAlib "
13011 cat > conftest.$ac_ext <<EOF
13012 #line 13013 "configure"
13013 #include "confdefs.h"
13014 /* Override any gcc2 internal prototype to avoid an error. */
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13023 if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13025 eval "ac_cv_lib_$ac_lib_var=yes"
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13030 eval "ac_cv_lib_$ac_lib_var=no"
13035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13036 echo "$ac_t""yes" 1>&6
13037 native_sound_lib="-lAlib"
13039 echo "$ac_t""no" 1>&6
13044 if test -n "$native_sound_lib"; then
13046 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13047 echo " xemacs will be linked with \"hpplay.o\""
13049 if test "$GCC" = "yes" # Kludge city
13050 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13051 else sound_cflags="+e -I/usr/audio/examples"
13057 if test -z "$sound_found"; then
13058 if test "$with_msw" = "yes"; then
13064 if test -z "$sound_found"; then
13065 for dir in "machine" "sys" "linux"; do
13066 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13067 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13068 echo "configure:13069: checking for ${dir}/soundcard.h" >&5
13070 cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 #include <${dir}/soundcard.h>
13075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13076 { (eval echo configure:13077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13078 if test -z "$ac_err"; then
13080 eval "ac_cv_header_$ac_safe=yes"
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13086 eval "ac_cv_header_$ac_safe=no"
13089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13090 echo "$ac_t""yes" 1>&6
13093 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13094 echo " xemacs will be linked with \"linuxplay.o\""
13096 { test "$extra_verbose" = "yes" && cat << EOF
13097 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13099 cat >> confdefs.h <<EOF
13100 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13106 echo "$ac_t""no" 1>&6
13112 test "$sound_found" = "yes" && with_native_sound=yes
13115 if test "$with_native_sound" = "yes"; then
13116 { test "$extra_verbose" = "yes" && cat << \EOF
13117 Defining HAVE_NATIVE_SOUND
13119 cat >> confdefs.h <<\EOF
13120 #define HAVE_NATIVE_SOUND 1
13124 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13127 if test "$with_nas_sound" != "no"; then
13128 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13129 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13130 echo "configure:13131: checking for audio/audiolib.h" >&5
13132 cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13135 #include <audio/audiolib.h>
13137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13138 { (eval echo configure:13139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13140 if test -z "$ac_err"; then
13142 eval "ac_cv_header_$ac_safe=yes"
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13148 eval "ac_cv_header_$ac_safe=no"
13151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13152 echo "$ac_t""yes" 1>&6
13155 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13156 echo "configure:13157: checking for AuOpenServer in -laudio" >&5
13157 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13159 xe_check_libs=" -laudio "
13160 cat > conftest.$ac_ext <<EOF
13161 #line 13162 "configure"
13162 #include "confdefs.h"
13163 /* Override any gcc2 internal prototype to avoid an error. */
13164 /* We use char because int might match the return type of a gcc2
13165 builtin and then its argument prototype would still apply. */
13166 char AuOpenServer();
13172 if { (eval echo configure:13173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13174 eval "ac_cv_lib_$ac_lib_var=yes"
13176 echo "configure: failed program was:" >&5
13177 cat conftest.$ac_ext >&5
13179 eval "ac_cv_lib_$ac_lib_var=no"
13184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13185 echo "$ac_t""yes" 1>&6
13188 echo "$ac_t""no" 1>&6
13193 echo "$ac_t""no" 1>&6
13196 if test "$have_nas_sound" = "yes"; then
13198 { test "$extra_verbose" = "yes" && cat << \EOF
13199 Defining HAVE_NAS_SOUND
13201 cat >> confdefs.h <<\EOF
13202 #define HAVE_NAS_SOUND 1
13206 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13207 echo " xemacs will be linked with \"nas.o\""
13209 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13213 #include <audio/Xtutil.h>
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13220 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13221 Defining NAS_NO_ERROR_JUMP
13223 cat >> confdefs.h <<\EOF
13224 #define NAS_NO_ERROR_JUMP 1
13232 test "$with_nas_sound" = "yes" && \
13233 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13238 if test "$with_esd_sound" != "no"; then
13239 # Extract the first word of "esd-config", so it can be a program name with args.
13240 set dummy esd-config; ac_word=$2
13241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13242 echo "configure:13243: checking for $ac_word" >&5
13244 if test -n "$have_esd_config"; then
13245 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13249 for ac_dir in $ac_dummy; do
13250 test -z "$ac_dir" && ac_dir=.
13251 if test -f $ac_dir/$ac_word; then
13252 ac_cv_prog_have_esd_config="yes"
13257 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13259 have_esd_config="$ac_cv_prog_have_esd_config"
13260 if test -n "$have_esd_config"; then
13261 echo "$ac_t""$have_esd_config" 1>&6
13263 echo "$ac_t""no" 1>&6
13266 if test "$have_esd_config" = "yes"; then
13267 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13268 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
13269 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13270 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13271 echo "configure:13272: checking for esd_play_stream" >&5
13273 cat > conftest.$ac_ext <<EOF
13274 #line 13275 "configure"
13275 #include "confdefs.h"
13276 /* System header to define __stub macros and hopefully few prototypes,
13277 which can conflict with char esd_play_stream(); below. */
13278 #include <assert.h>
13279 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282 char esd_play_stream();
13286 /* The GNU C library defines this for functions which it implements
13287 to always fail with ENOSYS. Some functions are actually named
13288 something starting with __ and the normal name is an alias. */
13289 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13297 if { (eval echo configure:13298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299 eval "ac_cv_func_esd_play_stream=yes"
13301 echo "configure: failed program was:" >&5
13302 cat conftest.$ac_ext >&5
13304 eval "ac_cv_func_esd_play_stream=no"
13308 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13309 echo "$ac_t""yes" 1>&6
13312 echo "$ac_t""no" 1>&6
13313 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13318 if test "$have_esd_sound" = "yes"; then
13321 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13322 echo " xemacs will be linked with \"esd.o\""
13324 { test "$extra_verbose" = "yes" && cat << \EOF
13325 Defining HAVE_ESD_SOUND
13327 cat >> confdefs.h <<\EOF
13328 #define HAVE_ESD_SOUND 1
13333 test "$with_esd_sound" = "yes" && \
13334 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13339 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13340 echo " xemacs will be linked with \"miscplay.o\""
13344 test -z "$with_tty" && with_tty=yes
13346 if test "$with_tty" = "yes" ; then
13347 echo "checking for TTY-related features" 1>&6
13348 echo "configure:13349: checking for TTY-related features" >&5
13349 { test "$extra_verbose" = "yes" && cat << \EOF
13352 cat >> confdefs.h <<\EOF
13357 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
13358 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
13361 if test -z "$with_ncurses"; then
13363 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13364 echo "configure:13365: checking for tgetent in -lncurses" >&5
13365 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13367 xe_check_libs=" -lncurses "
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13380 if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13382 eval "ac_cv_lib_$ac_lib_var=yes"
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13387 eval "ac_cv_lib_$ac_lib_var=no"
13392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13393 echo "$ac_t""yes" 1>&6
13396 echo "$ac_t""no" 1>&6
13402 if test "$with_ncurses" = "yes"; then
13403 { test "$extra_verbose" = "yes" && cat << \EOF
13404 Defining HAVE_NCURSES
13406 cat >> confdefs.h <<\EOF
13407 #define HAVE_NCURSES 1
13411 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13412 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13413 echo "configure:13414: checking for ncurses/curses.h" >&5
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13418 #include <ncurses/curses.h>
13420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13421 { (eval echo configure:13422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13423 if test -z "$ac_err"; then
13425 eval "ac_cv_header_$ac_safe=yes"
13428 echo "configure: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13431 eval "ac_cv_header_$ac_safe=no"
13434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13435 echo "$ac_t""yes" 1>&6
13436 curses_h_file=ncurses/curses.h
13438 echo "$ac_t""no" 1>&6
13441 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13442 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13443 echo "configure:13444: checking for ncurses/term.h" >&5
13445 cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13448 #include <ncurses/term.h>
13450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13451 { (eval echo configure:13452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13453 if test -z "$ac_err"; then
13455 eval "ac_cv_header_$ac_safe=yes"
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13461 eval "ac_cv_header_$ac_safe=no"
13464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13465 echo "$ac_t""yes" 1>&6
13466 term_h_file=ncurses/term.h
13468 echo "$ac_t""no" 1>&6
13471 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13472 echo " xemacs will be linked with \"terminfo.o\""
13474 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13476 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13477 save_c_switch_site="$c_switch_site"
13478 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13479 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13480 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13481 echo "configure:13482: checking for ncurses/curses.h" >&5
13483 cat > conftest.$ac_ext <<EOF
13484 #line 13485 "configure"
13485 #include "confdefs.h"
13486 #include <ncurses/curses.h>
13488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13489 { (eval echo configure:13490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13491 if test -z "$ac_err"; then
13493 eval "ac_cv_header_$ac_safe=yes"
13496 echo "configure: failed program was:" >&5
13497 cat conftest.$ac_ext >&5
13499 eval "ac_cv_header_$ac_safe=no"
13502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13503 echo "$ac_t""yes" 1>&6
13504 curses_h_file=ncurses/curses.h
13506 echo "$ac_t""no" 1>&6
13509 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13510 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13511 else c_switch_site="$save_c_switch_site"
13514 else if test "$have_terminfo" = "yes"; then
13515 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13516 echo " xemacs will be linked with \"terminfo.o\""
13518 if test -n "$libs_termcap"; then
13519 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13521 for lib in curses termlib termcap; do
13523 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13524 echo "configure:13525: checking for tgetent in -l$lib" >&5
13525 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13527 xe_check_libs=" -l$lib "
13528 cat > conftest.$ac_ext <<EOF
13529 #line 13530 "configure"
13530 #include "confdefs.h"
13531 /* Override any gcc2 internal prototype to avoid an error. */
13532 /* We use char because int might match the return type of a gcc2
13533 builtin and then its argument prototype would still apply. */
13540 if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13542 eval "ac_cv_lib_$ac_lib_var=yes"
13544 echo "configure: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13547 eval "ac_cv_lib_$ac_lib_var=no"
13552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13553 echo "$ac_t""yes" 1>&6
13554 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13556 echo "$ac_t""no" 1>&6
13562 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13563 echo " xemacs will be linked with \"tparam.o\""
13565 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13566 if test -n "$libs_termcap"; then
13567 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13570 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13571 echo "configure:13572: checking for tgetent in -lcurses" >&5
13572 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13574 xe_check_libs=" -lcurses "
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 /* Override any gcc2 internal prototype to avoid an error. */
13579 /* We use char because int might match the return type of a gcc2
13580 builtin and then its argument prototype would still apply. */
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13589 eval "ac_cv_lib_$ac_lib_var=yes"
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13594 eval "ac_cv_lib_$ac_lib_var=no"
13599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13600 echo "$ac_t""yes" 1>&6
13601 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13603 echo "$ac_t""no" 1>&6
13604 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13605 echo "configure:13606: checking for tgetent in -ltermcap" >&5
13606 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13608 xe_check_libs=" -ltermcap "
13609 cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 /* Override any gcc2 internal prototype to avoid an error. */
13613 /* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13621 if { (eval echo configure:13622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13623 eval "ac_cv_lib_$ac_lib_var=yes"
13625 echo "configure: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13628 eval "ac_cv_lib_$ac_lib_var=no"
13633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13634 echo "$ac_t""yes" 1>&6
13635 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13637 echo "$ac_t""no" 1>&6
13638 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13639 echo " xemacs will be linked with \"termcap.o\""
13650 { test "$extra_verbose" = "yes" && cat << EOF
13651 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13653 cat >> confdefs.h <<EOF
13654 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13658 { test "$extra_verbose" = "yes" && cat << EOF
13659 Defining TERM_H_FILE = "${term_h_file-term.h}"
13661 cat >> confdefs.h <<EOF
13662 #define TERM_H_FILE "${term_h_file-term.h}"
13667 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13668 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13669 echo "configure:13670: checking for gpm.h" >&5
13671 cat > conftest.$ac_ext <<EOF
13672 #line 13673 "configure"
13673 #include "confdefs.h"
13676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13677 { (eval echo configure:13678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13679 if test -z "$ac_err"; then
13681 eval "ac_cv_header_$ac_safe=yes"
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13687 eval "ac_cv_header_$ac_safe=no"
13690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13691 echo "$ac_t""yes" 1>&6
13694 echo "$ac_t""no" 1>&6
13698 test -z "$with_gpm" && {
13699 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13700 echo "configure:13701: checking for Gpm_Open in -lgpm" >&5
13701 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13703 xe_check_libs=" -lgpm "
13704 cat > conftest.$ac_ext <<EOF
13705 #line 13706 "configure"
13706 #include "confdefs.h"
13707 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718 eval "ac_cv_lib_$ac_lib_var=yes"
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13723 eval "ac_cv_lib_$ac_lib_var=no"
13728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13729 echo "$ac_t""yes" 1>&6
13732 echo "$ac_t""no" 1>&6
13737 if test "$with_gpm" = "yes"; then
13738 { test "$extra_verbose" = "yes" && cat << \EOF
13741 cat >> confdefs.h <<\EOF
13746 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13747 echo " xemacs will be linked with \"gpmevent.o\""
13749 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13752 else for feature in ncurses gpm; do
13753 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13754 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13756 eval "with_${feature}=no"
13759 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13760 echo " xemacs will be linked with \"event-unixoid.o\""
13764 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13765 != "no no no" && echo "checking for database support" 1>&6
13766 echo "configure:13767: checking for database support" >&5
13768 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13769 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13770 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13771 echo "configure:13772: checking for ndbm.h" >&5
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13779 { (eval echo configure:13780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13781 if test -z "$ac_err"; then
13783 eval "ac_cv_header_$ac_safe=yes"
13786 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 eval "ac_cv_header_$ac_safe=no"
13792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13793 echo "$ac_t""yes" 1>&6
13796 echo "$ac_t""no" 1>&6
13798 test "$with_database_gdbm" = "yes" -o \
13799 "$with_database_dbm" = "yes" && \
13800 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13801 with_database_gdbm=no with_database_dbm=no
13806 if test "$with_database_gdbm" != "no"; then
13808 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13809 echo "configure:13810: checking for dbm_open in -lgdbm" >&5
13810 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13812 xe_check_libs=" -lgdbm "
13813 cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 /* Override any gcc2 internal prototype to avoid an error. */
13817 /* We use char because int might match the return type of a gcc2
13818 builtin and then its argument prototype would still apply. */
13825 if { (eval echo configure:13826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13827 eval "ac_cv_lib_$ac_lib_var=yes"
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13832 eval "ac_cv_lib_$ac_lib_var=no"
13837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13838 echo "$ac_t""yes" 1>&6
13839 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13841 echo "$ac_t""no" 1>&6
13842 if test "$with_database_gdbm" = "yes"; then
13843 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13845 with_database_gdbm=no
13851 if test "$with_database_dbm" != "no"; then
13852 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13853 echo "configure:13854: checking for dbm_open" >&5
13855 cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 /* System header to define __stub macros and hopefully few prototypes,
13859 which can conflict with char dbm_open(); below. */
13860 #include <assert.h>
13861 /* Override any gcc2 internal prototype to avoid an error. */
13862 /* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13868 /* The GNU C library defines this for functions which it implements
13869 to always fail with ENOSYS. Some functions are actually named
13870 something starting with __ and the normal name is an alias. */
13871 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13879 if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13881 eval "ac_cv_func_dbm_open=yes"
13883 echo "configure: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13886 eval "ac_cv_func_dbm_open=no"
13890 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13891 echo "$ac_t""yes" 1>&6
13892 with_database_dbm=yes libdbm=
13894 echo "$ac_t""no" 1>&6
13897 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13898 echo "configure:13899: checking for dbm_open in -ldbm" >&5
13899 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13901 xe_check_libs=" -ldbm "
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 /* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13914 if { (eval echo configure:13915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 eval "ac_cv_lib_$ac_lib_var=yes"
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13921 eval "ac_cv_lib_$ac_lib_var=no"
13926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13927 echo "$ac_t""yes" 1>&6
13928 with_database_dbm=yes libdbm=-ldbm
13930 echo "$ac_t""no" 1>&6
13931 test "$with_database_dbm" = "yes" && \
13932 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13933 with_database_dbm=no
13941 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13942 test "$with_database_gdbm" = "yes" -o \
13943 "$with_database_dbm" = "yes" && \
13944 { test "$extra_verbose" = "yes" && cat << \EOF
13947 cat >> confdefs.h <<\EOF
13953 if test "$with_database_berkdb" != "no"; then
13954 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13955 echo "configure:13956: checking for Berkeley db.h" >&5
13956 for header in "db/db.h" "db.h"; do
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13961 #include <stdlib.h>
13962 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13963 #ifdef HAVE_INTTYPES_H
13964 #define __BIT_TYPES_DEFINED__
13965 #include <inttypes.h>
13966 typedef uint8_t u_int8_t;
13967 typedef uint16_t u_int16_t;
13968 typedef uint32_t u_int32_t;
13969 #ifdef WE_DONT_NEED_QUADS
13970 typedef uint64_t u_int64_t;
13980 if { (eval echo configure:13981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13982 db_h_file="$header"; break
13984 echo "configure: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13989 if test -z "$db_h_file"
13990 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13991 else echo "$ac_t""$db_h_file" 1>&6
13994 if test "$with_database_berkdb" != "no"; then
13995 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13996 echo "configure:13997: checking for Berkeley DB version" >&5
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14000 #include <$db_h_file>
14001 #if DB_VERSION_MAJOR > 1
14006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14007 egrep "yes" >/dev/null 2>&1; then
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 #include <$db_h_file>
14013 #if DB_VERSION_MAJOR > 2
14018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14019 egrep "yes" >/dev/null 2>&1; then
14021 echo "$ac_t""3" 1>&6; dbfunc=db_create
14025 echo "$ac_t""2" 1>&6; dbfunc=db_open
14032 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14036 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14037 echo "configure:14038: checking for $dbfunc" >&5
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 /* System header to define __stub macros and hopefully few prototypes,
14043 which can conflict with char $dbfunc(); below. */
14044 #include <assert.h>
14045 /* Override any gcc2 internal prototype to avoid an error. */
14046 /* We use char because int might match the return type of a gcc2
14047 builtin and then its argument prototype would still apply. */
14052 /* The GNU C library defines this for functions which it implements
14053 to always fail with ENOSYS. Some functions are actually named
14054 something starting with __ and the normal name is an alias. */
14055 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14063 if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14065 eval "ac_cv_func_$dbfunc=yes"
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14070 eval "ac_cv_func_$dbfunc=no"
14074 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14075 echo "$ac_t""yes" 1>&6
14076 with_database_berkdb=yes need_libdb=no
14078 echo "$ac_t""no" 1>&6
14081 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14082 echo "configure:14083: checking for $dbfunc in -ldb" >&5
14083 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14085 xe_check_libs=" -ldb "
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089 /* Override any gcc2 internal prototype to avoid an error. */
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14100 eval "ac_cv_lib_$ac_lib_var=yes"
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 eval "ac_cv_lib_$ac_lib_var=no"
14110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14111 echo "$ac_t""yes" 1>&6
14112 with_database_berkdb=yes need_libdb=yes
14114 echo "$ac_t""no" 1>&6
14122 if test "$with_database_berkdb" = "yes"; then
14123 { test "$extra_verbose" = "yes" && cat << EOF
14124 Defining DB_H_FILE = "$db_h_file"
14126 cat >> confdefs.h <<EOF
14127 #define DB_H_FILE "$db_h_file"
14131 { test "$extra_verbose" = "yes" && cat << \EOF
14132 Defining HAVE_BERKELEY_DB
14134 cat >> confdefs.h <<\EOF
14135 #define HAVE_BERKELEY_DB 1
14139 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14140 else with_database_berkdb=no
14144 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14145 != "no no no"; then
14146 { test "$extra_verbose" = "yes" && cat << \EOF
14147 Defining HAVE_DATABASE
14149 cat >> confdefs.h <<\EOF
14150 #define HAVE_DATABASE 1
14154 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14155 echo " xemacs will be linked with \"database.o\""
14157 if test "$with_utf_2000" = "yes"; then
14158 { test "$extra_verbose" = "yes" && cat << \EOF
14159 Defining HAVE_CHISE_CLIENT
14161 cat >> confdefs.h <<\EOF
14162 #define HAVE_CHISE_CLIENT 1
14169 if test "$with_socks" = "yes"; then
14171 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14172 echo "configure:14173: checking for SOCKSinit in -lsocks" >&5
14173 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14175 xe_check_libs=" -lsocks "
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14179 /* Override any gcc2 internal prototype to avoid an error. */
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14188 if { (eval echo configure:14189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14190 eval "ac_cv_lib_$ac_lib_var=yes"
14192 echo "configure: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14195 eval "ac_cv_lib_$ac_lib_var=no"
14200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14201 echo "$ac_t""yes" 1>&6
14202 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14204 { test "$extra_verbose" = "yes" && cat << EOF
14205 Defining $ac_tr_lib
14207 cat >> confdefs.h <<EOF
14208 #define $ac_tr_lib 1
14212 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14215 echo "$ac_t""no" 1>&6
14219 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14220 Defining HAVE_SOCKS
14222 cat >> confdefs.h <<\EOF
14223 #define HAVE_SOCKS 1
14229 if test "$usage_tracking" = "yes"; then
14230 { test "$extra_verbose" = "yes" && cat << \EOF
14231 Defining USAGE_TRACKING
14233 cat >> confdefs.h <<\EOF
14234 #define USAGE_TRACKING 1
14238 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14241 if test "$with_modules" != "no"; then
14242 echo "checking for module support" 1>&6
14243 echo "configure:14244: checking for module support" >&5
14245 if test "$with_msw" = "yes"; then
14248 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14249 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14250 echo "configure:14251: checking for dlfcn.h" >&5
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14258 { (eval echo configure:14259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14260 if test -z "$ac_err"; then
14262 eval "ac_cv_header_$ac_safe=yes"
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14268 eval "ac_cv_header_$ac_safe=no"
14271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14272 echo "$ac_t""yes" 1>&6
14274 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14275 echo "configure:14276: checking for dlopen in -lc" >&5
14276 cat > conftest.$ac_ext <<EOF
14277 #line 14278 "configure"
14278 #include "confdefs.h"
14284 if { (eval echo configure:14285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14292 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14293 echo "configure:14294: checking for dlopen in -ldl" >&5
14294 ac_save_LIBS="$LIBS"
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308 echo "configure: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14311 LIBS="$ac_save_LIBS"
14318 echo "$ac_t""no" 1>&6
14321 if test -n "$have_dl"; then
14322 { test "$extra_verbose" = "yes" && cat << \EOF
14323 Defining HAVE_DLOPEN
14325 cat >> confdefs.h <<\EOF
14326 #define HAVE_DLOPEN 1
14332 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14333 echo "configure:14334: checking for shl_load in -ldld" >&5
14334 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14336 xe_check_libs=" -ldld "
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14340 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14351 eval "ac_cv_lib_$ac_lib_var=yes"
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14356 eval "ac_cv_lib_$ac_lib_var=no"
14361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14362 echo "$ac_t""yes" 1>&6
14363 libdl=dld have_dl=yes;
14364 { test "$extra_verbose" = "yes" && cat << \EOF
14365 Defining HAVE_SHL_LOAD
14367 cat >> confdefs.h <<\EOF
14368 #define HAVE_SHL_LOAD 1
14373 echo "$ac_t""no" 1>&6
14375 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14376 echo "configure:14377: checking for dld_init in -ldld" >&5
14377 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14379 xe_check_libs=" -ldld "
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394 eval "ac_cv_lib_$ac_lib_var=yes"
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14399 eval "ac_cv_lib_$ac_lib_var=no"
14404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14405 echo "$ac_t""yes" 1>&6
14406 libdl=dld have_dl=yes;
14407 { test "$extra_verbose" = "yes" && cat << \EOF
14408 Defining HAVE_DLD_INIT
14410 cat >> confdefs.h <<\EOF
14411 #define HAVE_DLD_INIT 1
14416 echo "$ac_t""no" 1>&6
14425 if test -n "$have_dl"; then
14432 ld_dynamic_link_flags=
14434 xealias=$internal_configuration
14436 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14437 echo "configure:14438: checking how to build dynamic libraries for ${xehost}" >&5
14438 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14441 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14444 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14445 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14446 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14448 case "$xehost_os" in
14450 # AIX sometimes has problems with the GCC collect2 program. For some
14451 # reason, if we set the COLLECT_NAMES environment variable, the problems
14452 # vanish in a puff of smoke.
14453 if test "${COLLECT_NAMES+set}" != set; then
14455 export COLLECT_NAMES
14460 # Now see if the compiler is really GCC.
14461 if test "$GCC" = "yes"; then
14464 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14465 echo "configure:14466: checking checking whether we are using GNU C" >&5
14466 cat > conftest.$ac_ext <<EOF
14467 #line 14468 "configure"
14468 #include "confdefs.h"
14475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14476 egrep "yes" >/dev/null 2>&1; then
14485 echo "$ac_t""${XEGCC}" 1>&6
14488 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14489 echo "configure:14490: checking how to produce PIC code" >&5
14492 can_build_shared=yes
14493 if test "$XEGCC" = yes; then
14496 case "$xehost_os" in
14497 aix[3-9]* | irix[5-9]* | osf[3-9])
14498 # PIC is the default for these OSes.
14502 # We can build DLLs from non-PIC.
14505 # FIXME: we need at least 68020 code to build shared libraries, but
14506 # adding the `-m68020' flag to GCC prevents building anything better,
14508 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14510 *cygwin* | *mingw* )
14511 # PIC is the default
14518 # PORTME Check for PIC flags for the system compiler.
14519 case "$xehost_os" in
14520 hpux9* | hpux1[0-9]*)
14521 # Is there a better link_static_flag that works with the bundled CC?
14528 # PIC (with -KPIC) is the default.
14532 # We can build DLLs from non-PIC.
14536 # All OSF/1 code is PIC.
14541 # All AIX code is PIC.
14546 dll_cflags='-belf -Kpic'
14580 can_build_shared=no
14585 if test -n "$dll_cflags"; then
14586 echo "$ac_t""${dll_cflags}" 1>&6
14588 # Check to make sure the dll_cflags actually works.
14589 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14590 echo "configure:14591: checking if PIC flag ${dll_cflags} really works" >&5
14591 save_CFLAGS="$CFLAGS"
14592 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14601 if { (eval echo configure:14602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14604 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14605 # reports no error. So, we need to grep stderr for (Bundled).
14606 if grep '(Bundled)' config.log >/dev/null; then
14607 echo "$ac_t""no" 1>&6
14608 can_build_shared=no
14611 echo "$ac_t""yes" 1>&6
14614 echo "configure: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14617 echo "$ac_t""no" 1>&6
14618 can_build_shared=no
14622 CFLAGS="$save_CFLAGS"
14624 echo "$ac_t""none" 1>&6
14627 if test "$can_build_shared" = "yes"; then
14631 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14632 echo "configure:14633: checking if C compiler can produce shared libraries" >&5
14633 if test "$XEGCC" = yes; then
14636 else # Not using GCC
14637 case "$xehost_os" in
14639 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14640 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14643 freebsd2* | netbsd* | openbsd*)
14645 xcldf="${wl}-Bshareable"
14654 xcldf="${wl}-b ${wl}+s"
14657 irix[5-9]* | osf[3-9]*)
14658 xcldf="${wl}-shared"
14662 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14668 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14669 xldf="-assert pure-text -Bstatic"
14672 fi # End if if we are using gcc
14674 if test -n "$xcldf"; then
14675 save_LDFLAGS=$LDFLAGS
14677 save_xe_libs=$xe_libs
14678 LDFLAGS="$xcldf $LDFLAGS"
14681 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14690 if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14694 echo "configure: failed program was:" >&5
14695 cat conftest.$ac_ext >&5
14700 LDFLAGS=$save_LDFLAGS
14702 xe_libs=$save_xe_libs
14703 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14707 echo "$ac_t""${cc_produces_so}" 1>&6
14710 if test -z "$LTLD"; then
14712 if test "$XEGCC" = yes; then
14713 # Check if gcc -print-prog-name=ld gives a path.
14714 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14715 echo "configure:14716: checking for ld used by GCC" >&5
14716 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14718 # Accept absolute paths.
14720 if test -z "$LTLD"; then
14721 # case "$ac_prog" in
14722 # *gcc-lib*) LTLD="$CC"
14731 # If it fails, then pretend we aren't using GCC.
14735 # If it is relative, then search for the first ld in PATH.
14736 with_gnu_ld=unknown
14740 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14741 echo "configure:14742: checking for GNU ld" >&5
14744 if test -z "$LTLD"; then
14745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14746 for ac_dir in $PATH; do
14747 test -z "$ac_dir" && ac_dir=.
14748 if test -f "$ac_dir/$ac_prog"; then
14749 LTLD="$ac_dir/$ac_prog"
14750 # Check to see if the program is GNU ld. I'd rather use --version,
14751 # but apparently some GNU ld's only accept -v.
14752 # Break only if it was the GNU/non-GNU ld that we prefer.
14753 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14763 if test -n "$LTLD"; then
14764 echo "$ac_t""${LTLD}" 1>&6
14766 echo "$ac_t""no" 1>&6
14769 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14770 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14775 ld_dynamic_link_flags=
14777 # Check to see if it really is or isn't GNU ld.
14778 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14779 echo "configure:14780: checking if the linker is GNU ld" >&5
14780 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14781 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14786 echo "$ac_t""${xe_gnu_ld}" 1>&6
14788 case "$xehost_os" in
14789 amigaos* | sunos4*)
14790 # On these operating systems, we should treat GNU ld like the system ld.
14791 gnu_ld_acts_native=yes
14794 gnu_ld_acts_native=no
14798 if test "$cc_produces_so" = "yes"; then
14801 can_build_shared=yes
14804 # OK - only NOW do we futz about with ld.
14805 # See if the linker supports building shared libraries.
14806 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14807 echo "configure:14808: checking whether the linker supports shared libraries" >&5
14809 dll_ldflags=$LDFLAGS
14811 can_build_shared=yes
14812 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14813 # See if GNU ld supports shared libraries.
14814 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14816 dll_ldflags="-shared"
14822 # PORTME fill in a description of your system's linker (not GNU ld)
14823 case "$xehost_os" in
14833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14834 # support. Future versions do this automatically, but an explicit c++rt0.o
14835 # doesn't break anything, and helps significantly (at the cost of a little
14840 dll_post="/usr/lib/c++rt0.o"
14843 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14846 dll_ldflags="-Bshareable"
14849 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14851 dll_ldflags="-shared"
14865 # Tested with NetBSD 1.2 ld
14880 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14881 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14884 *gcc*) dll_ldflags="-shared"
14887 *) dll_ldflags="-G"
14893 if test "$XEGCC" = yes; then
14913 can_build_shared=no
14917 echo "$ac_t""${ld_shlibs}" 1>&6
14918 if test "$ld_shlibs" = "no"; then
14919 can_build_shared=no
14921 fi # End of if cc_produces_so = no
14924 if test "$xe_gnu_ld" = yes; then
14925 if test "$ld_shlibs" = yes; then
14926 ld_dynamic_link_flags="${wl}-export-dynamic"
14930 if test -z "$ld_dynamic_link_flags"; then
14931 case "$xehost_os" in
14933 ld_dynamic_link_flags=
14937 ld_dynamic_link_flags=
14941 ld_dynamic_link_flags=
14945 ld_dynamic_link_flags=
14949 ld_dynamic_link_flags="${wl}-E"
14953 ld_dynamic_link_flags=
14957 ld_dynamic_link_flags=
14961 ld_dynamic_link_flags=
14965 ld_dynamic_link_flags=
14968 solaris2* | solaris7*)
14969 ld_dynamic_link_flags=
14972 sco3.2v5* | unixware* | sysv5* | sysv4*)
14973 ld_dynamic_link_flags="${wl}-Bexport"
14977 ld_dynamic_link_flags=
14981 ld_dynamic_link_flags=
14985 ld_dynamic_link_flags=
14989 fi # End of if -z ld_dynamic_link_flags
14990 fi # End of if test "$can_build_shared" = "yes"
15001 if test "$can_build_shared" = "yes"; then
15002 { test "$extra_verbose" = "yes" && cat << \EOF
15003 Defining HAVE_SHLIB
15005 cat >> confdefs.h <<\EOF
15006 #define HAVE_SHLIB 1
15010 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15011 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15013 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15014 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15015 for ac_func in dlerror _dlerror
15017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15018 echo "configure:15019: checking for $ac_func" >&5
15020 cat > conftest.$ac_ext <<EOF
15021 #line 15022 "configure"
15022 #include "confdefs.h"
15023 /* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char $ac_func(); below. */
15025 #include <assert.h>
15026 /* Override any gcc2 internal prototype to avoid an error. */
15027 /* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15033 /* The GNU C library defines this for functions which it implements
15034 to always fail with ENOSYS. Some functions are actually named
15035 something starting with __ and the normal name is an alias. */
15036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15044 if { (eval echo configure:15045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15046 eval "ac_cv_func_$ac_func=yes"
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15051 eval "ac_cv_func_$ac_func=no"
15055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15056 echo "$ac_t""yes" 1>&6
15057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15058 { test "$extra_verbose" = "yes" && cat << EOF
15059 Defining $ac_tr_func
15061 cat >> confdefs.h <<EOF
15062 #define $ac_tr_func 1
15067 echo "$ac_t""no" 1>&6
15073 if test "$with_modules" = "yes"; then
15074 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15076 echo "configure: warning: "Module support cannot be provided."" 1>&2
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 int main(int c,char *v[]){return 0;}
15087 if { (eval echo configure:15088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15097 echo "*** PANIC *** The C compiler can no longer build working executables."
15098 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15099 echo "*** PANIC *** The most likely reason for this problem is that configure"
15100 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15101 echo "*** PANIC *** found at run time."
15102 echo "*** PANIC ***"
15103 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15104 echo "*** PANIC *** On other systems, try telling configure where to find the"
15105 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15106 echo "*** PANIC ***"
15107 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15108 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15109 echo "*** PANIC *** on your system. Don't do that."
15114 if test "$win32_processes" = "yes"; then
15115 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15116 echo " xemacs will be linked with \"process-nt.o\""
15119 { test "$extra_verbose" = "yes" && cat << \EOF
15120 Defining HAVE_UNIX_PROCESSES
15122 cat >> confdefs.h <<\EOF
15123 #define HAVE_UNIX_PROCESSES 1
15127 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15128 echo " xemacs will be linked with \"process-unix.o\""
15135 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15140 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15145 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15146 c_switch_general="$T"
15150 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15151 c_switch_window_system="$T"
15155 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15160 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15161 ld_switch_general="$T"
15165 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15166 ld_switch_window_system="$T"
15170 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15175 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15176 ld_libs_general="$T"
15180 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15181 ld_libs_window_system="$T"
15185 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15190 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15191 internal_makefile_list="Makefile.in"
15192 SUBDIR_MAKEFILES=''
15193 test -d lock || mkdir lock
15194 for dir in $MAKE_SUBDIR; do
15195 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15196 test -d "$d" || mkdir "$d"; cd "$d"
15198 * ) test -d "$dir" || mkdir "$dir" ;;
15202 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15203 SUBDIR_MAKEFILES="$T"
15207 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15208 internal_makefile_list="$T"
15215 for dir in src/s src/m; do
15216 if test ! -d "$dir" ; then
15217 echo Making symbolic link to "$srcdir/$dir"
15218 ${LN_S} "$srcdir/$dir" "$dir"
15222 if test "$extra_verbose" = "yes"; then
15224 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
15229 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15230 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15231 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15234 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15235 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15236 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15239 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15240 test "$extra_verbose" = "yes" && echo "creating TAGS"
15242 $srcdir/TAGS,include" > "TAGS"
15245 if test "$__SUNPRO_C" = "yes"; then
15246 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15247 ( echo "# For use with Sun WorkShop's Source browser."
15248 echo "# See sbquery(1) and sbinit(4) for more information"
15249 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15277 *\$* ) eval "PREFIX=$PREFIX" ;;
15285 EXEC_PREFIX=$exec_prefix
15287 case "$EXEC_PREFIX" in
15288 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15299 *\$* ) eval "INFODIR=$INFODIR" ;;
15309 case "$INFOPATH" in
15310 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15318 PACKAGE_PATH=$package_path
15320 case "$PACKAGE_PATH" in
15321 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15332 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15340 MODULEDIR=$moduledir
15342 case "$MODULEDIR" in
15343 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15351 SITELISPDIR=$sitelispdir
15353 case "$SITELISPDIR" in
15354 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15362 SITEMODULEDIR=$sitemoduledir
15364 case "$SITEMODULEDIR" in
15365 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15376 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15387 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15395 ARCHLIBDIR=$archlibdir
15397 case "$ARCHLIBDIR" in
15398 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15422 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15430 : ${XEMACS_CC:=$CC}
15433 if test "$with_prefix" = "yes"; then
15434 { test "$extra_verbose" = "yes" && cat << \EOF
15435 Defining PREFIX_USER_DEFINED
15437 cat >> confdefs.h <<\EOF
15438 #define PREFIX_USER_DEFINED 1
15444 if test "$with_site_lisp" = "no"; then
15445 { test "$extra_verbose" = "yes" && cat << \EOF
15446 Defining INHIBIT_SITE_LISP
15448 cat >> confdefs.h <<\EOF
15449 #define INHIBIT_SITE_LISP 1
15454 if test "$with_site_modules" = "no"; then
15455 { test "$extra_verbose" = "yes" && cat << \EOF
15456 Defining INHIBIT_SITE_MODULES
15458 cat >> confdefs.h <<\EOF
15459 #define INHIBIT_SITE_MODULES 1
15467 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15468 ac_configure_args="$T"
15470 { test "$extra_verbose" = "yes" && cat << EOF
15471 Defining EMACS_CONFIGURATION = "$configuration"
15473 cat >> confdefs.h <<EOF
15474 #define EMACS_CONFIGURATION "$configuration"
15478 { test "$extra_verbose" = "yes" && cat << EOF
15479 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15481 cat >> confdefs.h <<EOF
15482 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15489 { test "$extra_verbose" = "yes" && cat << EOF
15490 Defining LD_SWITCH_X_SITE = $null_string
15492 cat >> confdefs.h <<EOF
15493 #define LD_SWITCH_X_SITE $null_string
15497 { test "$extra_verbose" = "yes" && cat << EOF
15498 Defining LD_SWITCH_X_SITE_AUX = $null_string
15500 cat >> confdefs.h <<EOF
15501 #define LD_SWITCH_X_SITE_AUX $null_string
15505 { test "$extra_verbose" = "yes" && cat << EOF
15506 Defining C_SWITCH_X_SITE = $null_string
15508 cat >> confdefs.h <<EOF
15509 #define C_SWITCH_X_SITE $null_string
15513 { test "$extra_verbose" = "yes" && cat << EOF
15514 Defining LD_SWITCH_SITE = $null_string
15516 cat >> confdefs.h <<EOF
15517 #define LD_SWITCH_SITE $null_string
15521 { test "$extra_verbose" = "yes" && cat << EOF
15522 Defining C_SWITCH_SITE = $null_string
15524 cat >> confdefs.h <<EOF
15525 #define C_SWITCH_SITE $null_string
15531 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15532 Defining GNU_MALLOC
15534 cat >> confdefs.h <<\EOF
15535 #define GNU_MALLOC 1
15539 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15540 Defining USE_SYSTEM_MALLOC
15542 cat >> confdefs.h <<\EOF
15543 #define USE_SYSTEM_MALLOC 1
15547 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15548 Defining USE_DEBUG_MALLOC
15550 cat >> confdefs.h <<\EOF
15551 #define USE_DEBUG_MALLOC 1
15555 { test "$extra_verbose" = "yes" && cat << \EOF
15556 Defining USE_SYSTEM_MALLOC
15558 cat >> confdefs.h <<\EOF
15559 #define USE_SYSTEM_MALLOC 1
15564 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15567 cat >> confdefs.h <<\EOF
15572 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15575 cat >> confdefs.h <<\EOF
15580 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15581 Defining EXTERNAL_WIDGET
15583 cat >> confdefs.h <<\EOF
15584 #define EXTERNAL_WIDGET 1
15588 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15589 Defining QUICK_BUILD
15591 cat >> confdefs.h <<\EOF
15592 #define QUICK_BUILD 1
15596 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15599 cat >> confdefs.h <<\EOF
15604 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15607 cat >> confdefs.h <<\EOF
15612 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15613 Defining MAIL_USE_POP
15615 cat >> confdefs.h <<\EOF
15616 #define MAIL_USE_POP 1
15620 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15623 cat >> confdefs.h <<\EOF
15628 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15631 cat >> confdefs.h <<\EOF
15636 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15637 Defining USE_UNION_TYPE
15639 cat >> confdefs.h <<\EOF
15640 #define USE_UNION_TYPE 1
15644 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15647 cat >> confdefs.h <<\EOF
15652 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15653 Defining IPV6_CANONICALIZE
15655 cat >> confdefs.h <<\EOF
15656 #define IPV6_CANONICALIZE 1
15663 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15665 echo "uname -a: `uname -a`"
15668 echo "$0 $quoted_arguments"
15671 if test ! -z ${emacs_beta_version} ; then
15672 if test -z "${emacs_is_beta}" ; then
15673 xemacs_betaname=".${emacs_beta_version}"
15675 xemacs_betaname="-b${emacs_beta_version}"
15684 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15687 Compilation / Installation:"
15688 echo " Source code location: $srcdir"
15689 echo " Installation prefix: $prefix"
15690 if test -n "$site_includes"; then
15691 echo " Additional header files: $site_includes"
15693 if test -n "$site_libraries"; then
15694 echo " Additional libraries: $site_libraries"
15696 if test -n "$site_prefixes"; then
15697 echo " Additional prefixes: $site_prefixes"
15699 if test -n "$runpath"; then
15700 echo " Runtime library search path: $runpath"
15703 if test -n "$opsysfile"
15704 then echo " Operating system description file: \`$opsysfile'"
15705 else echo " Not using any operating system description file"
15707 if test -n "$machfile"
15708 then echo " Machine description file: \`$machfile'"
15709 else echo " Not using any machine description file"
15712 echo " Compiler: $CC $CFLAGS"
15713 echo " Relocating allocator for buffers: $rel_alloc"
15714 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15718 if test "$with_msw" = "yes"; then
15719 echo " Compiling in support for the Microsoft window system."
15721 if test "$with_x11" = "yes"; then
15722 echo " Compiling in support for the X window system:"
15723 echo " - X Windows headers location: $x_includes"
15724 echo " - X Windows libraries location: $x_libraries"
15725 if test "$with_xauth" != yes; then
15726 echo " - Xau (X authority) not available."
15728 if test "$with_xmu" != yes; then
15729 echo " - Xmu library not available; substituting equivalent routines."
15731 if test "$with_wmcommand" != no; then
15732 echo " - Handling WM_COMMAND properly."
15735 if test "$need_athena" = "yes"; then
15736 echo " Compiling in support for the Athena widget set:"
15737 echo " - Athena headers location: $athena_h_path"
15738 echo " - Athena library to link: $athena_lib"
15740 case "$with_menubars" in
15741 gtk ) echo " Using GTK menubars." ;;
15742 lucid ) echo " Using Lucid menubars." ;;
15743 motif ) echo " Using Motif menubars."
15744 echo " *WARNING* The Motif menubar implementation is currently buggy."
15745 echo " We recommend using the Lucid menubar instead."
15746 echo " Re-run configure with --with-menubars='lucid'." ;;
15747 msw ) echo " Using MS-Windows menubars." ;;
15749 case "$with_scrollbars" in
15750 gtk ) echo " Using GTK scrollbars." ;;
15751 lucid ) echo " Using Lucid scrollbars." ;;
15752 motif ) echo " Using Motif scrollbars." ;;
15753 athena ) echo " Using Athena scrollbars." ;;
15754 msw ) echo " Using MS-Windows scrollbars." ;;
15756 case "$with_dialogs" in
15757 gtk ) echo " Using GTK dialog boxes." ;;
15758 motif ) echo " Using Motif dialog boxes."
15759 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15760 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15761 echo " We recommend using the Athena dialog boxes instead."
15762 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15763 echo " Read the PROBLEMS file for more information."
15765 athena ) echo " Using Athena dialog boxes." ;;
15766 msw ) echo " Using MS-Windows dialog boxes." ;;
15768 case "$with_widgets" in
15769 gtk ) echo " Using GTK native widgets." ;;
15770 motif ) echo " Using Motif native widgets." ;;
15771 athena ) echo " Using Athena native widgets." ;;
15772 msw ) echo " Using MS-Windows native widgets." ;;
15774 if test "$with_dragndrop" = yes; then
15775 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15776 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15781 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15782 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15786 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15787 if test "$with_xpm" = yes; then
15788 echo " Compiling in support for XPM images."
15789 elif test "$with_x11" = yes; then
15790 echo " WARNING: -----------------------------------------------------------"
15791 echo " WARNING: Compiling without XPM image support."
15792 if test "$xpm_problem" != ""; then
15793 echo " Reason: $xpm_problem"
15795 echo " WARNING: You should strongly consider installing XPM."
15796 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15797 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15798 echo " WARNING: -----------------------------------------------------------"
15800 if test "$with_png" = yes; then
15801 echo " Compiling in support for PNG images."
15802 elif test "$window_system" != "none"; then
15803 echo " WARNING: -----------------------------------------------------------"
15804 echo " WARNING: Compiling without PNG image support."
15805 if test "$png_problem" != ""; then
15806 echo " Reason: $png_problem"
15808 echo " WARNING: You should strongly consider installing the PNG libraries."
15809 echo " WARNING: Otherwise certain images and glyphs may not display."
15810 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15811 echo " WARNING: -----------------------------------------------------------"
15813 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15814 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15815 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15819 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15820 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15821 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15822 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15826 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15827 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15828 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15829 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15830 if test "$with_postgresql" = yes; then
15831 echo " Compiling in support for PostgreSQL."
15832 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15833 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15837 Internationalization:"
15838 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15839 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15840 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15841 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15842 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15843 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15844 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15845 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15846 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15847 if test "$with_wnn" = yes; then
15848 echo " Compiling in support for the WNN input method on Mule."
15849 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15851 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15855 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15856 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15857 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15858 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15862 test "with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15863 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15864 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15865 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15866 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15867 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15868 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15869 test "$pdump" = yes && echo " Using the new portable dumper."
15870 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15871 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15872 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15873 != "no no no no no no"; then
15874 echo " WARNING: ---------------------------------------------------------"
15875 echo " WARNING: Compiling in support for runtime error checking."
15876 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15877 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15878 echo " WARNING: ---------------------------------------------------------"
15881 ) | tee -a Installation
15885 # Remove any trailing slashes in these variables.
15886 test -n "$prefix" &&
15887 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15888 test -n "$exec_prefix" &&
15889 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15892 for file in $internal_makefile_list; do
15893 test "$file" = src/Makefile.in && \
15894 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15895 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15897 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15898 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
15902 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15905 # Let make expand exec_prefix.
15906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15908 # Any assignment to VPATH causes Sun make to only execute
15909 # the first set of double-colon rules, so remove it if not needed.
15910 # If there is a colon in the path, we need to keep it.
15911 if test "x$srcdir" = x.; then
15912 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15915 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15917 DEFS=-DHAVE_CONFIG_H
15919 # Without the "./", some shells look in PATH for config.status.
15920 : ${CONFIG_STATUS=./config.status}
15922 echo creating $CONFIG_STATUS
15923 rm -f $CONFIG_STATUS
15924 cat > $CONFIG_STATUS <<EOF
15926 # Generated automatically by configure.
15927 # Run this file to recreate the current configuration.
15928 # This directory was configured as follows,
15929 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15931 # $0 $ac_configure_args
15933 # Compiler output produced by configure, useful for debugging
15934 # configure, is in ./config.log if it exists.
15936 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15939 case "\$ac_option" in
15940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15941 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15942 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15943 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15944 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15946 -help | --help | --hel | --he | --h)
15947 echo "\$ac_cs_usage"; exit 0 ;;
15948 *) echo "\$ac_cs_usage"; exit 1 ;;
15952 ac_given_srcdir=$srcdir
15953 ac_given_INSTALL="$INSTALL"
15955 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15957 cat >> $CONFIG_STATUS <<EOF
15959 # Protect against being on the right side of a sed subst in config.status.
15960 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15961 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15965 s%@CFLAGS@%$CFLAGS%g
15966 s%@CPPFLAGS@%$CPPFLAGS%g
15967 s%@CXXFLAGS@%$CXXFLAGS%g
15968 s%@FFLAGS@%$FFLAGS%g
15970 s%@LDFLAGS@%$LDFLAGS%g
15972 s%@exec_prefix@%$exec_prefix%g
15973 s%@prefix@%$prefix%g
15974 s%@program_transform_name@%$program_transform_name%g
15975 s%@bindir@%$bindir%g
15976 s%@sbindir@%$sbindir%g
15977 s%@libexecdir@%$libexecdir%g
15978 s%@datadir@%$datadir%g
15979 s%@sysconfdir@%$sysconfdir%g
15980 s%@sharedstatedir@%$sharedstatedir%g
15981 s%@localstatedir@%$localstatedir%g
15982 s%@libdir@%$libdir%g
15983 s%@includedir@%$includedir%g
15984 s%@oldincludedir@%$oldincludedir%g
15985 s%@infodir@%$infodir%g
15986 s%@mandir@%$mandir%g
15988 s%@blddir@%$blddir%g
15991 s%@start_flags@%$start_flags%g
15992 s%@ld_switch_shared@%$ld_switch_shared%g
15993 s%@start_files@%$start_files%g
15995 s%@lib_gcc@%$lib_gcc%g
15996 s%@RANLIB@%$RANLIB%g
15997 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15998 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15999 s%@INSTALL_DATA@%$INSTALL_DATA%g
16001 s%@SET_MAKE@%$SET_MAKE%g
16002 s%@GTK_CONFIG@%$GTK_CONFIG%g
16003 s%@X_CFLAGS@%$X_CFLAGS%g
16004 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16005 s%@X_LIBS@%$X_LIBS%g
16006 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16007 s%@install_pp@%$install_pp%g
16008 s%@libs_xauth@%$libs_xauth%g
16009 s%@dnd_objs@%$dnd_objs%g
16010 s%@lwlib_objs@%$lwlib_objs%g
16011 s%@ALLOCA@%$ALLOCA%g
16012 s%@have_esd_config@%$have_esd_config%g
16013 s%@dll_ld@%$dll_ld%g
16014 s%@dll_cflags@%$dll_cflags%g
16015 s%@dll_ldflags@%$dll_ldflags%g
16016 s%@dll_post@%$dll_post%g
16017 s%@dll_ldo@%$dll_ldo%g
16018 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16019 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16020 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16021 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16022 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16023 s%@PROGNAME@%$PROGNAME%g
16024 s%@version@%$version%g
16025 s%@configuration@%$configuration%g
16026 s%@canonical@%$canonical%g
16027 s%@inststaticdir@%$inststaticdir%g
16028 s%@instvardir@%$instvardir%g
16029 s%@srcdir@%$srcdir%g
16030 s%@pkgdir@%$pkgdir%g
16031 s%@statedir@%$statedir%g
16032 s%@extra_includes@%$extra_includes%g
16033 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16034 s%@PREFIX@%$PREFIX%g
16035 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16036 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16037 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16038 s%@INFODIR@%$INFODIR%g
16039 s%@infopath@%$infopath%g
16040 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16041 s%@INFOPATH@%$INFOPATH%g
16042 s%@package_path@%$package_path%g
16043 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16044 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16045 s%@lispdir@%$lispdir%g
16046 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16047 s%@LISPDIR@%$LISPDIR%g
16048 s%@moduledir@%$moduledir%g
16049 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16050 s%@MODULEDIR@%$MODULEDIR%g
16051 s%@sitelispdir@%$sitelispdir%g
16052 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16053 s%@SITELISPDIR@%$SITELISPDIR%g
16054 s%@sitemoduledir@%$sitemoduledir%g
16055 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16056 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16057 s%@etcdir@%$etcdir%g
16058 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16059 s%@ETCDIR@%$ETCDIR%g
16060 s%@docdir@%$docdir%g
16061 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16062 s%@DOCDIR@%$DOCDIR%g
16063 s%@archlibdir@%$archlibdir%g
16064 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16065 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16066 s%@bitmapdir@%$bitmapdir%g
16067 s%@extra_objs@%$extra_objs%g
16068 s%@machfile@%$machfile%g
16069 s%@opsysfile@%$opsysfile%g
16070 s%@c_switch_general@%$c_switch_general%g
16071 s%@c_switch_window_system@%$c_switch_window_system%g
16072 s%@c_switch_all@%$c_switch_all%g
16073 s%@ld_switch_general@%$ld_switch_general%g
16074 s%@ld_switch_window_system@%$ld_switch_window_system%g
16075 s%@ld_switch_all@%$ld_switch_all%g
16076 s%@ld_libs_general@%$ld_libs_general%g
16077 s%@ld_libs_window_system@%$ld_libs_window_system%g
16078 s%@ld_libs_all@%$ld_libs_all%g
16079 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16080 s%@native_sound_lib@%$native_sound_lib%g
16081 s%@sound_cflags@%$sound_cflags%g
16082 s%@dynodump_arch@%$dynodump_arch%g
16083 s%@XEMACS_CC@%$XEMACS_CC%g
16084 s%@internal_makefile_list@%$internal_makefile_list%g
16089 cat >> $CONFIG_STATUS <<\EOF
16091 # Split the substitutions into bite-sized pieces for seds with
16092 # small command number limits, like on Digital OSF/1 and HP-UX.
16093 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16094 ac_file=1 # Number of current file.
16095 ac_beg=1 # First line for current file.
16096 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16099 while $ac_more_lines; do
16100 if test $ac_beg -gt 1; then
16101 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16103 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16105 if test ! -s conftest.s$ac_file; then
16106 ac_more_lines=false
16107 rm -f conftest.s$ac_file
16109 if test -z "$ac_sed_cmds"; then
16110 ac_sed_cmds="sed -f conftest.s$ac_file"
16112 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16114 ac_file=`expr $ac_file + 1`
16116 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16119 if test -z "$ac_sed_cmds"; then
16124 cat >> $CONFIG_STATUS <<EOF
16126 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16128 cat >> $CONFIG_STATUS <<\EOF
16129 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16134 *) ac_file_in="${ac_file}.in" ;;
16137 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16139 # Remove last slash and all that follows it. Not all systems have dirname.
16140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16141 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16142 # The file is in a subdirectory.
16143 test ! -d "$ac_dir" && mkdir "$ac_dir"
16144 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16145 # A "../" for each directory in $ac_dir_suffix.
16146 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16148 ac_dir_suffix= ac_dots=
16151 case "$ac_given_srcdir" in
16153 if test -z "$ac_dots"; then top_srcdir=.
16154 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16155 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16156 *) # Relative path.
16157 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16158 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16161 case "$ac_given_INSTALL" in
16162 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16163 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16166 echo creating "$ac_file"
16168 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16170 *Makefile*) ac_comsub="1i\\
16171 # $configure_input" ;;
16175 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16177 s%@configure_input@%$configure_input%g
16178 s%@srcdir@%$srcdir%g
16179 s%@top_srcdir@%$top_srcdir%g
16180 s%@INSTALL@%$INSTALL%g
16181 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16188 # ac_d sets the value in "#define NAME VALUE" lines.
16189 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16190 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16193 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16194 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16195 ac_uB='\([ ]\)%\1#\2define\3'
16198 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16199 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16200 ac_eB='$%\1#\2define\3'
16204 if test "${CONFIG_HEADERS+set}" != set; then
16206 cat >> $CONFIG_STATUS <<EOF
16207 CONFIG_HEADERS="src/config.h lwlib/config.h"
16209 cat >> $CONFIG_STATUS <<\EOF
16211 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16214 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16215 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16216 *) ac_file_in="${ac_file}.in" ;;
16219 echo creating $ac_file
16221 rm -f conftest.frag conftest.in conftest.out
16222 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16223 cat $ac_file_inputs > conftest.in
16227 # Transform confdefs.h into a sed script conftest.vals that substitutes
16228 # the proper values into config.h.in to produce config.h. And first:
16229 # Protect against being on the right side of a sed subst in config.status.
16230 # Protect against being in an unquoted here document in config.status.
16231 rm -f conftest.vals
16232 cat > conftest.hdr <<\EOF
16235 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16239 sed -n -f conftest.hdr confdefs.h > conftest.vals
16242 # This sed command replaces #undef with comments. This is necessary, for
16243 # example, in the case of _POSIX_SOURCE, which is predefined and required
16244 # on some systems where configure will not decide to define it.
16245 cat >> conftest.vals <<\EOF
16246 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16249 # Break up conftest.vals because some shells have a limit on
16250 # the size of here documents, and old seds have small limits too.
16252 rm -f conftest.tail
16255 ac_lines=`grep -c . conftest.vals`
16256 # grep -c gives empty output for an empty file on some AIX systems.
16257 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16258 # Write a limited-size here document to conftest.frag.
16259 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16260 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16262 sed -f conftest.frag conftest.in > conftest.out
16264 mv conftest.out conftest.in
16265 ' >> $CONFIG_STATUS
16266 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16267 rm -f conftest.vals
16268 mv conftest.tail conftest.vals
16270 rm -f conftest.vals
16272 cat >> $CONFIG_STATUS <<\EOF
16273 rm -f conftest.frag conftest.h
16274 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16275 cat conftest.in >> conftest.h
16277 if cmp -s $ac_file conftest.h 2>/dev/null; then
16278 echo "$ac_file is unchanged"
16281 # Remove last slash and all that follows it. Not all systems have dirname.
16282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16284 # The file is in a subdirectory.
16285 test ! -d "$ac_dir" && mkdir "$ac_dir"
16288 mv conftest.h $ac_file
16293 cat >> $CONFIG_STATUS <<EOF
16295 top_srcdir="$srcdir"
16296 MAKE_SUBDIR="$MAKE_SUBDIR"
16299 cat >> $CONFIG_STATUS <<\EOF
16300 for dir in . $MAKE_SUBDIR; do
16305 sed -e '/^# Generated/d' \
16306 -e 's%/\*\*/#.*%%' \
16321 echo creating $dir/Makefile
16322 $CPP -I. -I${top_srcdir}/src junk.c \
16323 | sed -e 's/^\#.*//' \
16324 -e 's/^[ ][ ]*$//'\
16332 chmod 444 Makefile.new
16333 mv -f Makefile.new Makefile
16335 echo creating $dir/GNUmakefile
16336 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16337 | sed -e 's/^\#.*//' \
16338 -e 's/^[ ][ ]*$//'\
16346 chmod 444 Makefile.new
16347 mv -f Makefile.new GNUmakefile
16353 sed < config.status >> lib-src/config.values \
16354 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16355 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16356 -e 's/^\([^ ]*\) $/\1 ""/' \
16362 chmod +x $CONFIG_STATUS
16363 rm -fr confdefs* $ac_clean_files
16364 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1