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'
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" ;;
4983 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4984 echo "configure:4985: checking whether the -xildoff compiler flag is required" >&5
4985 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4986 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4987 then echo "$ac_t""no" 1>&6;
4988 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
4990 else echo "$ac_t""no" 1>&6
4993 if test "$opsys" = "sol2"; then
4994 if test "$os_release" -ge 56; then
4995 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4996 echo "configure:4997: checking for \"-z ignore\" linker flag" >&5
4997 case "`ld -h 2>&1`" in
4998 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4999 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5000 *) echo "$ac_t""no" 1>&6 ;;
5005 if test "$pdump" != "yes"; then
5006 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
5007 echo "configure:5008: checking for \"-z nocombreloc\" linker flag" >&5
5008 case "`ld --help 2>&1`" in
5009 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
5010 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
5011 *) echo "$ac_t""no" 1>&6 ;;
5016 echo "checking "for specified window system"" 1>&6
5017 echo "configure:5018: checking "for specified window system"" >&5
5023 if test "$with_gnome" != "no"; then
5024 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5025 echo "configure:5026: checking for GNOME configuration script" >&5
5026 for possible in gnome-config
5028 possible_version=`${possible} --version 2> /dev/null`
5029 if test "x${possible_version}" != "x"; then
5030 GNOME_CONFIG="${possible}"
5036 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5039 if test "${GNOME_CONFIG}" != "no"; then
5040 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5041 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5042 { test "$extra_verbose" = "yes" && cat << \EOF
5045 cat >> confdefs.h <<\EOF
5046 #define HAVE_GNOME 1
5050 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5051 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5054 if test "$with_gtk" != "no";then
5055 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5056 echo "configure:5057: checking for GTK configuration script" >&5
5057 for possible in gtk12-config gtk14-config gtk-config
5059 possible_version=`${possible} --version 2> /dev/null`
5060 if test "x${possible_version}" != "x"; then
5061 GTK_CONFIG="${possible}"
5063 case "${possible_version}" in
5064 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5065 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5070 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5073 echo "$ac_t""${GTK_CONFIG}" 1>&6
5076 if test "${GTK_CONFIG}" != "no"; then
5077 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5078 echo "configure:5079: checking gtk version" >&5
5079 GTK_VERSION=`${GTK_CONFIG} --version`
5080 echo "$ac_t""${GTK_VERSION}" 1>&6
5082 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5083 echo "configure:5084: checking gtk libs" >&5
5084 GTK_LIBS=`${GTK_CONFIG} --libs`
5085 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5086 echo "$ac_t""${GTK_LIBS}" 1>&6
5088 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5089 echo "configure:5090: checking gtk cflags" >&5
5090 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5091 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5092 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5095 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5096 echo "configure:5097: checking for main in -lgdk_imlib" >&5
5097 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5099 xe_check_libs=" -lgdk_imlib "
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5110 eval "ac_cv_lib_$ac_lib_var=yes"
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5115 eval "ac_cv_lib_$ac_lib_var=no"
5120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5121 echo "$ac_t""yes" 1>&6
5122 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5124 echo "$ac_t""no" 1>&6
5129 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5130 echo "configure:5131: checking for Imlib_init in -lImlib" >&5
5131 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5133 xe_check_libs=" -lImlib "
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 eval "ac_cv_lib_$ac_lib_var=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 eval "ac_cv_lib_$ac_lib_var=no"
5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5159 echo "$ac_t""yes" 1>&6
5160 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5162 echo "$ac_t""no" 1>&6
5166 for ac_func in gdk_imlib_init
5168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5169 echo "configure:5170: checking for $ac_func" >&5
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 /* System header to define __stub macros and hopefully few prototypes,
5175 which can conflict with char $ac_func(); below. */
5177 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5184 /* The GNU C library defines this for functions which it implements
5185 to always fail with ENOSYS. Some functions are actually named
5186 something starting with __ and the normal name is an alias. */
5187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 eval "ac_cv_func_$ac_func=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 eval "ac_cv_func_$ac_func=no"
5206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5209 { test "$extra_verbose" = "yes" && cat << EOF
5210 Defining $ac_tr_func
5212 cat >> confdefs.h <<EOF
5213 #define $ac_tr_func 1
5218 echo "$ac_t""no" 1>&6
5223 { test "$extra_verbose" = "yes" && cat << \EOF
5226 cat >> confdefs.h <<\EOF
5231 { test "$extra_verbose" = "yes" && cat << \EOF
5234 cat >> confdefs.h <<\EOF
5245 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5246 test "${with_toolbars}" != no && with_toolbars=gtk
5247 test "${with_menubars}" != "no" && with_menubars=gtk
5248 test "${with_dialogs}" != "no" && with_dialogs=gtk
5249 test "${with_widgets}" != "no" && with_widgets=gtk
5251 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5252 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5254 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5255 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5257 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5258 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5260 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5261 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5264 OLD_CFLAGS="${CFLAGS}"
5265 OLD_CPPFLAGS="${CPPFLAGS}"
5266 OLD_LDFLAGS="${LDFLAGS}"
5267 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5268 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5269 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5270 for ac_hdr in glade/glade.h glade.h
5272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_hdr" >&5
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5282 { (eval echo configure:5283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5284 if test -z "$ac_err"; then
5286 eval "ac_cv_header_$ac_safe=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_header_$ac_safe=no"
5295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5298 { test "$extra_verbose" = "yes" && cat << EOF
5301 cat >> confdefs.h <<EOF
5302 #define $ac_tr_hdr 1
5307 echo "$ac_t""no" 1>&6
5312 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5313 echo "configure:5314: checking for main in -lxml" >&5
5314 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5316 xe_check_libs=" -lxml "
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5325 if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5327 eval "ac_cv_lib_$ac_lib_var=yes"
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 eval "ac_cv_lib_$ac_lib_var=no"
5337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5338 echo "$ac_t""yes" 1>&6
5339 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5341 echo "$ac_t""no" 1>&6
5346 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5347 echo "configure:5348: checking for main in -lglade" >&5
5348 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5350 xe_check_libs=" -lglade "
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5361 eval "ac_cv_lib_$ac_lib_var=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 eval "ac_cv_lib_$ac_lib_var=no"
5371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5372 echo "$ac_t""yes" 1>&6
5373 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5375 echo "$ac_t""no" 1>&6
5380 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5381 echo "configure:5382: checking for main in -lglade-gnome" >&5
5382 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5384 xe_check_libs=" -lglade-gnome "
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_lib_$ac_lib_var=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_lib_$ac_lib_var=no"
5405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5406 echo "$ac_t""yes" 1>&6
5407 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5409 echo "$ac_t""no" 1>&6
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 #include <glade/glade-xml.h>
5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5421 echo "$ac_t""yes" 1>&6
5422 { test "$extra_verbose" = "yes" && cat << \EOF
5423 Defining LIBGLADE_XML_TXTDOMAIN = 1
5425 cat >> confdefs.h <<\EOF
5426 #define LIBGLADE_XML_TXTDOMAIN 1
5432 echo "$ac_t""no" 1>&6
5436 CFLAGS="${OLD_CFLAGS}"
5437 CPPFLAGS="${OLD_CPPFLAGS}"
5438 LDFLAGS="${OLD_LDFLAGS}"
5442 if test "$with_x11" != "no"; then
5443 test "$x_includes $x_libraries" != "NONE NONE" && \
5444 window_system=x11 with_x11=yes
5447 if test "$x_includes $x_libraries" = "NONE NONE" \
5448 -a -n "$OPENWINHOME" \
5449 -a "$OPENWINHOME" != "/usr/openwin" \
5450 -a -d "$OPENWINHOME"; then
5451 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5452 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5453 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5456 if test "$x_includes" = "NONE"; then
5457 for dir in "/usr/X11" "/usr/X11R6"; do
5458 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5462 if test "$x_libraries" = "NONE"; then
5463 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5464 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5468 # If we find X, set shell vars x_includes and x_libraries to the
5469 # paths, otherwise set no_x=yes.
5470 # Uses ac_ vars as temps to allow command line to override cache and checks.
5471 # --without-x overrides everything else, but does not touch the cache.
5472 echo $ac_n "checking for X""... $ac_c" 1>&6
5473 echo "configure:5474: checking for X" >&5
5475 # Check whether --with-x or --without-x was given.
5476 if test "${with_x+set}" = set; then
5481 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5482 if test "x$with_x" = xno; then
5483 # The user explicitly disabled X.
5486 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5487 # Both variables are already set.
5491 # One or both of the vars are not set, and there is no cached value.
5492 ac_x_includes=NO ac_x_libraries=NO
5494 if mkdir conftestdir; then
5496 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5497 cat > Imakefile <<'EOF'
5499 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5501 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5502 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5503 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5504 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5505 for ac_extension in a so sl; do
5506 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5507 test -f $ac_im_libdir/libX11.$ac_extension; then
5508 ac_im_usrlibdir=$ac_im_libdir; break
5511 # Screen out bogus values from the imake configuration. They are
5512 # bogus both because they are the default anyway, and because
5513 # using them would break gcc on systems where it needs fixed includes.
5514 case "$ac_im_incroot" in
5516 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5518 case "$ac_im_usrlibdir" in
5520 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5527 if test "$ac_x_includes" = NO; then
5528 # Guess where to find include files, by looking for this one X11 .h file.
5529 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5531 # First, try using that file with no special directory specified.
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 #include <$x_direct_test_include>
5537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5538 { (eval echo configure:5539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5540 if test -z "$ac_err"; then
5542 # We can compile using X headers with no special include directory.
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 # Look for the header file in a standard set of common directories.
5550 # Check X11 before X11Rn because it is often a symlink to the current release.
5553 /usr/X11R6/include \
5554 /usr/X11R5/include \
5555 /usr/X11R4/include \
5558 /usr/include/X11R6 \
5559 /usr/include/X11R5 \
5560 /usr/include/X11R4 \
5562 /usr/local/X11/include \
5563 /usr/local/X11R6/include \
5564 /usr/local/X11R5/include \
5565 /usr/local/X11R4/include \
5567 /usr/local/include/X11 \
5568 /usr/local/include/X11R6 \
5569 /usr/local/include/X11R5 \
5570 /usr/local/include/X11R4 \
5574 /usr/XFree86/include/X11 \
5577 /usr/local/include \
5578 /usr/unsupported/include \
5579 /usr/athena/include \
5580 /usr/local/x11r5/include \
5581 /usr/lpp/Xamples/include \
5583 /usr/openwin/include \
5584 /usr/openwin/share/include \
5587 if test -r "$ac_dir/$x_direct_test_include"; then
5588 ac_x_includes=$ac_dir
5594 fi # $ac_x_includes = NO
5596 if test "$ac_x_libraries" = NO; then
5597 # Check for the libraries.
5599 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5600 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5602 # See if we find them without any special options.
5603 # Don't add to $LIBS permanently.
5604 ac_save_LIBS="$LIBS"
5605 LIBS="-l$x_direct_test_library $LIBS"
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5611 ${x_direct_test_function}()
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 LIBS="$ac_save_LIBS"
5617 # We can link X programs with no special library path.
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 LIBS="$ac_save_LIBS"
5624 # First see if replacing the include by lib works.
5625 # Check X11 before X11Rn because it is often a symlink to the current release.
5626 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5637 /usr/local/X11/lib \
5638 /usr/local/X11R6/lib \
5639 /usr/local/X11R5/lib \
5640 /usr/local/X11R4/lib \
5642 /usr/local/lib/X11 \
5643 /usr/local/lib/X11R6 \
5644 /usr/local/lib/X11R5 \
5645 /usr/local/lib/X11R4 \
5649 /usr/XFree86/lib/X11 \
5653 /usr/unsupported/lib \
5655 /usr/local/x11r5/lib \
5656 /usr/lpp/Xamples/lib \
5660 /usr/openwin/share/lib \
5663 for ac_extension in a so sl; do
5664 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5665 ac_x_libraries=$ac_dir
5672 fi # $ac_x_libraries = NO
5674 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5675 # Didn't find X anywhere. Cache the known absence of X.
5676 ac_cv_have_x="have_x=no"
5678 # Record where we found X for the cache.
5679 ac_cv_have_x="have_x=yes \
5680 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5683 eval "$ac_cv_have_x"
5686 if test "$have_x" != yes; then
5687 echo "$ac_t""$have_x" 1>&6
5690 # If each of the values was on the command line, it overrides each guess.
5691 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5692 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5693 # Update the cache value to reflect the command line values.
5694 ac_cv_have_x="have_x=yes \
5695 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5696 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5699 if test "$no_x" = yes; then
5700 # Not all programs may use this symbol, but it does not hurt to define it.
5701 { test "$extra_verbose" = "yes" && cat << \EOF
5702 Defining X_DISPLAY_MISSING
5704 cat >> confdefs.h <<\EOF
5705 #define X_DISPLAY_MISSING 1
5709 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5711 if test -n "$x_includes"; then
5712 X_CFLAGS="$X_CFLAGS -I$x_includes"
5715 # It would also be nice to do this for all -L options, not just this one.
5716 if test -n "$x_libraries"; then
5717 X_LIBS="$X_LIBS -L$x_libraries"
5718 # For Solaris; some versions of Sun CC require a space after -R and
5719 # others require no space. Words are not sufficient . . . .
5720 case "`(uname -sr) 2>/dev/null`" in
5722 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5723 echo "configure:5724: checking whether -R must be followed by a space" >&5
5724 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5733 if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5743 if test $ac_R_nospace = yes; then
5744 echo "$ac_t""no" 1>&6
5745 X_LIBS="$X_LIBS -R$x_libraries"
5747 LIBS="$ac_xsave_LIBS -R $x_libraries"
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5756 if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5766 if test $ac_R_space = yes; then
5767 echo "$ac_t""yes" 1>&6
5768 X_LIBS="$X_LIBS -R $x_libraries"
5770 echo "$ac_t""neither works" 1>&6
5773 LIBS="$ac_xsave_LIBS"
5777 # Check for system-dependent libraries X programs must link with.
5778 # Do this before checking for the system-independent R6 libraries
5779 # (-lICE), since we may need -lsocket or whatever for X linking.
5781 if test "$ISC" = yes; then
5782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5784 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5785 # libraries were built with DECnet support. And karl@cs.umb.edu says
5786 # the Alpha needs dnet_stub (dnet does not exist).
5787 if test "$with_dnet" = "no" ; then
5788 ac_cv_lib_dnet_dnet_ntoa=no
5791 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5792 echo "configure:5793: checking for dnet_ntoa in -ldnet" >&5
5793 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5795 xe_check_libs=" -ldnet "
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 eval "ac_cv_lib_$ac_lib_var=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5815 eval "ac_cv_lib_$ac_lib_var=no"
5820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5821 echo "$ac_t""yes" 1>&6
5822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5824 echo "$ac_t""no" 1>&6
5829 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5831 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5832 echo "configure:5833: checking for dnet_ntoa in -ldnet_stub" >&5
5833 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5835 xe_check_libs=" -ldnet_stub "
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 eval "ac_cv_lib_$ac_lib_var=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 eval "ac_cv_lib_$ac_lib_var=no"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5861 echo "$ac_t""yes" 1>&6
5862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5864 echo "$ac_t""no" 1>&6
5870 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5871 # to get the SysV transport functions.
5872 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5874 # The nsl library prevents programs from opening the X display
5875 # on Irix 5.2, according to dickey@clark.net.
5876 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5877 echo "configure:5878: checking for gethostbyname" >&5
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char gethostbyname(); below. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5886 /* We use char because int might match the return type of a gcc2
5887 builtin and then its argument prototype would still apply. */
5888 char gethostbyname();
5892 /* The GNU C library defines this for functions which it implements
5893 to always fail with ENOSYS. Some functions are actually named
5894 something starting with __ and the normal name is an alias. */
5895 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5905 eval "ac_cv_func_gethostbyname=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5910 eval "ac_cv_func_gethostbyname=no"
5914 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5918 echo "$ac_t""no" 1>&6
5921 if test $ac_cv_func_gethostbyname = no; then
5923 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5924 echo "configure:5925: checking for gethostbyname in -lnsl" >&5
5925 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5927 xe_check_libs=" -lnsl "
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char gethostbyname();
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 eval "ac_cv_lib_$ac_lib_var=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_lib_$ac_lib_var=no"
5952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5953 echo "$ac_t""yes" 1>&6
5954 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5956 echo "$ac_t""no" 1>&6
5962 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5963 # socket/setsockopt and other routines are undefined under SCO ODT
5964 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5965 # on later versions), says simon@lia.di.epfl.ch: it contains
5966 # gethostby* variants that don't use the nameserver (or something).
5967 # -lsocket must be given before -lnsl if both are needed.
5968 # We assume that if connect needs -lnsl, so does gethostbyname.
5969 echo $ac_n "checking for connect""... $ac_c" 1>&6
5970 echo "configure:5971: checking for connect" >&5
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char connect(); below. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_connect) || defined (__stub___connect)
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_func_connect=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_func_connect=no"
6007 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6011 echo "$ac_t""no" 1>&6
6014 if test $ac_cv_func_connect = no; then
6016 xe_msg_checking="for connect in -lsocket"
6017 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6018 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6019 echo "configure:6020: checking "$xe_msg_checking"" >&5
6020 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6022 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6037 eval "ac_cv_lib_$ac_lib_var=yes"
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 eval "ac_cv_lib_$ac_lib_var=no"
6047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6048 echo "$ac_t""yes" 1>&6
6049 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6051 echo "$ac_t""no" 1>&6
6057 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6058 echo $ac_n "checking for remove""... $ac_c" 1>&6
6059 echo "configure:6060: checking for remove" >&5
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char remove(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_remove) || defined (__stub___remove)
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 eval "ac_cv_func_remove=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_func_remove=no"
6096 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6100 echo "$ac_t""no" 1>&6
6103 if test $ac_cv_func_remove = no; then
6105 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6106 echo "configure:6107: checking for remove in -lposix" >&5
6107 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6109 xe_check_libs=" -lposix "
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6124 eval "ac_cv_lib_$ac_lib_var=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6129 eval "ac_cv_lib_$ac_lib_var=no"
6134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6135 echo "$ac_t""yes" 1>&6
6136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6138 echo "$ac_t""no" 1>&6
6144 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6145 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6146 echo "configure:6147: checking for shmat" >&5
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 /* System header to define __stub macros and hopefully few prototypes,
6152 which can conflict with char shmat(); below. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6161 /* The GNU C library defines this for functions which it implements
6162 to always fail with ENOSYS. Some functions are actually named
6163 something starting with __ and the normal name is an alias. */
6164 #if defined (__stub_shmat) || defined (__stub___shmat)
6172 if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174 eval "ac_cv_func_shmat=yes"
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 eval "ac_cv_func_shmat=no"
6183 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6184 echo "$ac_t""yes" 1>&6
6187 echo "$ac_t""no" 1>&6
6190 if test $ac_cv_func_shmat = no; then
6192 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6193 echo "configure:6194: checking for shmat in -lipc" >&5
6194 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6196 xe_check_libs=" -lipc "
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 eval "ac_cv_lib_$ac_lib_var=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 eval "ac_cv_lib_$ac_lib_var=no"
6221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6222 echo "$ac_t""yes" 1>&6
6223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6225 echo "$ac_t""no" 1>&6
6232 # Check for libraries that X11R6 Xt/Xaw programs need.
6233 ac_save_LDFLAGS="$LDFLAGS"
6234 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6235 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6236 # check for ICE first), but we must link in the order -lSM -lICE or
6237 # we get undefined symbols. So assume we have SM if we have ICE.
6238 # These have to be linked with before -lX11, unlike the other
6239 # libraries we check for below, so use a different variable.
6240 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6242 xe_msg_checking="for IceConnectionNumber in -lICE"
6243 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6244 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6245 echo "configure:6246: checking "$xe_msg_checking"" >&5
6246 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6248 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6255 char IceConnectionNumber();
6258 IceConnectionNumber()
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263 eval "ac_cv_lib_$ac_lib_var=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_lib_$ac_lib_var=no"
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6274 echo "$ac_t""yes" 1>&6
6275 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6277 echo "$ac_t""no" 1>&6
6281 LDFLAGS="$ac_save_LDFLAGS"
6284 # Autoconf claims to find X library and include dirs for us.
6285 if test "$no_x" = "yes"
6286 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6287 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6292 if test "$with_x11" = "yes"; then
6293 { test "$extra_verbose" = "yes" && cat << \EOF
6294 Defining HAVE_X_WINDOWS
6296 cat >> confdefs.h <<\EOF
6297 #define HAVE_X_WINDOWS 1
6301 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6302 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6304 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6305 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6306 if test -d "$lib_dir" -a -d "$inc_dir"; then
6307 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6308 x_libraries="$lib_dir $x_libraries"
6309 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6311 case "$x_includes" in "$inc_dir"* ) ;; *)
6312 x_includes="$inc_dir $x_includes"
6313 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6318 for rel in "X11R6" "X11R5" "X11R4"; do
6319 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6320 if test -d "$lib_dir" -a -d "$inc_dir"; then
6321 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6322 x_libraries="$x_libraries $lib_dir"
6323 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6325 case "$x_includes" in "$inc_dir"* ) ;; *)
6326 x_includes="$x_includes $inc_dir"
6327 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6333 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 ;;
6336 ld_switch_x_site="$X_LIBS"
6339 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6340 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6341 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6343 runpath="" runpath_dirs=""
6344 if test -n "$LD_RUN_PATH"; then
6345 runpath="$LD_RUN_PATH"
6346 elif test "$GCC" = "yes"; then
6347 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6348 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6349 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6350 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6351 case "$arg" in P,* | -L* | -R* )
6352 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6354 xe_runpath_dir="$dir"
6355 test "$xe_runpath_dir" != "/lib" -a \
6356 "$xe_runpath_dir" != "/usr/lib" -a \
6357 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6358 eval "$xe_add_unique_runpath_dir"
6363 ld_switch_run="$ld_switch_run_save"
6366 for arg in $ld_switch_site $ld_switch_x_site; do
6367 case "$arg" in -L*) {
6368 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6369 test "$xe_runpath_dir" != "/lib" -a \
6370 "$xe_runpath_dir" != "/usr/lib" -a \
6371 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6372 eval "$xe_add_unique_runpath_dir"
6375 if test "$opsys $need_motif" = "sol2 yes"; then
6376 xe_runpath_dir="/opt/SUNWdt/lib";
6377 eval "$xe_add_unique_runpath_dir";
6380 if test -n "$runpath"; then
6381 ld_switch_run="${dash_r}${runpath}"
6383 if test "$GCC" = "yes"; then
6384 set x $ld_switch_run; shift; ld_switch_run=""
6385 while test -n "$1"; do
6387 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6388 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6390 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6395 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6400 if test "$extra_verbose" = "yes"; then
6401 echo; echo "X11 compilation variables:"
6402 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6407 if test "$x_includes" != NONE; then
6408 for i in $x_includes; do
6409 if test -d "$i/bitmaps"; then
6410 bitmapdirs="$i/bitmaps:$bitmapdirs"
6412 if test -d "$i/X11/bitmaps"; then
6413 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6416 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6418 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6419 Defining BITMAPDIR = "$bitmapdirs"
6421 cat >> confdefs.h <<EOF
6422 #define BITMAPDIR "$bitmapdirs"
6427 echo "checking for X defines extracted by xmkmf" 1>&6
6428 echo "configure:6429: checking for X defines extracted by xmkmf" >&5
6430 if mkdir conftestdir; then
6432 cat > Imakefile <<'EOF'
6434 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6436 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6437 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6438 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6442 for word in $xmkmf_defines; do
6446 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6448 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6451 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6452 if test "$val" = "1"
6453 then { test "$extra_verbose" = "yes" && cat << EOF
6456 cat >> confdefs.h <<EOF
6461 else { test "$extra_verbose" = "yes" && cat << EOF
6462 Defining $sym = $val
6464 cat >> confdefs.h <<EOF
6475 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6476 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6477 echo "configure:6478: checking for X11/Intrinsic.h" >&5
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 #include <X11/Intrinsic.h>
6484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6485 { (eval echo configure:6486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6487 if test -z "$ac_err"; then
6489 eval "ac_cv_header_$ac_safe=yes"
6492 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6495 eval "ac_cv_header_$ac_safe=no"
6498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6499 echo "$ac_t""yes" 1>&6
6502 echo "$ac_t""no" 1>&6
6503 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6508 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6509 echo "configure:6510: checking for XOpenDisplay in -lX11" >&5
6510 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6512 xe_check_libs=" -lX11 "
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char XOpenDisplay();
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6538 echo "$ac_t""yes" 1>&6
6541 echo "$ac_t""no" 1>&6
6545 if test "$have_lib_x11" != "yes"; then
6547 xe_msg_checking="for XGetFontProperty in -lX11"
6548 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6549 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6550 echo "configure:6551: checking "$xe_msg_checking"" >&5
6551 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6553 xe_check_libs=" -lX11 -b i486-linuxaout"
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6560 char XGetFontProperty();
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6568 eval "ac_cv_lib_$ac_lib_var=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_lib_$ac_lib_var=no"
6578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6579 echo "$ac_t""yes" 1>&6
6580 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6582 echo "$ac_t""no" 1>&6
6583 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6589 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6592 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6593 echo "configure:6594: checking for XShapeSelectInput in -lXext" >&5
6594 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6596 xe_check_libs=" -lXext "
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char XShapeSelectInput();
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_lib_$ac_lib_var=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_lib_$ac_lib_var=no"
6621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6622 echo "$ac_t""yes" 1>&6
6623 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6625 echo "$ac_t""no" 1>&6
6631 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6632 echo "configure:6633: checking for XtOpenDisplay in -lXt" >&5
6633 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6635 xe_check_libs=" -lXt "
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6642 char XtOpenDisplay();
6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 eval "ac_cv_lib_$ac_lib_var=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_lib_$ac_lib_var=no"
6660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6661 echo "$ac_t""yes" 1>&6
6662 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6664 echo "$ac_t""no" 1>&6
6665 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6670 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6671 echo "configure:6672: checking the version of X11 being used" >&5
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 #include <X11/Intrinsic.h>
6676 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6680 ./conftest foobar; x11_release=$?
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6689 echo "$ac_t""R${x11_release}" 1>&6
6690 { test "$extra_verbose" = "yes" && cat << EOF
6691 Defining THIS_IS_X11R${x11_release}
6693 cat >> confdefs.h <<EOF
6694 #define THIS_IS_X11R${x11_release} 1
6699 if test "${x11_release}" = "4"; then
6700 case "$with_widgets" in
6701 "" | "no") with_widgets=no ;;
6702 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6706 for ac_func in XConvertCase
6708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6709 echo "configure:6710: checking for $ac_func" >&5
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* System header to define __stub macros and hopefully few prototypes,
6715 which can conflict with char $ac_func(); below. */
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6724 /* The GNU C library defines this for functions which it implements
6725 to always fail with ENOSYS. Some functions are actually named
6726 something starting with __ and the normal name is an alias. */
6727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 eval "ac_cv_func_$ac_func=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_func_$ac_func=no"
6746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6747 echo "$ac_t""yes" 1>&6
6748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6749 { test "$extra_verbose" = "yes" && cat << EOF
6750 Defining $ac_tr_func
6752 cat >> confdefs.h <<EOF
6753 #define $ac_tr_func 1
6758 echo "$ac_t""no" 1>&6
6763 for ac_hdr in X11/Xlocale.h
6765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_hdr" >&5
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6775 { (eval echo configure:6776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6777 if test -z "$ac_err"; then
6779 eval "ac_cv_header_$ac_safe=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 eval "ac_cv_header_$ac_safe=no"
6788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6789 echo "$ac_t""yes" 1>&6
6790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6791 { test "$extra_verbose" = "yes" && cat << EOF
6794 cat >> confdefs.h <<EOF
6795 #define $ac_tr_hdr 1
6800 echo "$ac_t""no" 1>&6
6805 for ac_func in XRegisterIMInstantiateCallback
6807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6808 echo "configure:6809: checking for $ac_func" >&5
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814 which can conflict with char $ac_func(); below. */
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836 eval "ac_cv_func_$ac_func=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 eval "ac_cv_func_$ac_func=no"
6845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6848 { test "$extra_verbose" = "yes" && cat << EOF
6849 Defining $ac_tr_func
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_func 1
6857 echo "$ac_t""no" 1>&6
6861 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6862 echo "configure:6863: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6867 #define NeedFunctionPrototypes 1
6868 #include <X11/Xlib.h>
6869 extern Bool XRegisterIMInstantiateCallback(
6870 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6876 if { (eval echo configure:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6878 echo "$ac_t""yes" 1>&6
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6883 echo "$ac_t""no" 1>&6
6884 { test "$extra_verbose" = "yes" && cat << \EOF
6885 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6887 cat >> confdefs.h <<\EOF
6888 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6895 test -z "$with_xmu" && {
6896 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6897 echo "configure:6898: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6898 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6900 xe_check_libs=" -lXmu "
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6907 char XmuReadBitmapDataFromFile();
6910 XmuReadBitmapDataFromFile()
6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6915 eval "ac_cv_lib_$ac_lib_var=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_lib_$ac_lib_var=no"
6925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6926 echo "$ac_t""yes" 1>&6
6929 echo "$ac_t""no" 1>&6
6934 if test "$with_xmu" = "no"; then
6935 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6936 echo " xemacs will be linked with \"xmu.o\""
6939 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6940 { test "$extra_verbose" = "yes" && cat << \EOF
6943 cat >> confdefs.h <<\EOF
6951 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6952 echo "configure:6953: checking for main in -lXbsd" >&5
6953 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6955 xe_check_libs=" -lXbsd "
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 eval "ac_cv_lib_$ac_lib_var=yes"
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6971 eval "ac_cv_lib_$ac_lib_var=no"
6976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6977 echo "$ac_t""yes" 1>&6
6978 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6980 echo "$ac_t""no" 1>&6
6985 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6986 if test "$GCC" = "yes"; then
6987 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6988 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6991 "xlc" ) CC="xlc_r" ;;
6992 "xlC" ) CC="xlC_r" ;;
6999 if test "$with_msw" != "no"; then
7000 echo "checking for MS-Windows" 1>&6
7001 echo "configure:7002: checking for MS-Windows" >&5
7003 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7004 echo "configure:7005: checking for main in -lgdi32" >&5
7005 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7007 xe_check_libs=" -lgdi32 "
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7018 eval "ac_cv_lib_$ac_lib_var=yes"
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7023 eval "ac_cv_lib_$ac_lib_var=no"
7028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7029 echo "$ac_t""yes" 1>&6
7032 echo "$ac_t""no" 1>&6
7036 if test "$with_msw" = "yes"; then
7037 { test "$extra_verbose" = "yes" && cat << \EOF
7038 Defining HAVE_MS_WINDOWS
7040 cat >> confdefs.h <<\EOF
7041 #define HAVE_MS_WINDOWS 1
7046 if test "$with_netinstall" = "yes"; then
7047 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7048 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7049 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7052 install_pp="$blddir/lib-src/installexe.sh"
7053 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
7054 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7055 if test "$window_system" != x11; then
7057 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7058 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7059 echo " xemacs will be linked with \"scrollbar-msw.o\""
7061 test "$with_menubars" != "no" && with_menubars=msw \
7062 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7063 echo " xemacs will be linked with \"menubar-msw.o\""
7065 test "$with_toolbars" != "no" && with_toolbars=msw \
7066 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7067 echo " xemacs will be linked with \"toolbar-msw.o\""
7069 test "$with_dialogs" != "no" && with_dialogs=msw \
7070 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7071 echo " xemacs will be linked with \"dialog-msw.o\""
7073 test "$with_widgets" != "no" && with_widgets=msw
7075 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7076 echo " xemacs will be linked with \"scrollbar-msw.o\""
7078 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7079 echo " xemacs will be linked with \"menubar-msw.o\""
7081 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7082 echo " xemacs will be linked with \"toolbar-msw.o\""
7084 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7085 echo " xemacs will be linked with \"dialog-msw.o\""
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7092 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7094 if { (eval echo configure:7095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7096 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7097 Defining HAVE_MSG_SELECT
7099 cat >> confdefs.h <<\EOF
7100 #define HAVE_MSG_SELECT 1
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7110 with_file_coding=yes
7111 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
7112 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\""
7119 test -z "$window_system" && window_system="none"
7121 if test "$window_system" = "none"; then
7122 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7124 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7125 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7127 eval "with_${feature}=no"
7130 test -z "$with_toolbars" && with_toolbars=yes
7133 if test "$with_msw" != "yes"; then
7134 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7136 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7137 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7139 eval "with_${feature}=no"
7145 if test "$with_x11" != "yes"; then
7146 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7148 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7149 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7151 eval "with_${feature}=no"
7155 if test "$with_x11" = "yes"; then
7156 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7157 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7158 echo "configure:7159: checking for X11/extensions/shape.h" >&5
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7163 #include <X11/extensions/shape.h>
7165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7166 { (eval echo configure:7167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7168 if test -z "$ac_err"; then
7170 eval "ac_cv_header_$ac_safe=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 eval "ac_cv_header_$ac_safe=no"
7179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7182 { test "$extra_verbose" = "yes" && cat << \EOF
7183 Defining HAVE_BALLOON_HELP
7185 cat >> confdefs.h <<\EOF
7186 #define HAVE_BALLOON_HELP 1
7190 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7191 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7194 echo "$ac_t""no" 1>&6
7201 case "$window_system" in
7202 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7203 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7206 test "$with_gnome" = "yes" && echo " Using GNOME."
7207 test "$with_gnome" = "no" && echo " Using GTK."
7209 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7212 case "$x_libraries" in *X11R4* )
7213 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7214 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7217 echo "checking for WM_COMMAND option" 1>&6
7218 echo "configure:7219: checking for WM_COMMAND option" >&5;
7219 if test "$with_wmcommand" != "no"; then
7220 { test "$extra_verbose" = "yes" && cat << \EOF
7221 Defining HAVE_WMCOMMAND
7223 cat >> confdefs.h <<\EOF
7224 #define HAVE_WMCOMMAND 1
7230 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7231 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7232 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7233 echo "configure:7234: checking for X11/Xauth.h" >&5
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 #include <X11/Xauth.h>
7240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7241 { (eval echo configure:7242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7243 if test -z "$ac_err"; then
7245 eval "ac_cv_header_$ac_safe=yes"
7248 echo "configure: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7251 eval "ac_cv_header_$ac_safe=no"
7254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7255 echo "$ac_t""yes" 1>&6
7258 echo "$ac_t""no" 1>&6
7262 test -z "$with_xauth" && {
7263 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7264 echo "configure:7265: checking for XauGetAuthByAddr in -lXau" >&5
7265 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7267 xe_check_libs=" -lXau "
7268 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char XauGetAuthByAddr();
7280 if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7282 eval "ac_cv_lib_$ac_lib_var=yes"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7287 eval "ac_cv_lib_$ac_lib_var=no"
7292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7293 echo "$ac_t""yes" 1>&6
7296 echo "$ac_t""no" 1>&6
7301 test -z "$with_xauth" && with_xauth=yes
7302 if test "$with_xauth" = "yes"; then
7303 { test "$extra_verbose" = "yes" && cat << \EOF
7306 cat >> confdefs.h <<\EOF
7307 #define HAVE_XAUTH 1
7313 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
7321 if test "$with_tooltalk" != "no" ; then
7322 for dir in "" "Tt/" "desktop/" ; do
7323 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7324 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7325 echo "configure:7326: checking for ${dir}tt_c.h" >&5
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7330 #include <${dir}tt_c.h>
7332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7333 { (eval echo configure:7334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7335 if test -z "$ac_err"; then
7337 eval "ac_cv_header_$ac_safe=yes"
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 eval "ac_cv_header_$ac_safe=no"
7346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 tt_c_h_file="${dir}tt_c.h"; break
7350 echo "$ac_t""no" 1>&6
7354 if test -z "$tt_c_h_file"; then
7355 if test "$with_tooltalk" = "yes"; then
7356 (echo "$progname: Usage error:"
7357 echo " " "Unable to find required tooltalk header files."
7358 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7363 if test "$with_tooltalk" != "no" ; then
7364 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7366 xe_msg_checking="for tt_message_create in -ltt"
7367 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7368 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7369 echo "configure:7370: checking "$xe_msg_checking"" >&5
7370 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7372 xe_check_libs=" -ltt $extra_libs"
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7379 char tt_message_create();
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 eval "ac_cv_lib_$ac_lib_var=yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 eval "ac_cv_lib_$ac_lib_var=no"
7397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7398 echo "$ac_t""yes" 1>&6
7399 tt_libs="-ltt $extra_libs"; break
7401 echo "$ac_t""no" 1>&6
7407 if test -z "$tt_libs"; then
7408 if test "$with_tooltalk" = "yes"; then
7409 (echo "$progname: Usage error:"
7410 echo " " "Unable to find required tooltalk libraries."
7411 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7416 test -z "$with_tooltalk" && with_tooltalk=yes
7417 if test "$with_tooltalk" = "yes"; then
7418 { test "$extra_verbose" = "yes" && cat << \EOF
7421 cat >> confdefs.h <<\EOF
7426 { test "$extra_verbose" = "yes" && cat << EOF
7427 Defining TT_C_H_FILE = "$tt_c_h_file"
7429 cat >> confdefs.h <<EOF
7430 #define TT_C_H_FILE "$tt_c_h_file"
7434 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7435 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7436 echo " xemacs will be linked with \"tooltalk.o\""
7440 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7441 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7442 echo "configure:7443: checking for Dt/Dt.h" >&5
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7450 { (eval echo configure:7451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7452 if test -z "$ac_err"; then
7454 eval "ac_cv_header_$ac_safe=yes"
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 eval "ac_cv_header_$ac_safe=no"
7463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7467 echo "$ac_t""no" 1>&6
7471 test -z "$with_cde" && {
7472 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7473 echo "configure:7474: checking for DtDndDragStart in -lDtSvc" >&5
7474 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7476 xe_check_libs=" -lDtSvc "
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */
7481 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483 char DtDndDragStart();
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 eval "ac_cv_lib_$ac_lib_var=yes"
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7496 eval "ac_cv_lib_$ac_lib_var=no"
7501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7502 echo "$ac_t""yes" 1>&6
7505 echo "$ac_t""no" 1>&6
7510 test -z "$with_cde" && with_cde=yes
7511 if test "$with_dragndrop" = no; then
7512 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7515 if test "$with_cde" = "yes" ; then
7516 { test "$extra_verbose" = "yes" && cat << \EOF
7519 cat >> confdefs.h <<\EOF
7524 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7525 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7526 with_tooltalk=yes # CDE requires Tooltalk
7527 need_motif=yes # CDE requires Motif
7530 test "$window_system" != "x11" && with_offix=no
7531 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7532 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7535 if test "$with_dragndrop" = no; then
7536 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7539 if test "$with_cde" = yes; then
7540 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7543 test -z "$with_offix" && with_offix=no
7544 if test "$with_offix" = "yes"; then
7545 { test "$extra_verbose" = "yes" && cat << \EOF
7546 Defining HAVE_OFFIX_DND
7548 cat >> confdefs.h <<\EOF
7549 #define HAVE_OFFIX_DND 1
7553 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7554 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7556 if test "$with_gtk" = "yes"; then
7557 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7560 if test "$with_dragndrop" != "no" ; then
7561 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7562 echo "configure:7563: checking if drag and drop API is needed" >&5
7563 if test -n "$dragndrop_proto" ; then
7565 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7566 { test "$extra_verbose" = "yes" && cat << \EOF
7567 Defining HAVE_DRAGNDROP
7569 cat >> confdefs.h <<\EOF
7570 #define HAVE_DRAGNDROP 1
7574 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7577 echo "$ac_t""no" 1>&6
7581 echo "checking for LDAP" 1>&6
7582 echo "configure:7583: checking for LDAP" >&5
7583 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7584 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7585 echo "configure:7586: checking for ldap.h" >&5
7587 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7593 { (eval echo configure:7594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7595 if test -z "$ac_err"; then
7597 eval "ac_cv_header_$ac_safe=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_header_$ac_safe=no"
7606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7607 echo "$ac_t""yes" 1>&6
7610 echo "$ac_t""no" 1>&6
7614 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7615 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7616 echo "configure:7617: checking for lber.h" >&5
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7624 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7626 if test -z "$ac_err"; then
7628 eval "ac_cv_header_$ac_safe=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 eval "ac_cv_header_$ac_safe=no"
7637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7638 echo "$ac_t""yes" 1>&6
7641 echo "$ac_t""no" 1>&6
7645 if test "$with_ldap" != "no"; then
7647 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7648 echo "configure:7649: checking for ldap_search in -lldap" >&5
7649 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7651 xe_check_libs=" -lldap "
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7664 if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7666 eval "ac_cv_lib_$ac_lib_var=yes"
7668 echo "configure: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7671 eval "ac_cv_lib_$ac_lib_var=no"
7676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7677 echo "$ac_t""yes" 1>&6
7678 with_ldap_nolber=yes
7680 echo "$ac_t""no" 1>&6
7685 test "$with_ldap_nolber" = "no" && {
7686 xe_msg_checking="for ldap_open in -lldap"
7687 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7688 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7689 echo "configure:7690: checking "$xe_msg_checking"" >&5
7690 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7692 xe_check_libs=" -lldap -llber"
7693 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_lib_$ac_lib_var=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_lib_$ac_lib_var=no"
7717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7718 echo "$ac_t""yes" 1>&6
7721 echo "$ac_t""no" 1>&6
7726 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7727 xe_msg_checking="for ldap_open in -lldap"
7728 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7729 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7730 echo "configure:7731: checking "$xe_msg_checking"" >&5
7731 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7733 xe_check_libs=" -lldap -llber -lkrb"
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7748 eval "ac_cv_lib_$ac_lib_var=yes"
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 eval "ac_cv_lib_$ac_lib_var=no"
7758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7759 echo "$ac_t""yes" 1>&6
7762 echo "$ac_t""no" 1>&6
7767 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7768 xe_msg_checking="for ldap_open in -lldap"
7769 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7770 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7771 echo "configure:7772: checking "$xe_msg_checking"" >&5
7772 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7774 xe_check_libs=" -lldap -llber -lkrb -ldes"
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7787 if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7789 eval "ac_cv_lib_$ac_lib_var=yes"
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 eval "ac_cv_lib_$ac_lib_var=no"
7799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7800 echo "$ac_t""yes" 1>&6
7801 with_ldap_krbdes=yes
7803 echo "$ac_t""no" 1>&6
7808 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
7810 if test "$with_ldap" = "yes"; then
7811 { test "$extra_verbose" = "yes" && cat << \EOF
7814 cat >> confdefs.h <<\EOF
7819 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7820 echo " xemacs will be linked with \"eldap.o\""
7822 if test "$with_ldap_nolber" = "yes" ; then
7823 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7825 if test "$with_ldap_krb" = "yes" ; then
7826 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7828 if test "$with_ldap_krbdes" = "yes" ; then
7829 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7830 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7832 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7833 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7835 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7838 echo "configure:7839: checking for $ac_func" >&5
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char $ac_func(); below. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7853 /* The GNU C library defines this for functions which it implements
7854 to always fail with ENOSYS. Some functions are actually named
7855 something starting with __ and the normal name is an alias. */
7856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7866 eval "ac_cv_func_$ac_func=yes"
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 eval "ac_cv_func_$ac_func=no"
7875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7878 { test "$extra_verbose" = "yes" && cat << EOF
7879 Defining $ac_tr_func
7881 cat >> confdefs.h <<EOF
7882 #define $ac_tr_func 1
7887 echo "$ac_t""no" 1>&6
7893 if test "$with_postgresql" != "no"; then
7894 echo "checking for PostgreSQL" 1>&6
7895 echo "configure:7896: checking for PostgreSQL" >&5
7897 for header_dir in "" "pgsql/" "postgresql/"; do
7898 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7899 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7900 echo "configure:7901: checking for ${header_dir}libpq-fe.h" >&5
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 #include <${header_dir}libpq-fe.h>
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7912 eval "ac_cv_header_$ac_safe=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_header_$ac_safe=no"
7921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7922 echo "$ac_t""yes" 1>&6
7923 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7925 echo "$ac_t""no" 1>&6
7930 test -n "$libpq_fe_h_file" && {
7931 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7932 echo "configure:7933: checking for PQconnectdb in -lpq" >&5
7933 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7935 xe_check_libs=" -lpq "
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7950 eval "ac_cv_lib_$ac_lib_var=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 eval "ac_cv_lib_$ac_lib_var=no"
7960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7961 echo "$ac_t""yes" 1>&6
7964 echo "$ac_t""no" 1>&6
7969 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7971 { test "$extra_verbose" = "yes" && cat << \EOF
7972 Defining HAVE_POSTGRESQL
7974 cat >> confdefs.h <<\EOF
7975 #define HAVE_POSTGRESQL 1
7980 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7981 echo "configure:7982: checking for PQconnectStart in -lpq" >&5
7982 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7984 xe_check_libs=" -lpq "
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 /* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7991 char PQconnectStart();
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7999 eval "ac_cv_lib_$ac_lib_var=yes"
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8004 eval "ac_cv_lib_$ac_lib_var=no"
8009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8010 echo "$ac_t""yes" 1>&6
8011 with_postgresqlv7=yes;
8012 { test "$extra_verbose" = "yes" && cat << \EOF
8013 Defining HAVE_POSTGRESQLV7
8015 cat >> confdefs.h <<\EOF
8016 #define HAVE_POSTGRESQLV7 1
8021 echo "$ac_t""no" 1>&6
8025 { test "$extra_verbose" = "yes" && cat << EOF
8026 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8028 cat >> confdefs.h <<EOF
8029 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8033 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8034 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8035 echo " xemacs will be linked with \"postgresql.o\""
8037 elif test "$with_postgresql" = "yes"; then
8038 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8043 if test "$window_system" != "none"; then
8044 echo "checking for graphics libraries" 1>&6
8045 echo "configure:8046: checking for graphics libraries" >&5
8051 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8052 cygwin_top=`eval "dirname ${cygwin_top}"`;
8053 cygwin_top="${cygwin_top}/..";
8054 case "$window_system" in
8056 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8057 incpath_xpm="-I${cygwin_top}/include/noX"
8067 if test -z "$with_xpm"; then
8068 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8069 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8070 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8071 echo "configure:8072: checking for Xpm - no older than 3.4f" >&5
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8077 #include <X11/xpm.h>
8078 int main(int c, char **v) {
8080 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8081 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8085 ./conftest dummy_arg; xpm_status=$?;
8086 if test "$xpm_status" = "0"; then
8090 if test "$xpm_status" = "1"; then
8091 xpm_problem="Xpm library version and header file version don't match!"
8092 elif test "$xpm_status" = "2"; then
8093 xpm_problem="Xpm library version is too old!"
8095 xpm_problem="Internal xpm detection logic error!"
8098 *** WARNING *** $xpm_problem
8099 I'm not touching that with a 10-foot pole!
8100 If you really want to use the installed version of Xpm, rerun
8101 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8105 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8112 echo "$ac_t""$with_xpm" 1>&6
8114 if test "$with_xpm" = "yes"; then
8115 { test "$extra_verbose" = "yes" && cat << \EOF
8118 cat >> confdefs.h <<\EOF
8123 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8124 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8125 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8126 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8127 echo "configure:8128: checking for \"FOR_MSW\" xpm" >&5
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8134 XpmCreatePixmapFromData()
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8148 echo "$ac_t""$xpm_for_msw" 1>&6
8149 if test "$xpm_for_msw" = "yes"; then
8150 { test "$extra_verbose" = "yes" && cat << \EOF
8153 cat >> confdefs.h <<\EOF
8161 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8162 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8163 echo "configure:8164: checking for compface.h" >&5
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 #include <compface.h>
8170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8171 { (eval echo configure:8172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8173 if test -z "$ac_err"; then
8175 eval "ac_cv_header_$ac_safe=yes"
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 eval "ac_cv_header_$ac_safe=no"
8184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8188 echo "$ac_t""no" 1>&6
8192 test -z "$with_xface" && {
8193 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8194 echo "configure:8195: checking for UnGenFace in -lcompface" >&5
8195 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8197 xe_check_libs=" -lcompface "
8198 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8210 if { (eval echo configure:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8212 eval "ac_cv_lib_$ac_lib_var=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 eval "ac_cv_lib_$ac_lib_var=no"
8222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8223 echo "$ac_t""yes" 1>&6
8226 echo "$ac_t""no" 1>&6
8231 test -z "$with_xface" && with_xface=yes
8232 if test "$with_xface" = "yes"; then
8233 { test "$extra_verbose" = "yes" && cat << \EOF
8236 cat >> confdefs.h <<\EOF
8237 #define HAVE_XFACE 1
8241 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8244 if test "$with_gif" != "no"; then
8246 { test "$extra_verbose" = "yes" && cat << \EOF
8249 cat >> confdefs.h <<\EOF
8254 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8255 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8259 if test "$with_png $with_tiff" != "no no"; then
8261 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8262 echo "configure:8263: checking for inflate in -lc" >&5
8263 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8265 xe_check_libs=" -lc "
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* Override any gcc2 internal prototype to avoid an error. */
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8280 eval "ac_cv_lib_$ac_lib_var=yes"
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8285 eval "ac_cv_lib_$ac_lib_var=no"
8290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8291 echo "$ac_t""yes" 1>&6
8294 echo "$ac_t""no" 1>&6
8296 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8297 echo "configure:8298: checking for inflate in -lz" >&5
8298 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8300 xe_check_libs=" -lz "
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 eval "ac_cv_lib_$ac_lib_var=yes"
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 eval "ac_cv_lib_$ac_lib_var=no"
8325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8326 echo "$ac_t""yes" 1>&6
8327 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8329 echo "$ac_t""no" 1>&6
8331 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8332 echo "configure:8333: checking for inflate in -lgz" >&5
8333 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8335 xe_check_libs=" -lgz "
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 /* Override any gcc2 internal prototype to avoid an error. */
8340 /* We use char because int might match the return type of a gcc2
8341 builtin and then its argument prototype would still apply. */
8348 if { (eval echo configure:8349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8350 eval "ac_cv_lib_$ac_lib_var=yes"
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8355 eval "ac_cv_lib_$ac_lib_var=no"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8361 echo "$ac_t""yes" 1>&6
8362 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8364 echo "$ac_t""no" 1>&6
8376 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8377 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8378 echo "configure:8379: checking for jpeglib.h" >&5
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 #include <jpeglib.h>
8385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8386 { (eval echo configure:8387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8388 if test -z "$ac_err"; then
8390 eval "ac_cv_header_$ac_safe=yes"
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 eval "ac_cv_header_$ac_safe=no"
8399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8400 echo "$ac_t""yes" 1>&6
8403 echo "$ac_t""no" 1>&6
8407 test -z "$with_jpeg" && {
8408 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8409 echo "configure:8410: checking for jpeg_destroy_decompress in -ljpeg" >&5
8410 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8412 xe_check_libs=" -ljpeg "
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 /* Override any gcc2 internal prototype to avoid an error. */
8417 /* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */
8419 char jpeg_destroy_decompress();
8422 jpeg_destroy_decompress()
8425 if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8427 eval "ac_cv_lib_$ac_lib_var=yes"
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8432 eval "ac_cv_lib_$ac_lib_var=no"
8437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8438 echo "$ac_t""yes" 1>&6
8441 echo "$ac_t""no" 1>&6
8446 test -z "$with_jpeg" && with_jpeg=yes
8447 if test "$with_jpeg" = "yes"; then
8448 { test "$extra_verbose" = "yes" && cat << \EOF
8451 cat >> confdefs.h <<\EOF
8456 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8460 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8461 echo "configure:8462: checking for pow" >&5
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 /* System header to define __stub macros and hopefully few prototypes,
8467 which can conflict with char pow(); below. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8476 /* The GNU C library defines this for functions which it implements
8477 to always fail with ENOSYS. Some functions are actually named
8478 something starting with __ and the normal name is an alias. */
8479 #if defined (__stub_pow) || defined (__stub___pow)
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 eval "ac_cv_func_pow=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_func_pow=no"
8498 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8499 echo "$ac_t""yes" 1>&6
8502 echo "$ac_t""no" 1>&6
8506 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8507 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8508 echo "configure:8509: checking for png.h" >&5
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8518 if test -z "$ac_err"; then
8520 eval "ac_cv_header_$ac_safe=yes"
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8526 eval "ac_cv_header_$ac_safe=no"
8529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8530 echo "$ac_t""yes" 1>&6
8533 echo "$ac_t""no" 1>&6
8537 test -z "$with_png" && {
8538 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8539 echo "configure:8540: checking for png_read_image in -lpng" >&5
8540 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8542 xe_check_libs=" -lpng "
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8549 char png_read_image();
8555 if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8557 eval "ac_cv_lib_$ac_lib_var=yes"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 eval "ac_cv_lib_$ac_lib_var=no"
8567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8568 echo "$ac_t""yes" 1>&6
8571 echo "$ac_t""no" 1>&6
8576 if test -z "$with_png"; then
8577 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8578 echo "configure:8579: checking for workable png version information" >&5
8579 xe_check_libs="-lpng -lz"
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8584 int main(int c, char **v) {
8585 if (c == 1) return 0;
8586 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8587 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8591 ./conftest dummy_arg; png_status=$?;
8592 if test "$png_status" = "0"; then
8596 if test "$png_status" = "1"; then
8597 png_problem="PNG library version and header file don't match!"
8598 elif test "$png_status" = "2"; then
8599 png_problem="PNG library version too old (pre 1.0.2)!"
8602 *** WARNING *** $png_problem
8603 I'm not touching that with a 10-foot pole!
8604 If you really want to use the installed version of libPNG, rerun
8605 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8616 echo "$ac_t""$with_png" 1>&6
8618 if test "$with_png" = "yes"; then
8619 { test "$extra_verbose" = "yes" && cat << \EOF
8622 cat >> confdefs.h <<\EOF
8627 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8630 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8631 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8632 echo "configure:8633: checking for tiffio.h" >&5
8634 cat > conftest.$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8640 { (eval echo configure:8641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8642 if test -z "$ac_err"; then
8644 eval "ac_cv_header_$ac_safe=yes"
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8650 eval "ac_cv_header_$ac_safe=no"
8653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8654 echo "$ac_t""yes" 1>&6
8657 echo "$ac_t""no" 1>&6
8661 test -z "$with_tiff" && {
8662 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8663 echo "configure:8664: checking for TIFFClientOpen in -ltiff" >&5
8664 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8666 xe_check_libs=" -ltiff "
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8673 char TIFFClientOpen();
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8681 eval "ac_cv_lib_$ac_lib_var=yes"
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 eval "ac_cv_lib_$ac_lib_var=no"
8691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8692 echo "$ac_t""yes" 1>&6
8695 echo "$ac_t""no" 1>&6
8700 test -z "$with_tiff" && with_tiff=yes
8701 if test "$with_tiff" = "yes"; then
8702 { test "$extra_verbose" = "yes" && cat << \EOF
8705 cat >> confdefs.h <<\EOF
8710 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8715 if test "$with_gtk" = "yes"; then
8716 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8718 echo "configure:8719: checking for compface.h" >&5
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 #include <compface.h>
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8728 if test -z "$ac_err"; then
8730 eval "ac_cv_header_$ac_safe=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_header_$ac_safe=no"
8739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8740 echo "$ac_t""yes" 1>&6
8743 echo "$ac_t""no" 1>&6
8747 test -z "$with_xface" && {
8748 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8749 echo "configure:8750: checking for UnGenFace in -lcompface" >&5
8750 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8752 xe_check_libs=" -lcompface "
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 eval "ac_cv_lib_$ac_lib_var=no"
8777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8778 echo "$ac_t""yes" 1>&6
8781 echo "$ac_t""no" 1>&6
8786 test -z "$with_xface" && with_xface=yes
8787 if test "$with_xface" = "yes"; then
8788 { test "$extra_verbose" = "yes" && cat << \EOF
8791 cat >> confdefs.h <<\EOF
8792 #define HAVE_XFACE 1
8796 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8802 if test "$with_x11" = "yes"; then
8803 echo "checking for X11 graphics libraries" 1>&6
8804 echo "configure:8805: checking for X11 graphics libraries" >&5
8807 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then
8808 echo "checking for the Athena widgets" 1>&6
8809 echo "configure:8810: checking for the Athena widgets" >&5
8811 case "$with_athena" in
8812 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8813 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8814 "next") athena_variant=neXtaw athena_3d=yes ;;
8815 "95") athena_variant=Xaw95 athena_3d=yes ;;
8816 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8817 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8820 if test "$athena_3d" = "no"; then
8822 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8823 echo "configure:8824: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8824 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8826 xe_check_libs=" -l$athena_variant "
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830 /* Override any gcc2 internal prototype to avoid an error. */
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8833 char XawScrollbarSetThumb();
8836 XawScrollbarSetThumb()
8839 if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8841 eval "ac_cv_lib_$ac_lib_var=yes"
8843 echo "configure: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8846 eval "ac_cv_lib_$ac_lib_var=no"
8851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8852 echo "$ac_t""yes" 1>&6
8854 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8855 echo "configure:8856: checking for threeDClassRec in -l$athena_variant" >&5
8856 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8858 xe_check_libs=" -l$athena_variant "
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char threeDClassRec();
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8873 eval "ac_cv_lib_$ac_lib_var=yes"
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 eval "ac_cv_lib_$ac_lib_var=no"
8883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8884 echo "$ac_t""yes" 1>&6
8885 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8887 echo "$ac_t""no" 1>&6
8888 athena_lib=$athena_variant
8894 echo "$ac_t""no" 1>&6
8895 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8901 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8902 echo "configure:8903: checking for threeDClassRec in -l$athena_variant" >&5
8903 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8905 xe_check_libs=" -l$athena_variant "
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8912 char threeDClassRec();
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920 eval "ac_cv_lib_$ac_lib_var=yes"
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8925 eval "ac_cv_lib_$ac_lib_var=no"
8930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8931 echo "$ac_t""yes" 1>&6
8932 athena_lib=$athena_variant
8934 echo "$ac_t""no" 1>&6
8935 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8936 echo "configure:8937: checking for threeDClassRec in -lXaw" >&5
8937 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8939 xe_check_libs=" -lXaw "
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8943 /* Override any gcc2 internal prototype to avoid an error. */
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946 char threeDClassRec();
8952 if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 eval "ac_cv_lib_$ac_lib_var=yes"
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8959 eval "ac_cv_lib_$ac_lib_var=no"
8964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8965 echo "$ac_t""yes" 1>&6
8967 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8970 echo "$ac_t""no" 1>&6
8971 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8980 if test "$athena_3d" = "no"; then
8981 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8982 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8983 echo "configure:8984: checking for X11/Xaw/ThreeD.h" >&5
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 #include <X11/Xaw/ThreeD.h>
8990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8991 { (eval echo configure:8992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8993 if test -z "$ac_err"; then
8995 eval "ac_cv_header_$ac_safe=yes"
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 eval "ac_cv_header_$ac_safe=no"
9004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9005 echo "$ac_t""yes" 1>&6
9006 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9008 echo "$ac_t""no" 1>&6
9009 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9010 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9011 echo "configure:9012: checking for X11/Xaw/XawInit.h" >&5
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 #include <X11/Xaw/XawInit.h>
9018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9019 { (eval echo configure:9020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9021 if test -z "$ac_err"; then
9023 eval "ac_cv_header_$ac_safe=yes"
9026 echo "configure: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9029 eval "ac_cv_header_$ac_safe=no"
9032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9034 athena_h_path=X11/Xaw
9036 echo "$ac_t""no" 1>&6
9037 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9043 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9044 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9045 echo "configure:9046: checking for X11/$athena_variant/XawInit.h" >&5
9047 cat > conftest.$ac_ext <<EOF
9048 #line 9049 "configure"
9049 #include "confdefs.h"
9050 #include <X11/$athena_variant/XawInit.h>
9052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9053 { (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9055 if test -z "$ac_err"; then
9057 eval "ac_cv_header_$ac_safe=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_header_$ac_safe=no"
9066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9067 echo "$ac_t""yes" 1>&6
9068 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9069 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9070 echo "configure:9071: checking for X11/$athena_variant/ThreeD.h" >&5
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9074 "configure"
9074 #include "confdefs.h"
9075 #include <X11/$athena_variant/ThreeD.h>
9077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9078 { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9080 if test -z "$ac_err"; then
9082 eval "ac_cv_header_$ac_safe=yes"
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9088 eval "ac_cv_header_$ac_safe=no"
9091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9093 athena_h_path=X11/$athena_variant
9095 echo "$ac_t""no" 1>&6
9099 echo "$ac_t""no" 1>&6
9103 if test -z "$athena_h_path"; then
9104 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9105 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9106 echo "configure:9107: checking for $athena_variant/XawInit.h" >&5
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 #include <$athena_variant/XawInit.h>
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then
9118 eval "ac_cv_header_$ac_safe=yes"
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 eval "ac_cv_header_$ac_safe=no"
9127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9128 echo "$ac_t""yes" 1>&6
9129 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9130 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9131 echo "configure:9132: checking for $athena_variant/ThreeD.h" >&5
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 #include <$athena_variant/ThreeD.h>
9138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9139 { (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9141 if test -z "$ac_err"; then
9143 eval "ac_cv_header_$ac_safe=yes"
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 eval "ac_cv_header_$ac_safe=no"
9152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9153 echo "$ac_t""yes" 1>&6
9154 athena_h_path=$athena_variant
9156 echo "$ac_t""no" 1>&6
9160 echo "$ac_t""no" 1>&6
9165 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9166 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9167 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9168 echo "configure:9169: checking for X11/Xaw3d/XawInit.h" >&5
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9173 #include <X11/Xaw3d/XawInit.h>
9175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9176 { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9178 if test -z "$ac_err"; then
9180 eval "ac_cv_header_$ac_safe=yes"
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9186 eval "ac_cv_header_$ac_safe=no"
9189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9190 echo "$ac_t""yes" 1>&6
9191 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9192 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9193 echo "configure:9194: checking for X11/Xaw3d/ThreeD.h" >&5
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 #include <X11/Xaw3d/ThreeD.h>
9200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9201 { (eval echo configure:9202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9203 if test -z "$ac_err"; then
9205 eval "ac_cv_header_$ac_safe=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_header_$ac_safe=no"
9214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9217 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9218 athena_h_path=X11/Xaw3d
9221 echo "$ac_t""no" 1>&6
9225 echo "$ac_t""no" 1>&6
9230 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9231 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9232 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9233 echo "configure:9234: checking for Xaw3d/XawInit.h" >&5
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9238 #include <Xaw3d/XawInit.h>
9240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9241 { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9243 if test -z "$ac_err"; then
9245 eval "ac_cv_header_$ac_safe=yes"
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 eval "ac_cv_header_$ac_safe=no"
9254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9255 echo "$ac_t""yes" 1>&6
9256 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9257 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9258 echo "configure:9259: checking for Xaw3d/ThreeD.h" >&5
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 #include <Xaw3d/ThreeD.h>
9265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9266 { (eval echo configure:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9268 if test -z "$ac_err"; then
9270 eval "ac_cv_header_$ac_safe=yes"
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9276 eval "ac_cv_header_$ac_safe=no"
9279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9282 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9286 echo "$ac_t""no" 1>&6
9290 echo "$ac_t""no" 1>&6
9295 if test -z "$athena_h_path"; then
9296 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9297 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9298 echo "configure:9299: checking for X11/Xaw/ThreeD.h" >&5
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9303 #include <X11/Xaw/ThreeD.h>
9305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9306 { (eval echo configure:9307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9308 if test -z "$ac_err"; then
9310 eval "ac_cv_header_$ac_safe=yes"
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9316 eval "ac_cv_header_$ac_safe=no"
9319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9320 echo "$ac_t""yes" 1>&6
9322 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9323 athena_h_path=X11/Xaw
9326 echo "$ac_t""no" 1>&6
9327 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9333 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9342 if test "$with_x11" = "yes"; then
9343 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9344 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9345 echo "configure:9346: checking for Xm/Xm.h" >&5
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9353 { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9355 if test -z "$ac_err"; then
9357 eval "ac_cv_header_$ac_safe=yes"
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 eval "ac_cv_header_$ac_safe=no"
9366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9367 echo "$ac_t""yes" 1>&6
9369 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9370 echo "configure:9371: checking for XmStringFree in -lXm" >&5
9371 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9373 xe_check_libs=" -lXm "
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char XmStringFree();
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9388 eval "ac_cv_lib_$ac_lib_var=yes"
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9393 eval "ac_cv_lib_$ac_lib_var=no"
9398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9399 echo "$ac_t""yes" 1>&6
9402 echo "$ac_t""no" 1>&6
9408 echo "$ac_t""no" 1>&6
9413 if test "$have_motif" = "yes"; then
9414 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9415 echo "configure:9416: checking for Lesstif" >&5
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #ifdef LESSTIF_VERSION
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426 egrep "yes" >/dev/null 2>&1; then
9435 echo "$ac_t""$have_lesstif" 1>&6
9440 case "$with_menubars" in "" | "yes" | "athena" )
9441 with_menubars="lucid" ;;
9443 case "$with_dialogs" in "" | "yes" | "lucid" )
9444 if test "$have_motif" = "yes"; then with_dialogs="motif"
9445 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9446 else with_dialogs=no
9449 case "$with_scrollbars" in "" | "yes" )
9450 with_scrollbars="lucid" ;;
9452 case "$with_widgets" in "" | "yes" | "lucid")
9453 if test "$have_motif" = "yes"; then with_widgets="motif"
9454 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9455 else with_widgets=no
9459 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9461 case "$all_widgets" in
9463 if test "$have_xaw" != "yes"; then
9464 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9467 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9469 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9471 { test "$extra_verbose" = "yes" && cat << EOF
9472 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9474 cat >> confdefs.h <<EOF
9475 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9479 { test "$extra_verbose" = "yes" && cat << EOF
9480 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9482 cat >> confdefs.h <<EOF
9483 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9487 { test "$extra_verbose" = "yes" && cat << EOF
9488 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9490 cat >> confdefs.h <<EOF
9491 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9495 { test "$extra_verbose" = "yes" && cat << EOF
9496 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9498 cat >> confdefs.h <<EOF
9499 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9503 { test "$extra_verbose" = "yes" && cat << EOF
9504 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9506 cat >> confdefs.h <<EOF
9507 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9511 { test "$extra_verbose" = "yes" && cat << EOF
9512 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9514 cat >> confdefs.h <<EOF
9515 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9519 { test "$extra_verbose" = "yes" && cat << EOF
9520 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9522 cat >> confdefs.h <<EOF
9523 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9527 { test "$extra_verbose" = "yes" && cat << EOF
9528 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9530 cat >> confdefs.h <<EOF
9531 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9535 { test "$extra_verbose" = "yes" && cat << EOF
9536 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9538 cat >> confdefs.h <<EOF
9539 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9543 { test "$extra_verbose" = "yes" && cat << EOF
9544 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9546 cat >> confdefs.h <<EOF
9547 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9552 { test "$extra_verbose" = "yes" && cat << \EOF
9553 Defining LWLIB_USES_ATHENA
9555 cat >> confdefs.h <<\EOF
9556 #define LWLIB_USES_ATHENA 1
9560 { test "$extra_verbose" = "yes" && cat << \EOF
9561 Defining NEED_ATHENA
9563 cat >> confdefs.h <<\EOF
9564 #define NEED_ATHENA 1
9570 if test "$athena_3d" = "yes"; then
9571 { test "$extra_verbose" = "yes" && cat << \EOF
9572 Defining HAVE_ATHENA_3D
9574 cat >> confdefs.h <<\EOF
9575 #define HAVE_ATHENA_3D 1
9583 case "$all_widgets" in *motif* )
9584 { test "$extra_verbose" = "yes" && cat << \EOF
9585 Defining LWLIB_USES_MOTIF
9587 cat >> confdefs.h <<\EOF
9588 #define LWLIB_USES_MOTIF 1
9592 { test "$extra_verbose" = "yes" && cat << \EOF
9595 cat >> confdefs.h <<\EOF
9596 #define NEED_MOTIF 1
9600 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9604 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9605 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9606 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9607 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9608 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9609 case "$with_widgets" in athena* )
9610 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;;
9612 case "$all_widgets" in *lucid* )
9613 { test "$extra_verbose" = "yes" && cat << \EOF
9616 cat >> confdefs.h <<\EOF
9617 #define NEED_LUCID 1
9621 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9626 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9627 Defining LWLIB_SCROLLBARS_ATHENA
9629 cat >> confdefs.h <<\EOF
9630 #define LWLIB_SCROLLBARS_ATHENA 1
9634 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9635 Defining LWLIB_DIALOGS_ATHENA
9637 cat >> confdefs.h <<\EOF
9638 #define LWLIB_DIALOGS_ATHENA 1
9643 if test "$athena_3d" = "yes"; then
9644 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9645 Defining LWLIB_SCROLLBARS_ATHENA3D
9647 cat >> confdefs.h <<\EOF
9648 #define LWLIB_SCROLLBARS_ATHENA3D 1
9652 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9653 Defining LWLIB_DIALOGS_ATHENA3D
9655 cat >> confdefs.h <<\EOF
9656 #define LWLIB_DIALOGS_ATHENA3D 1
9662 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9663 Defining LWLIB_WIDGETS_ATHENA
9665 cat >> confdefs.h <<\EOF
9666 #define LWLIB_WIDGETS_ATHENA 1
9670 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9671 { test "$extra_verbose" = "yes" && cat << \EOF
9672 Defining LWLIB_TABS_LUCID
9674 cat >> confdefs.h <<\EOF
9675 #define LWLIB_TABS_LUCID 1
9680 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9681 Defining HAVE_MENUBARS
9683 cat >> confdefs.h <<\EOF
9684 #define HAVE_MENUBARS 1
9688 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9689 Defining HAVE_SCROLLBARS
9691 cat >> confdefs.h <<\EOF
9692 #define HAVE_SCROLLBARS 1
9696 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9697 Defining HAVE_DIALOGS
9699 cat >> confdefs.h <<\EOF
9700 #define HAVE_DIALOGS 1
9704 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9705 Defining HAVE_TOOLBARS
9707 cat >> confdefs.h <<\EOF
9708 #define HAVE_TOOLBARS 1
9712 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9713 Defining HAVE_WIDGETS
9715 cat >> confdefs.h <<\EOF
9716 #define HAVE_WIDGETS 1
9721 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9722 Defining LWLIB_MENUBARS_LUCID
9724 cat >> confdefs.h <<\EOF
9725 #define LWLIB_MENUBARS_LUCID 1
9729 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9730 Defining LWLIB_SCROLLBARS_LUCID
9732 cat >> confdefs.h <<\EOF
9733 #define LWLIB_SCROLLBARS_LUCID 1
9738 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9739 Defining LWLIB_MENUBARS_MOTIF
9741 cat >> confdefs.h <<\EOF
9742 #define LWLIB_MENUBARS_MOTIF 1
9746 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9747 Defining LWLIB_SCROLLBARS_MOTIF
9749 cat >> confdefs.h <<\EOF
9750 #define LWLIB_SCROLLBARS_MOTIF 1
9754 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9755 Defining LWLIB_DIALOGS_MOTIF
9757 cat >> confdefs.h <<\EOF
9758 #define LWLIB_DIALOGS_MOTIF 1
9762 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9763 Defining LWLIB_WIDGETS_MOTIF
9765 cat >> confdefs.h <<\EOF
9766 #define LWLIB_WIDGETS_MOTIF 1
9771 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9772 echo " xemacs will be linked with \"menubar.o\""
9774 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9775 echo " xemacs will be linked with \"scrollbar.o\""
9777 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9778 echo " xemacs will be linked with \"dialog.o\""
9780 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9781 echo " xemacs will be linked with \"toolbar.o\""
9784 if test "$with_gtk" = "yes"; then
9785 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9786 echo " xemacs will be linked with \"menubar-gtk.o\""
9788 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9789 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9791 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9792 echo " xemacs will be linked with \"dialog-gtk.o\""
9794 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9795 echo " xemacs will be linked with \"toolbar-gtk.o\""
9797 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9798 echo " xemacs will be linked with \"gui-gtk.o\""
9802 if test "$with_x11" = "yes"; then
9803 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9804 echo " xemacs will be linked with \"menubar-x.o\""
9806 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9807 echo " xemacs will be linked with \"scrollbar-x.o\""
9809 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9810 echo " xemacs will be linked with \"dialog-x.o\""
9812 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9813 echo " xemacs will be linked with \"toolbar-x.o\""
9815 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9816 echo " xemacs will be linked with \"gui-x.o\""
9821 test -z "$with_mule" && with_mule=no
9822 test -z "$with_file_coding" && with_file_coding=no
9825 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9826 { test "$extra_verbose" = "yes" && cat << \EOF
9827 Defining FILE_CODING
9829 cat >> confdefs.h <<\EOF
9830 #define FILE_CODING 1
9834 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9835 echo " xemacs will be linked with \"file-coding.o\""
9839 if test "$with_mule" = "yes" ; then
9840 echo "checking for Mule-related features" 1>&6
9841 echo "configure:9842: checking for Mule-related features" >&5
9842 { test "$extra_verbose" = "yes" && cat << \EOF
9845 cat >> confdefs.h <<\EOF
9850 { test "$extra_verbose" = "yes" && cat << \EOF
9851 Defining FILE_CODING
9853 cat >> confdefs.h <<\EOF
9854 #define FILE_CODING 1
9858 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9859 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9861 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9862 { test "$extra_verbose" = "yes" && cat << \EOF
9863 Defining TEXT_CODING
9865 cat >> confdefs.h <<\EOF
9866 #define TEXT_CODING 1
9870 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9871 echo " xemacs will be linked with \"text-coding.o\""
9874 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9875 echo " xemacs will be linked with \"file-coding.o\""
9878 for ac_hdr in libintl.h
9880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9882 echo "configure:9883: checking for $ac_hdr" >&5
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9890 { (eval echo configure:9891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9892 if test -z "$ac_err"; then
9894 eval "ac_cv_header_$ac_safe=yes"
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 eval "ac_cv_header_$ac_safe=no"
9903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9906 { test "$extra_verbose" = "yes" && cat << EOF
9909 cat >> confdefs.h <<EOF
9910 #define $ac_tr_hdr 1
9915 echo "$ac_t""no" 1>&6
9920 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9921 echo "configure:9922: checking for strerror in -lintl" >&5
9922 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9924 xe_check_libs=" -lintl "
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 /* Override any gcc2 internal prototype to avoid an error. */
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9939 eval "ac_cv_lib_$ac_lib_var=yes"
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9944 eval "ac_cv_lib_$ac_lib_var=no"
9949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9950 echo "$ac_t""yes" 1>&6
9951 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9953 { test "$extra_verbose" = "yes" && cat << EOF
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_lib 1
9961 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9964 echo "$ac_t""no" 1>&6
9969 if test "$with_utf_2000" = "yes" ; then
9970 { test "$extra_verbose" = "yes" && cat << \EOF
9971 Defining CHAR_IS_UCS4
9973 cat >> confdefs.h <<\EOF
9974 #define CHAR_IS_UCS4 1
9978 { test "$extra_verbose" = "yes" && cat << \EOF
9981 cat >> confdefs.h <<\EOF
9988 echo "checking for Mule input methods" 1>&6
9989 echo "configure:9990: checking for Mule input methods" >&5
9990 case "$with_xim" in "" | "yes" )
9991 echo "checking for XIM" 1>&6
9992 echo "configure:9993: checking for XIM" >&5
9994 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9995 echo "configure:9996: checking for XOpenIM in -lX11" >&5
9996 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9998 xe_check_libs=" -lX11 "
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 eval "ac_cv_lib_$ac_lib_var=yes"
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 eval "ac_cv_lib_$ac_lib_var=no"
10023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10024 echo "$ac_t""yes" 1>&6
10027 echo "$ac_t""no" 1>&6
10032 if test "$have_motif $have_lesstif" = "yes no"; then
10034 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10035 echo "configure:10036: checking for XmImMbLookupString in -lXm" >&5
10036 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10038 xe_check_libs=" -lXm "
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 /* Override any gcc2 internal prototype to avoid an error. */
10043 /* We use char because int might match the return type of a gcc2
10044 builtin and then its argument prototype would still apply. */
10045 char XmImMbLookupString();
10048 XmImMbLookupString()
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10053 eval "ac_cv_lib_$ac_lib_var=yes"
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 eval "ac_cv_lib_$ac_lib_var=no"
10063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10064 echo "$ac_t""yes" 1>&6
10067 echo "$ac_t""no" 1>&6
10073 if test "$with_xim" != "no"; then
10074 { test "$extra_verbose" = "yes" && cat << \EOF
10077 cat >> confdefs.h <<\EOF
10082 if test "$with_xim" = "xlib"; then
10083 { test "$extra_verbose" = "yes" && cat << \EOF
10086 cat >> confdefs.h <<\EOF
10091 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10092 echo " xemacs will be linked with \"input-method-xlib.o\""
10095 if test "$with_xim" = "motif"; then
10096 { test "$extra_verbose" = "yes" && cat << \EOF
10099 cat >> confdefs.h <<\EOF
10100 #define XIM_MOTIF 1
10105 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10106 echo " xemacs will be linked with \"input-method-motif.o\""
10109 if test "$with_xim" = "motif"; then
10114 if test "$with_xfs" = "yes" ; then
10115 echo "checking for XFontSet" 1>&6
10116 echo "configure:10117: checking for XFontSet" >&5
10118 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10119 echo "configure:10120: checking for XmbDrawString in -lX11" >&5
10120 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10122 xe_check_libs=" -lX11 "
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10129 char XmbDrawString();
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10137 eval "ac_cv_lib_$ac_lib_var=yes"
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10142 eval "ac_cv_lib_$ac_lib_var=no"
10147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10148 echo "$ac_t""yes" 1>&6
10151 echo "$ac_t""no" 1>&6
10156 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10157 { test "$extra_verbose" = "yes" && cat << \EOF
10158 Defining USE_XFONTSET
10160 cat >> confdefs.h <<\EOF
10161 #define USE_XFONTSET 1
10165 if test "$with_xim" = "no" ; then
10166 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10167 echo " xemacs will be linked with \"input-method-xlib.o\""
10172 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10173 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10174 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10175 echo "configure:10176: checking for wnn/jllib.h" >&5
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <wnn/jllib.h>
10182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10183 { (eval echo configure:10184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10185 if test -z "$ac_err"; then
10187 eval "ac_cv_header_$ac_safe=yes"
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10193 eval "ac_cv_header_$ac_safe=no"
10196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10197 echo "$ac_t""yes" 1>&6
10200 echo "$ac_t""no" 1>&6
10204 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10205 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10206 echo "configure:10207: checking for wnn/commonhd.h" >&5
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include <wnn/commonhd.h>
10213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10214 { (eval echo configure:10215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10216 if test -z "$ac_err"; then
10218 eval "ac_cv_header_$ac_safe=yes"
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10224 eval "ac_cv_header_$ac_safe=no"
10227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10228 echo "$ac_t""yes" 1>&6
10231 echo "$ac_t""no" 1>&6
10235 if test "$with_wnn" != "no"; then
10236 for ac_func in crypt
10238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10239 echo "configure:10240: checking for $ac_func" >&5
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 /* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char $ac_func(); below. */
10246 #include <assert.h>
10247 /* Override any gcc2 internal prototype to avoid an error. */
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267 eval "ac_cv_func_$ac_func=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_func_$ac_func=no"
10276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10277 echo "$ac_t""yes" 1>&6
10278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10279 { test "$extra_verbose" = "yes" && cat << EOF
10280 Defining $ac_tr_func
10282 cat >> confdefs.h <<EOF
10283 #define $ac_tr_func 1
10288 echo "$ac_t""no" 1>&6
10292 test "$ac_cv_func_crypt" != "yes" && {
10293 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10294 echo "configure:10295: checking for crypt in -lcrypt" >&5
10295 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10297 xe_check_libs=" -lcrypt "
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312 eval "ac_cv_lib_$ac_lib_var=yes"
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 eval "ac_cv_lib_$ac_lib_var=no"
10322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10323 echo "$ac_t""yes" 1>&6
10324 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10326 { test "$extra_verbose" = "yes" && cat << EOF
10327 Defining $ac_tr_lib
10329 cat >> confdefs.h <<EOF
10330 #define $ac_tr_lib 1
10334 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10337 echo "$ac_t""no" 1>&6
10342 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10344 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10345 echo "configure:10346: checking for jl_dic_list_e in -lwnn" >&5
10346 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10348 xe_check_libs=" -lwnn "
10349 cat > conftest.$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10352 /* Override any gcc2 internal prototype to avoid an error. */
10353 /* We use char because int might match the return type of a gcc2
10354 builtin and then its argument prototype would still apply. */
10355 char jl_dic_list_e();
10361 if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10363 eval "ac_cv_lib_$ac_lib_var=yes"
10365 echo "configure: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10368 eval "ac_cv_lib_$ac_lib_var=no"
10373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10374 echo "$ac_t""yes" 1>&6
10377 echo "$ac_t""no" 1>&6
10378 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10379 echo "configure:10380: checking for jl_dic_list_e in -lwnn4" >&5
10380 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10382 xe_check_libs=" -lwnn4 "
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* Override any gcc2 internal prototype to avoid an error. */
10387 /* We use char because int might match the return type of a gcc2
10388 builtin and then its argument prototype would still apply. */
10389 char jl_dic_list_e();
10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10397 eval "ac_cv_lib_$ac_lib_var=yes"
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10402 eval "ac_cv_lib_$ac_lib_var=no"
10407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10408 echo "$ac_t""yes" 1>&6
10411 echo "$ac_t""no" 1>&6
10412 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10413 echo "configure:10414: checking for jl_dic_list_e in -lwnn6" >&5
10414 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10416 xe_check_libs=" -lwnn6 "
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 /* Override any gcc2 internal prototype to avoid an error. */
10421 /* We use char because int might match the return type of a gcc2
10422 builtin and then its argument prototype would still apply. */
10423 char jl_dic_list_e();
10429 if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10431 eval "ac_cv_lib_$ac_lib_var=yes"
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10436 eval "ac_cv_lib_$ac_lib_var=no"
10441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10442 echo "$ac_t""yes" 1>&6
10445 echo "$ac_t""no" 1>&6
10446 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10447 echo "configure:10448: checking for dic_list_e in -lwnn6_fromsrc" >&5
10448 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10450 xe_check_libs=" -lwnn6_fromsrc "
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10465 eval "ac_cv_lib_$ac_lib_var=yes"
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10470 eval "ac_cv_lib_$ac_lib_var=no"
10475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10476 echo "$ac_t""yes" 1>&6
10477 libwnn=wnn6_fromsrc
10479 echo "$ac_t""no" 1>&6
10494 test -z "$with_wnn" && with_wnn=yes
10495 if test "$with_wnn" = "yes"; then
10496 { test "$extra_verbose" = "yes" && cat << \EOF
10499 cat >> confdefs.h <<\EOF
10504 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10505 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10506 echo " xemacs will be linked with \"mule-wnnfns.o\""
10508 if test "$with_wnn6" != "no"; then
10510 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10511 echo "configure:10512: checking for jl_fi_dic_list in -l$libwnn" >&5
10512 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10514 xe_check_libs=" -l$libwnn "
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10521 char jl_fi_dic_list();
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10529 eval "ac_cv_lib_$ac_lib_var=yes"
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10534 eval "ac_cv_lib_$ac_lib_var=no"
10539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10540 echo "$ac_t""yes" 1>&6
10543 echo "$ac_t""no" 1>&6
10547 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10550 cat >> confdefs.h <<\EOF
10558 canna_includes_found=no
10559 if test "$with_canna" != "no"; then
10560 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10561 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10562 echo "configure:10563: checking for canna/jrkanji.h" >&5
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 #include <canna/jrkanji.h>
10569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10570 { (eval echo configure:10571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10572 if test -z "$ac_err"; then
10574 eval "ac_cv_header_$ac_safe=yes"
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10580 eval "ac_cv_header_$ac_safe=no"
10583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10585 canna_includes_found=yes
10587 echo "$ac_t""no" 1>&6
10591 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10592 -d "/usr/local/canna/include"; then
10593 save_c_switch_site="$c_switch_site"
10594 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10595 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10596 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10597 echo "configure:10598: checking for canna/jrkanji.h" >&5
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 #include <canna/jrkanji.h>
10604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10605 { (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10607 if test -z "$ac_err"; then
10609 eval "ac_cv_header_$ac_safe=yes"
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 eval "ac_cv_header_$ac_safe=no"
10618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10619 echo "$ac_t""yes" 1>&6
10620 canna_includes_found=yes
10622 echo "$ac_t""no" 1>&6
10625 if test "$canna_includes_found" != "yes"; then
10626 c_switch_site="$save_c_switch_site"
10631 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10632 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10633 echo "configure:10634: checking for canna/RK.h" >&5
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10638 #include <canna/RK.h>
10640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10641 { (eval echo configure:10642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10643 if test -z "$ac_err"; then
10645 eval "ac_cv_header_$ac_safe=yes"
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10651 eval "ac_cv_header_$ac_safe=no"
10654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10655 echo "$ac_t""yes" 1>&6
10658 echo "$ac_t""no" 1>&6
10662 test -z "$with_canna" && {
10663 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10664 echo "configure:10665: checking for RkBgnBun in -lRKC" >&5
10665 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10667 xe_check_libs=" -lRKC "
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 /* We use char because int might match the return type of a gcc2
10673 builtin and then its argument prototype would still apply. */
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10682 eval "ac_cv_lib_$ac_lib_var=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_lib_$ac_lib_var=no"
10692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10693 echo "$ac_t""yes" 1>&6
10696 echo "$ac_t""no" 1>&6
10701 test -z "$with_canna" && {
10702 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10703 echo "configure:10704: checking for jrKanjiControl in -lcanna" >&5
10704 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10706 xe_check_libs=" -lcanna "
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 /* Override any gcc2 internal prototype to avoid an error. */
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char jrKanjiControl();
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 eval "ac_cv_lib_$ac_lib_var=yes"
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 eval "ac_cv_lib_$ac_lib_var=no"
10731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10732 echo "$ac_t""yes" 1>&6
10735 echo "$ac_t""no" 1>&6
10740 test -z "$with_canna" && with_canna=yes
10741 if test "$with_canna" = "yes"; then
10742 { test "$extra_verbose" = "yes" && cat << \EOF
10743 Defining HAVE_CANNA
10745 cat >> confdefs.h <<\EOF
10746 #define HAVE_CANNA 1
10750 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10751 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10752 echo " xemacs will be linked with \"mule-canna.o\""
10756 else for feature in xim canna wnn; do
10757 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10758 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10760 eval "with_${feature}=no"
10764 if test "$need_motif" = "yes" ; then
10765 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10767 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10768 echo "configure:10769: checking for layout_object_getvalue in -li18n" >&5
10769 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10771 xe_check_libs=" -li18n "
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 /* We use char because int might match the return type of a gcc2
10777 builtin and then its argument prototype would still apply. */
10778 char layout_object_getvalue();
10781 layout_object_getvalue()
10784 if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786 eval "ac_cv_lib_$ac_lib_var=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_lib_$ac_lib_var=no"
10796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10797 echo "$ac_t""yes" 1>&6
10798 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10800 echo "$ac_t""no" 1>&6
10805 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10806 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10807 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10809 runpath="" runpath_dirs=""
10810 if test -n "$LD_RUN_PATH"; then
10811 runpath="$LD_RUN_PATH"
10812 elif test "$GCC" = "yes"; then
10813 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10814 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10815 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10816 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10817 case "$arg" in P,* | -L* | -R* )
10818 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10820 xe_runpath_dir="$dir"
10821 test "$xe_runpath_dir" != "/lib" -a \
10822 "$xe_runpath_dir" != "/usr/lib" -a \
10823 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10824 eval "$xe_add_unique_runpath_dir"
10829 ld_switch_run="$ld_switch_run_save"
10832 for arg in $ld_switch_site $ld_switch_x_site; do
10833 case "$arg" in -L*) {
10834 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10835 test "$xe_runpath_dir" != "/lib" -a \
10836 "$xe_runpath_dir" != "/usr/lib" -a \
10837 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10838 eval "$xe_add_unique_runpath_dir"
10841 if test "$opsys $need_motif" = "sol2 yes"; then
10842 xe_runpath_dir="/opt/SUNWdt/lib";
10843 eval "$xe_add_unique_runpath_dir";
10846 if test -n "$runpath"; then
10847 ld_switch_run="${dash_r}${runpath}"
10849 if test "$GCC" = "yes"; then
10850 set x $ld_switch_run; shift; ld_switch_run=""
10851 while test -n "$1"; do
10853 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10854 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10856 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10861 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10867 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
10869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10870 echo "configure:10871: checking for $ac_func" >&5
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func(); below. */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error. */
10879 /* We use char because int might match the return type of a gcc2
10880 builtin and then its argument prototype would still apply. */
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10898 eval "ac_cv_func_$ac_func=yes"
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 eval "ac_cv_func_$ac_func=no"
10907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10908 echo "$ac_t""yes" 1>&6
10909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10910 { test "$extra_verbose" = "yes" && cat << EOF
10911 Defining $ac_tr_func
10913 cat >> confdefs.h <<EOF
10914 #define $ac_tr_func 1
10919 echo "$ac_t""no" 1>&6
10925 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10928 echo "configure:10929: checking for $ac_func" >&5
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char $ac_func(); below. */
10935 #include <assert.h>
10936 /* Override any gcc2 internal prototype to avoid an error. */
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10943 /* The GNU C library defines this for functions which it implements
10944 to always fail with ENOSYS. Some functions are actually named
10945 something starting with __ and the normal name is an alias. */
10946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10956 eval "ac_cv_func_$ac_func=yes"
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10961 eval "ac_cv_func_$ac_func=no"
10965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10968 { test "$extra_verbose" = "yes" && cat << EOF
10969 Defining $ac_tr_func
10971 cat >> confdefs.h <<EOF
10972 #define $ac_tr_func 1
10977 echo "$ac_t""no" 1>&6
10982 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10983 echo "configure:10984: checking for openpty" >&5
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 /* System header to define __stub macros and hopefully few prototypes,
10989 which can conflict with char openpty(); below. */
10990 #include <assert.h>
10991 /* Override any gcc2 internal prototype to avoid an error. */
10992 /* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10998 /* The GNU C library defines this for functions which it implements
10999 to always fail with ENOSYS. Some functions are actually named
11000 something starting with __ and the normal name is an alias. */
11001 #if defined (__stub_openpty) || defined (__stub___openpty)
11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11011 eval "ac_cv_func_openpty=yes"
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11016 eval "ac_cv_func_openpty=no"
11020 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11021 echo "$ac_t""yes" 1>&6
11024 echo "$ac_t""no" 1>&6
11027 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11028 echo "configure:11029: checking for openpty in -lutil" >&5
11029 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11031 xe_check_libs=" -lutil "
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_lib_$ac_lib_var=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_lib_$ac_lib_var=no"
11056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11057 echo "$ac_t""yes" 1>&6
11058 have_openpty=yes need_libutil=yes
11060 echo "$ac_t""no" 1>&6
11066 if test "$have_openpty" = "yes"; then
11067 { test "$extra_verbose" = "yes" && cat << \EOF
11068 Defining HAVE_OPENPTY
11070 cat >> confdefs.h <<\EOF
11071 #define HAVE_OPENPTY 1
11075 for ac_hdr in pty.h libutil.h util.h
11077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11079 echo "configure:11080: checking for $ac_hdr" >&5
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11087 { (eval echo configure:11088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11089 if test -z "$ac_err"; then
11091 eval "ac_cv_header_$ac_safe=yes"
11094 echo "configure: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11097 eval "ac_cv_header_$ac_safe=no"
11100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11103 { test "$extra_verbose" = "yes" && cat << EOF
11104 Defining $ac_tr_hdr
11106 cat >> confdefs.h <<EOF
11107 #define $ac_tr_hdr 1
11112 echo "$ac_t""no" 1>&6
11116 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11119 for ac_hdr in stropts.h
11121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11123 echo "configure:11124: checking for $ac_hdr" >&5
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure"
11127 #include "confdefs.h"
11130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11131 { (eval echo configure:11132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11133 if test -z "$ac_err"; then
11135 eval "ac_cv_header_$ac_safe=yes"
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 eval "ac_cv_header_$ac_safe=no"
11144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11145 echo "$ac_t""yes" 1>&6
11146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11147 { test "$extra_verbose" = "yes" && cat << EOF
11148 Defining $ac_tr_hdr
11150 cat >> confdefs.h <<EOF
11151 #define $ac_tr_hdr 1
11156 echo "$ac_t""no" 1>&6
11160 if test "$ac_cv_header_stropts_h" = "yes"; then
11161 for ac_func in isastream
11163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11164 echo "configure:11165: checking for $ac_func" >&5
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure"
11168 #include "confdefs.h"
11169 /* System header to define __stub macros and hopefully few prototypes,
11170 which can conflict with char $ac_func(); below. */
11171 #include <assert.h>
11172 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11192 eval "ac_cv_func_$ac_func=yes"
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 eval "ac_cv_func_$ac_func=no"
11201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11202 echo "$ac_t""yes" 1>&6
11203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11204 { test "$extra_verbose" = "yes" && cat << EOF
11205 Defining $ac_tr_func
11207 cat >> confdefs.h <<EOF
11208 #define $ac_tr_func 1
11213 echo "$ac_t""no" 1>&6
11217 for ac_hdr in strtio.h
11219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11221 echo "configure:11222: checking for $ac_hdr" >&5
11223 cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11229 { (eval echo configure:11230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11231 if test -z "$ac_err"; then
11233 eval "ac_cv_header_$ac_safe=yes"
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11239 eval "ac_cv_header_$ac_safe=no"
11242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
11244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11245 { test "$extra_verbose" = "yes" && cat << EOF
11246 Defining $ac_tr_hdr
11248 cat >> confdefs.h <<EOF
11249 #define $ac_tr_hdr 1
11254 echo "$ac_t""no" 1>&6
11259 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11260 echo " xemacs will be linked with \"realpath.o\""
11263 for ac_func in getloadavg
11265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11266 echo "configure:11267: checking for $ac_func" >&5
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 /* System header to define __stub macros and hopefully few prototypes,
11272 which can conflict with char $ac_func(); below. */
11273 #include <assert.h>
11274 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11281 /* The GNU C library defines this for functions which it implements
11282 to always fail with ENOSYS. Some functions are actually named
11283 something starting with __ and the normal name is an alias. */
11284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11292 if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11294 eval "ac_cv_func_$ac_func=yes"
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11299 eval "ac_cv_func_$ac_func=no"
11303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11304 echo "$ac_t""yes" 1>&6
11305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11306 { test "$extra_verbose" = "yes" && cat << EOF
11307 Defining $ac_tr_func
11309 cat >> confdefs.h <<EOF
11310 #define $ac_tr_func 1
11315 echo "$ac_t""no" 1>&6
11320 if test "$ac_cv_func_getloadavg" = "yes"; then
11321 for ac_hdr in sys/loadavg.h
11323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11325 echo "configure:11326: checking for $ac_hdr" >&5
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11333 { (eval echo configure:11334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11335 if test -z "$ac_err"; then
11337 eval "ac_cv_header_$ac_safe=yes"
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11343 eval "ac_cv_header_$ac_safe=no"
11346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11349 { test "$extra_verbose" = "yes" && cat << EOF
11350 Defining $ac_tr_hdr
11352 cat >> confdefs.h <<EOF
11353 #define $ac_tr_hdr 1
11358 echo "$ac_t""no" 1>&6
11363 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11364 echo " xemacs will be linked with \"getloadavg.o\""
11368 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11369 echo "configure:11370: checking for kstat_open in -lkstat" >&5
11370 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11372 xe_check_libs=" -lkstat "
11373 cat > conftest.$ac_ext <<EOF
11374 #line 11375 "configure"
11375 #include "confdefs.h"
11376 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11385 if { (eval echo configure:11386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387 eval "ac_cv_lib_$ac_lib_var=yes"
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 eval "ac_cv_lib_$ac_lib_var=no"
11397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11398 echo "$ac_t""yes" 1>&6
11399 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11401 { test "$extra_verbose" = "yes" && cat << EOF
11402 Defining $ac_tr_lib
11404 cat >> confdefs.h <<EOF
11405 #define $ac_tr_lib 1
11409 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11412 echo "$ac_t""no" 1>&6
11416 for ac_hdr in kstat.h
11418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_hdr" >&5
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11428 { (eval echo configure:11429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11430 if test -z "$ac_err"; then
11432 eval "ac_cv_header_$ac_safe=yes"
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11438 eval "ac_cv_header_$ac_safe=no"
11441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11442 echo "$ac_t""yes" 1>&6
11443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11444 { test "$extra_verbose" = "yes" && cat << EOF
11445 Defining $ac_tr_hdr
11447 cat >> confdefs.h <<EOF
11448 #define $ac_tr_hdr 1
11453 echo "$ac_t""no" 1>&6
11459 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11460 echo "configure:11461: checking for kvm_read in -lkvm" >&5
11461 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11463 xe_check_libs=" -lkvm "
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11478 eval "ac_cv_lib_$ac_lib_var=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_lib_$ac_lib_var=no"
11488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11489 echo "$ac_t""yes" 1>&6
11490 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11492 { test "$extra_verbose" = "yes" && cat << EOF
11493 Defining $ac_tr_lib
11495 cat >> confdefs.h <<EOF
11496 #define $ac_tr_lib 1
11500 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11503 echo "$ac_t""no" 1>&6
11509 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11510 echo "configure:11511: checking whether netdb declares h_errno" >&5
11511 cat > conftest.$ac_ext <<EOF
11512 #line 11513 "configure"
11513 #include "confdefs.h"
11519 if { (eval echo configure:11520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11521 echo "$ac_t""yes" 1>&6
11522 { test "$extra_verbose" = "yes" && cat << \EOF
11523 Defining HAVE_H_ERRNO
11525 cat >> confdefs.h <<\EOF
11526 #define HAVE_H_ERRNO 1
11531 echo "configure: failed program was:" >&5
11532 cat conftest.$ac_ext >&5
11534 echo "$ac_t""no" 1>&6
11538 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11539 echo "configure:11540: checking for sigsetjmp" >&5
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <setjmp.h>
11545 sigjmp_buf bar; sigsetjmp (bar, 0);
11548 if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11550 echo "$ac_t""yes" 1>&6
11551 { test "$extra_verbose" = "yes" && cat << \EOF
11552 Defining HAVE_SIGSETJMP
11554 cat >> confdefs.h <<\EOF
11555 #define HAVE_SIGSETJMP 1
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11563 echo "$ac_t""no" 1>&6
11567 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11568 echo "configure:11569: checking whether localtime caches TZ" >&5
11570 if test "$ac_cv_func_tzset" = "yes"; then
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11576 # include <stdlib.h>
11578 extern char **environ;
11582 for (to = from = environ; (*to = *from); from++)
11583 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11586 char TZ_GMT0[] = "TZ=GMT0";
11587 char TZ_PST8[] = "TZ=PST8";
11590 time_t now = time ((time_t *) 0);
11591 int hour_GMT0, hour_unset;
11592 if (putenv (TZ_GMT0) != 0)
11594 hour_GMT0 = localtime (&now)->tm_hour;
11596 hour_unset = localtime (&now)->tm_hour;
11597 if (putenv (TZ_PST8) != 0)
11599 if (localtime (&now)->tm_hour == hour_GMT0)
11602 if (localtime (&now)->tm_hour != hour_unset)
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11609 emacs_cv_localtime_cache=no
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11615 emacs_cv_localtime_cache=yes
11619 # If we lack tzset, report that localtime does not cache TZ,
11620 # since we can't invalidate the cache if we don't have tzset.
11621 emacs_cv_localtime_cache=no
11623 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11624 if test $emacs_cv_localtime_cache = yes; then
11625 { test "$extra_verbose" = "yes" && cat << \EOF
11626 Defining LOCALTIME_CACHE
11628 cat >> confdefs.h <<\EOF
11629 #define LOCALTIME_CACHE 1
11635 if test "$HAVE_TIMEVAL" = "yes"; then
11636 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11637 echo "configure:11638: checking whether gettimeofday accepts one or two arguments" >&5
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11642 #ifdef TIME_WITH_SYS_TIME
11643 #include <sys/time.h>
11646 #ifdef HAVE_SYS_TIME_H
11647 #include <sys/time.h>
11655 struct timeval time;
11656 gettimeofday (&time, 0);
11660 if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11662 echo "$ac_t""two" 1>&6
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11667 echo "$ac_t""one" 1>&6
11668 { test "$extra_verbose" = "yes" && cat << \EOF
11669 Defining GETTIMEOFDAY_ONE_ARGUMENT
11671 cat >> confdefs.h <<\EOF
11672 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11681 echo $ac_n "checking for inline""... $ac_c" 1>&6
11682 echo "configure:11683: checking for inline" >&5
11685 for ac_kw in inline __inline__ __inline; do
11686 cat > conftest.$ac_ext <<EOF
11687 #line 11688 "configure"
11688 #include "confdefs.h"
11694 if { (eval echo configure:11695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11696 ac_cv_c_inline=$ac_kw; break
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11705 echo "$ac_t""$ac_cv_c_inline" 1>&6
11706 case "$ac_cv_c_inline" in
11708 no) { test "$extra_verbose" = "yes" && cat << \EOF
11711 cat >> confdefs.h <<\EOF
11716 *) { test "$extra_verbose" = "yes" && cat << EOF
11717 Defining inline = $ac_cv_c_inline
11719 cat >> confdefs.h <<EOF
11720 #define inline $ac_cv_c_inline
11726 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11727 echo " xemacs will be linked with \"inline.o\""
11731 if test "$__DECC" != "yes"; then
11732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11733 # for constant arguments. Useless!
11734 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11735 echo "configure:11736: checking for working alloca.h" >&5
11737 cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11740 #include <alloca.h>
11742 char *p = alloca(2 * sizeof(int));
11745 if { (eval echo configure:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747 ac_cv_header_alloca_h=yes
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11752 ac_cv_header_alloca_h=no
11756 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11757 if test $ac_cv_header_alloca_h = yes; then
11758 { test "$extra_verbose" = "yes" && cat << \EOF
11759 Defining HAVE_ALLOCA_H
11761 cat >> confdefs.h <<\EOF
11762 #define HAVE_ALLOCA_H 1
11768 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11769 echo "configure:11770: checking for alloca" >&5
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11776 # define alloca __builtin_alloca
11779 # include <malloc.h>
11780 # define alloca _alloca
11783 # include <alloca.h>
11788 # ifndef alloca /* predefined by HP cc +Olibcalls */
11797 char *p = (char *) alloca(1);
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11802 ac_cv_func_alloca_works=yes
11804 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11807 ac_cv_func_alloca_works=no
11811 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11812 if test $ac_cv_func_alloca_works = yes; then
11813 { test "$extra_verbose" = "yes" && cat << \EOF
11814 Defining HAVE_ALLOCA
11816 cat >> confdefs.h <<\EOF
11817 #define HAVE_ALLOCA 1
11823 if test $ac_cv_func_alloca_works = no; then
11824 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11825 # that cause trouble. Some versions do not even contain alloca or
11826 # contain a buggy version. If you still want to use their alloca,
11827 # use ar to extract alloca.o from them instead of compiling alloca.c.
11828 ALLOCA=alloca.${ac_objext}
11829 { test "$extra_verbose" = "yes" && cat << \EOF
11832 cat >> confdefs.h <<\EOF
11838 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11839 echo "configure:11840: checking whether alloca needs Cray hooks" >&5
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 #if defined(CRAY) && ! defined(CRAY2)
11851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11852 egrep "webecray" >/dev/null 2>&1; then
11862 echo "$ac_t""$ac_cv_os_cray" 1>&6
11863 if test $ac_cv_os_cray = yes; then
11864 for ac_func in _getb67 GETB67 getb67; do
11865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11866 echo "configure:11867: checking for $ac_func" >&5
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func(); below. */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11875 /* We use char because int might match the return type of a gcc2
11876 builtin and then its argument prototype would still apply. */
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894 eval "ac_cv_func_$ac_func=yes"
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11899 eval "ac_cv_func_$ac_func=no"
11903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 { test "$extra_verbose" = "yes" && cat << EOF
11906 Defining CRAY_STACKSEG_END = $ac_func
11908 cat >> confdefs.h <<EOF
11909 #define CRAY_STACKSEG_END $ac_func
11915 echo "$ac_t""no" 1>&6
11921 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11922 echo "configure:11923: checking stack direction for C alloca" >&5
11924 cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure"
11926 #include "confdefs.h"
11927 find_stack_direction ()
11929 static char *addr = 0;
11934 return find_stack_direction ();
11937 return (&dummy > addr) ? 1 : -1;
11941 exit (find_stack_direction() < 0);
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11946 ac_cv_c_stack_direction=1
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11952 ac_cv_c_stack_direction=-1
11956 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11957 { test "$extra_verbose" = "yes" && cat << EOF
11958 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11960 cat >> confdefs.h <<EOF
11961 #define STACK_DIRECTION $ac_cv_c_stack_direction
11967 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11968 echo " xemacs will be linked with \"$ALLOCA\""
11972 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11973 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11974 echo "configure:11975: checking for vfork.h" >&5
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11982 { (eval echo configure:11983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11984 if test -z "$ac_err"; then
11986 eval "ac_cv_header_$ac_safe=yes"
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11992 eval "ac_cv_header_$ac_safe=no"
11995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11996 echo "$ac_t""yes" 1>&6
11997 { test "$extra_verbose" = "yes" && cat << \EOF
11998 Defining HAVE_VFORK_H
12000 cat >> confdefs.h <<\EOF
12001 #define HAVE_VFORK_H 1
12006 echo "$ac_t""no" 1>&6
12009 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12010 echo "configure:12011: checking for working vfork" >&5
12012 cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 /* Thanks to Paul Eggert for this test. */
12017 #include <sys/types.h>
12018 #include <sys/stat.h>
12019 #ifdef HAVE_UNISTD_H
12020 #include <unistd.h>
12022 #ifdef HAVE_VFORK_H
12025 /* On some sparc systems, changes by the child to local and incoming
12026 argument registers are propagated back to the parent.
12027 The compiler is told about this with #include <vfork.h>,
12028 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12029 Test for this by using a static variable whose address
12030 is put into a register that is clobbered by the vfork. */
12033 sparc_address_test (int arg)
12035 sparc_address_test (arg) int arg;
12038 static pid_t child;
12053 pid_t parent = getpid ();
12056 sparc_address_test ();
12061 /* Here is another test for sparc vfork register problems.
12062 This test uses lots of local variables, at least
12063 as many local variables as main has allocated so far
12064 including compiler temporaries. 4 locals are enough for
12065 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12066 A buggy compiler should reuse the register of parent
12067 for one of the local variables, since it will think that
12068 parent can't possibly be used any more in this routine.
12069 Assigning to the local variable will thus munge parent
12070 in the parent process. */
12072 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12073 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12074 /* Convince the compiler that p..p7 are live; otherwise, it might
12075 use the same hardware register for all 8 local variables. */
12076 if (p != p1 || p != p2 || p != p3 || p != p4
12077 || p != p5 || p != p6 || p != p7)
12080 /* On some systems (e.g. IRIX 3.3),
12081 vfork doesn't separate parent from child file descriptors.
12082 If the child closes a descriptor before it execs or exits,
12083 this munges the parent's descriptor as well.
12084 Test for this by closing stdout in the child. */
12085 _exit(close(fileno(stdout)) != 0);
12090 while (wait(&status) != child)
12093 /* Was there some problem with vforking? */
12096 /* Did the child fail? (This shouldn't happen.) */
12099 /* Did the vfork/compiler bug occur? */
12100 || parent != getpid()
12102 /* Did the file descriptor bug occur? */
12103 || fstat(fileno(stdout), &st) != 0
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12110 ac_cv_func_vfork_works=yes
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 ac_cv_func_vfork_works=no
12120 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12121 if test $ac_cv_func_vfork_works = no; then
12122 { test "$extra_verbose" = "yes" && cat << \EOF
12123 Defining vfork = fork
12125 cat >> confdefs.h <<\EOF
12133 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12134 echo "configure:12135: checking for working strcoll" >&5
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12139 #include <string.h>
12142 exit (strcoll ("abc", "def") >= 0 ||
12143 strcoll ("ABC", "DEF") >= 0 ||
12144 strcoll ("123", "456") >= 0);
12147 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12149 ac_cv_func_strcoll_works=yes
12152 echo "configure: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12155 ac_cv_func_strcoll_works=no
12159 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12160 if test $ac_cv_func_strcoll_works = yes; then
12161 { test "$extra_verbose" = "yes" && cat << \EOF
12162 Defining HAVE_STRCOLL
12164 cat >> confdefs.h <<\EOF
12165 #define HAVE_STRCOLL 1
12172 for ac_func in getpgrp
12174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12175 echo "configure:12176: checking for $ac_func" >&5
12177 cat > conftest.$ac_ext <<EOF
12178 #line 12179 "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181 which can conflict with char $ac_func(); below. */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error. */
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12190 /* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
12193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 if { (eval echo configure:12202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12203 eval "ac_cv_func_$ac_func=yes"
12205 echo "configure: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12208 eval "ac_cv_func_$ac_func=no"
12212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12213 echo "$ac_t""yes" 1>&6
12214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12215 { test "$extra_verbose" = "yes" && cat << EOF
12216 Defining $ac_tr_func
12218 cat >> confdefs.h <<EOF
12219 #define $ac_tr_func 1
12224 echo "$ac_t""no" 1>&6
12228 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12229 echo "configure:12230: checking whether getpgrp takes no argument" >&5
12231 cat > conftest.$ac_ext <<EOF
12232 #line 12233 "configure"
12233 #include "confdefs.h"
12236 * If this system has a BSD-style getpgrp(),
12237 * which takes a pid argument, exit unsuccessfully.
12239 * Snarfed from Chet Ramey's bash pgrp.c test program
12242 #include <sys/types.h>
12245 int pg1, pg2, pg3, pg4;
12246 int ng, np, s, child;
12253 pg3 = getpgrp(pid);
12257 * If all of these values are the same, it's pretty sure that
12258 * we're on a system that ignores getpgrp's first argument.
12260 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12266 else if (child == 0) {
12269 * If this is Sys V, this will not work; pgrp will be
12270 * set to np because setpgrp just changes a pgrp to be
12271 * the same as the pid.
12274 ng = getpgrp(0); /* Same result for Sys V and BSD */
12287 if { (eval echo configure:12288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12289 ac_cv_func_getpgrp_void=yes
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12295 ac_cv_func_getpgrp_void=no
12300 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12301 if test $ac_cv_func_getpgrp_void = yes; then
12302 { test "$extra_verbose" = "yes" && cat << \EOF
12303 Defining GETPGRP_VOID
12305 cat >> confdefs.h <<\EOF
12306 #define GETPGRP_VOID 1
12313 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12314 echo "configure:12315: checking for working mmap" >&5
12315 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12320 #include <unistd.h>
12322 #include <sys/mman.h>
12324 #ifndef MAP_VARIABLE
12325 #define MAP_VARIABLE 0
12329 #define MAP_FAILED -1
12332 int main (int argc, char *argv[])
12336 #ifndef MAP_ANONYMOUS
12337 fd = open ("/dev/zero", O_RDWR);
12340 #define MAP_ANONYMOUS 0
12342 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12343 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12344 fd, 0) != (void *) MAP_FAILED)
12346 perror ("conftest: mmap failed");
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12360 rm -fr conftest* ;;
12362 echo "$ac_t""$have_mmap" 1>&6
12363 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12366 cat >> confdefs.h <<\EOF
12367 #define HAVE_MMAP 1
12372 case "$opsys" in cygwin*)
12373 test "$rel_alloc" = "default" && rel_alloc=no ;;
12375 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12376 if test "$rel_alloc $have_mmap" = "default yes"; then
12377 if test "$doug_lea_malloc" = "yes"; then
12378 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12379 echo "configure:12380: checking for M_MMAP_THRESHOLD" >&5
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12383 #include <malloc.h>
12386 #ifndef M_MMAP_THRESHOLD
12387 #error No M_MMAP_THRESHOLD :-(
12388 !@+$%^&*_)(_ - unlikely to compile...
12393 if { (eval echo configure:12394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12395 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12407 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12410 cat >> confdefs.h <<\EOF
12411 #define REL_ALLOC 1
12416 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12417 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12418 echo "configure:12419: checking for termios.h" >&5
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 #include <termios.h>
12425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12426 { (eval echo configure:12427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12428 if test -z "$ac_err"; then
12430 eval "ac_cv_header_$ac_safe=yes"
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12436 eval "ac_cv_header_$ac_safe=no"
12439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 { test "$extra_verbose" = "yes" && cat << \EOF
12442 Defining HAVE_TERMIOS
12444 cat >> confdefs.h <<\EOF
12445 #define HAVE_TERMIOS 1
12449 { test "$extra_verbose" = "yes" && cat << \EOF
12450 Defining SIGNALS_VIA_CHARACTERS
12452 cat >> confdefs.h <<\EOF
12453 #define SIGNALS_VIA_CHARACTERS 1
12457 { test "$extra_verbose" = "yes" && cat << \EOF
12460 cat >> confdefs.h <<\EOF
12461 #define NO_TERMIO 1
12466 echo "$ac_t""no" 1>&6
12467 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12468 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12469 echo "configure:12470: checking for termio.h" >&5
12471 cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 #include <termio.h>
12476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12477 { (eval echo configure:12478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12479 if test -z "$ac_err"; then
12481 eval "ac_cv_header_$ac_safe=yes"
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12487 eval "ac_cv_header_$ac_safe=no"
12490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12491 echo "$ac_t""yes" 1>&6
12492 { test "$extra_verbose" = "yes" && cat << \EOF
12493 Defining HAVE_TERMIO
12495 cat >> confdefs.h <<\EOF
12496 #define HAVE_TERMIO 1
12501 echo "$ac_t""no" 1>&6
12508 echo $ac_n "checking for socket""... $ac_c" 1>&6
12509 echo "configure:12510: checking for socket" >&5
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char socket(); below. */
12516 #include <assert.h>
12517 /* Override any gcc2 internal prototype to avoid an error. */
12518 /* We use char because int might match the return type of a gcc2
12519 builtin and then its argument prototype would still apply. */
12524 /* The GNU C library defines this for functions which it implements
12525 to always fail with ENOSYS. Some functions are actually named
12526 something starting with __ and the normal name is an alias. */
12527 #if defined (__stub_socket) || defined (__stub___socket)
12535 if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12537 eval "ac_cv_func_socket=yes"
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12542 eval "ac_cv_func_socket=no"
12546 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12547 echo "$ac_t""yes" 1>&6
12548 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12549 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12550 echo "configure:12551: checking for netinet/in.h" >&5
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 #include <netinet/in.h>
12557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12558 { (eval echo configure:12559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12560 if test -z "$ac_err"; then
12562 eval "ac_cv_header_$ac_safe=yes"
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12568 eval "ac_cv_header_$ac_safe=no"
12571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12572 echo "$ac_t""yes" 1>&6
12573 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12574 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12575 echo "configure:12576: checking for arpa/inet.h" >&5
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12579 "configure"
12579 #include "confdefs.h"
12580 #include <arpa/inet.h>
12582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12583 { (eval echo configure:12584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12585 if test -z "$ac_err"; then
12587 eval "ac_cv_header_$ac_safe=yes"
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12593 eval "ac_cv_header_$ac_safe=no"
12596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12597 echo "$ac_t""yes" 1>&6
12599 { test "$extra_verbose" = "yes" && cat << \EOF
12600 Defining HAVE_SOCKETS
12602 cat >> confdefs.h <<\EOF
12603 #define HAVE_SOCKETS 1
12607 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12608 echo "configure:12609: checking "for sun_len member in struct sockaddr_un"" >&5
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12613 #include <sys/types.h>
12614 #include <sys/socket.h>
12615 #include <sys/un.h>
12618 static struct sockaddr_un x; x.sun_len = 1;
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12624 Defining HAVE_SOCKADDR_SUN_LEN
12626 cat >> confdefs.h <<\EOF
12627 #define HAVE_SOCKADDR_SUN_LEN 1
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12635 echo "$ac_t""no" 1>&6
12638 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12639 echo "configure:12640: checking "for ip_mreq struct in netinet/in.h"" >&5
12640 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12644 #include <sys/types.h>
12645 #include <netinet/in.h>
12648 static struct ip_mreq x;
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12653 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12654 Defining HAVE_MULTICAST
12656 cat >> confdefs.h <<\EOF
12657 #define HAVE_MULTICAST 1
12662 echo "configure: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12665 echo "$ac_t""no" 1>&6
12669 echo "$ac_t""no" 1>&6
12673 echo "$ac_t""no" 1>&6
12677 echo "$ac_t""no" 1>&6
12681 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12682 echo "configure:12683: checking for msgget" >&5
12684 cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char msgget(); below. */
12689 #include <assert.h>
12690 /* Override any gcc2 internal prototype to avoid an error. */
12691 /* We use char because int might match the return type of a gcc2
12692 builtin and then its argument prototype would still apply. */
12697 /* The GNU C library defines this for functions which it implements
12698 to always fail with ENOSYS. Some functions are actually named
12699 something starting with __ and the normal name is an alias. */
12700 #if defined (__stub_msgget) || defined (__stub___msgget)
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12710 eval "ac_cv_func_msgget=yes"
12712 echo "configure: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 eval "ac_cv_func_msgget=no"
12719 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12721 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12722 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12723 echo "configure:12724: checking for sys/ipc.h" >&5
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 #include <sys/ipc.h>
12730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12731 { (eval echo configure:12732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12733 if test -z "$ac_err"; then
12735 eval "ac_cv_header_$ac_safe=yes"
12738 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12741 eval "ac_cv_header_$ac_safe=no"
12744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12745 echo "$ac_t""yes" 1>&6
12746 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12747 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12748 echo "configure:12749: checking for sys/msg.h" >&5
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12753 #include <sys/msg.h>
12755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12756 { (eval echo configure:12757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12758 if test -z "$ac_err"; then
12760 eval "ac_cv_header_$ac_safe=yes"
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12766 eval "ac_cv_header_$ac_safe=no"
12769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12770 echo "$ac_t""yes" 1>&6
12771 { test "$extra_verbose" = "yes" && cat << \EOF
12772 Defining HAVE_SYSVIPC
12774 cat >> confdefs.h <<\EOF
12775 #define HAVE_SYSVIPC 1
12780 echo "$ac_t""no" 1>&6
12784 echo "$ac_t""no" 1>&6
12788 echo "$ac_t""no" 1>&6
12792 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12793 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12794 echo "configure:12795: checking for dirent.h" >&5
12796 cat > conftest.$ac_ext <<EOF
12797 #line 12798 "configure"
12798 #include "confdefs.h"
12799 #include <dirent.h>
12801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12802 { (eval echo configure:12803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12804 if test -z "$ac_err"; then
12806 eval "ac_cv_header_$ac_safe=yes"
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12812 eval "ac_cv_header_$ac_safe=no"
12815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12816 echo "$ac_t""yes" 1>&6
12817 { test "$extra_verbose" = "yes" && cat << \EOF
12818 Defining SYSV_SYSTEM_DIR
12820 cat >> confdefs.h <<\EOF
12821 #define SYSV_SYSTEM_DIR 1
12826 echo "$ac_t""no" 1>&6
12827 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12828 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12829 echo "configure:12830: checking for sys/dir.h" >&5
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure"
12833 #include "confdefs.h"
12834 #include <sys/dir.h>
12836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12837 { (eval echo configure:12838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12839 if test -z "$ac_err"; then
12841 eval "ac_cv_header_$ac_safe=yes"
12844 echo "configure: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12847 eval "ac_cv_header_$ac_safe=no"
12850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12851 echo "$ac_t""yes" 1>&6
12854 echo "$ac_t""no" 1>&6
12855 { test "$extra_verbose" = "yes" && cat << \EOF
12856 Defining NONSYSTEM_DIR_LIBRARY
12858 cat >> confdefs.h <<\EOF
12859 #define NONSYSTEM_DIR_LIBRARY 1
12868 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12869 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12870 echo "configure:12871: checking for nlist.h" >&5
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12878 { (eval echo configure:12879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12880 if test -z "$ac_err"; then
12882 eval "ac_cv_header_$ac_safe=yes"
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12888 eval "ac_cv_header_$ac_safe=no"
12891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12892 echo "$ac_t""yes" 1>&6
12893 { test "$extra_verbose" = "yes" && cat << \EOF
12894 Defining NLIST_STRUCT
12896 cat >> confdefs.h <<\EOF
12897 #define NLIST_STRUCT 1
12902 echo "$ac_t""no" 1>&6
12907 echo "checking "for sound support"" 1>&6
12908 echo "configure:12909: checking "for sound support"" >&5
12909 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12911 if test "$with_native_sound" != "no"; then
12912 if test -n "$native_sound_lib"; then
12913 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12914 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12915 echo "configure:12916: checking for multimedia/audio_device.h" >&5
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <multimedia/audio_device.h>
12922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12923 { (eval echo configure:12924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12925 if test -z "$ac_err"; then
12927 eval "ac_cv_header_$ac_safe=yes"
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 eval "ac_cv_header_$ac_safe=no"
12936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12937 echo "$ac_t""yes" 1>&6
12938 sound_found=yes sound_cflags=""
12939 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12940 echo " xemacs will be linked with \"sunplay.o\""
12943 echo "$ac_t""no" 1>&6
12948 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12950 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12951 echo " xemacs will be linked with \"sunplay.o\""
12953 if test -d "/usr/demo/SOUND/include"
12954 then sound_cflags="-I/usr/demo/SOUND/include"
12955 else sound_cflags="-I/usr/demo/SOUND"
12957 if test -z "$native_sound_lib" ; then
12958 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12959 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12960 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12965 if test -z "$sound_found"; then
12966 case "$canonical" in
12968 if test -z "$native_sound_lib"; then
12970 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12971 echo "configure:12972: checking for ALopenport in -laudio" >&5
12972 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12974 xe_check_libs=" -laudio "
12975 cat > conftest.$ac_ext <<EOF
12976 #line 12977 "configure"
12977 #include "confdefs.h"
12978 /* Override any gcc2 internal prototype to avoid an error. */
12979 /* We use char because int might match the return type of a gcc2
12980 builtin and then its argument prototype would still apply. */
12987 if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12989 eval "ac_cv_lib_$ac_lib_var=yes"
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12994 eval "ac_cv_lib_$ac_lib_var=no"
12999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13000 echo "$ac_t""yes" 1>&6
13001 native_sound_lib="-laudio"
13003 echo "$ac_t""no" 1>&6
13008 if test -n "$native_sound_lib"; then
13009 sound_found=yes sound_cflags=""
13010 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13011 echo " xemacs will be linked with \"sgiplay.o\""
13015 if test -z "$native_sound_lib"; then
13017 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13018 echo "configure:13019: checking for AOpenAudio in -lAlib" >&5
13019 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13021 xe_check_libs=" -lAlib "
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13034 if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13036 eval "ac_cv_lib_$ac_lib_var=yes"
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13041 eval "ac_cv_lib_$ac_lib_var=no"
13046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13047 echo "$ac_t""yes" 1>&6
13048 native_sound_lib="-lAlib"
13050 echo "$ac_t""no" 1>&6
13055 if test -n "$native_sound_lib"; then
13057 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13058 echo " xemacs will be linked with \"hpplay.o\""
13060 if test "$GCC" = "yes" # Kludge city
13061 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13062 else sound_cflags="+e -I/usr/audio/examples"
13068 if test -z "$sound_found"; then
13069 if test "$with_msw" = "yes"; then
13075 if test -z "$sound_found"; then
13076 for dir in "machine" "sys" "linux"; do
13077 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13078 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13079 echo "configure:13080: checking for ${dir}/soundcard.h" >&5
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13084 #include <${dir}/soundcard.h>
13086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13087 { (eval echo configure:13088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13089 if test -z "$ac_err"; then
13091 eval "ac_cv_header_$ac_safe=yes"
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 eval "ac_cv_header_$ac_safe=no"
13100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13101 echo "$ac_t""yes" 1>&6
13104 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13105 echo " xemacs will be linked with \"linuxplay.o\""
13107 { test "$extra_verbose" = "yes" && cat << EOF
13108 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13110 cat >> confdefs.h <<EOF
13111 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13117 echo "$ac_t""no" 1>&6
13123 test "$sound_found" = "yes" && with_native_sound=yes
13126 if test "$with_native_sound" = "yes"; then
13127 { test "$extra_verbose" = "yes" && cat << \EOF
13128 Defining HAVE_NATIVE_SOUND
13130 cat >> confdefs.h <<\EOF
13131 #define HAVE_NATIVE_SOUND 1
13135 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13138 if test "$with_nas_sound" != "no"; then
13139 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13140 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13141 echo "configure:13142: checking for audio/audiolib.h" >&5
13143 cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 #include <audio/audiolib.h>
13148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13149 { (eval echo configure:13150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13151 if test -z "$ac_err"; then
13153 eval "ac_cv_header_$ac_safe=yes"
13156 echo "configure: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13159 eval "ac_cv_header_$ac_safe=no"
13162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13163 echo "$ac_t""yes" 1>&6
13166 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13167 echo "configure:13168: checking for AuOpenServer in -laudio" >&5
13168 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13170 xe_check_libs=" -laudio "
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 /* Override any gcc2 internal prototype to avoid an error. */
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char AuOpenServer();
13183 if { (eval echo configure:13184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13185 eval "ac_cv_lib_$ac_lib_var=yes"
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13190 eval "ac_cv_lib_$ac_lib_var=no"
13195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13196 echo "$ac_t""yes" 1>&6
13199 echo "$ac_t""no" 1>&6
13204 echo "$ac_t""no" 1>&6
13207 if test "$have_nas_sound" = "yes"; then
13209 { test "$extra_verbose" = "yes" && cat << \EOF
13210 Defining HAVE_NAS_SOUND
13212 cat >> confdefs.h <<\EOF
13213 #define HAVE_NAS_SOUND 1
13217 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13218 echo " xemacs will be linked with \"nas.o\""
13220 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13221 cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13224 #include <audio/Xtutil.h>
13226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13227 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13231 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13232 Defining NAS_NO_ERROR_JUMP
13234 cat >> confdefs.h <<\EOF
13235 #define NAS_NO_ERROR_JUMP 1
13243 test "$with_nas_sound" = "yes" && \
13244 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13249 if test "$with_esd_sound" != "no"; then
13250 # Extract the first word of "esd-config", so it can be a program name with args.
13251 set dummy esd-config; ac_word=$2
13252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13253 echo "configure:13254: checking for $ac_word" >&5
13255 if test -n "$have_esd_config"; then
13256 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13260 for ac_dir in $ac_dummy; do
13261 test -z "$ac_dir" && ac_dir=.
13262 if test -f $ac_dir/$ac_word; then
13263 ac_cv_prog_have_esd_config="yes"
13268 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13270 have_esd_config="$ac_cv_prog_have_esd_config"
13271 if test -n "$have_esd_config"; then
13272 echo "$ac_t""$have_esd_config" 1>&6
13274 echo "$ac_t""no" 1>&6
13277 if test "$have_esd_config" = "yes"; then
13278 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13279 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
13280 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13281 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13282 echo "configure:13283: checking for esd_play_stream" >&5
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 /* System header to define __stub macros and hopefully few prototypes,
13288 which can conflict with char esd_play_stream(); below. */
13289 #include <assert.h>
13290 /* Override any gcc2 internal prototype to avoid an error. */
13291 /* We use char because int might match the return type of a gcc2
13292 builtin and then its argument prototype would still apply. */
13293 char esd_play_stream();
13297 /* The GNU C library defines this for functions which it implements
13298 to always fail with ENOSYS. Some functions are actually named
13299 something starting with __ and the normal name is an alias. */
13300 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13308 if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13310 eval "ac_cv_func_esd_play_stream=yes"
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13315 eval "ac_cv_func_esd_play_stream=no"
13319 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13320 echo "$ac_t""yes" 1>&6
13323 echo "$ac_t""no" 1>&6
13324 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13329 if test "$have_esd_sound" = "yes"; then
13332 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13333 echo " xemacs will be linked with \"esd.o\""
13335 { test "$extra_verbose" = "yes" && cat << \EOF
13336 Defining HAVE_ESD_SOUND
13338 cat >> confdefs.h <<\EOF
13339 #define HAVE_ESD_SOUND 1
13344 test "$with_esd_sound" = "yes" && \
13345 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13350 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13351 echo " xemacs will be linked with \"miscplay.o\""
13355 test -z "$with_tty" && with_tty=yes
13357 if test "$with_tty" = "yes" ; then
13358 echo "checking for TTY-related features" 1>&6
13359 echo "configure:13360: checking for TTY-related features" >&5
13360 { test "$extra_verbose" = "yes" && cat << \EOF
13363 cat >> confdefs.h <<\EOF
13368 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
13369 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\""
13372 if test -z "$with_ncurses"; then
13374 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13375 echo "configure:13376: checking for tgetent in -lncurses" >&5
13376 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13378 xe_check_libs=" -lncurses "
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13382 /* Override any gcc2 internal prototype to avoid an error. */
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13391 if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13393 eval "ac_cv_lib_$ac_lib_var=yes"
13395 echo "configure: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13398 eval "ac_cv_lib_$ac_lib_var=no"
13403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13404 echo "$ac_t""yes" 1>&6
13407 echo "$ac_t""no" 1>&6
13413 if test "$with_ncurses" = "yes"; then
13414 { test "$extra_verbose" = "yes" && cat << \EOF
13415 Defining HAVE_NCURSES
13417 cat >> confdefs.h <<\EOF
13418 #define HAVE_NCURSES 1
13422 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13423 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13424 echo "configure:13425: checking for ncurses/curses.h" >&5
13426 cat > conftest.$ac_ext <<EOF
13427 #line 13428 "configure"
13428 #include "confdefs.h"
13429 #include <ncurses/curses.h>
13431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13432 { (eval echo configure:13433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13434 if test -z "$ac_err"; then
13436 eval "ac_cv_header_$ac_safe=yes"
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13442 eval "ac_cv_header_$ac_safe=no"
13445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13446 echo "$ac_t""yes" 1>&6
13447 curses_h_file=ncurses/curses.h
13449 echo "$ac_t""no" 1>&6
13452 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13453 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13454 echo "configure:13455: checking for ncurses/term.h" >&5
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13459 #include <ncurses/term.h>
13461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13462 { (eval echo configure:13463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13464 if test -z "$ac_err"; then
13466 eval "ac_cv_header_$ac_safe=yes"
13469 echo "configure: failed program was:" >&5
13470 cat conftest.$ac_ext >&5
13472 eval "ac_cv_header_$ac_safe=no"
13475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13476 echo "$ac_t""yes" 1>&6
13477 term_h_file=ncurses/term.h
13479 echo "$ac_t""no" 1>&6
13482 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13483 echo " xemacs will be linked with \"terminfo.o\""
13485 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13487 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13488 save_c_switch_site="$c_switch_site"
13489 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13490 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13491 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13492 echo "configure:13493: checking for ncurses/curses.h" >&5
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13497 #include <ncurses/curses.h>
13499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13500 { (eval echo configure:13501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13502 if test -z "$ac_err"; then
13504 eval "ac_cv_header_$ac_safe=yes"
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 eval "ac_cv_header_$ac_safe=no"
13513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13514 echo "$ac_t""yes" 1>&6
13515 curses_h_file=ncurses/curses.h
13517 echo "$ac_t""no" 1>&6
13520 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13521 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13522 else c_switch_site="$save_c_switch_site"
13525 else if test "$have_terminfo" = "yes"; then
13526 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13527 echo " xemacs will be linked with \"terminfo.o\""
13529 if test -n "$libs_termcap"; then
13530 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13532 for lib in curses termlib termcap; do
13534 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13535 echo "configure:13536: checking for tgetent in -l$lib" >&5
13536 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13538 xe_check_libs=" -l$lib "
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13542 /* Override any gcc2 internal prototype to avoid an error. */
13543 /* We use char because int might match the return type of a gcc2
13544 builtin and then its argument prototype would still apply. */
13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13553 eval "ac_cv_lib_$ac_lib_var=yes"
13555 echo "configure: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13558 eval "ac_cv_lib_$ac_lib_var=no"
13563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13564 echo "$ac_t""yes" 1>&6
13565 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13567 echo "$ac_t""no" 1>&6
13573 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13574 echo " xemacs will be linked with \"tparam.o\""
13576 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13577 if test -n "$libs_termcap"; then
13578 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13581 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13582 echo "configure:13583: checking for tgetent in -lcurses" >&5
13583 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13585 xe_check_libs=" -lcurses "
13586 cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13589 /* Override any gcc2 internal prototype to avoid an error. */
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13598 if { (eval echo configure:13599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13600 eval "ac_cv_lib_$ac_lib_var=yes"
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13605 eval "ac_cv_lib_$ac_lib_var=no"
13610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13611 echo "$ac_t""yes" 1>&6
13612 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13614 echo "$ac_t""no" 1>&6
13615 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13616 echo "configure:13617: checking for tgetent in -ltermcap" >&5
13617 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13619 xe_check_libs=" -ltermcap "
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13632 if { (eval echo configure:13633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13634 eval "ac_cv_lib_$ac_lib_var=yes"
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13639 eval "ac_cv_lib_$ac_lib_var=no"
13644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13645 echo "$ac_t""yes" 1>&6
13646 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13648 echo "$ac_t""no" 1>&6
13649 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13650 echo " xemacs will be linked with \"termcap.o\""
13661 { test "$extra_verbose" = "yes" && cat << EOF
13662 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13664 cat >> confdefs.h <<EOF
13665 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13669 { test "$extra_verbose" = "yes" && cat << EOF
13670 Defining TERM_H_FILE = "${term_h_file-term.h}"
13672 cat >> confdefs.h <<EOF
13673 #define TERM_H_FILE "${term_h_file-term.h}"
13678 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13679 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13680 echo "configure:13681: checking for gpm.h" >&5
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13688 { (eval echo configure:13689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13690 if test -z "$ac_err"; then
13692 eval "ac_cv_header_$ac_safe=yes"
13695 echo "configure: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13698 eval "ac_cv_header_$ac_safe=no"
13701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13702 echo "$ac_t""yes" 1>&6
13705 echo "$ac_t""no" 1>&6
13709 test -z "$with_gpm" && {
13710 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13711 echo "configure:13712: checking for Gpm_Open in -lgpm" >&5
13712 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13714 xe_check_libs=" -lgpm "
13715 cat > conftest.$ac_ext <<EOF
13716 #line 13717 "configure"
13717 #include "confdefs.h"
13718 /* Override any gcc2 internal prototype to avoid an error. */
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13729 eval "ac_cv_lib_$ac_lib_var=yes"
13731 echo "configure: failed program was:" >&5
13732 cat conftest.$ac_ext >&5
13734 eval "ac_cv_lib_$ac_lib_var=no"
13739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13740 echo "$ac_t""yes" 1>&6
13743 echo "$ac_t""no" 1>&6
13748 if test "$with_gpm" = "yes"; then
13749 { test "$extra_verbose" = "yes" && cat << \EOF
13752 cat >> confdefs.h <<\EOF
13757 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13758 echo " xemacs will be linked with \"gpmevent.o\""
13760 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13763 else for feature in ncurses gpm; do
13764 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13765 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13767 eval "with_${feature}=no"
13770 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
13771 echo " xemacs will be linked with \"event-unixoid.o\""
13775 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13776 != "no no no" && echo "checking for database support" 1>&6
13777 echo "configure:13778: checking for database support" >&5
13779 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13780 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13781 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13782 echo "configure:13783: checking for ndbm.h" >&5
13784 cat > conftest.$ac_ext <<EOF
13785 #line 13786 "configure"
13786 #include "confdefs.h"
13789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13790 { (eval echo configure:13791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13792 if test -z "$ac_err"; then
13794 eval "ac_cv_header_$ac_safe=yes"
13797 echo "configure: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13800 eval "ac_cv_header_$ac_safe=no"
13803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13804 echo "$ac_t""yes" 1>&6
13807 echo "$ac_t""no" 1>&6
13809 test "$with_database_gdbm" = "yes" -o \
13810 "$with_database_dbm" = "yes" && \
13811 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13812 with_database_gdbm=no with_database_dbm=no
13817 if test "$with_database_gdbm" != "no"; then
13819 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13820 echo "configure:13821: checking for dbm_open in -lgdbm" >&5
13821 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13823 xe_check_libs=" -lgdbm "
13824 cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838 eval "ac_cv_lib_$ac_lib_var=yes"
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13843 eval "ac_cv_lib_$ac_lib_var=no"
13848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13849 echo "$ac_t""yes" 1>&6
13850 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13852 echo "$ac_t""no" 1>&6
13853 if test "$with_database_gdbm" = "yes"; then
13854 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13856 with_database_gdbm=no
13862 if test "$with_database_dbm" != "no"; then
13863 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13864 echo "configure:13865: checking for dbm_open" >&5
13866 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure"
13868 #include "confdefs.h"
13869 /* System header to define __stub macros and hopefully few prototypes,
13870 which can conflict with char dbm_open(); below. */
13871 #include <assert.h>
13872 /* Override any gcc2 internal prototype to avoid an error. */
13873 /* We use char because int might match the return type of a gcc2
13874 builtin and then its argument prototype would still apply. */
13879 /* The GNU C library defines this for functions which it implements
13880 to always fail with ENOSYS. Some functions are actually named
13881 something starting with __ and the normal name is an alias. */
13882 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892 eval "ac_cv_func_dbm_open=yes"
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13897 eval "ac_cv_func_dbm_open=no"
13901 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13902 echo "$ac_t""yes" 1>&6
13903 with_database_dbm=yes libdbm=
13905 echo "$ac_t""no" 1>&6
13908 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13909 echo "configure:13910: checking for dbm_open in -ldbm" >&5
13910 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13912 xe_check_libs=" -ldbm "
13913 cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 /* Override any gcc2 internal prototype to avoid an error. */
13917 /* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13925 if { (eval echo configure:13926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13927 eval "ac_cv_lib_$ac_lib_var=yes"
13929 echo "configure: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13932 eval "ac_cv_lib_$ac_lib_var=no"
13937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13938 echo "$ac_t""yes" 1>&6
13939 with_database_dbm=yes libdbm=-ldbm
13941 echo "$ac_t""no" 1>&6
13942 test "$with_database_dbm" = "yes" && \
13943 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13944 with_database_dbm=no
13952 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13953 test "$with_database_gdbm" = "yes" -o \
13954 "$with_database_dbm" = "yes" && \
13955 { test "$extra_verbose" = "yes" && cat << \EOF
13958 cat >> confdefs.h <<\EOF
13964 if test "$with_database_berkdb" != "no"; then
13965 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13966 echo "configure:13967: checking for Berkeley db.h" >&5
13967 for header in "db/db.h" "db.h"; do
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13972 #include <stdlib.h>
13973 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13974 #ifdef HAVE_INTTYPES_H
13975 #define __BIT_TYPES_DEFINED__
13976 #include <inttypes.h>
13977 typedef uint8_t u_int8_t;
13978 typedef uint16_t u_int16_t;
13979 typedef uint32_t u_int32_t;
13980 #ifdef WE_DONT_NEED_QUADS
13981 typedef uint64_t u_int64_t;
13991 if { (eval echo configure:13992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13993 db_h_file="$header"; break
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
14000 if test -z "$db_h_file"
14001 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14002 else echo "$ac_t""$db_h_file" 1>&6
14005 if test "$with_database_berkdb" != "no"; then
14006 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14007 echo "configure:14008: checking for Berkeley DB version" >&5
14008 cat > conftest.$ac_ext <<EOF
14009 #line 14010 "configure"
14010 #include "confdefs.h"
14011 #include <$db_h_file>
14012 #if DB_VERSION_MAJOR > 1
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 egrep "yes" >/dev/null 2>&1; then
14020 cat > conftest.$ac_ext <<EOF
14021 #line 14022 "configure"
14022 #include "confdefs.h"
14023 #include <$db_h_file>
14024 #if DB_VERSION_MAJOR > 2
14029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14030 egrep "yes" >/dev/null 2>&1; then
14032 echo "$ac_t""3" 1>&6; dbfunc=db_create
14036 echo "$ac_t""2" 1>&6; dbfunc=db_open
14043 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14047 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14048 echo "configure:14049: checking for $dbfunc" >&5
14050 cat > conftest.$ac_ext <<EOF
14051 #line 14052 "configure"
14052 #include "confdefs.h"
14053 /* System header to define __stub macros and hopefully few prototypes,
14054 which can conflict with char $dbfunc(); below. */
14055 #include <assert.h>
14056 /* Override any gcc2 internal prototype to avoid an error. */
14057 /* We use char because int might match the return type of a gcc2
14058 builtin and then its argument prototype would still apply. */
14063 /* The GNU C library defines this for functions which it implements
14064 to always fail with ENOSYS. Some functions are actually named
14065 something starting with __ and the normal name is an alias. */
14066 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14074 if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14076 eval "ac_cv_func_$dbfunc=yes"
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14081 eval "ac_cv_func_$dbfunc=no"
14085 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14086 echo "$ac_t""yes" 1>&6
14087 with_database_berkdb=yes need_libdb=no
14089 echo "$ac_t""no" 1>&6
14092 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14093 echo "configure:14094: checking for $dbfunc in -ldb" >&5
14094 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14096 xe_check_libs=" -ldb "
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* Override any gcc2 internal prototype to avoid an error. */
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14111 eval "ac_cv_lib_$ac_lib_var=yes"
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14116 eval "ac_cv_lib_$ac_lib_var=no"
14121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14122 echo "$ac_t""yes" 1>&6
14123 with_database_berkdb=yes need_libdb=yes
14125 echo "$ac_t""no" 1>&6
14133 if test "$with_database_berkdb" = "yes"; then
14134 { test "$extra_verbose" = "yes" && cat << EOF
14135 Defining DB_H_FILE = "$db_h_file"
14137 cat >> confdefs.h <<EOF
14138 #define DB_H_FILE "$db_h_file"
14142 { test "$extra_verbose" = "yes" && cat << \EOF
14143 Defining HAVE_BERKELEY_DB
14145 cat >> confdefs.h <<\EOF
14146 #define HAVE_BERKELEY_DB 1
14150 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14151 else with_database_berkdb=no
14155 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14156 != "no no no"; then
14157 { test "$extra_verbose" = "yes" && cat << \EOF
14158 Defining HAVE_DATABASE
14160 cat >> confdefs.h <<\EOF
14161 #define HAVE_DATABASE 1
14165 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14166 echo " xemacs will be linked with \"database.o\""
14168 if test "$with_utf_2000" = "yes"; then
14169 { test "$extra_verbose" = "yes" && cat << \EOF
14170 Defining HAVE_CHISE_CLIENT
14172 cat >> confdefs.h <<\EOF
14173 #define HAVE_CHISE_CLIENT 1
14180 if test "$with_socks" = "yes"; then
14182 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14183 echo "configure:14184: checking for SOCKSinit in -lsocks" >&5
14184 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14186 xe_check_libs=" -lsocks "
14187 cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 /* Override any gcc2 internal prototype to avoid an error. */
14191 /* We use char because int might match the return type of a gcc2
14192 builtin and then its argument prototype would still apply. */
14199 if { (eval echo configure:14200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14201 eval "ac_cv_lib_$ac_lib_var=yes"
14203 echo "configure: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14206 eval "ac_cv_lib_$ac_lib_var=no"
14211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14212 echo "$ac_t""yes" 1>&6
14213 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14215 { test "$extra_verbose" = "yes" && cat << EOF
14216 Defining $ac_tr_lib
14218 cat >> confdefs.h <<EOF
14219 #define $ac_tr_lib 1
14223 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14226 echo "$ac_t""no" 1>&6
14230 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14231 Defining HAVE_SOCKS
14233 cat >> confdefs.h <<\EOF
14234 #define HAVE_SOCKS 1
14240 if test "$usage_tracking" = "yes"; then
14241 { test "$extra_verbose" = "yes" && cat << \EOF
14242 Defining USAGE_TRACKING
14244 cat >> confdefs.h <<\EOF
14245 #define USAGE_TRACKING 1
14249 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14252 if test "$with_modules" != "no"; then
14253 echo "checking for module support" 1>&6
14254 echo "configure:14255: checking for module support" >&5
14256 if test "$with_msw" = "yes"; then
14259 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14260 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14261 echo "configure:14262: checking for dlfcn.h" >&5
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14269 { (eval echo configure:14270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14271 if test -z "$ac_err"; then
14273 eval "ac_cv_header_$ac_safe=yes"
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14279 eval "ac_cv_header_$ac_safe=no"
14282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14283 echo "$ac_t""yes" 1>&6
14285 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14286 echo "configure:14287: checking for dlopen in -lc" >&5
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14303 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14304 echo "configure:14305: checking for dlopen in -ldl" >&5
14305 ac_save_LIBS="$LIBS"
14307 cat > conftest.$ac_ext <<EOF
14308 #line 14309 "configure"
14309 #include "confdefs.h"
14315 if { (eval echo configure:14316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14319 echo "configure: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14322 LIBS="$ac_save_LIBS"
14329 echo "$ac_t""no" 1>&6
14332 if test -n "$have_dl"; then
14333 { test "$extra_verbose" = "yes" && cat << \EOF
14334 Defining HAVE_DLOPEN
14336 cat >> confdefs.h <<\EOF
14337 #define HAVE_DLOPEN 1
14343 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14344 echo "configure:14345: checking for shl_load in -ldld" >&5
14345 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14347 xe_check_libs=" -ldld "
14348 cat > conftest.$ac_ext <<EOF
14349 #line 14350 "configure"
14350 #include "confdefs.h"
14351 /* Override any gcc2 internal prototype to avoid an error. */
14352 /* We use char because int might match the return type of a gcc2
14353 builtin and then its argument prototype would still apply. */
14360 if { (eval echo configure:14361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14362 eval "ac_cv_lib_$ac_lib_var=yes"
14364 echo "configure: failed program was:" >&5
14365 cat conftest.$ac_ext >&5
14367 eval "ac_cv_lib_$ac_lib_var=no"
14372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14373 echo "$ac_t""yes" 1>&6
14374 libdl=dld have_dl=yes;
14375 { test "$extra_verbose" = "yes" && cat << \EOF
14376 Defining HAVE_SHL_LOAD
14378 cat >> confdefs.h <<\EOF
14379 #define HAVE_SHL_LOAD 1
14384 echo "$ac_t""no" 1>&6
14386 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14387 echo "configure:14388: checking for dld_init in -ldld" >&5
14388 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14390 xe_check_libs=" -ldld "
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14405 eval "ac_cv_lib_$ac_lib_var=yes"
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 eval "ac_cv_lib_$ac_lib_var=no"
14415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14416 echo "$ac_t""yes" 1>&6
14417 libdl=dld have_dl=yes;
14418 { test "$extra_verbose" = "yes" && cat << \EOF
14419 Defining HAVE_DLD_INIT
14421 cat >> confdefs.h <<\EOF
14422 #define HAVE_DLD_INIT 1
14427 echo "$ac_t""no" 1>&6
14436 if test -n "$have_dl"; then
14443 ld_dynamic_link_flags=
14445 xealias=$internal_configuration
14447 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14448 echo "configure:14449: checking how to build dynamic libraries for ${xehost}" >&5
14449 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14452 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14455 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14456 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14457 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14459 case "$xehost_os" in
14461 # AIX sometimes has problems with the GCC collect2 program. For some
14462 # reason, if we set the COLLECT_NAMES environment variable, the problems
14463 # vanish in a puff of smoke.
14464 if test "${COLLECT_NAMES+set}" != set; then
14466 export COLLECT_NAMES
14471 # Now see if the compiler is really GCC.
14472 if test "$GCC" = "yes"; then
14475 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14476 echo "configure:14477: checking checking whether we are using GNU C" >&5
14477 cat > conftest.$ac_ext <<EOF
14478 #line 14479 "configure"
14479 #include "confdefs.h"
14486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14487 egrep "yes" >/dev/null 2>&1; then
14496 echo "$ac_t""${XEGCC}" 1>&6
14499 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14500 echo "configure:14501: checking how to produce PIC code" >&5
14503 can_build_shared=yes
14504 if test "$XEGCC" = yes; then
14507 case "$xehost_os" in
14508 aix[3-9]* | irix[5-9]* | osf[3-9])
14509 # PIC is the default for these OSes.
14513 # We can build DLLs from non-PIC.
14516 # FIXME: we need at least 68020 code to build shared libraries, but
14517 # adding the `-m68020' flag to GCC prevents building anything better,
14519 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14521 *cygwin* | *mingw* )
14522 # PIC is the default
14529 # PORTME Check for PIC flags for the system compiler.
14530 case "$xehost_os" in
14531 hpux9* | hpux1[0-9]*)
14532 # Is there a better link_static_flag that works with the bundled CC?
14539 # PIC (with -KPIC) is the default.
14543 # We can build DLLs from non-PIC.
14547 # All OSF/1 code is PIC.
14552 # All AIX code is PIC.
14557 dll_cflags='-belf -Kpic'
14591 can_build_shared=no
14596 if test -n "$dll_cflags"; then
14597 echo "$ac_t""${dll_cflags}" 1>&6
14599 # Check to make sure the dll_cflags actually works.
14600 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14601 echo "configure:14602: checking if PIC flag ${dll_cflags} really works" >&5
14602 save_CFLAGS="$CFLAGS"
14603 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14612 if { (eval echo configure:14613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14616 # reports no error. So, we need to grep stderr for (Bundled).
14617 if grep '(Bundled)' config.log >/dev/null; then
14618 echo "$ac_t""no" 1>&6
14619 can_build_shared=no
14622 echo "$ac_t""yes" 1>&6
14625 echo "configure: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14628 echo "$ac_t""no" 1>&6
14629 can_build_shared=no
14633 CFLAGS="$save_CFLAGS"
14635 echo "$ac_t""none" 1>&6
14638 if test "$can_build_shared" = "yes"; then
14642 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14643 echo "configure:14644: checking if C compiler can produce shared libraries" >&5
14644 if test "$XEGCC" = yes; then
14647 else # Not using GCC
14648 case "$xehost_os" in
14650 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14651 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14654 freebsd2* | netbsd* | openbsd*)
14656 xcldf="${wl}-Bshareable"
14665 xcldf="${wl}-b ${wl}+s"
14668 irix[5-9]* | osf[3-9]*)
14669 xcldf="${wl}-shared"
14673 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14679 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14680 xldf="-assert pure-text -Bstatic"
14683 fi # End if if we are using gcc
14685 if test -n "$xcldf"; then
14686 save_LDFLAGS=$LDFLAGS
14688 save_xe_libs=$xe_libs
14689 LDFLAGS="$xcldf $LDFLAGS"
14692 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14693 cat > conftest.$ac_ext <<EOF
14694 #line 14695 "configure"
14695 #include "confdefs.h"
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14711 LDFLAGS=$save_LDFLAGS
14713 xe_libs=$save_xe_libs
14714 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14718 echo "$ac_t""${cc_produces_so}" 1>&6
14721 if test -z "$LTLD"; then
14723 if test "$XEGCC" = yes; then
14724 # Check if gcc -print-prog-name=ld gives a path.
14725 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14726 echo "configure:14727: checking for ld used by GCC" >&5
14727 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14729 # Accept absolute paths.
14731 if test -z "$LTLD"; then
14732 # case "$ac_prog" in
14733 # *gcc-lib*) LTLD="$CC"
14742 # If it fails, then pretend we aren't using GCC.
14746 # If it is relative, then search for the first ld in PATH.
14747 with_gnu_ld=unknown
14751 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14752 echo "configure:14753: checking for GNU ld" >&5
14755 if test -z "$LTLD"; then
14756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14757 for ac_dir in $PATH; do
14758 test -z "$ac_dir" && ac_dir=.
14759 if test -f "$ac_dir/$ac_prog"; then
14760 LTLD="$ac_dir/$ac_prog"
14761 # Check to see if the program is GNU ld. I'd rather use --version,
14762 # but apparently some GNU ld's only accept -v.
14763 # Break only if it was the GNU/non-GNU ld that we prefer.
14764 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14774 if test -n "$LTLD"; then
14775 echo "$ac_t""${LTLD}" 1>&6
14777 echo "$ac_t""no" 1>&6
14780 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14781 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14786 ld_dynamic_link_flags=
14788 # Check to see if it really is or isn't GNU ld.
14789 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14790 echo "configure:14791: checking if the linker is GNU ld" >&5
14791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14792 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14797 echo "$ac_t""${xe_gnu_ld}" 1>&6
14799 case "$xehost_os" in
14800 amigaos* | sunos4*)
14801 # On these operating systems, we should treat GNU ld like the system ld.
14802 gnu_ld_acts_native=yes
14805 gnu_ld_acts_native=no
14809 if test "$cc_produces_so" = "yes"; then
14812 can_build_shared=yes
14815 # OK - only NOW do we futz about with ld.
14816 # See if the linker supports building shared libraries.
14817 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14818 echo "configure:14819: checking whether the linker supports shared libraries" >&5
14820 dll_ldflags=$LDFLAGS
14822 can_build_shared=yes
14823 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14824 # See if GNU ld supports shared libraries.
14825 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14827 dll_ldflags="-shared"
14833 # PORTME fill in a description of your system's linker (not GNU ld)
14834 case "$xehost_os" in
14844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14845 # support. Future versions do this automatically, but an explicit c++rt0.o
14846 # doesn't break anything, and helps significantly (at the cost of a little
14851 dll_post="/usr/lib/c++rt0.o"
14854 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14857 dll_ldflags="-Bshareable"
14860 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14862 dll_ldflags="-shared"
14876 # Tested with NetBSD 1.2 ld
14891 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14892 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14895 *gcc*) dll_ldflags="-shared"
14898 *) dll_ldflags="-G"
14904 if test "$XEGCC" = yes; then
14924 can_build_shared=no
14928 echo "$ac_t""${ld_shlibs}" 1>&6
14929 if test "$ld_shlibs" = "no"; then
14930 can_build_shared=no
14932 fi # End of if cc_produces_so = no
14935 if test "$xe_gnu_ld" = yes; then
14936 if test "$ld_shlibs" = yes; then
14937 ld_dynamic_link_flags="${wl}-export-dynamic"
14941 if test -z "$ld_dynamic_link_flags"; then
14942 case "$xehost_os" in
14944 ld_dynamic_link_flags=
14948 ld_dynamic_link_flags=
14952 ld_dynamic_link_flags=
14956 ld_dynamic_link_flags=
14960 ld_dynamic_link_flags="${wl}-E"
14964 ld_dynamic_link_flags=
14968 ld_dynamic_link_flags=
14972 ld_dynamic_link_flags=
14976 ld_dynamic_link_flags=
14979 solaris2* | solaris7*)
14980 ld_dynamic_link_flags=
14983 sco3.2v5* | unixware* | sysv5* | sysv4*)
14984 ld_dynamic_link_flags="${wl}-Bexport"
14988 ld_dynamic_link_flags=
14992 ld_dynamic_link_flags=
14996 ld_dynamic_link_flags=
15000 fi # End of if -z ld_dynamic_link_flags
15001 fi # End of if test "$can_build_shared" = "yes"
15012 if test "$can_build_shared" = "yes"; then
15013 { test "$extra_verbose" = "yes" && cat << \EOF
15014 Defining HAVE_SHLIB
15016 cat >> confdefs.h <<\EOF
15017 #define HAVE_SHLIB 1
15021 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15022 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15024 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15025 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15026 for ac_func in dlerror _dlerror
15028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15029 echo "configure:15030: checking for $ac_func" >&5
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 /* System header to define __stub macros and hopefully few prototypes,
15035 which can conflict with char $ac_func(); below. */
15036 #include <assert.h>
15037 /* Override any gcc2 internal prototype to avoid an error. */
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15044 /* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 eval "ac_cv_func_$ac_func=yes"
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15062 eval "ac_cv_func_$ac_func=no"
15066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15067 echo "$ac_t""yes" 1>&6
15068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15069 { test "$extra_verbose" = "yes" && cat << EOF
15070 Defining $ac_tr_func
15072 cat >> confdefs.h <<EOF
15073 #define $ac_tr_func 1
15078 echo "$ac_t""no" 1>&6
15084 if test "$with_modules" = "yes"; then
15085 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15087 echo "configure: warning: "Module support cannot be provided."" 1>&2
15093 cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15096 int main(int c,char *v[]){return 0;}
15098 if { (eval echo configure:15099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15108 echo "*** PANIC *** The C compiler can no longer build working executables."
15109 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15110 echo "*** PANIC *** The most likely reason for this problem is that configure"
15111 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15112 echo "*** PANIC *** found at run time."
15113 echo "*** PANIC ***"
15114 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15115 echo "*** PANIC *** On other systems, try telling configure where to find the"
15116 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15117 echo "*** PANIC ***"
15118 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15119 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15120 echo "*** PANIC *** on your system. Don't do that."
15125 if test "$win32_processes" = "yes"; then
15126 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15127 echo " xemacs will be linked with \"process-nt.o\""
15130 { test "$extra_verbose" = "yes" && cat << \EOF
15131 Defining HAVE_UNIX_PROCESSES
15133 cat >> confdefs.h <<\EOF
15134 #define HAVE_UNIX_PROCESSES 1
15138 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15139 echo " xemacs will be linked with \"process-unix.o\""
15146 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15151 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15156 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
15157 c_switch_general="$T"
15161 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
15162 c_switch_window_system="$T"
15166 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15171 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
15172 ld_switch_general="$T"
15176 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15177 ld_switch_window_system="$T"
15181 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15186 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15187 ld_libs_general="$T"
15191 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
15192 ld_libs_window_system="$T"
15196 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15201 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15202 internal_makefile_list="Makefile.in"
15203 SUBDIR_MAKEFILES=''
15204 test -d lock || mkdir lock
15205 for dir in $MAKE_SUBDIR; do
15206 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15207 test -d "$d" || mkdir "$d"; cd "$d"
15209 * ) test -d "$dir" || mkdir "$dir" ;;
15213 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15214 SUBDIR_MAKEFILES="$T"
15218 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15219 internal_makefile_list="$T"
15226 for dir in src/s src/m; do
15227 if test ! -d "$dir" ; then
15228 echo Making symbolic link to "$srcdir/$dir"
15229 ${LN_S} "$srcdir/$dir" "$dir"
15233 if test "$extra_verbose" = "yes"; then
15235 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
15240 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15241 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15242 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15245 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15246 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15247 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15250 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15251 test "$extra_verbose" = "yes" && echo "creating TAGS"
15253 $srcdir/TAGS,include" > "TAGS"
15256 if test "$__SUNPRO_C" = "yes"; then
15257 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15258 ( echo "# For use with Sun WorkShop's Source browser."
15259 echo "# See sbquery(1) and sbinit(4) for more information"
15260 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15288 *\$* ) eval "PREFIX=$PREFIX" ;;
15296 EXEC_PREFIX=$exec_prefix
15298 case "$EXEC_PREFIX" in
15299 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15310 *\$* ) eval "INFODIR=$INFODIR" ;;
15320 case "$INFOPATH" in
15321 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15329 PACKAGE_PATH=$package_path
15331 case "$PACKAGE_PATH" in
15332 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15343 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15351 MODULEDIR=$moduledir
15353 case "$MODULEDIR" in
15354 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15362 SITELISPDIR=$sitelispdir
15364 case "$SITELISPDIR" in
15365 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15373 SITEMODULEDIR=$sitemoduledir
15375 case "$SITEMODULEDIR" in
15376 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15387 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15398 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15406 ARCHLIBDIR=$archlibdir
15408 case "$ARCHLIBDIR" in
15409 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15433 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15441 : ${XEMACS_CC:=$CC}
15444 if test "$with_prefix" = "yes"; then
15445 { test "$extra_verbose" = "yes" && cat << \EOF
15446 Defining PREFIX_USER_DEFINED
15448 cat >> confdefs.h <<\EOF
15449 #define PREFIX_USER_DEFINED 1
15455 if test "$with_site_lisp" = "no"; then
15456 { test "$extra_verbose" = "yes" && cat << \EOF
15457 Defining INHIBIT_SITE_LISP
15459 cat >> confdefs.h <<\EOF
15460 #define INHIBIT_SITE_LISP 1
15465 if test "$with_site_modules" = "no"; then
15466 { test "$extra_verbose" = "yes" && cat << \EOF
15467 Defining INHIBIT_SITE_MODULES
15469 cat >> confdefs.h <<\EOF
15470 #define INHIBIT_SITE_MODULES 1
15478 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15479 ac_configure_args="$T"
15481 { test "$extra_verbose" = "yes" && cat << EOF
15482 Defining EMACS_CONFIGURATION = "$configuration"
15484 cat >> confdefs.h <<EOF
15485 #define EMACS_CONFIGURATION "$configuration"
15489 { test "$extra_verbose" = "yes" && cat << EOF
15490 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15492 cat >> confdefs.h <<EOF
15493 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15500 { test "$extra_verbose" = "yes" && cat << EOF
15501 Defining LD_SWITCH_X_SITE = $null_string
15503 cat >> confdefs.h <<EOF
15504 #define LD_SWITCH_X_SITE $null_string
15508 { test "$extra_verbose" = "yes" && cat << EOF
15509 Defining LD_SWITCH_X_SITE_AUX = $null_string
15511 cat >> confdefs.h <<EOF
15512 #define LD_SWITCH_X_SITE_AUX $null_string
15516 { test "$extra_verbose" = "yes" && cat << EOF
15517 Defining C_SWITCH_X_SITE = $null_string
15519 cat >> confdefs.h <<EOF
15520 #define C_SWITCH_X_SITE $null_string
15524 { test "$extra_verbose" = "yes" && cat << EOF
15525 Defining LD_SWITCH_SITE = $null_string
15527 cat >> confdefs.h <<EOF
15528 #define LD_SWITCH_SITE $null_string
15532 { test "$extra_verbose" = "yes" && cat << EOF
15533 Defining C_SWITCH_SITE = $null_string
15535 cat >> confdefs.h <<EOF
15536 #define C_SWITCH_SITE $null_string
15542 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15543 Defining GNU_MALLOC
15545 cat >> confdefs.h <<\EOF
15546 #define GNU_MALLOC 1
15550 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15551 Defining USE_SYSTEM_MALLOC
15553 cat >> confdefs.h <<\EOF
15554 #define USE_SYSTEM_MALLOC 1
15558 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15559 Defining USE_DEBUG_MALLOC
15561 cat >> confdefs.h <<\EOF
15562 #define USE_DEBUG_MALLOC 1
15566 { test "$extra_verbose" = "yes" && cat << \EOF
15567 Defining USE_SYSTEM_MALLOC
15569 cat >> confdefs.h <<\EOF
15570 #define USE_SYSTEM_MALLOC 1
15575 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15578 cat >> confdefs.h <<\EOF
15583 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15586 cat >> confdefs.h <<\EOF
15591 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15592 Defining EXTERNAL_WIDGET
15594 cat >> confdefs.h <<\EOF
15595 #define EXTERNAL_WIDGET 1
15599 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15600 Defining QUICK_BUILD
15602 cat >> confdefs.h <<\EOF
15603 #define QUICK_BUILD 1
15607 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15610 cat >> confdefs.h <<\EOF
15615 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15618 cat >> confdefs.h <<\EOF
15623 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15624 Defining MAIL_USE_POP
15626 cat >> confdefs.h <<\EOF
15627 #define MAIL_USE_POP 1
15631 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15634 cat >> confdefs.h <<\EOF
15639 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15642 cat >> confdefs.h <<\EOF
15647 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15648 Defining USE_UNION_TYPE
15650 cat >> confdefs.h <<\EOF
15651 #define USE_UNION_TYPE 1
15655 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15658 cat >> confdefs.h <<\EOF
15663 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15664 Defining IPV6_CANONICALIZE
15666 cat >> confdefs.h <<\EOF
15667 #define IPV6_CANONICALIZE 1
15674 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15676 echo "uname -a: `uname -a`"
15679 echo "$0 $quoted_arguments"
15682 if test ! -z ${emacs_beta_version} ; then
15683 if test -z "${emacs_is_beta}" ; then
15684 xemacs_betaname=".${emacs_beta_version}"
15686 xemacs_betaname="-b${emacs_beta_version}"
15695 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15698 Compilation / Installation:"
15699 echo " Source code location: $srcdir"
15700 echo " Installation prefix: $prefix"
15701 if test -n "$site_includes"; then
15702 echo " Additional header files: $site_includes"
15704 if test -n "$site_libraries"; then
15705 echo " Additional libraries: $site_libraries"
15707 if test -n "$site_prefixes"; then
15708 echo " Additional prefixes: $site_prefixes"
15710 if test -n "$runpath"; then
15711 echo " Runtime library search path: $runpath"
15714 if test -n "$opsysfile"
15715 then echo " Operating system description file: \`$opsysfile'"
15716 else echo " Not using any operating system description file"
15718 if test -n "$machfile"
15719 then echo " Machine description file: \`$machfile'"
15720 else echo " Not using any machine description file"
15723 echo " Compiler: $CC $CFLAGS"
15724 echo " Relocating allocator for buffers: $rel_alloc"
15725 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15726 case "$ld_switch_site" in
15727 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15728 - Consider configuring with --pdump." ;;
15733 if test "$with_msw" = "yes"; then
15734 echo " Compiling in support for the Microsoft window system."
15736 if test "$with_x11" = "yes"; then
15737 echo " Compiling in support for the X window system:"
15738 echo " - X Windows headers location: $x_includes"
15739 echo " - X Windows libraries location: $x_libraries"
15740 if test "$with_xauth" != yes; then
15741 echo " - Xau (X authority) not available."
15743 if test "$with_xmu" != yes; then
15744 echo " - Xmu library not available; substituting equivalent routines."
15746 if test "$with_wmcommand" != no; then
15747 echo " - Handling WM_COMMAND properly."
15750 if test "$need_athena" = "yes"; then
15751 echo " Compiling in support for the Athena widget set:"
15752 echo " - Athena headers location: $athena_h_path"
15753 echo " - Athena library to link: $athena_lib"
15755 case "$with_menubars" in
15756 gtk ) echo " Using GTK menubars." ;;
15757 lucid ) echo " Using Lucid menubars." ;;
15758 motif ) echo " Using Motif menubars."
15759 echo " *WARNING* The Motif menubar implementation is currently buggy."
15760 echo " We recommend using the Lucid menubar instead."
15761 echo " Re-run configure with --with-menubars='lucid'." ;;
15762 msw ) echo " Using MS-Windows menubars." ;;
15764 case "$with_scrollbars" in
15765 gtk ) echo " Using GTK scrollbars." ;;
15766 lucid ) echo " Using Lucid scrollbars." ;;
15767 motif ) echo " Using Motif scrollbars." ;;
15768 athena ) echo " Using Athena scrollbars." ;;
15769 msw ) echo " Using MS-Windows scrollbars." ;;
15771 case "$with_dialogs" in
15772 gtk ) echo " Using GTK dialog boxes." ;;
15773 motif ) echo " Using Motif dialog boxes."
15774 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15775 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15776 echo " We recommend using the Athena dialog boxes instead."
15777 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15778 echo " Read the PROBLEMS file for more information."
15780 athena ) echo " Using Athena dialog boxes." ;;
15781 msw ) echo " Using MS-Windows dialog boxes." ;;
15783 case "$with_widgets" in
15784 gtk ) echo " Using GTK native widgets." ;;
15785 motif ) echo " Using Motif native widgets." ;;
15786 athena ) echo " Using Athena native widgets." ;;
15787 msw ) echo " Using MS-Windows native widgets." ;;
15789 if test "$with_dragndrop" = yes; then
15790 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15791 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15796 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15797 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15801 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15802 if test "$with_xpm" = yes; then
15803 echo " Compiling in support for XPM images."
15804 elif test "$with_x11" = yes; then
15805 echo " WARNING: -----------------------------------------------------------"
15806 echo " WARNING: Compiling without XPM image support."
15807 if test "$xpm_problem" != ""; then
15808 echo " Reason: $xpm_problem"
15810 echo " WARNING: You should strongly consider installing XPM."
15811 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15812 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15813 echo " WARNING: -----------------------------------------------------------"
15815 if test "$with_png" = yes; then
15816 echo " Compiling in support for PNG images."
15817 elif test "$window_system" != "none"; then
15818 echo " WARNING: -----------------------------------------------------------"
15819 echo " WARNING: Compiling without PNG image support."
15820 if test "$png_problem" != ""; then
15821 echo " Reason: $png_problem"
15823 echo " WARNING: You should strongly consider installing the PNG libraries."
15824 echo " WARNING: Otherwise certain images and glyphs may not display."
15825 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15826 echo " WARNING: -----------------------------------------------------------"
15828 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15829 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15830 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15834 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15835 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15836 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15837 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15841 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15842 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15843 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15844 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15845 if test "$with_postgresql" = yes; then
15846 echo " Compiling in support for PostgreSQL."
15847 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15848 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15852 Internationalization:"
15853 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15854 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15855 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15856 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15857 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15858 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15859 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15860 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15861 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15862 if test "$with_wnn" = yes; then
15863 echo " Compiling in support for the WNN input method on Mule."
15864 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15866 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15870 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15871 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15872 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15873 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15877 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15878 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15879 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15880 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15881 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15882 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15883 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15884 test "$pdump" = yes && echo " Using the new portable dumper."
15885 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15886 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15887 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15888 != "no no no no no no"; then
15889 echo " WARNING: ---------------------------------------------------------"
15890 echo " WARNING: Compiling in support for runtime error checking."
15891 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15892 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15893 echo " WARNING: ---------------------------------------------------------"
15896 ) | tee -a Installation
15900 # Remove any trailing slashes in these variables.
15901 test -n "$prefix" &&
15902 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15903 test -n "$exec_prefix" &&
15904 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15907 for file in $internal_makefile_list; do
15908 test "$file" = src/Makefile.in && \
15909 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15910 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15912 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15913 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
15917 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15920 # Let make expand exec_prefix.
15921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15923 # Any assignment to VPATH causes Sun make to only execute
15924 # the first set of double-colon rules, so remove it if not needed.
15925 # If there is a colon in the path, we need to keep it.
15926 if test "x$srcdir" = x.; then
15927 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15930 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15932 DEFS=-DHAVE_CONFIG_H
15934 # Without the "./", some shells look in PATH for config.status.
15935 : ${CONFIG_STATUS=./config.status}
15937 echo creating $CONFIG_STATUS
15938 rm -f $CONFIG_STATUS
15939 cat > $CONFIG_STATUS <<EOF
15941 # Generated automatically by configure.
15942 # Run this file to recreate the current configuration.
15943 # This directory was configured as follows,
15944 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15946 # $0 $ac_configure_args
15948 # Compiler output produced by configure, useful for debugging
15949 # configure, is in ./config.log if it exists.
15951 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15954 case "\$ac_option" in
15955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15956 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15957 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15958 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15959 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15961 -help | --help | --hel | --he | --h)
15962 echo "\$ac_cs_usage"; exit 0 ;;
15963 *) echo "\$ac_cs_usage"; exit 1 ;;
15967 ac_given_srcdir=$srcdir
15968 ac_given_INSTALL="$INSTALL"
15970 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15972 cat >> $CONFIG_STATUS <<EOF
15974 # Protect against being on the right side of a sed subst in config.status.
15975 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15976 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15980 s%@CFLAGS@%$CFLAGS%g
15981 s%@CPPFLAGS@%$CPPFLAGS%g
15982 s%@CXXFLAGS@%$CXXFLAGS%g
15983 s%@FFLAGS@%$FFLAGS%g
15985 s%@LDFLAGS@%$LDFLAGS%g
15987 s%@exec_prefix@%$exec_prefix%g
15988 s%@prefix@%$prefix%g
15989 s%@program_transform_name@%$program_transform_name%g
15990 s%@bindir@%$bindir%g
15991 s%@sbindir@%$sbindir%g
15992 s%@libexecdir@%$libexecdir%g
15993 s%@datadir@%$datadir%g
15994 s%@sysconfdir@%$sysconfdir%g
15995 s%@sharedstatedir@%$sharedstatedir%g
15996 s%@localstatedir@%$localstatedir%g
15997 s%@libdir@%$libdir%g
15998 s%@includedir@%$includedir%g
15999 s%@oldincludedir@%$oldincludedir%g
16000 s%@infodir@%$infodir%g
16001 s%@mandir@%$mandir%g
16003 s%@blddir@%$blddir%g
16006 s%@start_flags@%$start_flags%g
16007 s%@ld_switch_shared@%$ld_switch_shared%g
16008 s%@start_files@%$start_files%g
16010 s%@lib_gcc@%$lib_gcc%g
16011 s%@RANLIB@%$RANLIB%g
16012 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16013 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16014 s%@INSTALL_DATA@%$INSTALL_DATA%g
16016 s%@SET_MAKE@%$SET_MAKE%g
16017 s%@GTK_CONFIG@%$GTK_CONFIG%g
16018 s%@X_CFLAGS@%$X_CFLAGS%g
16019 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16020 s%@X_LIBS@%$X_LIBS%g
16021 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16022 s%@install_pp@%$install_pp%g
16023 s%@libs_xauth@%$libs_xauth%g
16024 s%@dnd_objs@%$dnd_objs%g
16025 s%@lwlib_objs@%$lwlib_objs%g
16026 s%@ALLOCA@%$ALLOCA%g
16027 s%@have_esd_config@%$have_esd_config%g
16028 s%@dll_ld@%$dll_ld%g
16029 s%@dll_cflags@%$dll_cflags%g
16030 s%@dll_ldflags@%$dll_ldflags%g
16031 s%@dll_post@%$dll_post%g
16032 s%@dll_ldo@%$dll_ldo%g
16033 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16034 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16035 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16036 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16037 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16038 s%@PROGNAME@%$PROGNAME%g
16039 s%@version@%$version%g
16040 s%@configuration@%$configuration%g
16041 s%@canonical@%$canonical%g
16042 s%@inststaticdir@%$inststaticdir%g
16043 s%@instvardir@%$instvardir%g
16044 s%@srcdir@%$srcdir%g
16045 s%@pkgdir@%$pkgdir%g
16046 s%@statedir@%$statedir%g
16047 s%@extra_includes@%$extra_includes%g
16048 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16049 s%@PREFIX@%$PREFIX%g
16050 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16051 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16052 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16053 s%@INFODIR@%$INFODIR%g
16054 s%@infopath@%$infopath%g
16055 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16056 s%@INFOPATH@%$INFOPATH%g
16057 s%@package_path@%$package_path%g
16058 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16059 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16060 s%@lispdir@%$lispdir%g
16061 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16062 s%@LISPDIR@%$LISPDIR%g
16063 s%@moduledir@%$moduledir%g
16064 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16065 s%@MODULEDIR@%$MODULEDIR%g
16066 s%@sitelispdir@%$sitelispdir%g
16067 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16068 s%@SITELISPDIR@%$SITELISPDIR%g
16069 s%@sitemoduledir@%$sitemoduledir%g
16070 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16071 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16072 s%@etcdir@%$etcdir%g
16073 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16074 s%@ETCDIR@%$ETCDIR%g
16075 s%@docdir@%$docdir%g
16076 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16077 s%@DOCDIR@%$DOCDIR%g
16078 s%@archlibdir@%$archlibdir%g
16079 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16080 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16081 s%@bitmapdir@%$bitmapdir%g
16082 s%@extra_objs@%$extra_objs%g
16083 s%@machfile@%$machfile%g
16084 s%@opsysfile@%$opsysfile%g
16085 s%@c_switch_general@%$c_switch_general%g
16086 s%@c_switch_window_system@%$c_switch_window_system%g
16087 s%@c_switch_all@%$c_switch_all%g
16088 s%@ld_switch_general@%$ld_switch_general%g
16089 s%@ld_switch_window_system@%$ld_switch_window_system%g
16090 s%@ld_switch_all@%$ld_switch_all%g
16091 s%@ld_libs_general@%$ld_libs_general%g
16092 s%@ld_libs_window_system@%$ld_libs_window_system%g
16093 s%@ld_libs_all@%$ld_libs_all%g
16094 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16095 s%@native_sound_lib@%$native_sound_lib%g
16096 s%@sound_cflags@%$sound_cflags%g
16097 s%@dynodump_arch@%$dynodump_arch%g
16098 s%@XEMACS_CC@%$XEMACS_CC%g
16099 s%@internal_makefile_list@%$internal_makefile_list%g
16104 cat >> $CONFIG_STATUS <<\EOF
16106 # Split the substitutions into bite-sized pieces for seds with
16107 # small command number limits, like on Digital OSF/1 and HP-UX.
16108 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16109 ac_file=1 # Number of current file.
16110 ac_beg=1 # First line for current file.
16111 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16114 while $ac_more_lines; do
16115 if test $ac_beg -gt 1; then
16116 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16118 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16120 if test ! -s conftest.s$ac_file; then
16121 ac_more_lines=false
16122 rm -f conftest.s$ac_file
16124 if test -z "$ac_sed_cmds"; then
16125 ac_sed_cmds="sed -f conftest.s$ac_file"
16127 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16129 ac_file=`expr $ac_file + 1`
16131 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16134 if test -z "$ac_sed_cmds"; then
16139 cat >> $CONFIG_STATUS <<EOF
16141 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16143 cat >> $CONFIG_STATUS <<\EOF
16144 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16147 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16148 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16149 *) ac_file_in="${ac_file}.in" ;;
16152 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16154 # Remove last slash and all that follows it. Not all systems have dirname.
16155 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16156 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16157 # The file is in a subdirectory.
16158 test ! -d "$ac_dir" && mkdir "$ac_dir"
16159 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16160 # A "../" for each directory in $ac_dir_suffix.
16161 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16163 ac_dir_suffix= ac_dots=
16166 case "$ac_given_srcdir" in
16168 if test -z "$ac_dots"; then top_srcdir=.
16169 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16170 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16171 *) # Relative path.
16172 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16173 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16176 case "$ac_given_INSTALL" in
16177 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16178 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16181 echo creating "$ac_file"
16183 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16185 *Makefile*) ac_comsub="1i\\
16186 # $configure_input" ;;
16190 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16192 s%@configure_input@%$configure_input%g
16193 s%@srcdir@%$srcdir%g
16194 s%@top_srcdir@%$top_srcdir%g
16195 s%@INSTALL@%$INSTALL%g
16196 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16203 # ac_d sets the value in "#define NAME VALUE" lines.
16204 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16205 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16208 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16209 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16210 ac_uB='\([ ]\)%\1#\2define\3'
16213 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16214 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16215 ac_eB='$%\1#\2define\3'
16219 if test "${CONFIG_HEADERS+set}" != set; then
16221 cat >> $CONFIG_STATUS <<EOF
16222 CONFIG_HEADERS="src/config.h lwlib/config.h"
16224 cat >> $CONFIG_STATUS <<\EOF
16226 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16229 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16230 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16231 *) ac_file_in="${ac_file}.in" ;;
16234 echo creating $ac_file
16236 rm -f conftest.frag conftest.in conftest.out
16237 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16238 cat $ac_file_inputs > conftest.in
16242 # Transform confdefs.h into a sed script conftest.vals that substitutes
16243 # the proper values into config.h.in to produce config.h. And first:
16244 # Protect against being on the right side of a sed subst in config.status.
16245 # Protect against being in an unquoted here document in config.status.
16246 rm -f conftest.vals
16247 cat > conftest.hdr <<\EOF
16250 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16254 sed -n -f conftest.hdr confdefs.h > conftest.vals
16257 # This sed command replaces #undef with comments. This is necessary, for
16258 # example, in the case of _POSIX_SOURCE, which is predefined and required
16259 # on some systems where configure will not decide to define it.
16260 cat >> conftest.vals <<\EOF
16261 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16264 # Break up conftest.vals because some shells have a limit on
16265 # the size of here documents, and old seds have small limits too.
16267 rm -f conftest.tail
16270 ac_lines=`grep -c . conftest.vals`
16271 # grep -c gives empty output for an empty file on some AIX systems.
16272 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16273 # Write a limited-size here document to conftest.frag.
16274 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16275 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16277 sed -f conftest.frag conftest.in > conftest.out
16279 mv conftest.out conftest.in
16280 ' >> $CONFIG_STATUS
16281 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16282 rm -f conftest.vals
16283 mv conftest.tail conftest.vals
16285 rm -f conftest.vals
16287 cat >> $CONFIG_STATUS <<\EOF
16288 rm -f conftest.frag conftest.h
16289 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16290 cat conftest.in >> conftest.h
16292 if cmp -s $ac_file conftest.h 2>/dev/null; then
16293 echo "$ac_file is unchanged"
16296 # Remove last slash and all that follows it. Not all systems have dirname.
16297 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16298 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16299 # The file is in a subdirectory.
16300 test ! -d "$ac_dir" && mkdir "$ac_dir"
16303 mv conftest.h $ac_file
16308 cat >> $CONFIG_STATUS <<EOF
16310 top_srcdir="$srcdir"
16311 MAKE_SUBDIR="$MAKE_SUBDIR"
16314 cat >> $CONFIG_STATUS <<\EOF
16315 for dir in . $MAKE_SUBDIR; do
16320 sed -e '/^# Generated/d' \
16321 -e 's%/\*\*/#.*%%' \
16336 echo creating $dir/Makefile
16337 $CPP -I. -I${top_srcdir}/src junk.c \
16338 | sed -e 's/^\#.*//' \
16339 -e 's/^[ ][ ]*$//'\
16347 chmod 444 Makefile.new
16348 mv -f Makefile.new Makefile
16350 echo creating $dir/GNUmakefile
16351 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16352 | sed -e 's/^\#.*//' \
16353 -e 's/^[ ][ ]*$//'\
16361 chmod 444 Makefile.new
16362 mv -f Makefile.new GNUmakefile
16368 sed < config.status >> lib-src/config.values \
16369 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16370 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16371 -e 's/^\([^ ]*\) $/\1 ""/' \
16377 chmod +x $CONFIG_STATUS
16378 rm -fr confdefs* $ac_clean_files
16379 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1