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 | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path | moduledir )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
712 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
713 Defining DOCDIR_USER_DEFINED
715 cat >> confdefs.h <<\EOF
716 #define DOCDIR_USER_DEFINED 1
720 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
721 Defining ARCHLIBDIR_USER_DEFINED
723 cat >> confdefs.h <<\EOF
724 #define ARCHLIBDIR_USER_DEFINED 1
733 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
736 "with_scrollbars" | \
740 l | lu | luc | luci | lucid ) val=lucid ;;
741 mo | mot | moti | motif ) val=motif ;;
742 a | at | ath | athe | athen | athena ) val=athena ;;
743 n | no | non | none ) val=no ;;
744 y | ye | yes ) val=yes ;;
746 g | gt | gtk ) val=gtk ;;
747 ms | msw ) val=msw ;;
748 * ) (echo "$progname: Usage error:"
749 echo " " "The \`--$optname' option must have one of these values:
750 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 "use_minimal_tagbits" | \
757 "use_indexed_lrecord_implementation" | \
759 "const_is_losing" | \
761 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
764 * ) (echo "$progname: Usage error:"
765 echo " " "Unrecognized option: $arg"
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
771 *-*-*) configuration="$arg" ;;
773 *) (echo "$progname: Usage error:"
774 echo " " "Unrecognized argument: $arg"
775 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
781 test -n "$cpp" && CPP="$cpp"
782 test -n "$cppflags" && CPPFLAGS="$cppflags"
783 test -n "$libs" && LIBS="$libs"
784 test -n "$ldflags" && LDFLAGS="$ldflags"
786 eval set x "$quoted_arguments"; shift
788 test "$extra_verbose" = "yes" && verbose=yes
790 test -n "$with_x" && with_x11="$with_x"
792 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
793 test "$with_system_malloc" = "default" && with_system_malloc=yes
798 if test "$with_cde $with_tooltalk" = "yes no"; then
799 (echo "$progname: Usage error:"
800 echo " " "--with-cde requires --with-tooltalk"
801 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
802 elif test "$with_tooltalk" = "no" ; then with_cde=no
803 elif test "$with_cde" = "yes"; then with_tooltalk=yes
810 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
811 if test -f "$dir/src/lisp.h" -a \
812 -f "$dir/lisp/version.el" ; then
817 if test -z "$srcdir" ; then
818 (echo "$progname: Usage error:"
819 echo " " "Neither the current directory nor its parent seem to
820 contain the XEmacs sources. If you do not want to build XEmacs in its
821 source tree, you should run \`$progname' in the directory in which
822 you wish to build XEmacs, using the \`--srcdir' option to say where the
823 sources may be found."
824 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 if test ! -f "$srcdir/src/lisp.h" -o \
830 ! -f "$srcdir/lisp/version.el" ; then
831 (echo "$progname: Usage error:"
832 echo " " "The directory specified with the \`--srcdir' option,
833 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
834 either run the \`$progname' script at the top of the XEmacs source
835 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
836 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
841 if test -z "$configuration"; then
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
843 if test -z "$configuration"; then
844 (echo "$progname: Usage error:"
845 echo " " "XEmacs has not been ported to this host type.
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
852 echo "configure:853: checking whether ln -s works" >&5
855 if ln -s X conftestdata 2>/dev/null
858 ac_cv_prog_LN_S="ln -s"
862 LN_S="$ac_cv_prog_LN_S"
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
864 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
870 for dir in lisp etc man info tests; do
871 if test ! -d "$dir" ; then
872 echo Making symbolic link to "$srcdir/$dir"
873 ${LN_S} "$srcdir/$dir" "$dir"
878 absolute_pwd="`pwd`";
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
881 else blddir="$absolute_pwd"; if test -d "/net"; then
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
883 blddir=`echo "$blddir" | \
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
891 . ) srcdir="$blddir" ;;
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
894 srcdir=`echo "$srcdir" | \
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
900 && test -f "$srcdir/src/config.h"; then
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
902 echo " as a build directory right now; it has been configured in its own"
903 echo " right. To configure in another directory as well, you MUST"
904 echo " use GNU make. If you do not have GNU make, then you must"
905 echo " now do \`make distclean' in $srcdir,"
906 echo " and then run $progname again.") >&2
907 extrasub='/^VPATH[ ]*=/c\
913 vpath %.in $(srcdir)'
916 . "$srcdir/version.sh" || exit 1;
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
918 : "${extra_verbose=$beta}"
919 version="${emacs_major_version}.${emacs_minor_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_MAJOR_VERSION $emacs_major_version
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
931 cat >> confdefs.h <<EOF
932 #define EMACS_MINOR_VERSION $emacs_minor_version
936 if test -n "$emacs_beta_version" ; then
937 if test "$beta" = "yes"; then
938 version="${version}-b${emacs_beta_version}"
939 { test "$extra_verbose" = "yes" && cat << EOF
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
942 cat >> confdefs.h <<EOF
943 #define EMACS_BETA_VERSION $emacs_beta_version
948 version="${version}.${emacs_beta_version}"
949 { test "$extra_verbose" = "yes" && cat << EOF
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
952 cat >> confdefs.h <<EOF
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
959 { test "$extra_verbose" = "yes" && cat << EOF
960 Defining XEMACS_CODENAME = "$xemacs_codename"
962 cat >> confdefs.h <<EOF
963 #define XEMACS_CODENAME "$xemacs_codename"
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining EMACS_VERSION = "$version"
970 cat >> confdefs.h <<EOF
971 #define EMACS_VERSION "$version"
976 if test "$with_infodock" = "yes"; then
977 if test ! -f ../../ID-INSTALL; then
978 echo "Cannot build InfoDock without InfoDock sources"
983 if test "$with_infodock" = "yes"; then
984 { test "$extra_verbose" = "yes" && cat << EOF
985 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
987 cat >> confdefs.h <<EOF
988 #define INFODOCK_MAJOR_VERSION $infodock_major_version
992 { test "$extra_verbose" = "yes" && cat << EOF
993 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
995 cat >> confdefs.h <<EOF
996 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1003 cat >> confdefs.h <<EOF
1004 #define INFODOCK_BUILD_VERSION $infodock_build_version
1008 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1010 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1015 { test "$extra_verbose" = "yes" && cat << EOF
1016 Defining EMACS_PROGNAME = "$PROGNAME"
1018 cat >> confdefs.h <<EOF
1019 #define EMACS_PROGNAME "$PROGNAME"
1024 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1025 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_EXTENTS
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_EXTENTS 1
1033 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining ERROR_CHECK_TYPECHECK
1036 cat >> confdefs.h <<\EOF
1037 #define ERROR_CHECK_TYPECHECK 1
1041 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1042 Defining ERROR_CHECK_BUFPOS
1044 cat >> confdefs.h <<\EOF
1045 #define ERROR_CHECK_BUFPOS 1
1049 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1050 Defining ERROR_CHECK_GC
1052 cat >> confdefs.h <<\EOF
1053 #define ERROR_CHECK_GC 1
1057 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1058 Defining ERROR_CHECK_MALLOC
1060 cat >> confdefs.h <<\EOF
1061 #define ERROR_CHECK_MALLOC 1
1065 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1066 Defining ERROR_CHECK_BYTE_CODE
1068 cat >> confdefs.h <<\EOF
1069 #define ERROR_CHECK_BYTE_CODE 1
1073 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1074 Defining ERROR_CHECK_GLYPHS
1076 cat >> confdefs.h <<\EOF
1077 #define ERROR_CHECK_GLYPHS 1
1081 if test "${debug:=$beta}" = "yes"; then
1082 use_assertions=yes memory_usage_stats=yes
1083 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1084 echo " xemacs will be linked with \"debug.o\""
1086 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1087 echo " xemacs will be linked with \"tests.o\""
1089 { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining DEBUG_XEMACS
1092 cat >> confdefs.h <<\EOF
1093 #define DEBUG_XEMACS 1
1098 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1099 Defining USE_ASSERTIONS
1101 cat >> confdefs.h <<\EOF
1102 #define USE_ASSERTIONS 1
1106 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1107 Defining MEMORY_USAGE_STATS
1109 cat >> confdefs.h <<\EOF
1110 #define MEMORY_USAGE_STATS 1
1116 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1117 echo "configure:1118: checking "host system type"" >&5
1118 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1119 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1120 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1121 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1122 echo "$ac_t""$configuration" 1>&6
1130 case "$canonical" in
1131 sparc-*-* ) machine=sparc ;;
1132 alpha*-*-* ) machine=alpha ;;
1133 vax-*-* ) machine=vax ;;
1134 mips-dec-* ) machine=pmax ;;
1135 mips-sgi-irix6* ) machine=iris6d ;;
1136 mips-sgi-* ) machine=iris4d ;;
1137 mips*-linux ) machine=mips ;;
1138 romp-ibm-* ) machine=ibmrt ;;
1139 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1140 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1141 powerpc*-* ) machine=powerpc ;;
1142 hppa-*-* ) machine=hp800 ;;
1143 m88k-dg-* ) machine=aviion ;;
1144 m68*-sony-* ) machine=news ;;
1145 mips-sony-* ) machine=news-risc ;;
1146 clipper-* ) machine=clipper ;;
1147 arm* ) machine=arm ;;
1148 ns32k-* ) machine=ns32000 ;;
1151 case "$canonical" in
1152 *-*-linux* ) opsys=linux ;;
1153 *-*-netbsd* ) opsys=netbsd ;;
1154 *-*-openbsd* ) opsys=openbsd ;;
1155 *-*-nextstep* ) opsys=nextstep ;;
1156 *-*-vms ) opsys=vms ;;
1158 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1159 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1160 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1161 *-dec-osf3* ) opsys=decosf3-1 ;;
1162 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1164 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1165 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1166 *-*-ultrix* ) opsys=ultrix4-3 ;;
1168 *-*-aix3.1* ) opsys=aix3-1 ;;
1169 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1170 *-*-aix3* ) opsys=aix3-2 ;;
1171 *-*-aix4.0* ) opsys=aix4 ;;
1172 *-*-aix4.1* ) opsys=aix4-1 ;;
1173 *-*-aix4* ) opsys=aix4-2 ;;
1175 *-gnu* ) opsys=gnu ;;
1176 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1177 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1178 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1179 *-*-aos4.2 ) opsys=bsd4-2 ;;
1180 *-*-aos* ) opsys=bsd4-3 ;;
1181 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1182 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1183 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1184 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1185 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1186 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1187 if test -z "$NON_GNU_CPP" ; then
1188 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1189 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1193 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1194 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1197 case "$canonical" in
1200 case "$canonical" in
1201 i[3-9]86-*-netbsd*) machine=intel386 ;;
1202 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1203 machine=hp9000s300 ;;
1204 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1205 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1210 case "${canonical}" in
1211 i386-*-openbsd*) machine=intel386 ;;
1212 m68k-*-openbsd*) machine=hp9000s300 ;;
1213 mipsel-*-openbsd*) machine=pmax ;;
1217 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1218 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1220 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1221 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1223 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1225 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1227 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1229 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1231 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1233 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1234 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1235 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1238 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1240 *-convex-bsd* | *-convex-convexos* )
1241 machine=convex opsys=bsd4-3
1242 NON_GNU_CPP="cc -E -P"
1245 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1249 RANLIB="ranlib -c" pdump=yes ;;
1251 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1252 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1253 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1254 m88k-dg-dgux* ) opsys=dgux ;;
1256 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1257 m88k-motorola-sysv4* )
1258 machine=delta88k opsys=usg5-4-2
1260 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1262 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1263 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1265 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1267 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1268 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1269 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1272 case "`uname -r`" in
1273 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1274 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1276 NON_GNU_CPP="/lib/cpp"
1278 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1279 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1281 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1283 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1286 case "$canonical" in
1287 m68* ) machine=hp9000s300 ;;
1288 hppa* ) machine=hp800 ;;
1291 case "$canonical" in
1292 *-hp-hpux7* ) opsys=hpux ;;
1293 *-hp-hpux8* ) opsys=hpux8 ;;
1294 *-hp-hpux9* ) opsys=hpux9 ;;
1295 *-hp-hpux10* ) opsys=hpux10 ;;
1296 *-hp-hpux11* ) opsys=hpux11 ;;
1300 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1301 echo " xemacs will be linked with \"strcat.o\""
1304 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1305 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1306 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1308 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1311 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1312 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1314 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1315 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1316 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1317 romp-ibm-aos* ) opsys=bsd4-3 ;;
1318 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1319 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1321 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1322 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1324 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1326 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1328 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1330 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1332 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1334 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1336 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1338 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1340 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1342 mips-mips-usg* ) machine=mips4 ;;
1345 NON_GNU_CC="cc -systype bsd43"
1346 NON_GNU_CPP="cc -systype bsd43 -E"
1347 case "$canonical" in
1348 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1349 mips-mips-riscos5* ) opsys=riscos5 ;;
1352 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1353 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1355 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1357 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1359 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1360 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1362 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1364 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1366 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1368 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1370 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1371 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1373 mips-siemens-sysv* | mips-sni-sysv*)
1374 machine=mips-siemens opsys=usg5-4
1375 NON_GNU_CC=/usr/ccs/bin/cc
1376 NON_GNU_CPP=/usr/ccs/lib/cpp
1381 NON_GNU_CC=/usr/ccs/bin/cc
1382 NON_GNU_CPP=/usr/ccs/lib/cpp
1385 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1386 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1387 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1388 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1389 mips-sgi-irix6* ) opsys=irix6-0 ;;
1390 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1391 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1392 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1393 mips-sgi-irix* ) opsys=irix5-0 ;;
1395 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1396 *-sony-news* ) opsys=newsos5 ;;
1398 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1400 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1401 case "$canonical" in
1402 m68*-sunos1* ) machine=sun1 ;;
1403 m68*-sunos2* ) machine=sun2 ;;
1404 m68* ) machine=sun3 ;;
1405 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1406 i*86-*-* ) machine=intel386 ;;
1407 rs6000* ) machine=rs6000 ;;
1410 case "$canonical" in *-sunos5*)
1411 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1414 case "$canonical" in
1416 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1419 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1423 case "$canonical" in
1426 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1427 { test "$extra_verbose" = "yes" && cat << EOF
1428 Defining OS_RELEASE = $os_release
1430 cat >> confdefs.h <<EOF
1431 #define OS_RELEASE $os_release
1436 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1437 *-sunos4.0* ) opsys=sunos4-0 ;;
1438 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1439 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1440 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1441 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1442 *-mach* ) opsys=mach-bsd4-3 ;;
1446 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1448 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1451 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1453 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1454 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1456 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1458 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1460 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1461 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1463 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1465 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1468 case "$canonical" in
1469 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1470 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1475 ns16k-whitechapel-* ) machine=mg1 ;;
1477 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1481 case "$canonical" in
1482 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1483 *-isc2.2* ) opsys=isc2-2 ;;
1484 *-isc4.0* ) opsys=isc4-0 ;;
1485 *-isc4.* ) opsys=isc4-1
1486 GCC_TEST_OPTIONS=-posix
1487 NON_GCC_TEST_OPTIONS=-Xp
1489 *-isc* ) opsys=isc3-0 ;;
1490 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1491 *-esix* ) opsys=esix ;;
1492 *-mach* ) opsys=mach-bsd4-3 ;;
1493 *-xenix* ) opsys=xenix ;;
1494 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1495 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1496 *-bsdi4* ) opsys=bsdos4 ;;
1497 *-bsdi3* ) opsys=bsdos3 ;;
1498 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1499 *-bsdi2* ) opsys=bsdos2 ;;
1500 *-sco3.2v5* ) opsys=sco5 ;;
1501 *-sysv5* ) opsys=sco7 ;;
1502 *-386bsd* ) opsys=386bsd ;;
1503 *-freebsd* ) opsys=freebsd ;;
1504 *-nextstep* ) opsys=nextstep ;;
1505 *-pc-cygwin* ) opsys=cygwin32 ;;
1506 *-pc-mingw* ) opsys=mingw32 ;
1507 test -z "$with_tty" && with_tty="no";;
1511 m68k-*-linux* ) machine=m68k opsys=linux ;;
1515 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1517 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1519 if test -r "${srcdir}/src/m/${machine}.h"; then
1520 machfile="m/${machine}.h"
1521 { test "$extra_verbose" = "yes" && cat << EOF
1522 Defining config_machfile = "$machfile"
1524 cat >> confdefs.h <<EOF
1525 #define config_machfile "$machfile"
1530 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1531 echo "Using configure-time autodetection only."
1534 if test -r "${srcdir}/src/s/${opsys}.h"; then
1535 opsysfile="s/${opsys}.h"
1536 { test "$extra_verbose" = "yes" && cat << EOF
1537 Defining config_opsysfile = "$opsysfile"
1539 cat >> confdefs.h <<EOF
1540 #define config_opsysfile "$opsysfile"
1545 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1546 echo "Using configure-time autodetection only."
1550 if test -z "$dynamic"; then
1552 hpux* | sunos4* ) dynamic=no ;;
1556 if test "$dynamic" = "yes"; then
1558 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1559 decosf* ) ld_call_shared="-call_shared" ;;
1561 else case "$opsys" in
1563 echo "Static linking is not supported on Solaris 2."
1564 echo "Rerun configure without specifying --dynamic=no."
1566 linux ) ld_call_shared="-Bstatic" ;;
1567 decosf* ) ld_call_shared="-non_shared" ;;
1571 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1573 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1574 { test "$extra_verbose" = "yes" && cat << EOF
1575 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1577 cat >> confdefs.h <<EOF
1578 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1584 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1585 if test "$with_workshop $with_tooltalk" = "yes no"; then
1586 (echo "$progname: Usage error:"
1587 echo " " "--with-workshop requires --with-tooltalk"
1588 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1589 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1590 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1593 if test "$with_workshop" = "yes"; then
1594 { test "$extra_verbose" = "yes" && cat << \EOF
1597 cat >> confdefs.h <<\EOF
1602 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1603 echo " xemacs will be linked with \"sunpro.o\""
1607 if test "$with_clash_detection" != "no"; then
1608 { test "$extra_verbose" = "yes" && cat << \EOF
1609 Defining CLASH_DETECTION
1611 cat >> confdefs.h <<\EOF
1612 #define CLASH_DETECTION 1
1616 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1617 echo " xemacs will be linked with \"filelock.o\""
1621 test -n "$compiler" && CC="$compiler"
1622 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1625 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1626 if test "${CFLAGS-unset}" != unset
1627 then cflags_specified=yes;
1628 else cflags_specified=no;
1631 xe_save_CFLAGS="$CFLAGS"
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634 set dummy gcc; ac_word=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1643 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if test -f $ac_dir/$ac_word; then
1653 if test -n "$CC"; then
1654 echo "$ac_t""$CC" 1>&6
1656 echo "$ac_t""no" 1>&6
1659 if test -z "$CC"; then
1660 # Extract the first word of "cc", so it can be a program name with args.
1661 set dummy cc; ac_word=$2
1662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_word" >&5
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1675 ac_prog_rejected=yes
1683 if test $ac_prog_rejected = yes; then
1684 # We found a bogon in the path, so make sure we never use it.
1685 set dummy $ac_cv_prog_CC
1687 if test $# -gt 0; then
1688 # We chose a different compiler from the bogus one.
1689 # However, it has the same basename, so the bogon will be chosen
1690 # first if we set CC to just the basename; use the full file name.
1692 set dummy "$ac_dir/$ac_word" "$@"
1699 if test -n "$CC"; then
1700 echo "$ac_t""$CC" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 if test -z "$CC"; then
1706 case "`uname -s`" in
1708 # Extract the first word of "cl", so it can be a program name with args.
1709 set dummy cl; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1728 if test -n "$CC"; then
1729 echo "$ac_t""$CC" 1>&6
1731 echo "$ac_t""no" 1>&6
1736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1743 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1744 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1745 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'
1746 ac_cpp='$CPP '"$xe_cppflags"
1747 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1748 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1751 cat > conftest.$ac_ext << EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 ac_cv_prog_cc_works=yes
1760 # If we can't run a trivial program, we are probably using a cross compiler.
1761 if (./conftest; exit) 2>/dev/null; then
1762 ac_cv_prog_cc_cross=no
1764 ac_cv_prog_cc_cross=yes
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 ac_cv_prog_cc_works=no
1773 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1774 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1775 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'
1776 ac_cpp='$CPP '"$xe_cppflags"
1777 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1778 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1782 if test $ac_cv_prog_cc_works = no; then
1783 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1788 cross_compiling=$ac_cv_prog_cc_cross
1790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether we are using GNU C" >&5
1793 cat > conftest.c <<EOF
1798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1806 if test $ac_cv_prog_gcc = yes; then
1812 ac_test_CFLAGS="${CFLAGS+set}"
1813 ac_save_CFLAGS="$CFLAGS"
1815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
1818 echo 'void f(){}' > conftest.c
1819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1828 if test "$ac_test_CFLAGS" = set; then
1829 CFLAGS="$ac_save_CFLAGS"
1830 elif test $ac_cv_prog_cc_g = yes; then
1831 if test "$GCC" = yes; then
1837 if test "$GCC" = yes; then
1844 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1866 if test -n "$CC"; then
1867 echo "$ac_t""$CC" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1888 ac_prog_rejected=yes
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_CC
1900 if test $# -gt 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1905 set dummy "$ac_dir/$ac_word" "$@"
1912 if test -n "$CC"; then
1913 echo "$ac_t""$CC" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 if test -z "$CC"; then
1919 case "`uname -s`" in
1921 # Extract the first word of "cl", so it can be a program name with args.
1922 set dummy cl; ac_word=$2
1923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_word" >&5
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1931 for ac_dir in $ac_dummy; do
1932 test -z "$ac_dir" && ac_dir=.
1933 if test -f $ac_dir/$ac_word; then
1941 if test -n "$CC"; then
1942 echo "$ac_t""$CC" 1>&6
1944 echo "$ac_t""no" 1>&6
1949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1956 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1957 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1958 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'
1959 ac_cpp='$CPP '"$xe_cppflags"
1960 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1961 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1964 cat > conftest.$ac_ext << EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 ac_cv_prog_cc_works=yes
1973 # If we can't run a trivial program, we are probably using a cross compiler.
1974 if (./conftest; exit) 2>/dev/null; then
1975 ac_cv_prog_cc_cross=no
1977 ac_cv_prog_cc_cross=yes
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 ac_cv_prog_cc_works=no
1986 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1987 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1988 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'
1989 ac_cpp='$CPP '"$xe_cppflags"
1990 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1991 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1994 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1995 if test $ac_cv_prog_cc_works = no; then
1996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2000 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether we are using GNU C" >&5
2006 cat > conftest.c <<EOF
2011 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2017 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2019 if test $ac_cv_prog_gcc = yes; then
2025 ac_test_CFLAGS="${CFLAGS+set}"
2026 ac_save_CFLAGS="$CFLAGS"
2028 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether ${CC-cc} accepts -g" >&5
2031 echo 'void f(){}' > conftest.c
2032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2040 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2041 if test "$ac_test_CFLAGS" = set; then
2042 CFLAGS="$ac_save_CFLAGS"
2043 elif test $ac_cv_prog_cc_g = yes; then
2044 if test "$GCC" = yes; then
2050 if test "$GCC" = yes; then
2057 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 for ac_dir in $ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2079 if test -n "$CC"; then
2080 echo "$ac_t""$CC" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2100 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2101 ac_prog_rejected=yes
2109 if test $ac_prog_rejected = yes; then
2110 # We found a bogon in the path, so make sure we never use it.
2111 set dummy $ac_cv_prog_CC
2113 if test $# -gt 0; then
2114 # We chose a different compiler from the bogus one.
2115 # However, it has the same basename, so the bogon will be chosen
2116 # first if we set CC to just the basename; use the full file name.
2118 set dummy "$ac_dir/$ac_word" "$@"
2125 if test -n "$CC"; then
2126 echo "$ac_t""$CC" 1>&6
2128 echo "$ac_t""no" 1>&6
2131 if test -z "$CC"; then
2132 case "`uname -s`" in
2134 # Extract the first word of "cl", so it can be a program name with args.
2135 set dummy cl; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/$ac_word; then
2154 if test -n "$CC"; then
2155 echo "$ac_t""$CC" 1>&6
2157 echo "$ac_t""no" 1>&6
2162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2169 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2170 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2171 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'
2172 ac_cpp='$CPP '"$xe_cppflags"
2173 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2174 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2177 cat > conftest.$ac_ext << EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185 ac_cv_prog_cc_works=yes
2186 # If we can't run a trivial program, we are probably using a cross compiler.
2187 if (./conftest; exit) 2>/dev/null; then
2188 ac_cv_prog_cc_cross=no
2190 ac_cv_prog_cc_cross=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 ac_cv_prog_cc_works=no
2199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2201 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'
2202 ac_cpp='$CPP '"$xe_cppflags"
2203 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2207 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2208 if test $ac_cv_prog_cc_works = no; then
2209 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2211 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2213 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2214 cross_compiling=$ac_cv_prog_cc_cross
2216 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether we are using GNU C" >&5
2219 cat > conftest.c <<EOF
2224 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2232 if test $ac_cv_prog_gcc = yes; then
2238 ac_test_CFLAGS="${CFLAGS+set}"
2239 ac_save_CFLAGS="$CFLAGS"
2241 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2242 echo "configure:2243: checking whether ${CC-cc} accepts -g" >&5
2244 echo 'void f(){}' > conftest.c
2245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2253 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2254 if test "$ac_test_CFLAGS" = set; then
2255 CFLAGS="$ac_save_CFLAGS"
2256 elif test $ac_cv_prog_cc_g = yes; then
2257 if test "$GCC" = yes; then
2263 if test "$GCC" = yes; then
2271 CFLAGS="$xe_save_CFLAGS"
2274 test -n "$CPP" -a -d "$CPP" && CPP=
2276 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2278 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2279 echo "configure:2280: checking how to run the C preprocessor" >&5
2280 # On Suns, sometimes $CPP names a directory.
2281 if test -n "$CPP" && test -d "$CPP"; then
2284 if test -z "$CPP"; then
2286 # This must be in double quotes, not single quotes, because CPP may get
2287 # substituted into the Makefile and "${CC-cc}" will confuse make.
2289 # On the NeXT, cc -E runs the code through the compiler's parser,
2290 # not just through cpp.
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 CPP="${CC-cc} -E -traditional-cpp"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 CPP="${CC-cc} -nologo -E"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2334 if test -z "$ac_err"; then
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2348 ac_cv_prog_CPP="$CPP"
2349 CPP="$ac_cv_prog_CPP"
2351 ac_cv_prog_CPP="$CPP"
2353 echo "$ac_t""$CPP" 1>&6
2357 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2358 echo "configure:2359: checking for AIX" >&5
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2368 egrep "yes" >/dev/null 2>&1; then
2370 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2371 Defining _ALL_SOURCE
2373 cat >> confdefs.h <<\EOF
2374 #define _ALL_SOURCE 1
2380 echo "$ac_t""no" 1>&6
2386 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2387 echo "configure:2388: checking for GNU libc" >&5
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <features.h>
2394 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2395 #error Not a GNU libc system :-(
2396 ******* ======= ******** &&&&&&&&
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2411 echo "$ac_t""$have_glibc" 1>&6
2412 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2413 Defining _GNU_SOURCE
2415 cat >> confdefs.h <<\EOF
2416 #define _GNU_SOURCE 1
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining __EXTENSIONS__
2426 cat >> confdefs.h <<\EOF
2427 #define __EXTENSIONS__ 1
2431 if test "$os_release" -ge 55; then
2432 { test "$extra_verbose" = "yes" && cat << \EOF
2433 Defining _XOPEN_SOURCE = 500
2435 cat >> confdefs.h <<\EOF
2436 #define _XOPEN_SOURCE 500
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _XOPEN_SOURCE_EXTENDED
2443 cat >> confdefs.h <<\EOF
2444 #define _XOPEN_SOURCE_EXTENDED 1
2450 { test "$extra_verbose" = "yes" && cat << \EOF
2451 Defining _POSIX_C_SOURCE = 199506L
2453 cat >> confdefs.h <<\EOF
2454 #define _POSIX_C_SOURCE 199506L
2458 { test "$extra_verbose" = "yes" && cat << \EOF
2459 Defining _XOPEN_SOURCE = 500
2461 cat >> confdefs.h <<\EOF
2462 #define _XOPEN_SOURCE 500
2466 { test "$extra_verbose" = "yes" && cat << \EOF
2467 Defining _XOPEN_SOURCE_EXTENDED
2469 cat >> confdefs.h <<\EOF
2470 #define _XOPEN_SOURCE_EXTENDED 1
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2481 #if defined __SUNPRO_C
2483 #elif defined __DECC
2485 #elif defined __USLC__ && defined __SCO_VERSION__
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 case "$conftest_rc" in
2501 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2502 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2503 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2511 echo "Extracting information from the machine- and system-dependent headers..."
2513 tempcname="conftest.c"
2517 cat > $tempcname < confdefs.h
2518 cat >> $tempcname <<EOF
2520 #define C_SWITCH_SITE
2521 #define C_SWITCH_X_SITE
2522 #define LD_SWITCH_SITE
2523 #define LD_SWITCH_X_SITE
2524 #define LD_SWITCH_X_SITE_AUX
2525 #define OS_RELEASE $os_release
2527 #ifdef config_opsysfile
2528 #include "$srcdir/src/$opsysfile"
2531 #ifdef config_machfile
2532 #include "$srcdir/src/$machfile"
2535 #ifndef LIBS_MACHINE
2536 #define LIBS_MACHINE
2538 configure___ libs_machine=LIBS_MACHINE
2543 configure___ libs_system=LIBS_SYSTEM
2545 #ifndef LIBS_TERMCAP
2546 #define LIBS_TERMCAP
2548 configure___ libs_termcap=LIBS_TERMCAP
2550 #ifndef LIB_STANDARD
2551 #define LIB_STANDARD
2553 configure___ libs_standard=LIB_STANDARD
2556 #ifndef OBJECTS_MACHINE
2557 #define OBJECTS_MACHINE
2559 configure___ objects_machine=OBJECTS_MACHINE
2561 #ifndef OBJECTS_SYSTEM
2562 #define OBJECTS_SYSTEM
2564 configure___ objects_system=OBJECTS_SYSTEM
2567 #ifndef C_SWITCH_MACHINE
2568 #define C_SWITCH_MACHINE
2570 configure___ c_switch_machine=C_SWITCH_MACHINE
2572 #ifndef C_SWITCH_SYSTEM
2573 #define C_SWITCH_SYSTEM
2575 configure___ c_switch_system=C_SWITCH_SYSTEM
2578 #ifndef LD_SWITCH_MACHINE
2579 #define LD_SWITCH_MACHINE
2581 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2583 #ifndef LD_SWITCH_SYSTEM
2584 #define LD_SWITCH_SYSTEM
2586 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2590 #define UNEXEC "unexec.o"
2592 configure___ unexec=UNEXEC
2595 #ifndef LD_SWITCH_SHARED
2596 #define LD_SWITCH_SHARED "-c"
2598 configure___ ld_switch_shared=LD_SWITCH_SHARED
2601 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2602 configure___ ordinary_ld=ORDINARY_LD
2604 #ifdef ORDINARY_LINK
2605 #define LD ORDINARY_LD
2606 #else /* no ORDINARY LINK */
2607 #ifdef COFF_ENCAPSULATE
2608 #define LD "\$(CC) -nostdlib"
2609 #else /* not COFF_ENCAPSULATE */
2612 #else /* ! defined (LINKER) */
2614 #endif /* ! defined (LINKER) */
2615 #endif /* ! defined (COFF_ENCAPSULATE) */
2616 #endif /* not ORDINARY_LINK */
2622 configure___ lib_gcc=LIB_GCC
2624 #ifndef LD_TEXT_START_ADDR
2625 #define LD_TEXT_START_ADDR
2627 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2630 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2632 #ifdef COFF_ENCAPSULATE
2633 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2634 #else /* ! defined (COFF_ENCAPSULATE) */
2635 #define START_FILES "pre-crt0.o /lib/crt0.o"
2636 #endif /* ! defined (COFF_ENCAPSULATE) */
2637 #else /* ! defined (NO_REMAP) */
2638 #define START_FILES "ecrt0.o"
2639 #endif /* ! defined (NO_REMAP) */
2640 #endif /* no ORDINARY_LINK */
2644 configure___ start_files=START_FILES
2646 #ifdef ORDINARY_LINK
2647 configure___ ordinary_link=yes
2649 configure___ ordinary_link=no
2652 #ifdef SYSTEM_MALLOC
2653 configure___ system_malloc=yes
2655 configure___ system_malloc=no
2659 configure___ have_terminfo=yes
2661 configure___ have_terminfo=no
2664 #ifdef MAIL_USE_FLOCK
2665 configure___ mail_use_flock=yes
2667 configure___ mail_use_flock=no
2670 #ifdef MAIL_USE_LOCKF
2671 configure___ mail_use_lockf=yes
2673 configure___ mail_use_lockf=no
2676 #ifdef MAIL_USE_LOCKING
2677 configure___ mail_use_locking=yes
2679 configure___ mail_use_locking=no
2682 #ifdef HAVE_WIN32_PROCESSES
2683 configure___ win32_processes=yes
2685 configure___ win32_processes=no
2690 CPP=`eval "echo $CPP $CPPFLAGS"`
2691 eval `$CPP -Isrc $tempcname \
2692 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2696 if test "$pdump" = "yes"; then
2705 test "$extra_verbose" = "yes" && \
2706 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 ""
2708 case "$opsys" in mingw* | cygwin*)
2709 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2710 cygwin_include=`eval "dirname $cygwin_include"` ;
2711 cygwin_include="-I$cygwin_include/../include" ;
2712 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2713 case "$opsys" in mingw*)
2714 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2719 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2722 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2724 if test "$__USLC__" = yes; then
2725 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2726 echo "configure:2727: checking for whether the -Kalloca compiler flag is needed" >&5
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 void *x = alloca(4);
2736 if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2744 xe_save_c_switch_system="$c_switch_system"
2745 c_switch_system="$c_switch_system -Kalloca"
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 void *x = alloca(4);
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2762 c_switch_system="$xe_save_c_switch_system"
2765 echo "$ac_t""$need_kalloca" 1>&6
2766 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
2769 if test "$cflags_specified" = "no"; then
2770 if test "$GCC" = "yes"; then
2771 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2772 CFLAGS="$CFLAGS -Wsign-compare"
2773 if test "$xemacs_compiler" != "g++"; then
2774 CFLAGS="$CFLAGS -Wshadow"
2776 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2777 elif test "$__SUNPRO_C" = "yes"; then
2779 sol2 ) CFLAGS="-v -xO4" ;;
2780 sunos4* ) CFLAGS="-xO2";;
2782 elif test "$__DECC" = "yes"; then
2784 elif test "$CC" = "xlc"; then
2785 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2790 if test "$GCC" = "yes"; then
2791 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2792 echo "configure:2793: checking for buggy gcc versions" >&5
2793 GCC_VERSION=`$CC --version`
2794 case `uname -s`:`uname -m`:$GCC_VERSION in
2795 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2799 *-fno-schedule-insns*) ;;
2801 echo "$ac_t""yes" 1>&6
2802 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2803 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2804 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2810 Linux:alpha:egcs-2.91.*)
2811 echo "$ac_t""yes" 1>&6
2812 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2813 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2819 case "$GCC_VERSION" in
2822 *-fno-strength-reduce*) ;;
2824 echo "$ac_t""yes" 1>&6
2825 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2826 echo "configure: warning: -fno-strength-reduce." 1>&2
2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2833 *-fno-caller-saves*) ;;
2835 echo "$ac_t""yes" 1>&6
2836 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2837 echo "configure: warning: -fno-caller-saves." 1>&2
2838 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2845 echo "$ac_t""no" 1>&6
2848 if test "$pdump" != "yes"; then
2849 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2850 echo "configure:2851: checking for \"-z nocombreloc\" linker flag" >&5
2851 case "`ld --help 2>&1`" in
2852 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2853 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2854 *) echo "$ac_t""no" 1>&6 ;;
2860 if test "$GCC" = "yes"; then
2861 set x $ld_switch_system; shift; ld_switch_system=""
2862 while test -n "$1"; do
2864 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2865 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2867 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2873 if test "$GCC" = "yes"; then
2874 set x $ld_switch_machine; shift; ld_switch_machine=""
2875 while test -n "$1"; do
2877 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2878 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2880 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2886 if test "$GCC" = "yes"; then
2887 set x $ld_switch_site; shift; ld_switch_site=""
2888 while test -n "$1"; do
2890 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2891 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2893 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2899 if test "$GCC" = "yes"; then
2900 set x $LDFLAGS; shift; LDFLAGS=""
2901 while test -n "$1"; do
2903 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2904 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2906 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2912 if test "$GCC" = "yes"; then
2913 set x $ld_call_shared; shift; ld_call_shared=""
2914 while test -n "$1"; do
2916 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2917 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2919 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2925 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2926 echo " xemacs will be linked with \"$objects_machine\""
2928 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2929 echo " xemacs will be linked with \"$objects_system\""
2931 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2932 echo " xemacs will be linked with \"$unexec\""
2934 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2935 echo " xemacs will be linked with \"dumper.o\""
2938 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2939 echo "configure:2940: checking for dynodump" >&5
2940 if test "$unexec" != "unexsol2.o"; then
2941 echo "$ac_t""no" 1>&6
2943 echo "$ac_t""yes" 1>&6
2944 { test "$extra_verbose" = "yes" && cat << \EOF
2947 cat >> confdefs.h <<\EOF
2952 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2953 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2955 sparc ) dynodump_arch=sparc ;;
2956 *86* ) dynodump_arch=i386 ;;
2957 powerpc ) dynodump_arch=ppc ;;
2959 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
2963 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2965 if test "$unexec" = "unexaix.o"; then
2966 if test "$dynamic" = "no"; then
2967 start_flags="-Wl,-bnso,-bnodelcsect"
2968 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2969 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2970 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2972 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2973 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2976 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2977 echo "configure:2978: checking for terminateAndUnload in -lC" >&5
2978 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2980 xe_check_libs=" -lC "
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2987 char terminateAndUnload();
2990 terminateAndUnload()
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 eval "ac_cv_lib_$ac_lib_var=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_lib_$ac_lib_var=no"
3005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3006 echo "$ac_t""yes" 1>&6
3007 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3009 echo "$ac_t""no" 1>&6
3014 elif test -n "$ld_text_start_addr"; then
3015 start_flags="-T $ld_text_start_addr -e __start"
3021 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3022 test -z "$linker" && linker='$(CC) -nostdlib'
3023 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3025 test "$GCC" != "yes" && lib_gcc=
3031 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3032 if test -n "$site_libraries"; then
3033 for arg in $site_libraries; do
3036 * ) test -d "$arg" || \
3037 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3040 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3044 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3045 if test -n "$site_includes"; then
3046 for arg in $site_includes; do
3049 * ) test -d "$arg" || \
3050 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3053 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3057 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3058 if test -n "$site_prefixes"; then
3059 for dir in $site_prefixes; do
3060 lib_dir="${dir}/lib"
3061 inc_dir="${dir}/include"
3062 if test ! -d "$dir"; then
3063 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3064 elif test ! -d "$lib_dir"; then
3065 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3067 if test -d "$inc_dir"; then
3068 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
3070 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
3076 for dir in "/usr/ccs/lib"; do
3077 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
3080 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3081 if test -n "$site_runtime_libraries"; then
3082 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3090 if test -n "$add_runtime_path"; then :;
3091 elif test "$dynamic" = "no"; then add_runtime_path=no
3092 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3093 else case "$opsys" in
3094 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3095 * ) add_runtime_path=no ;;
3099 if test "$add_runtime_path" = "yes"; then
3100 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "for runtime libraries flag"" >&5
3103 sol2 ) dash_r="-R" ;;
3104 decosf* | linux* | irix*) dash_r="-rpath " ;;
3107 for try_dash_r in "-R" "-R " "-rpath "; do
3108 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3110 if test "$GCC" = "yes"; then
3111 set x $xe_check_libs; shift; xe_check_libs=""
3112 while test -n "$1"; do
3114 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3115 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3117 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132 dash_r="$try_dash_r"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3139 test -n "$dash_r" && break
3142 if test -n "$dash_r";
3143 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3144 else echo "$ac_t""NONE" 1>&6
3148 xe_add_unique_runpath_dir='
3150 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3152 if test "$xe_add_p" = "yes"; then
3153 test -n "$runpath" && runpath="${runpath}:"
3154 runpath="${runpath}${xe_runpath_dir}"
3155 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3161 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3162 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3163 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3165 runpath="" runpath_dirs=""
3166 if test -n "$LD_RUN_PATH"; then
3167 runpath="$LD_RUN_PATH"
3168 elif test "$GCC" = "yes"; then
3169 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3170 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3171 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3172 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3173 case "$arg" in P,* | -L* | -R* )
3174 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3176 xe_runpath_dir="$dir"
3177 test "$xe_runpath_dir" != "/lib" -a \
3178 "$xe_runpath_dir" != "/usr/lib" -a \
3179 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3180 eval "$xe_add_unique_runpath_dir"
3185 ld_switch_run="$ld_switch_run_save"
3188 for arg in $ld_switch_site $ld_switch_x_site; do
3189 case "$arg" in -L*) {
3190 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3191 test "$xe_runpath_dir" != "/lib" -a \
3192 "$xe_runpath_dir" != "/usr/lib" -a \
3193 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3194 eval "$xe_add_unique_runpath_dir"
3197 if test "$opsys $need_motif" = "sol2 yes"; then
3198 xe_runpath_dir="/opt/SUNWdt/lib";
3199 eval "$xe_add_unique_runpath_dir";
3202 if test -n "$runpath"; then
3203 ld_switch_run="${dash_r}${runpath}"
3205 if test "$GCC" = "yes"; then
3206 set x $ld_switch_run; shift; ld_switch_run=""
3207 while test -n "$1"; do
3209 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3210 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3212 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3217 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3224 if test "$with_dlmalloc" != "no"; then
3229 after_morecore_hook_exists=yes
3230 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3231 echo "configure:3232: checking for malloc_set_state" >&5
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* System header to define __stub macros and hopefully few prototypes,
3237 which can conflict with char malloc_set_state(); below. */
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char malloc_set_state();
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_func_malloc_set_state=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_func_malloc_set_state=no"
3268 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3272 echo "$ac_t""no" 1>&6
3276 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3277 echo "configure:3278: checking whether __after_morecore_hook exists" >&5
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 extern void (* __after_morecore_hook)();
3283 __after_morecore_hook = 0
3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288 echo "$ac_t""yes" 1>&6
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 echo "$ac_t""no" 1>&6
3294 after_morecore_hook_exists=no
3297 if test "$system_malloc" = "yes" ; then
3300 - The GNU allocators don't work with this system configuration."
3301 elif test "$with_system_malloc" = "yes" ; then
3304 - User chose not to use GNU allocators."
3305 elif test "$with_debug_malloc" = "yes" ; then
3308 - User chose to use Debugging Malloc."
3311 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3313 - Using Doug Lea's new malloc from the GNU C Library."
3314 { test "$extra_verbose" = "yes" && cat << \EOF
3315 Defining DOUG_LEA_MALLOC
3317 cat >> confdefs.h <<\EOF
3318 #define DOUG_LEA_MALLOC 1
3322 if test "$after_morecore_hook_exists" = "no" ; then
3324 - Using Doug Lea's new malloc from the Linux C Library."
3325 { test "$extra_verbose" = "yes" && cat << \EOF
3326 Defining _NO_MALLOC_WARNING_
3328 cat >> confdefs.h <<\EOF
3329 #define _NO_MALLOC_WARNING_ 1
3339 # Extract the first word of "ranlib", so it can be a program name with args.
3340 set dummy ranlib; ac_word=$2
3341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3342 echo "configure:3343: checking for $ac_word" >&5
3344 if test -n "$RANLIB"; then
3345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3349 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f $ac_dir/$ac_word; then
3352 ac_cv_prog_RANLIB="ranlib"
3357 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3359 RANLIB="$ac_cv_prog_RANLIB"
3360 if test -n "$RANLIB"; then
3361 echo "$ac_t""$RANLIB" 1>&6
3363 echo "$ac_t""no" 1>&6
3367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3368 if test -f $ac_dir/install-sh; then
3370 ac_install_sh="$ac_aux_dir/install-sh -c"
3372 elif test -f $ac_dir/install.sh; then
3374 ac_install_sh="$ac_aux_dir/install.sh -c"
3378 if test -z "$ac_aux_dir"; then
3379 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3381 ac_config_guess=$ac_aux_dir/config.guess
3382 ac_config_sub=$ac_aux_dir/config.sub
3383 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3385 # Find a good install program. We prefer a C program (faster),
3386 # so one script is as good as another. But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # ./install, which can be erroneously created by make from ./install.sh.
3396 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3397 echo "configure:3398: checking for a BSD compatible install" >&5
3398 if test -z "$INSTALL"; then
3400 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3401 for ac_dir in $PATH; do
3402 # Account for people who put trailing slashes in PATH elements.
3404 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3406 # OSF1 and SCO ODT 3.0 have their own names for install.
3407 # Don't use installbsd from OSF since it installs stuff as root
3409 for ac_prog in ginstall scoinst install; do
3410 if test -f $ac_dir/$ac_prog; then
3411 if test $ac_prog = install &&
3412 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3413 # AIX install. It has an incompatible calling convention.
3416 ac_cv_path_install="$ac_dir/$ac_prog -c"
3426 if test "${ac_cv_path_install+set}" = set; then
3427 INSTALL="$ac_cv_path_install"
3429 # As a last resort, use the slow shell script. We don't cache a
3430 # path for INSTALL within a source directory, because that will
3431 # break other packages using the cache if that directory is
3432 # removed, or if the path is relative.
3433 INSTALL="$ac_install_sh"
3436 echo "$ac_t""$INSTALL" 1>&6
3438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3439 # It thinks the first close brace ends the variable substitution.
3440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3446 for ac_prog in 'bison -y' byacc
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_word" >&5
3453 if test -n "$YACC"; then
3454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3458 for ac_dir in $ac_dummy; do
3459 test -z "$ac_dir" && ac_dir=.
3460 if test -f $ac_dir/$ac_word; then
3461 ac_cv_prog_YACC="$ac_prog"
3467 YACC="$ac_cv_prog_YACC"
3468 if test -n "$YACC"; then
3469 echo "$ac_t""$YACC" 1>&6
3471 echo "$ac_t""no" 1>&6
3474 test -n "$YACC" && break
3476 test -n "$YACC" || YACC="yacc"
3479 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
3481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_hdr" >&5
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3491 { (eval echo configure:3492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3493 if test -z "$ac_err"; then
3495 eval "ac_cv_header_$ac_safe=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_header_$ac_safe=no"
3504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3507 { test "$extra_verbose" = "yes" && cat << EOF
3510 cat >> confdefs.h <<EOF
3511 #define $ac_tr_hdr 1
3516 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3521 echo "configure:3522: checking for sys/wait.h that is POSIX.1 compatible" >&5
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <sys/types.h>
3527 #include <sys/wait.h>
3529 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3532 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3537 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 ac_cv_header_sys_wait_h=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 ac_cv_header_sys_wait_h=no
3551 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3552 if test $ac_cv_header_sys_wait_h = yes; then
3553 { test "$extra_verbose" = "yes" && cat << \EOF
3554 Defining HAVE_SYS_WAIT_H
3556 cat >> confdefs.h <<\EOF
3557 #define HAVE_SYS_WAIT_H 1
3563 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3564 echo "configure:3565: checking for ANSI C header files" >&5
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3577 if test -z "$ac_err"; then
3579 ac_cv_header_stdc=yes
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 egrep "memchr" >/dev/null 2>&1; then
3601 ac_cv_header_stdc=no
3607 if test $ac_cv_header_stdc = yes; then
3608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "free" >/dev/null 2>&1; then
3619 ac_cv_header_stdc=no
3625 if test $ac_cv_header_stdc = yes; then
3626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3631 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3632 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 int main () { int i; for (i = 0; i < 256; i++)
3635 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 ac_cv_header_stdc=no
3652 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3653 if test $ac_cv_header_stdc = yes; then
3654 { test "$extra_verbose" = "yes" && cat << \EOF
3655 Defining STDC_HEADERS
3657 cat >> confdefs.h <<\EOF
3658 #define STDC_HEADERS 1
3664 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3665 echo "configure:3666: checking whether time.h and sys/time.h may both be included" >&5
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3671 #include <sys/time.h>
3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679 ac_cv_header_time=yes
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 ac_cv_header_time=no
3688 echo "$ac_t""$ac_cv_header_time" 1>&6
3689 if test $ac_cv_header_time = yes; then
3690 { test "$extra_verbose" = "yes" && cat << \EOF
3691 Defining TIME_WITH_SYS_TIME
3693 cat >> confdefs.h <<\EOF
3694 #define TIME_WITH_SYS_TIME 1
3700 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3701 echo "configure:3702: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3708 /* NetBSD declares sys_siglist in unistd.h. */
3709 #ifdef HAVE_UNISTD_H
3713 char *msg = *(sys_siglist + 1);
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_cv_decl_sys_siglist=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 ac_cv_decl_sys_siglist=no
3727 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3728 if test $ac_cv_decl_sys_siglist = yes; then
3729 { test "$extra_verbose" = "yes" && cat << \EOF
3730 Defining SYS_SIGLIST_DECLARED
3732 cat >> confdefs.h <<\EOF
3733 #define SYS_SIGLIST_DECLARED 1
3741 echo $ac_n "checking for utime""... $ac_c" 1>&6
3742 echo "configure:3743: checking for utime" >&5
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <sys/types.h>
3749 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 echo "$ac_t""yes" 1>&6
3755 { test "$extra_verbose" = "yes" && cat << \EOF
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_UTIME 1
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3767 echo "$ac_t""no" 1>&6
3768 for ac_func in utimes
3770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3771 echo "configure:3772: checking for $ac_func" >&5
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func(); below. */
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3786 /* The GNU C library defines this for functions which it implements
3787 to always fail with ENOSYS. Some functions are actually named
3788 something starting with __ and the normal name is an alias. */
3789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 eval "ac_cv_func_$ac_func=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_func_$ac_func=no"
3808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3811 { test "$extra_verbose" = "yes" && cat << EOF
3812 Defining $ac_tr_func
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_func 1
3820 echo "$ac_t""no" 1>&6
3828 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3829 echo "configure:3830: checking return type of signal handlers" >&5
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <sys/types.h>
3840 extern "C" void (*signal (int, void (*)(int)))(int);
3842 void (*signal ()) ();
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851 ac_cv_type_signal=void
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3856 ac_cv_type_signal=int
3860 echo "$ac_t""$ac_cv_type_signal" 1>&6
3861 { test "$extra_verbose" = "yes" && cat << EOF
3862 Defining RETSIGTYPE = $ac_cv_type_signal
3864 cat >> confdefs.h <<EOF
3865 #define RETSIGTYPE $ac_cv_type_signal
3870 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3871 echo "configure:3872: checking for size_t" >&5
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 #include <sys/types.h>
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3885 ac_cv_type_size_t=yes
3888 ac_cv_type_size_t=no
3892 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3893 if test $ac_cv_type_size_t = no; then
3894 { test "$extra_verbose" = "yes" && cat << \EOF
3895 Defining size_t = unsigned
3897 cat >> confdefs.h <<\EOF
3898 #define size_t unsigned
3904 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3905 echo "configure:3906: checking for pid_t" >&5
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <sys/types.h>
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3919 ac_cv_type_pid_t=yes
3926 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3927 if test $ac_cv_type_pid_t = no; then
3928 { test "$extra_verbose" = "yes" && cat << \EOF
3929 Defining pid_t = int
3931 cat >> confdefs.h <<\EOF
3938 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for uid_t in sys/types.h" >&5
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 egrep "uid_t" >/dev/null 2>&1; then
3949 ac_cv_type_uid_t=yes
3957 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3958 if test $ac_cv_type_uid_t = no; then
3959 { test "$extra_verbose" = "yes" && cat << \EOF
3960 Defining uid_t = int
3962 cat >> confdefs.h <<\EOF
3967 { test "$extra_verbose" = "yes" && cat << \EOF
3968 Defining gid_t = int
3970 cat >> confdefs.h <<\EOF
3977 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3978 echo "configure:3979: checking for mode_t" >&5
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <sys/types.h>
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3992 ac_cv_type_mode_t=yes
3995 ac_cv_type_mode_t=no
3999 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4000 if test $ac_cv_type_mode_t = no; then
4001 { test "$extra_verbose" = "yes" && cat << \EOF
4002 Defining mode_t = int
4004 cat >> confdefs.h <<\EOF
4011 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4012 echo "configure:4013: checking for off_t" >&5
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 #include <sys/types.h>
4023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4026 ac_cv_type_off_t=yes
4033 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4034 if test $ac_cv_type_off_t = no; then
4035 { test "$extra_verbose" = "yes" && cat << \EOF
4036 Defining off_t = long
4038 cat >> confdefs.h <<\EOF
4045 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4046 echo "configure:4047: checking for ssize_t" >&5
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <sys/types.h>
4057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4058 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4060 ac_cv_type_ssize_t=yes
4063 ac_cv_type_ssize_t=no
4067 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4068 if test $ac_cv_type_ssize_t = no; then
4069 { test "$extra_verbose" = "yes" && cat << \EOF
4070 Defining ssize_t = int
4072 cat >> confdefs.h <<\EOF
4080 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4081 echo "configure:4082: checking for socklen_t" >&5
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 #include <sys/types.h>
4086 #include <sys/socket.h>
4093 if { (eval echo configure:4094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 echo "$ac_t""yes" 1>&6
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #include <sys/socket.h>
4106 int accept (int, struct sockaddr *, size_t *);
4112 if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 echo "$ac_t""size_t" 1>&6
4116 { test "$extra_verbose" = "yes" && cat << \EOF
4117 Defining socklen_t = size_t
4119 cat >> confdefs.h <<\EOF
4120 #define socklen_t size_t
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4129 echo "$ac_t""int" 1>&6
4130 { test "$extra_verbose" = "yes" && cat << \EOF
4131 Defining socklen_t = int
4133 cat >> confdefs.h <<\EOF
4134 #define socklen_t int
4143 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4144 echo "configure:4145: checking for struct timeval" >&5
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #ifdef TIME_WITH_SYS_TIME
4149 #include <sys/time.h>
4152 #ifdef HAVE_SYS_TIME_H
4153 #include <sys/time.h>
4159 static struct timeval x; x.tv_sec = x.tv_usec;
4162 if { (eval echo configure:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 echo "$ac_t""yes" 1>&6
4166 { test "$extra_verbose" = "yes" && cat << \EOF
4167 Defining HAVE_TIMEVAL
4169 cat >> confdefs.h <<\EOF
4170 #define HAVE_TIMEVAL 1
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 echo "$ac_t""no" 1>&6
4183 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4184 echo "configure:4185: checking whether struct tm is in sys/time.h or time.h" >&5
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4192 struct tm *tp; tp->tm_sec;
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 ac_cv_struct_tm=time.h
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 ac_cv_struct_tm=sys/time.h
4206 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4207 if test $ac_cv_struct_tm = sys/time.h; then
4208 { test "$extra_verbose" = "yes" && cat << \EOF
4209 Defining TM_IN_SYS_TIME
4211 cat >> confdefs.h <<\EOF
4212 #define TM_IN_SYS_TIME 1
4218 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4219 echo "configure:4220: checking for tm_zone in struct tm" >&5
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include <sys/types.h>
4225 #include <$ac_cv_struct_tm>
4227 struct tm tm; tm.tm_zone;
4230 if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 ac_cv_struct_tm_zone=yes
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 ac_cv_struct_tm_zone=no
4241 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4242 if test "$ac_cv_struct_tm_zone" = yes; then
4243 { test "$extra_verbose" = "yes" && cat << \EOF
4244 Defining HAVE_TM_ZONE
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_TM_ZONE 1
4252 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4253 echo "configure:4254: checking for tzname" >&5
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4259 #ifndef tzname /* For SGI. */
4260 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 ac_cv_var_tzname=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4277 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4278 if test $ac_cv_var_tzname = yes; then
4279 { test "$extra_verbose" = "yes" && cat << \EOF
4280 Defining HAVE_TZNAME
4282 cat >> confdefs.h <<\EOF
4283 #define HAVE_TZNAME 1
4291 echo $ac_n "checking for working const""... $ac_c" 1>&6
4292 echo "configure:4293: checking for working const" >&5
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4300 /* Ultrix mips cc rejects this. */
4301 typedef int charset[2]; const charset x;
4302 /* SunOS 4.1.1 cc rejects this. */
4303 char const *const *ccp;
4305 /* NEC SVR4.0.2 mips cc rejects this. */
4306 struct point {int x, y;};
4307 static struct point const zero = {0,0};
4308 /* AIX XL C 1.02.0.0 rejects this.
4309 It does not let you subtract one const X* pointer from another in an arm
4310 of an if-expression whose if-part is not a constant expression */
4311 const char *g = "string";
4312 ccp = &g + (g ? g-g : 0);
4313 /* HPUX 7.0 cc rejects these. */
4316 ccp = (char const *const *) p;
4317 { /* SCO 3.2v4 cc rejects this. */
4319 char const *s = 0 ? (char *) 0 : (char const *) 0;
4323 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4325 const int *foo = &x[0];
4328 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4329 typedef const int *iptr;
4333 { /* AIX XL C 1.02.0.0 rejects this saying
4334 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4335 struct s { int j; const int *ap[3]; };
4336 struct s *b; b->j = 5;
4338 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4344 if { (eval echo configure:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4355 echo "$ac_t""$ac_cv_c_const" 1>&6
4356 if test $ac_cv_c_const = no; then
4357 { test "$extra_verbose" = "yes" && cat << \EOF
4360 cat >> confdefs.h <<\EOF
4368 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4369 echo "configure:4370: checking whether ${MAKE-make} sets \${MAKE}" >&5
4370 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4372 cat > conftestmake <<\EOF
4374 @echo 'ac_maketemp="${MAKE}"'
4376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4377 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4378 if test -n "$ac_maketemp"; then
4379 eval ac_cv_prog_make_${ac_make}_set=yes
4381 eval ac_cv_prog_make_${ac_make}_set=no
4384 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4388 echo "$ac_t""no" 1>&6
4389 SET_MAKE="MAKE=${MAKE-make}"
4393 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4394 echo "configure:4395: checking whether byte ordering is bigendian" >&5
4396 ac_cv_c_bigendian=unknown
4397 # See if sys/param.h defines the BYTE_ORDER macro.
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 #include <sys/types.h>
4402 #include <sys/param.h>
4405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 # It does; now see whether it defined to BIG_ENDIAN or not.
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4425 if { (eval echo configure:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4427 ac_cv_c_bigendian=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 ac_cv_c_bigendian=no
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4440 if test $ac_cv_c_bigendian = unknown; then
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4445 /* Are we little or big endian? From Harbison&Steele. */
4449 char c[sizeof (long)];
4452 exit (u.c[sizeof (long) - 1] == 1);
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4457 ac_cv_c_bigendian=no
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 ac_cv_c_bigendian=yes
4468 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4469 if test $ac_cv_c_bigendian = yes; then
4470 { test "$extra_verbose" = "yes" && cat << \EOF
4471 Defining WORDS_BIGENDIAN
4473 cat >> confdefs.h <<\EOF
4474 #define WORDS_BIGENDIAN 1
4481 echo $ac_n "checking size of short""... $ac_c" 1>&6
4482 echo "configure:4483: checking size of short" >&5
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4488 #include <sys/types.h>
4491 FILE *f=fopen("conftestval", "w");
4493 fprintf(f, "%d\n", sizeof(short));
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4499 ac_cv_sizeof_short=`cat conftestval`
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 ac_cv_sizeof_short=0
4508 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4509 { test "$extra_verbose" = "yes" && cat << EOF
4510 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4512 cat >> confdefs.h <<EOF
4513 #define SIZEOF_SHORT $ac_cv_sizeof_short
4518 if test "$ac_cv_sizeof_short" = 0; then
4520 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4521 echo "*** PANIC *** Please examine config.log for compilation errors."
4524 echo $ac_n "checking size of int""... $ac_c" 1>&6
4525 echo "configure:4526: checking size of int" >&5
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4531 #include <sys/types.h>
4534 FILE *f=fopen("conftestval", "w");
4536 fprintf(f, "%d\n", sizeof(int));
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4542 ac_cv_sizeof_int=`cat conftestval`
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4551 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4552 { test "$extra_verbose" = "yes" && cat << EOF
4553 Defining SIZEOF_INT = $ac_cv_sizeof_int
4555 cat >> confdefs.h <<EOF
4556 #define SIZEOF_INT $ac_cv_sizeof_int
4561 echo $ac_n "checking size of long""... $ac_c" 1>&6
4562 echo "configure:4563: checking size of long" >&5
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4568 #include <sys/types.h>
4571 FILE *f=fopen("conftestval", "w");
4573 fprintf(f, "%d\n", sizeof(long));
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4579 ac_cv_sizeof_long=`cat conftestval`
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4588 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4589 { test "$extra_verbose" = "yes" && cat << EOF
4590 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4592 cat >> confdefs.h <<EOF
4593 #define SIZEOF_LONG $ac_cv_sizeof_long
4598 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4599 echo "configure:4600: checking size of long long" >&5
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4605 #include <sys/types.h>
4608 FILE *f=fopen("conftestval", "w");
4610 fprintf(f, "%d\n", sizeof(long long));
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4616 ac_cv_sizeof_long_long=`cat conftestval`
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 ac_cv_sizeof_long_long=0
4625 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4626 { test "$extra_verbose" = "yes" && cat << EOF
4627 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4629 cat >> confdefs.h <<EOF
4630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4635 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4636 echo "configure:4637: checking size of void *" >&5
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4642 #include <sys/types.h>
4645 FILE *f=fopen("conftestval", "w");
4647 fprintf(f, "%d\n", sizeof(void *));
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4653 ac_cv_sizeof_void_p=`cat conftestval`
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 ac_cv_sizeof_void_p=0
4662 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4663 { test "$extra_verbose" = "yes" && cat << EOF
4664 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4666 cat >> confdefs.h <<EOF
4667 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4673 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4674 echo "configure:4675: checking for long file names" >&5
4676 ac_cv_sys_long_file_names=yes
4677 # Test for long file names in all the places we know might matter:
4678 # . the current directory, where building will happen
4679 # $prefix/lib where we will be installing things
4680 # $exec_prefix/lib likewise
4681 # eval it to expand exec_prefix.
4682 # $TMPDIR if set, where it might want to write temporary files
4683 # if $TMPDIR is not set:
4684 # /tmp where it might want to write temporary files
4687 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4688 ac_tmpdirs="$TMPDIR"
4690 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4692 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4693 test -d $ac_dir || continue
4694 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4695 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4696 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4697 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4698 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4699 ac_cv_sys_long_file_names=no
4700 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4703 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4706 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4707 if test $ac_cv_sys_long_file_names = yes; then
4708 { test "$extra_verbose" = "yes" && cat << \EOF
4709 Defining HAVE_LONG_FILE_NAMES
4711 cat >> confdefs.h <<\EOF
4712 #define HAVE_LONG_FILE_NAMES 1
4719 echo $ac_n "checking for sin""... $ac_c" 1>&6
4720 echo "configure:4721: checking for sin" >&5
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* System header to define __stub macros and hopefully few prototypes,
4726 which can conflict with char sin(); below. */
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4735 /* The GNU C library defines this for functions which it implements
4736 to always fail with ENOSYS. Some functions are actually named
4737 something starting with __ and the normal name is an alias. */
4738 #if defined (__stub_sin) || defined (__stub___sin)
4746 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 eval "ac_cv_func_sin=yes"
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 eval "ac_cv_func_sin=no"
4757 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4763 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4764 echo "configure:4765: checking for sin in -lm" >&5
4765 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4767 xe_check_libs=" -lm "
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782 eval "ac_cv_lib_$ac_lib_var=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_lib_$ac_lib_var=no"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 { test "$extra_verbose" = "yes" && cat << EOF
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_lib 1
4804 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4807 echo "$ac_t""no" 1>&6
4814 { test "$extra_verbose" = "yes" && cat << \EOF
4815 Defining LISP_FLOAT_TYPE
4817 cat >> confdefs.h <<\EOF
4818 #define LISP_FLOAT_TYPE 1
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 { test "$extra_verbose" = "yes" && cat << \EOF
4834 Defining HAVE_INVERSE_HYPERBOLIC
4836 cat >> confdefs.h <<\EOF
4837 #define HAVE_INVERSE_HYPERBOLIC 1
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4847 echo "checking type of mail spool file locking" 1>&6
4848 echo "configure:4849: checking type of mail spool file locking" >&5
4849 for ac_func in lockf flock
4851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4852 echo "configure:4853: checking for $ac_func" >&5
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* System header to define __stub macros and hopefully few prototypes,
4858 which can conflict with char $ac_func(); below. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_func_$ac_func=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_func_$ac_func=no"
4889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4892 { test "$extra_verbose" = "yes" && cat << EOF
4893 Defining $ac_tr_func
4895 cat >> confdefs.h <<EOF
4896 #define $ac_tr_func 1
4901 echo "$ac_t""no" 1>&6
4905 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4906 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4907 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4908 if test -z "$mail_locking"; then
4909 case "$opsys" in cygwin* | mingw*)
4914 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4915 Defining MAIL_LOCK_LOCKF
4917 cat >> confdefs.h <<\EOF
4918 #define MAIL_LOCK_LOCKF 1
4922 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4923 Defining MAIL_LOCK_FLOCK
4925 cat >> confdefs.h <<\EOF
4926 #define MAIL_LOCK_FLOCK 1
4930 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4931 Defining MAIL_LOCK_LOCKING
4933 cat >> confdefs.h <<\EOF
4934 #define MAIL_LOCK_LOCKING 1
4938 elif test "$mail_locking" = "pop"; then
4941 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4942 Defining MAIL_LOCK_DOT
4944 cat >> confdefs.h <<\EOF
4945 #define MAIL_LOCK_DOT 1
4950 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4951 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4952 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4953 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4954 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4955 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4957 case "$opsys" in decosf*)
4959 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4960 echo "configure:4961: checking for cma_open in -lpthreads" >&5
4961 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4963 xe_check_libs=" -lpthreads "
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_lib_$ac_lib_var=no"
4988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4992 { test "$extra_verbose" = "yes" && cat << EOF
4995 cat >> confdefs.h <<EOF
4996 #define $ac_tr_lib 1
5000 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5003 echo "$ac_t""no" 1>&6
5007 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5008 c_switch_site="$c_switch_site -threads" ;;
5012 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5013 echo "configure:5014: checking whether the -xildoff compiler flag is required" >&5
5014 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5015 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5016 then echo "$ac_t""no" 1>&6;
5017 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
5019 else echo "$ac_t""no" 1>&6
5022 if test "$opsys" = "sol2"; then
5023 if test "$os_release" -ge 56; then
5024 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5025 echo "configure:5026: checking for \"-z ignore\" linker flag" >&5
5026 case "`ld -h 2>&1`" in
5027 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5028 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5029 *) echo "$ac_t""no" 1>&6 ;;
5035 echo "checking "for specified window system"" 1>&6
5036 echo "configure:5037: checking "for specified window system"" >&5
5042 if test "$with_gnome" != "no"; then
5043 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5044 echo "configure:5045: checking for GNOME configuration script" >&5
5045 for possible in gnome-config
5047 possible_version=`${possible} --version 2> /dev/null`
5048 if test "x${possible_version}" != "x"; then
5049 GNOME_CONFIG="${possible}"
5055 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5058 if test "${GNOME_CONFIG}" != "no"; then
5059 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5060 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5061 { test "$extra_verbose" = "yes" && cat << \EOF
5064 cat >> confdefs.h <<\EOF
5065 #define HAVE_GNOME 1
5069 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5070 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5073 if test "$with_gtk" != "no";then
5074 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5075 echo "configure:5076: checking for GTK configuration script" >&5
5076 for possible in gtk12-config gtk14-config gtk-config
5078 possible_version=`${possible} --version 2> /dev/null`
5079 if test "x${possible_version}" != "x"; then
5080 GTK_CONFIG="${possible}"
5082 case "${possible_version}" in
5083 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5084 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5089 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5092 echo "$ac_t""${GTK_CONFIG}" 1>&6
5095 if test "${GTK_CONFIG}" != "no"; then
5096 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5097 echo "configure:5098: checking gtk version" >&5
5098 GTK_VERSION=`${GTK_CONFIG} --version`
5099 echo "$ac_t""${GTK_VERSION}" 1>&6
5101 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5102 echo "configure:5103: checking gtk libs" >&5
5103 GTK_LIBS=`${GTK_CONFIG} --libs`
5104 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5105 echo "$ac_t""${GTK_LIBS}" 1>&6
5107 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5108 echo "configure:5109: checking gtk cflags" >&5
5109 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5110 if test "$GCC" = "yes"; then
5111 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5113 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5114 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5117 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5118 echo "configure:5119: checking for main in -lgdk_imlib" >&5
5119 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5121 xe_check_libs=" -lgdk_imlib "
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5132 eval "ac_cv_lib_$ac_lib_var=yes"
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5137 eval "ac_cv_lib_$ac_lib_var=no"
5142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5143 echo "$ac_t""yes" 1>&6
5144 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5146 echo "$ac_t""no" 1>&6
5151 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5152 echo "configure:5153: checking for Imlib_init in -lImlib" >&5
5153 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5155 xe_check_libs=" -lImlib "
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 eval "ac_cv_lib_$ac_lib_var=yes"
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 eval "ac_cv_lib_$ac_lib_var=no"
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5181 echo "$ac_t""yes" 1>&6
5182 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5184 echo "$ac_t""no" 1>&6
5188 for ac_func in gdk_imlib_init
5190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5191 echo "configure:5192: checking for $ac_func" >&5
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func(); below. */
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5206 /* The GNU C library defines this for functions which it implements
5207 to always fail with ENOSYS. Some functions are actually named
5208 something starting with __ and the normal name is an alias. */
5209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_func_$ac_func=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_func_$ac_func=no"
5228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5231 { test "$extra_verbose" = "yes" && cat << EOF
5232 Defining $ac_tr_func
5234 cat >> confdefs.h <<EOF
5235 #define $ac_tr_func 1
5240 echo "$ac_t""no" 1>&6
5245 { test "$extra_verbose" = "yes" && cat << \EOF
5248 cat >> confdefs.h <<\EOF
5253 { test "$extra_verbose" = "yes" && cat << \EOF
5256 cat >> confdefs.h <<\EOF
5267 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5268 test "${with_toolbars}" != no && with_toolbars=gtk
5269 test "${with_menubars}" != "no" && with_menubars=gtk
5270 test "${with_dialogs}" != "no" && with_dialogs=gtk
5271 test "${with_widgets}" != "no" && with_widgets=gtk
5273 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5274 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5276 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5277 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5279 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5280 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5282 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5283 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5286 OLD_CFLAGS="${CFLAGS}"
5287 OLD_CPPFLAGS="${CPPFLAGS}"
5288 OLD_LDFLAGS="${LDFLAGS}"
5289 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5290 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5291 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5292 for ac_hdr in glade/glade.h glade.h
5294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5296 echo "configure:5297: checking for $ac_hdr" >&5
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5304 { (eval echo configure:5305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5306 if test -z "$ac_err"; then
5308 eval "ac_cv_header_$ac_safe=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 eval "ac_cv_header_$ac_safe=no"
5317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5320 { test "$extra_verbose" = "yes" && cat << EOF
5323 cat >> confdefs.h <<EOF
5324 #define $ac_tr_hdr 1
5329 echo "$ac_t""no" 1>&6
5334 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5335 echo "configure:5336: checking for main in -lxml" >&5
5336 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5338 xe_check_libs=" -lxml "
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 eval "ac_cv_lib_$ac_lib_var=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 eval "ac_cv_lib_$ac_lib_var=no"
5359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5360 echo "$ac_t""yes" 1>&6
5361 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5363 echo "$ac_t""no" 1>&6
5368 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5369 echo "configure:5370: checking for main in -lglade" >&5
5370 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5372 xe_check_libs=" -lglade "
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 eval "ac_cv_lib_$ac_lib_var=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_lib_$ac_lib_var=no"
5393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5394 echo "$ac_t""yes" 1>&6
5395 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5397 echo "$ac_t""no" 1>&6
5402 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5403 echo "configure:5404: checking for main in -lglade-gnome" >&5
5404 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5406 xe_check_libs=" -lglade-gnome "
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 eval "ac_cv_lib_$ac_lib_var=yes"
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5422 eval "ac_cv_lib_$ac_lib_var=no"
5427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5428 echo "$ac_t""yes" 1>&6
5429 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5431 echo "$ac_t""no" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <glade/glade-xml.h>
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5443 echo "$ac_t""yes" 1>&6
5444 { test "$extra_verbose" = "yes" && cat << \EOF
5445 Defining LIBGLADE_XML_TXTDOMAIN = 1
5447 cat >> confdefs.h <<\EOF
5448 #define LIBGLADE_XML_TXTDOMAIN 1
5454 echo "$ac_t""no" 1>&6
5458 CFLAGS="${OLD_CFLAGS}"
5459 CPPFLAGS="${OLD_CPPFLAGS}"
5460 LDFLAGS="${OLD_LDFLAGS}"
5464 if test "$with_x11" != "no"; then
5465 test "$x_includes $x_libraries" != "NONE NONE" && \
5466 window_system=x11 with_x11=yes
5469 if test "$x_includes $x_libraries" = "NONE NONE" \
5470 -a -n "$OPENWINHOME" \
5471 -a "$OPENWINHOME" != "/usr/openwin" \
5472 -a -d "$OPENWINHOME"; then
5473 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5474 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5475 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5478 if test "$x_includes" = "NONE"; then
5479 for dir in "/usr/X11" "/usr/X11R6"; do
5480 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5484 if test "$x_libraries" = "NONE"; then
5485 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5486 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5490 # If we find X, set shell vars x_includes and x_libraries to the
5491 # paths, otherwise set no_x=yes.
5492 # Uses ac_ vars as temps to allow command line to override cache and checks.
5493 # --without-x overrides everything else, but does not touch the cache.
5494 echo $ac_n "checking for X""... $ac_c" 1>&6
5495 echo "configure:5496: checking for X" >&5
5497 # Check whether --with-x or --without-x was given.
5498 if test "${with_x+set}" = set; then
5503 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5504 if test "x$with_x" = xno; then
5505 # The user explicitly disabled X.
5508 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5509 # Both variables are already set.
5513 # One or both of the vars are not set, and there is no cached value.
5514 ac_x_includes=NO ac_x_libraries=NO
5516 if mkdir conftestdir; then
5518 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5519 cat > Imakefile <<'EOF'
5521 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5523 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5525 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5526 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5527 for ac_extension in a so sl; do
5528 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5529 test -f $ac_im_libdir/libX11.$ac_extension; then
5530 ac_im_usrlibdir=$ac_im_libdir; break
5533 # Screen out bogus values from the imake configuration. They are
5534 # bogus both because they are the default anyway, and because
5535 # using them would break gcc on systems where it needs fixed includes.
5536 case "$ac_im_incroot" in
5538 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5540 case "$ac_im_usrlibdir" in
5542 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5549 if test "$ac_x_includes" = NO; then
5550 # Guess where to find include files, by looking for this one X11 .h file.
5551 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5553 # First, try using that file with no special directory specified.
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 #include <$x_direct_test_include>
5559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5560 { (eval echo configure:5561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5562 if test -z "$ac_err"; then
5564 # We can compile using X headers with no special include directory.
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 # Look for the header file in a standard set of common directories.
5572 # Check X11 before X11Rn because it is often a symlink to the current release.
5575 /usr/X11R6/include \
5576 /usr/X11R5/include \
5577 /usr/X11R4/include \
5580 /usr/include/X11R6 \
5581 /usr/include/X11R5 \
5582 /usr/include/X11R4 \
5584 /usr/local/X11/include \
5585 /usr/local/X11R6/include \
5586 /usr/local/X11R5/include \
5587 /usr/local/X11R4/include \
5589 /usr/local/include/X11 \
5590 /usr/local/include/X11R6 \
5591 /usr/local/include/X11R5 \
5592 /usr/local/include/X11R4 \
5596 /usr/XFree86/include/X11 \
5599 /usr/local/include \
5600 /usr/unsupported/include \
5601 /usr/athena/include \
5602 /usr/local/x11r5/include \
5603 /usr/lpp/Xamples/include \
5605 /usr/openwin/include \
5606 /usr/openwin/share/include \
5609 if test -r "$ac_dir/$x_direct_test_include"; then
5610 ac_x_includes=$ac_dir
5616 fi # $ac_x_includes = NO
5618 if test "$ac_x_libraries" = NO; then
5619 # Check for the libraries.
5621 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5622 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5624 # See if we find them without any special options.
5625 # Don't add to $LIBS permanently.
5626 ac_save_LIBS="$LIBS"
5627 LIBS="-l$x_direct_test_library $LIBS"
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 ${x_direct_test_function}()
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 LIBS="$ac_save_LIBS"
5639 # We can link X programs with no special library path.
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 LIBS="$ac_save_LIBS"
5646 # First see if replacing the include by lib works.
5647 # Check X11 before X11Rn because it is often a symlink to the current release.
5648 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5659 /usr/local/X11/lib \
5660 /usr/local/X11R6/lib \
5661 /usr/local/X11R5/lib \
5662 /usr/local/X11R4/lib \
5664 /usr/local/lib/X11 \
5665 /usr/local/lib/X11R6 \
5666 /usr/local/lib/X11R5 \
5667 /usr/local/lib/X11R4 \
5671 /usr/XFree86/lib/X11 \
5675 /usr/unsupported/lib \
5677 /usr/local/x11r5/lib \
5678 /usr/lpp/Xamples/lib \
5682 /usr/openwin/share/lib \
5685 for ac_extension in a so sl; do
5686 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5687 ac_x_libraries=$ac_dir
5694 fi # $ac_x_libraries = NO
5696 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5697 # Didn't find X anywhere. Cache the known absence of X.
5698 ac_cv_have_x="have_x=no"
5700 # Record where we found X for the cache.
5701 ac_cv_have_x="have_x=yes \
5702 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5705 eval "$ac_cv_have_x"
5708 if test "$have_x" != yes; then
5709 echo "$ac_t""$have_x" 1>&6
5712 # If each of the values was on the command line, it overrides each guess.
5713 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5714 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5715 # Update the cache value to reflect the command line values.
5716 ac_cv_have_x="have_x=yes \
5717 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5718 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5721 if test "$no_x" = yes; then
5722 # Not all programs may use this symbol, but it does not hurt to define it.
5723 { test "$extra_verbose" = "yes" && cat << \EOF
5724 Defining X_DISPLAY_MISSING
5726 cat >> confdefs.h <<\EOF
5727 #define X_DISPLAY_MISSING 1
5731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5733 if test -n "$x_includes"; then
5734 X_CFLAGS="$X_CFLAGS -I$x_includes"
5737 # It would also be nice to do this for all -L options, not just this one.
5738 if test -n "$x_libraries"; then
5739 X_LIBS="$X_LIBS -L$x_libraries"
5740 # For Solaris; some versions of Sun CC require a space after -R and
5741 # others require no space. Words are not sufficient . . . .
5742 case "`(uname -sr) 2>/dev/null`" in
5744 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5745 echo "configure:5746: checking whether -R must be followed by a space" >&5
5746 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5765 if test $ac_R_nospace = yes; then
5766 echo "$ac_t""no" 1>&6
5767 X_LIBS="$X_LIBS -R$x_libraries"
5769 LIBS="$ac_xsave_LIBS -R $x_libraries"
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5778 if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5788 if test $ac_R_space = yes; then
5789 echo "$ac_t""yes" 1>&6
5790 X_LIBS="$X_LIBS -R $x_libraries"
5792 echo "$ac_t""neither works" 1>&6
5795 LIBS="$ac_xsave_LIBS"
5799 # Check for system-dependent libraries X programs must link with.
5800 # Do this before checking for the system-independent R6 libraries
5801 # (-lICE), since we may need -lsocket or whatever for X linking.
5803 if test "$ISC" = yes; then
5804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5806 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5807 # libraries were built with DECnet support. And karl@cs.umb.edu says
5808 # the Alpha needs dnet_stub (dnet does not exist).
5809 if test "$with_dnet" = "no" ; then
5810 ac_cv_lib_dnet_dnet_ntoa=no
5813 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5814 echo "configure:5815: checking for dnet_ntoa in -ldnet" >&5
5815 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5817 xe_check_libs=" -ldnet "
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5830 if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832 eval "ac_cv_lib_$ac_lib_var=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 eval "ac_cv_lib_$ac_lib_var=no"
5842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5843 echo "$ac_t""yes" 1>&6
5844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5846 echo "$ac_t""no" 1>&6
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5853 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5854 echo "configure:5855: checking for dnet_ntoa in -ldnet_stub" >&5
5855 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5857 xe_check_libs=" -ldnet_stub "
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5872 eval "ac_cv_lib_$ac_lib_var=yes"
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 eval "ac_cv_lib_$ac_lib_var=no"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5883 echo "$ac_t""yes" 1>&6
5884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5886 echo "$ac_t""no" 1>&6
5892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5893 # to get the SysV transport functions.
5894 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5896 # The nsl library prevents programs from opening the X display
5897 # on Irix 5.2, according to dickey@clark.net.
5898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5899 echo "configure:5900: checking for gethostbyname" >&5
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 /* System header to define __stub macros and hopefully few prototypes,
5905 which can conflict with char gethostbyname(); below. */
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char gethostbyname();
5914 /* The GNU C library defines this for functions which it implements
5915 to always fail with ENOSYS. Some functions are actually named
5916 something starting with __ and the normal name is an alias. */
5917 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5927 eval "ac_cv_func_gethostbyname=yes"
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 eval "ac_cv_func_gethostbyname=no"
5936 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5937 echo "$ac_t""yes" 1>&6
5940 echo "$ac_t""no" 1>&6
5943 if test $ac_cv_func_gethostbyname = no; then
5945 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5946 echo "configure:5947: checking for gethostbyname in -lnsl" >&5
5947 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5949 xe_check_libs=" -lnsl "
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5956 char gethostbyname();
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_lib_$ac_lib_var=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_lib_$ac_lib_var=no"
5974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5975 echo "$ac_t""yes" 1>&6
5976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5978 echo "$ac_t""no" 1>&6
5984 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5985 # socket/setsockopt and other routines are undefined under SCO ODT
5986 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5987 # on later versions), says simon@lia.di.epfl.ch: it contains
5988 # gethostby* variants that don't use the nameserver (or something).
5989 # -lsocket must be given before -lnsl if both are needed.
5990 # We assume that if connect needs -lnsl, so does gethostbyname.
5991 echo $ac_n "checking for connect""... $ac_c" 1>&6
5992 echo "configure:5993: checking for connect" >&5
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char connect(); below. */
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6007 /* The GNU C library defines this for functions which it implements
6008 to always fail with ENOSYS. Some functions are actually named
6009 something starting with __ and the normal name is an alias. */
6010 #if defined (__stub_connect) || defined (__stub___connect)
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_func_connect=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_func_connect=no"
6029 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6033 echo "$ac_t""no" 1>&6
6036 if test $ac_cv_func_connect = no; then
6038 xe_msg_checking="for connect in -lsocket"
6039 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6040 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6041 echo "configure:6042: checking "$xe_msg_checking"" >&5
6042 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6044 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_lib_$ac_lib_var=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_lib_$ac_lib_var=no"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6070 echo "$ac_t""yes" 1>&6
6071 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6073 echo "$ac_t""no" 1>&6
6079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6080 echo $ac_n "checking for remove""... $ac_c" 1>&6
6081 echo "configure:6082: checking for remove" >&5
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char remove(); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_remove) || defined (__stub___remove)
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_func_remove=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_func_remove=no"
6118 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6122 echo "$ac_t""no" 1>&6
6125 if test $ac_cv_func_remove = no; then
6127 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6128 echo "configure:6129: checking for remove in -lposix" >&5
6129 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6131 xe_check_libs=" -lposix "
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146 eval "ac_cv_lib_$ac_lib_var=yes"
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 eval "ac_cv_lib_$ac_lib_var=no"
6156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6157 echo "$ac_t""yes" 1>&6
6158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6160 echo "$ac_t""no" 1>&6
6166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6167 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6168 echo "configure:6169: checking for shmat" >&5
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char shmat(); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_shmat) || defined (__stub___shmat)
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_func_shmat=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_func_shmat=no"
6205 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6212 if test $ac_cv_func_shmat = no; then
6214 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6215 echo "configure:6216: checking for shmat in -lipc" >&5
6216 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6218 xe_check_libs=" -lipc "
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_lib_$ac_lib_var=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_lib_$ac_lib_var=no"
6243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6244 echo "$ac_t""yes" 1>&6
6245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6247 echo "$ac_t""no" 1>&6
6254 # Check for libraries that X11R6 Xt/Xaw programs need.
6255 ac_save_LDFLAGS="$LDFLAGS"
6256 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6257 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6258 # check for ICE first), but we must link in the order -lSM -lICE or
6259 # we get undefined symbols. So assume we have SM if we have ICE.
6260 # These have to be linked with before -lX11, unlike the other
6261 # libraries we check for below, so use a different variable.
6262 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6264 xe_msg_checking="for IceConnectionNumber in -lICE"
6265 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6266 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6267 echo "configure:6268: checking "$xe_msg_checking"" >&5
6268 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6270 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6277 char IceConnectionNumber();
6280 IceConnectionNumber()
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 eval "ac_cv_lib_$ac_lib_var=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_lib_$ac_lib_var=no"
6295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6296 echo "$ac_t""yes" 1>&6
6297 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6299 echo "$ac_t""no" 1>&6
6303 LDFLAGS="$ac_save_LDFLAGS"
6306 # Autoconf claims to find X library and include dirs for us.
6307 if test "$no_x" = "yes"
6308 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6309 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6314 if test "$with_x11" = "yes"; then
6315 { test "$extra_verbose" = "yes" && cat << \EOF
6316 Defining HAVE_X_WINDOWS
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE_X_WINDOWS 1
6323 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6324 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6326 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6327 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6328 if test -d "$lib_dir" -a -d "$inc_dir"; then
6329 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6330 x_libraries="$lib_dir $x_libraries"
6331 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6333 case "$x_includes" in "$inc_dir"* ) ;; *)
6334 x_includes="$inc_dir $x_includes"
6335 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6340 for rel in "X11R6" "X11R5" "X11R4"; do
6341 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6342 if test -d "$lib_dir" -a -d "$inc_dir"; then
6343 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6344 x_libraries="$x_libraries $lib_dir"
6345 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6347 case "$x_includes" in "$inc_dir"* ) ;; *)
6348 x_includes="$x_includes $inc_dir"
6349 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6355 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 ;;
6358 ld_switch_x_site="$X_LIBS"
6361 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6362 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6363 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6365 runpath="" runpath_dirs=""
6366 if test -n "$LD_RUN_PATH"; then
6367 runpath="$LD_RUN_PATH"
6368 elif test "$GCC" = "yes"; then
6369 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6370 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6371 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6372 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6373 case "$arg" in P,* | -L* | -R* )
6374 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6376 xe_runpath_dir="$dir"
6377 test "$xe_runpath_dir" != "/lib" -a \
6378 "$xe_runpath_dir" != "/usr/lib" -a \
6379 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6380 eval "$xe_add_unique_runpath_dir"
6385 ld_switch_run="$ld_switch_run_save"
6388 for arg in $ld_switch_site $ld_switch_x_site; do
6389 case "$arg" in -L*) {
6390 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6391 test "$xe_runpath_dir" != "/lib" -a \
6392 "$xe_runpath_dir" != "/usr/lib" -a \
6393 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6394 eval "$xe_add_unique_runpath_dir"
6397 if test "$opsys $need_motif" = "sol2 yes"; then
6398 xe_runpath_dir="/opt/SUNWdt/lib";
6399 eval "$xe_add_unique_runpath_dir";
6402 if test -n "$runpath"; then
6403 ld_switch_run="${dash_r}${runpath}"
6405 if test "$GCC" = "yes"; then
6406 set x $ld_switch_run; shift; ld_switch_run=""
6407 while test -n "$1"; do
6409 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6410 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6412 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6417 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6422 if test "$extra_verbose" = "yes"; then
6423 echo; echo "X11 compilation variables:"
6424 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6429 if test "$x_includes" != NONE; then
6430 for i in $x_includes; do
6431 if test -d "$i/bitmaps"; then
6432 bitmapdirs="$i/bitmaps:$bitmapdirs"
6434 if test -d "$i/X11/bitmaps"; then
6435 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6438 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6440 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6441 Defining BITMAPDIR = "$bitmapdirs"
6443 cat >> confdefs.h <<EOF
6444 #define BITMAPDIR "$bitmapdirs"
6449 echo "checking for X defines extracted by xmkmf" 1>&6
6450 echo "configure:6451: checking for X defines extracted by xmkmf" >&5
6452 if mkdir conftestdir; then
6454 cat > Imakefile <<'EOF'
6456 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6458 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6460 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6464 for word in $xmkmf_defines; do
6468 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6470 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6473 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6474 if test "$val" = "1"
6475 then { test "$extra_verbose" = "yes" && cat << EOF
6478 cat >> confdefs.h <<EOF
6483 else { test "$extra_verbose" = "yes" && cat << EOF
6484 Defining $sym = $val
6486 cat >> confdefs.h <<EOF
6497 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6498 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6499 echo "configure:6500: checking for X11/Intrinsic.h" >&5
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 #include <X11/Intrinsic.h>
6506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6507 { (eval echo configure:6508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6509 if test -z "$ac_err"; then
6511 eval "ac_cv_header_$ac_safe=yes"
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 eval "ac_cv_header_$ac_safe=no"
6520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no" 1>&6
6525 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6530 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6531 echo "configure:6532: checking for XOpenDisplay in -lX11" >&5
6532 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6534 xe_check_libs=" -lX11 "
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541 char XOpenDisplay();
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 eval "ac_cv_lib_$ac_lib_var=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6554 eval "ac_cv_lib_$ac_lib_var=no"
6559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6560 echo "$ac_t""yes" 1>&6
6563 echo "$ac_t""no" 1>&6
6567 if test "$have_lib_x11" != "yes"; then
6569 xe_msg_checking="for XGetFontProperty in -lX11"
6570 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6571 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6572 echo "configure:6573: checking "$xe_msg_checking"" >&5
6573 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6575 xe_check_libs=" -lX11 -b i486-linuxaout"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char XGetFontProperty();
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6601 echo "$ac_t""yes" 1>&6
6602 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6604 echo "$ac_t""no" 1>&6
6605 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6611 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6614 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6615 echo "configure:6616: checking for XShapeSelectInput in -lXext" >&5
6616 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6618 xe_check_libs=" -lXext "
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XShapeSelectInput();
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_lib_$ac_lib_var=no"
6643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6644 echo "$ac_t""yes" 1>&6
6645 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6647 echo "$ac_t""no" 1>&6
6653 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6654 echo "configure:6655: checking for XtOpenDisplay in -lXt" >&5
6655 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6657 xe_check_libs=" -lXt "
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char XtOpenDisplay();
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672 eval "ac_cv_lib_$ac_lib_var=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6677 eval "ac_cv_lib_$ac_lib_var=no"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6683 echo "$ac_t""yes" 1>&6
6684 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6686 echo "$ac_t""no" 1>&6
6687 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6692 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6693 echo "configure:6694: checking the version of X11 being used" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #include <X11/Intrinsic.h>
6698 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6702 ./conftest foobar; x11_release=$?
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6711 echo "$ac_t""R${x11_release}" 1>&6
6712 { test "$extra_verbose" = "yes" && cat << EOF
6713 Defining THIS_IS_X11R${x11_release}
6715 cat >> confdefs.h <<EOF
6716 #define THIS_IS_X11R${x11_release} 1
6721 if test "${x11_release}" = "4"; then
6722 case "$with_widgets" in
6723 "" | "no") with_widgets=no ;;
6724 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6728 for ac_func in XConvertCase
6730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_func" >&5
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func(); below. */
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 eval "ac_cv_func_$ac_func=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 eval "ac_cv_func_$ac_func=no"
6768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6771 { test "$extra_verbose" = "yes" && cat << EOF
6772 Defining $ac_tr_func
6774 cat >> confdefs.h <<EOF
6775 #define $ac_tr_func 1
6780 echo "$ac_t""no" 1>&6
6785 for ac_hdr in X11/Xlocale.h
6787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6789 echo "configure:6790: checking for $ac_hdr" >&5
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6797 { (eval echo configure:6798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6799 if test -z "$ac_err"; then
6801 eval "ac_cv_header_$ac_safe=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_header_$ac_safe=no"
6810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6813 { test "$extra_verbose" = "yes" && cat << EOF
6816 cat >> confdefs.h <<EOF
6817 #define $ac_tr_hdr 1
6822 echo "$ac_t""no" 1>&6
6827 for ac_func in XRegisterIMInstantiateCallback
6829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6830 echo "configure:6831: checking for $ac_func" >&5
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char $ac_func(); below. */
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6845 /* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 eval "ac_cv_func_$ac_func=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_func_$ac_func=no"
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870 { test "$extra_verbose" = "yes" && cat << EOF
6871 Defining $ac_tr_func
6873 cat >> confdefs.h <<EOF
6874 #define $ac_tr_func 1
6879 echo "$ac_t""no" 1>&6
6883 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6884 echo "configure:6885: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6889 #define NeedFunctionPrototypes 1
6890 #include <X11/Xlib.h>
6891 extern Bool XRegisterIMInstantiateCallback(
6892 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6898 if { (eval echo configure:6899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6900 echo "$ac_t""yes" 1>&6
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 echo "$ac_t""no" 1>&6
6906 { test "$extra_verbose" = "yes" && cat << \EOF
6907 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6909 cat >> confdefs.h <<\EOF
6910 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6917 test -z "$with_xmu" && {
6918 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6919 echo "configure:6920: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6920 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6922 xe_check_libs=" -lXmu "
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char XmuReadBitmapDataFromFile();
6932 XmuReadBitmapDataFromFile()
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_lib_$ac_lib_var=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_lib_$ac_lib_var=no"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6948 echo "$ac_t""yes" 1>&6
6951 echo "$ac_t""no" 1>&6
6956 if test "$with_xmu" = "no"; then
6957 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6958 echo " xemacs will be linked with \"xmu.o\""
6961 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6962 { test "$extra_verbose" = "yes" && cat << \EOF
6965 cat >> confdefs.h <<\EOF
6973 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6974 echo "configure:6975: checking for main in -lXbsd" >&5
6975 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6977 xe_check_libs=" -lXbsd "
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6999 echo "$ac_t""yes" 1>&6
7000 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7002 echo "$ac_t""no" 1>&6
7007 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7008 if test "$GCC" = "yes"; then
7009 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
7010 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
7013 "xlc" ) CC="xlc_r" ;;
7014 "xlC" ) CC="xlC_r" ;;
7021 if test "$with_msw" != "no"; then
7022 echo "checking for MS-Windows" 1>&6
7023 echo "configure:7024: checking for MS-Windows" >&5
7025 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7026 echo "configure:7027: checking for main in -lgdi32" >&5
7027 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7029 xe_check_libs=" -lgdi32 "
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7051 echo "$ac_t""yes" 1>&6
7054 echo "$ac_t""no" 1>&6
7058 if test "$with_msw" = "yes"; then
7059 { test "$extra_verbose" = "yes" && cat << \EOF
7060 Defining HAVE_MS_WINDOWS
7062 cat >> confdefs.h <<\EOF
7063 #define HAVE_MS_WINDOWS 1
7068 if test "$with_netinstall" = "yes"; then
7069 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7070 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7071 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7074 install_pp="$blddir/lib-src/installexe.sh"
7075 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
7076 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7077 if test "$window_system" != x11; then
7079 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7080 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7081 echo " xemacs will be linked with \"scrollbar-msw.o\""
7083 test "$with_menubars" != "no" && with_menubars=msw \
7084 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7085 echo " xemacs will be linked with \"menubar-msw.o\""
7087 test "$with_toolbars" != "no" && with_toolbars=msw \
7088 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7089 echo " xemacs will be linked with \"toolbar-msw.o\""
7091 test "$with_dialogs" != "no" && with_dialogs=msw \
7092 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7093 echo " xemacs will be linked with \"dialog-msw.o\""
7095 test "$with_widgets" != "no" && with_widgets=msw
7097 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7098 echo " xemacs will be linked with \"scrollbar-msw.o\""
7100 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7101 echo " xemacs will be linked with \"menubar-msw.o\""
7103 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7104 echo " xemacs will be linked with \"toolbar-msw.o\""
7106 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7107 echo " xemacs will be linked with \"dialog-msw.o\""
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7114 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7118 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7119 Defining HAVE_MSG_SELECT
7121 cat >> confdefs.h <<\EOF
7122 #define HAVE_MSG_SELECT 1
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7132 with_file_coding=yes
7133 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
7134 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\""
7141 test -z "$window_system" && window_system="none"
7143 if test "$window_system" = "none"; then
7144 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7146 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7147 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7149 eval "with_${feature}=no"
7152 test -z "$with_toolbars" && with_toolbars=yes
7155 if test "$with_msw" != "yes"; then
7156 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7158 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7159 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7161 eval "with_${feature}=no"
7167 if test "$with_x11" != "yes"; then
7168 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7170 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7171 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7173 eval "with_${feature}=no"
7177 if test "$with_x11" = "yes"; then
7178 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7179 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7180 echo "configure:7181: checking for X11/extensions/shape.h" >&5
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 #include <X11/extensions/shape.h>
7187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7188 { (eval echo configure:7189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7190 if test -z "$ac_err"; then
7192 eval "ac_cv_header_$ac_safe=yes"
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7198 eval "ac_cv_header_$ac_safe=no"
7201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7202 echo "$ac_t""yes" 1>&6
7204 { test "$extra_verbose" = "yes" && cat << \EOF
7205 Defining HAVE_BALLOON_HELP
7207 cat >> confdefs.h <<\EOF
7208 #define HAVE_BALLOON_HELP 1
7212 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7213 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7216 echo "$ac_t""no" 1>&6
7223 case "$window_system" in
7224 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7225 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7228 test "$with_gnome" = "yes" && echo " Using GNOME."
7229 test "$with_gnome" = "no" && echo " Using GTK."
7231 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7234 case "$x_libraries" in *X11R4* )
7235 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7236 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7239 echo "checking for WM_COMMAND option" 1>&6
7240 echo "configure:7241: checking for WM_COMMAND option" >&5;
7241 if test "$with_wmcommand" != "no"; then
7242 { test "$extra_verbose" = "yes" && cat << \EOF
7243 Defining HAVE_WMCOMMAND
7245 cat >> confdefs.h <<\EOF
7246 #define HAVE_WMCOMMAND 1
7252 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7253 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7254 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7255 echo "configure:7256: checking for X11/Xauth.h" >&5
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 #include <X11/Xauth.h>
7262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7263 { (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7265 if test -z "$ac_err"; then
7267 eval "ac_cv_header_$ac_safe=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7273 eval "ac_cv_header_$ac_safe=no"
7276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7280 echo "$ac_t""no" 1>&6
7284 test -z "$with_xauth" && {
7285 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7286 echo "configure:7287: checking for XauGetAuthByAddr in -lXau" >&5
7287 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7289 xe_check_libs=" -lXau "
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* Override any gcc2 internal prototype to avoid an error. */
7294 /* We use char because int might match the return type of a gcc2
7295 builtin and then its argument prototype would still apply. */
7296 char XauGetAuthByAddr();
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7304 eval "ac_cv_lib_$ac_lib_var=yes"
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7309 eval "ac_cv_lib_$ac_lib_var=no"
7314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7315 echo "$ac_t""yes" 1>&6
7318 echo "$ac_t""no" 1>&6
7323 test -z "$with_xauth" && with_xauth=yes
7324 if test "$with_xauth" = "yes"; then
7325 { test "$extra_verbose" = "yes" && cat << \EOF
7328 cat >> confdefs.h <<\EOF
7329 #define HAVE_XAUTH 1
7335 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
7343 if test "$with_tooltalk" != "no" ; then
7344 for dir in "" "Tt/" "desktop/" ; do
7345 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7346 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7347 echo "configure:7348: checking for ${dir}tt_c.h" >&5
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 #include <${dir}tt_c.h>
7354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7355 { (eval echo configure:7356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7357 if test -z "$ac_err"; then
7359 eval "ac_cv_header_$ac_safe=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_header_$ac_safe=no"
7368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7369 echo "$ac_t""yes" 1>&6
7370 tt_c_h_file="${dir}tt_c.h"; break
7372 echo "$ac_t""no" 1>&6
7376 if test -z "$tt_c_h_file"; then
7377 if test "$with_tooltalk" = "yes"; then
7378 (echo "$progname: Usage error:"
7379 echo " " "Unable to find required tooltalk header files."
7380 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7385 if test "$with_tooltalk" != "no" ; then
7386 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7388 xe_msg_checking="for tt_message_create in -ltt"
7389 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7390 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7391 echo "configure:7392: checking "$xe_msg_checking"" >&5
7392 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7394 xe_check_libs=" -ltt $extra_libs"
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7401 char tt_message_create();
7407 if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 eval "ac_cv_lib_$ac_lib_var=yes"
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 eval "ac_cv_lib_$ac_lib_var=no"
7419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7420 echo "$ac_t""yes" 1>&6
7421 tt_libs="-ltt $extra_libs"; break
7423 echo "$ac_t""no" 1>&6
7429 if test -z "$tt_libs"; then
7430 if test "$with_tooltalk" = "yes"; then
7431 (echo "$progname: Usage error:"
7432 echo " " "Unable to find required tooltalk libraries."
7433 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7438 test -z "$with_tooltalk" && with_tooltalk=yes
7439 if test "$with_tooltalk" = "yes"; then
7440 { test "$extra_verbose" = "yes" && cat << \EOF
7443 cat >> confdefs.h <<\EOF
7448 { test "$extra_verbose" = "yes" && cat << EOF
7449 Defining TT_C_H_FILE = "$tt_c_h_file"
7451 cat >> confdefs.h <<EOF
7452 #define TT_C_H_FILE "$tt_c_h_file"
7456 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7457 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7458 echo " xemacs will be linked with \"tooltalk.o\""
7462 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7463 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7464 echo "configure:7465: checking for Dt/Dt.h" >&5
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7472 { (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7474 if test -z "$ac_err"; then
7476 eval "ac_cv_header_$ac_safe=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7482 eval "ac_cv_header_$ac_safe=no"
7485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7489 echo "$ac_t""no" 1>&6
7493 test -z "$with_cde" && {
7494 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7495 echo "configure:7496: checking for DtDndDragStart in -lDtSvc" >&5
7496 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7498 xe_check_libs=" -lDtSvc "
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char DtDndDragStart();
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 eval "ac_cv_lib_$ac_lib_var=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 eval "ac_cv_lib_$ac_lib_var=no"
7523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7524 echo "$ac_t""yes" 1>&6
7527 echo "$ac_t""no" 1>&6
7532 test -z "$with_cde" && with_cde=yes
7533 if test "$with_dragndrop" = no; then
7534 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7537 if test "$with_cde" = "yes" ; then
7538 { test "$extra_verbose" = "yes" && cat << \EOF
7541 cat >> confdefs.h <<\EOF
7546 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7547 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7548 with_tooltalk=yes # CDE requires Tooltalk
7549 need_motif=yes # CDE requires Motif
7552 test "$window_system" != "x11" && with_offix=no
7553 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7554 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7557 if test "$with_dragndrop" = no; then
7558 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7561 if test "$with_cde" = yes; then
7562 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7565 test -z "$with_offix" && with_offix=no
7566 if test "$with_offix" = "yes"; then
7567 { test "$extra_verbose" = "yes" && cat << \EOF
7568 Defining HAVE_OFFIX_DND
7570 cat >> confdefs.h <<\EOF
7571 #define HAVE_OFFIX_DND 1
7575 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7576 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7578 if test "$with_gtk" = "yes"; then
7579 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7582 if test "$with_dragndrop" != "no" ; then
7583 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7584 echo "configure:7585: checking if drag and drop API is needed" >&5
7585 if test -n "$dragndrop_proto" ; then
7587 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7588 { test "$extra_verbose" = "yes" && cat << \EOF
7589 Defining HAVE_DRAGNDROP
7591 cat >> confdefs.h <<\EOF
7592 #define HAVE_DRAGNDROP 1
7596 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7599 echo "$ac_t""no" 1>&6
7603 echo "checking for LDAP" 1>&6
7604 echo "configure:7605: checking for LDAP" >&5
7605 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7606 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7607 echo "configure:7608: checking for ldap.h" >&5
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7615 { (eval echo configure:7616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7617 if test -z "$ac_err"; then
7619 eval "ac_cv_header_$ac_safe=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 eval "ac_cv_header_$ac_safe=no"
7628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7632 echo "$ac_t""no" 1>&6
7636 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7637 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7638 echo "configure:7639: checking for lber.h" >&5
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7646 { (eval echo configure:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7648 if test -z "$ac_err"; then
7650 eval "ac_cv_header_$ac_safe=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 eval "ac_cv_header_$ac_safe=no"
7659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7660 echo "$ac_t""yes" 1>&6
7663 echo "$ac_t""no" 1>&6
7667 if test "$with_ldap" != "no"; then
7669 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7670 echo "configure:7671: checking for ldap_search in -lldap" >&5
7671 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7673 xe_check_libs=" -lldap "
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7699 echo "$ac_t""yes" 1>&6
7700 with_ldap_nolber=yes
7702 echo "$ac_t""no" 1>&6
7707 test "$with_ldap_nolber" = "no" && {
7708 xe_msg_checking="for ldap_open in -lldap"
7709 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7710 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7711 echo "configure:7712: checking "$xe_msg_checking"" >&5
7712 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7714 xe_check_libs=" -lldap -llber"
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 eval "ac_cv_lib_$ac_lib_var=yes"
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7734 eval "ac_cv_lib_$ac_lib_var=no"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7740 echo "$ac_t""yes" 1>&6
7743 echo "$ac_t""no" 1>&6
7748 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7749 xe_msg_checking="for ldap_open in -lldap"
7750 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7751 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7752 echo "configure:7753: checking "$xe_msg_checking"" >&5
7753 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7755 xe_check_libs=" -lldap -llber -lkrb"
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770 eval "ac_cv_lib_$ac_lib_var=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval "ac_cv_lib_$ac_lib_var=no"
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7781 echo "$ac_t""yes" 1>&6
7784 echo "$ac_t""no" 1>&6
7789 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7790 xe_msg_checking="for ldap_open in -lldap"
7791 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7792 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7793 echo "configure:7794: checking "$xe_msg_checking"" >&5
7794 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7796 xe_check_libs=" -lldap -llber -lkrb -ldes"
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_lib_$ac_lib_var=no"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7822 echo "$ac_t""yes" 1>&6
7823 with_ldap_krbdes=yes
7825 echo "$ac_t""no" 1>&6
7830 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
7832 if test "$with_ldap" = "yes"; then
7833 { test "$extra_verbose" = "yes" && cat << \EOF
7836 cat >> confdefs.h <<\EOF
7841 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7842 echo " xemacs will be linked with \"eldap.o\""
7844 if test "$with_ldap_nolber" = "yes" ; then
7845 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7847 if test "$with_ldap_krb" = "yes" ; then
7848 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7850 if test "$with_ldap_krbdes" = "yes" ; then
7851 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7852 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7854 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7855 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7857 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7860 echo "configure:7861: checking for $ac_func" >&5
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char $ac_func(); below. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7875 /* The GNU C library defines this for functions which it implements
7876 to always fail with ENOSYS. Some functions are actually named
7877 something starting with __ and the normal name is an alias. */
7878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 eval "ac_cv_func_$ac_func=yes"
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 eval "ac_cv_func_$ac_func=no"
7897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7900 { test "$extra_verbose" = "yes" && cat << EOF
7901 Defining $ac_tr_func
7903 cat >> confdefs.h <<EOF
7904 #define $ac_tr_func 1
7909 echo "$ac_t""no" 1>&6
7915 if test "$with_postgresql" != "no"; then
7916 echo "checking for PostgreSQL" 1>&6
7917 echo "configure:7918: checking for PostgreSQL" >&5
7919 for header_dir in "" "pgsql/" "postgresql/"; do
7920 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7921 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7922 echo "configure:7923: checking for ${header_dir}libpq-fe.h" >&5
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 #include <${header_dir}libpq-fe.h>
7929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7930 { (eval echo configure:7931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7932 if test -z "$ac_err"; then
7934 eval "ac_cv_header_$ac_safe=yes"
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7940 eval "ac_cv_header_$ac_safe=no"
7943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7947 echo "$ac_t""no" 1>&6
7952 test -n "$libpq_fe_h_file" && {
7953 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7954 echo "configure:7955: checking for PQconnectdb in -lpq" >&5
7955 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7957 xe_check_libs=" -lpq "
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 eval "ac_cv_lib_$ac_lib_var=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7977 eval "ac_cv_lib_$ac_lib_var=no"
7982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7983 echo "$ac_t""yes" 1>&6
7986 echo "$ac_t""no" 1>&6
7991 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7993 { test "$extra_verbose" = "yes" && cat << \EOF
7994 Defining HAVE_POSTGRESQL
7996 cat >> confdefs.h <<\EOF
7997 #define HAVE_POSTGRESQL 1
8002 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8003 echo "configure:8004: checking for PQconnectStart in -lpq" >&5
8004 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8006 xe_check_libs=" -lpq "
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char PQconnectStart();
8019 if { (eval echo configure:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 eval "ac_cv_lib_$ac_lib_var=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8026 eval "ac_cv_lib_$ac_lib_var=no"
8031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8032 echo "$ac_t""yes" 1>&6
8033 with_postgresqlv7=yes;
8034 { test "$extra_verbose" = "yes" && cat << \EOF
8035 Defining HAVE_POSTGRESQLV7
8037 cat >> confdefs.h <<\EOF
8038 #define HAVE_POSTGRESQLV7 1
8043 echo "$ac_t""no" 1>&6
8047 { test "$extra_verbose" = "yes" && cat << EOF
8048 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8050 cat >> confdefs.h <<EOF
8051 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8055 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8056 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8057 echo " xemacs will be linked with \"postgresql.o\""
8059 elif test "$with_postgresql" = "yes"; then
8060 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8065 if test "$window_system" != "none"; then
8066 echo "checking for graphics libraries" 1>&6
8067 echo "configure:8068: checking for graphics libraries" >&5
8073 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8074 cygwin_top=`eval "dirname ${cygwin_top}"`;
8075 cygwin_top="${cygwin_top}/..";
8076 case "$window_system" in
8078 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8079 incpath_xpm="-I${cygwin_top}/include/noX"
8089 if test -z "$with_xpm"; then
8090 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8091 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8092 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8093 echo "configure:8094: checking for Xpm - no older than 3.4f" >&5
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8099 #include <X11/xpm.h>
8100 int main(int c, char **v) {
8102 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8103 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8107 ./conftest dummy_arg; xpm_status=$?;
8108 if test "$xpm_status" = "0"; then
8112 if test "$xpm_status" = "1"; then
8113 xpm_problem="Xpm library version and header file version don't match!"
8114 elif test "$xpm_status" = "2"; then
8115 xpm_problem="Xpm library version is too old!"
8117 xpm_problem="Internal xpm detection logic error!"
8120 *** WARNING *** $xpm_problem
8121 I'm not touching that with a 10-foot pole!
8122 If you really want to use the installed version of Xpm, rerun
8123 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8134 echo "$ac_t""$with_xpm" 1>&6
8136 if test "$with_xpm" = "yes"; then
8137 { test "$extra_verbose" = "yes" && cat << \EOF
8140 cat >> confdefs.h <<\EOF
8145 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8146 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8147 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8148 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8149 echo "configure:8150: checking for \"FOR_MSW\" xpm" >&5
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8156 XpmCreatePixmapFromData()
8159 if { (eval echo configure:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8170 echo "$ac_t""$xpm_for_msw" 1>&6
8171 if test "$xpm_for_msw" = "yes"; then
8172 { test "$extra_verbose" = "yes" && cat << \EOF
8175 cat >> confdefs.h <<\EOF
8183 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8184 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8185 echo "configure:8186: checking for compface.h" >&5
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 #include <compface.h>
8192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193 { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8195 if test -z "$ac_err"; then
8197 eval "ac_cv_header_$ac_safe=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8203 eval "ac_cv_header_$ac_safe=no"
8206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8207 echo "$ac_t""yes" 1>&6
8210 echo "$ac_t""no" 1>&6
8214 test -z "$with_xface" && {
8215 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8216 echo "configure:8217: checking for UnGenFace in -lcompface" >&5
8217 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8219 xe_check_libs=" -lcompface "
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_lib_$ac_lib_var=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_lib_$ac_lib_var=no"
8244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8245 echo "$ac_t""yes" 1>&6
8248 echo "$ac_t""no" 1>&6
8253 test -z "$with_xface" && with_xface=yes
8254 if test "$with_xface" = "yes"; then
8255 { test "$extra_verbose" = "yes" && cat << \EOF
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_XFACE 1
8263 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8266 if test "$with_gif" != "no"; then
8268 { test "$extra_verbose" = "yes" && cat << \EOF
8271 cat >> confdefs.h <<\EOF
8276 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8277 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8281 if test "$with_png $with_tiff" != "no no"; then
8283 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8284 echo "configure:8285: checking for inflate in -lc" >&5
8285 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8287 xe_check_libs=" -lc "
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8313 echo "$ac_t""yes" 1>&6
8316 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8319 echo "configure:8320: checking for inflate in -lz" >&5
8320 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8322 xe_check_libs=" -lz "
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8348 echo "$ac_t""yes" 1>&6
8349 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8351 echo "$ac_t""no" 1>&6
8353 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8354 echo "configure:8355: checking for inflate in -lgz" >&5
8355 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8357 xe_check_libs=" -lgz "
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8372 eval "ac_cv_lib_$ac_lib_var=yes"
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8377 eval "ac_cv_lib_$ac_lib_var=no"
8382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8383 echo "$ac_t""yes" 1>&6
8384 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8386 echo "$ac_t""no" 1>&6
8398 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8399 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8400 echo "configure:8401: checking for jpeglib.h" >&5
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <jpeglib.h>
8407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8408 { (eval echo configure:8409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8410 if test -z "$ac_err"; then
8412 eval "ac_cv_header_$ac_safe=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_header_$ac_safe=no"
8421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8422 echo "$ac_t""yes" 1>&6
8425 echo "$ac_t""no" 1>&6
8429 test -z "$with_jpeg" && {
8430 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8431 echo "configure:8432: checking for jpeg_destroy_decompress in -ljpeg" >&5
8432 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8434 xe_check_libs=" -ljpeg "
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441 char jpeg_destroy_decompress();
8444 jpeg_destroy_decompress()
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 eval "ac_cv_lib_$ac_lib_var=yes"
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 eval "ac_cv_lib_$ac_lib_var=no"
8459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8460 echo "$ac_t""yes" 1>&6
8463 echo "$ac_t""no" 1>&6
8468 test -z "$with_jpeg" && with_jpeg=yes
8469 if test "$with_jpeg" = "yes"; then
8470 { test "$extra_verbose" = "yes" && cat << \EOF
8473 cat >> confdefs.h <<\EOF
8478 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8482 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8483 echo "configure:8484: checking for pow" >&5
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char pow(); below. */
8491 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8498 /* The GNU C library defines this for functions which it implements
8499 to always fail with ENOSYS. Some functions are actually named
8500 something starting with __ and the normal name is an alias. */
8501 #if defined (__stub_pow) || defined (__stub___pow)
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_func_pow=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_func_pow=no"
8520 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8521 echo "$ac_t""yes" 1>&6
8524 echo "$ac_t""no" 1>&6
8528 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8529 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8530 echo "configure:8531: checking for png.h" >&5
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8538 { (eval echo configure:8539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8540 if test -z "$ac_err"; then
8542 eval "ac_cv_header_$ac_safe=yes"
8545 echo "configure: failed program was:" >&5
8546 cat conftest.$ac_ext >&5
8548 eval "ac_cv_header_$ac_safe=no"
8551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6
8555 echo "$ac_t""no" 1>&6
8559 test -z "$with_png" && {
8560 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8561 echo "configure:8562: checking for png_read_image in -lpng" >&5
8562 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8564 xe_check_libs=" -lpng "
8565 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure"
8567 #include "confdefs.h"
8568 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8571 char png_read_image();
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 eval "ac_cv_lib_$ac_lib_var=yes"
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 eval "ac_cv_lib_$ac_lib_var=no"
8589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8590 echo "$ac_t""yes" 1>&6
8593 echo "$ac_t""no" 1>&6
8598 if test -z "$with_png"; then
8599 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8600 echo "configure:8601: checking for workable png version information" >&5
8601 xe_check_libs="-lpng -lz"
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8606 int main(int c, char **v) {
8607 if (c == 1) return 0;
8608 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8609 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8613 ./conftest dummy_arg; png_status=$?;
8614 if test "$png_status" = "0"; then
8618 if test "$png_status" = "1"; then
8619 png_problem="PNG library version and header file don't match!"
8620 elif test "$png_status" = "2"; then
8621 png_problem="PNG library version too old (pre 1.0.2)!"
8624 *** WARNING *** $png_problem
8625 I'm not touching that with a 10-foot pole!
8626 If you really want to use the installed version of libPNG, rerun
8627 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8638 echo "$ac_t""$with_png" 1>&6
8640 if test "$with_png" = "yes"; then
8641 { test "$extra_verbose" = "yes" && cat << \EOF
8644 cat >> confdefs.h <<\EOF
8649 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8652 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8653 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8654 echo "configure:8655: checking for tiffio.h" >&5
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8662 { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8664 if test -z "$ac_err"; then
8666 eval "ac_cv_header_$ac_safe=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_header_$ac_safe=no"
8675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8676 echo "$ac_t""yes" 1>&6
8679 echo "$ac_t""no" 1>&6
8683 test -z "$with_tiff" && {
8684 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8685 echo "configure:8686: checking for TIFFClientOpen in -ltiff" >&5
8686 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8688 xe_check_libs=" -ltiff "
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char TIFFClientOpen();
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 eval "ac_cv_lib_$ac_lib_var=yes"
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 eval "ac_cv_lib_$ac_lib_var=no"
8713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8714 echo "$ac_t""yes" 1>&6
8717 echo "$ac_t""no" 1>&6
8722 test -z "$with_tiff" && with_tiff=yes
8723 if test "$with_tiff" = "yes"; then
8724 { test "$extra_verbose" = "yes" && cat << \EOF
8727 cat >> confdefs.h <<\EOF
8732 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8737 if test "$with_gtk" = "yes"; then
8738 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8740 echo "configure:8741: checking for compface.h" >&5
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 #include <compface.h>
8747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8748 { (eval echo configure:8749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8750 if test -z "$ac_err"; then
8752 eval "ac_cv_header_$ac_safe=yes"
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 eval "ac_cv_header_$ac_safe=no"
8761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8762 echo "$ac_t""yes" 1>&6
8765 echo "$ac_t""no" 1>&6
8769 test -z "$with_xface" && {
8770 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8771 echo "configure:8772: checking for UnGenFace in -lcompface" >&5
8772 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8774 xe_check_libs=" -lcompface "
8775 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 /* We use char because int might match the return type of a gcc2
8780 builtin and then its argument prototype would still apply. */
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 eval "ac_cv_lib_$ac_lib_var=yes"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 eval "ac_cv_lib_$ac_lib_var=no"
8799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8800 echo "$ac_t""yes" 1>&6
8803 echo "$ac_t""no" 1>&6
8808 test -z "$with_xface" && with_xface=yes
8809 if test "$with_xface" = "yes"; then
8810 { test "$extra_verbose" = "yes" && cat << \EOF
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_XFACE 1
8818 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8824 if test "$with_x11" = "yes"; then
8825 echo "checking for X11 graphics libraries" 1>&6
8826 echo "configure:8827: checking for X11 graphics libraries" >&5
8829 case "$with_widgets" in
8830 "yes" | "athena") detect_athena=yes ;;
8831 *) detect_athena=no ;;
8834 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8835 echo "checking for the Athena widgets" 1>&6
8836 echo "configure:8837: checking for the Athena widgets" >&5
8838 case "$with_athena" in
8839 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8840 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8841 "next") athena_variant=neXtaw athena_3d=yes ;;
8842 "95") athena_variant=Xaw95 athena_3d=yes ;;
8843 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8844 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8847 if test "$athena_3d" = "no"; then
8849 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8850 echo "configure:8851: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8851 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8853 xe_check_libs=" -l$athena_variant "
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* Override any gcc2 internal prototype to avoid an error. */
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char XawScrollbarSetThumb();
8863 XawScrollbarSetThumb()
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8868 eval "ac_cv_lib_$ac_lib_var=yes"
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 eval "ac_cv_lib_$ac_lib_var=no"
8878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8879 echo "$ac_t""yes" 1>&6
8881 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8882 echo "configure:8883: checking for threeDClassRec in -l$athena_variant" >&5
8883 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8885 xe_check_libs=" -l$athena_variant "
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8892 char threeDClassRec();
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_lib_$ac_lib_var=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_lib_$ac_lib_var=no"
8910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8911 echo "$ac_t""yes" 1>&6
8912 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8914 echo "$ac_t""no" 1>&6
8915 athena_lib=$athena_variant
8921 echo "$ac_t""no" 1>&6
8922 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8928 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8929 echo "configure:8930: checking for threeDClassRec in -l$athena_variant" >&5
8930 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8932 xe_check_libs=" -l$athena_variant "
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8939 char threeDClassRec();
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8952 eval "ac_cv_lib_$ac_lib_var=no"
8957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8958 echo "$ac_t""yes" 1>&6
8959 athena_lib=$athena_variant
8961 echo "$ac_t""no" 1>&6
8962 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8963 echo "configure:8964: checking for threeDClassRec in -lXaw" >&5
8964 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8966 xe_check_libs=" -lXaw "
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973 char threeDClassRec();
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8981 eval "ac_cv_lib_$ac_lib_var=yes"
8983 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8986 eval "ac_cv_lib_$ac_lib_var=no"
8991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8992 echo "$ac_t""yes" 1>&6
8994 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8997 echo "$ac_t""no" 1>&6
8998 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9007 if test "$athena_3d" = "no"; then
9008 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9009 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9010 echo "configure:9011: checking for X11/Xaw/ThreeD.h" >&5
9012 cat > conftest.$ac_ext <<EOF
9013 #line 9014 "configure"
9014 #include "confdefs.h"
9015 #include <X11/Xaw/ThreeD.h>
9017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9018 { (eval echo configure:9019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9020 if test -z "$ac_err"; then
9022 eval "ac_cv_header_$ac_safe=yes"
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9028 eval "ac_cv_header_$ac_safe=no"
9031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9035 echo "$ac_t""no" 1>&6
9036 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9037 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9038 echo "configure:9039: checking for X11/Xaw/XawInit.h" >&5
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <X11/Xaw/XawInit.h>
9045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9046 { (eval echo configure:9047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9048 if test -z "$ac_err"; then
9050 eval "ac_cv_header_$ac_safe=yes"
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 eval "ac_cv_header_$ac_safe=no"
9059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 athena_h_path=X11/Xaw
9063 echo "$ac_t""no" 1>&6
9064 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9070 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9071 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9072 echo "configure:9073: checking for X11/$athena_variant/XawInit.h" >&5
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 #include <X11/$athena_variant/XawInit.h>
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082 if test -z "$ac_err"; then
9084 eval "ac_cv_header_$ac_safe=yes"
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9090 eval "ac_cv_header_$ac_safe=no"
9093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9095 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9096 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9097 echo "configure:9098: checking for X11/$athena_variant/ThreeD.h" >&5
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102 #include <X11/$athena_variant/ThreeD.h>
9104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9105 { (eval echo configure:9106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9107 if test -z "$ac_err"; then
9109 eval "ac_cv_header_$ac_safe=yes"
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9115 eval "ac_cv_header_$ac_safe=no"
9118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9119 echo "$ac_t""yes" 1>&6
9120 athena_h_path=X11/$athena_variant
9122 echo "$ac_t""no" 1>&6
9126 echo "$ac_t""no" 1>&6
9130 if test -z "$athena_h_path"; then
9131 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9132 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9133 echo "configure:9134: checking for $athena_variant/XawInit.h" >&5
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 #include <$athena_variant/XawInit.h>
9140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9141 { (eval echo configure:9142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9143 if test -z "$ac_err"; then
9145 eval "ac_cv_header_$ac_safe=yes"
9148 echo "configure: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9151 eval "ac_cv_header_$ac_safe=no"
9154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9155 echo "$ac_t""yes" 1>&6
9156 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9157 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9158 echo "configure:9159: checking for $athena_variant/ThreeD.h" >&5
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 #include <$athena_variant/ThreeD.h>
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9170 eval "ac_cv_header_$ac_safe=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_header_$ac_safe=no"
9179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 athena_h_path=$athena_variant
9183 echo "$ac_t""no" 1>&6
9187 echo "$ac_t""no" 1>&6
9192 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9193 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9194 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9195 echo "configure:9196: checking for X11/Xaw3d/XawInit.h" >&5
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <X11/Xaw3d/XawInit.h>
9202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9203 { (eval echo configure:9204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9205 if test -z "$ac_err"; then
9207 eval "ac_cv_header_$ac_safe=yes"
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 eval "ac_cv_header_$ac_safe=no"
9216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9219 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9220 echo "configure:9221: checking for X11/Xaw3d/ThreeD.h" >&5
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 #include <X11/Xaw3d/ThreeD.h>
9227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9228 { (eval echo configure:9229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9230 if test -z "$ac_err"; then
9232 eval "ac_cv_header_$ac_safe=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_header_$ac_safe=no"
9241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9244 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9245 athena_h_path=X11/Xaw3d
9248 echo "$ac_t""no" 1>&6
9252 echo "$ac_t""no" 1>&6
9257 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9258 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9259 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9260 echo "configure:9261: checking for Xaw3d/XawInit.h" >&5
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9265 #include <Xaw3d/XawInit.h>
9267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9268 { (eval echo configure:9269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9270 if test -z "$ac_err"; then
9272 eval "ac_cv_header_$ac_safe=yes"
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 eval "ac_cv_header_$ac_safe=no"
9281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9282 echo "$ac_t""yes" 1>&6
9283 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9284 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9285 echo "configure:9286: checking for Xaw3d/ThreeD.h" >&5
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <Xaw3d/ThreeD.h>
9292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9293 { (eval echo configure:9294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9295 if test -z "$ac_err"; then
9297 eval "ac_cv_header_$ac_safe=yes"
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9303 eval "ac_cv_header_$ac_safe=no"
9306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9307 echo "$ac_t""yes" 1>&6
9309 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9313 echo "$ac_t""no" 1>&6
9317 echo "$ac_t""no" 1>&6
9322 if test -z "$athena_h_path"; then
9323 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9324 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9325 echo "configure:9326: checking for X11/Xaw/ThreeD.h" >&5
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 #include <X11/Xaw/ThreeD.h>
9332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9333 { (eval echo configure:9334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9335 if test -z "$ac_err"; then
9337 eval "ac_cv_header_$ac_safe=yes"
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9343 eval "ac_cv_header_$ac_safe=no"
9346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9349 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9350 athena_h_path=X11/Xaw
9353 echo "$ac_t""no" 1>&6
9354 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9360 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9369 if test "$with_x11" = "yes"; then
9370 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9371 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9372 echo "configure:9373: checking for Xm/Xm.h" >&5
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9380 { (eval echo configure:9381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9382 if test -z "$ac_err"; then
9384 eval "ac_cv_header_$ac_safe=yes"
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 eval "ac_cv_header_$ac_safe=no"
9393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9396 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9397 echo "configure:9398: checking for XmStringFree in -lXm" >&5
9398 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9400 xe_check_libs=" -lXm "
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407 char XmStringFree();
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 eval "ac_cv_lib_$ac_lib_var=no"
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9426 echo "$ac_t""yes" 1>&6
9429 echo "$ac_t""no" 1>&6
9435 echo "$ac_t""no" 1>&6
9440 if test "$have_motif" = "yes"; then
9441 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9442 echo "configure:9443: checking for Lesstif" >&5
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9447 #ifdef LESSTIF_VERSION
9452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9453 egrep "yes" >/dev/null 2>&1; then
9462 echo "$ac_t""$have_lesstif" 1>&6
9467 case "$with_menubars" in "" | "yes" | "athena" )
9468 with_menubars="lucid" ;;
9470 case "$with_dialogs" in "" | "yes" | "lucid" )
9471 if test "$have_motif" = "yes"; then with_dialogs="motif"
9472 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9473 else with_dialogs=no
9476 case "$with_scrollbars" in "" | "yes" )
9477 with_scrollbars="lucid" ;;
9479 case "$with_widgets" in "" | "yes" | "lucid")
9480 if test "$have_motif" = "yes"; then with_widgets="motif"
9481 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9482 else with_widgets=no
9486 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9488 case "$all_widgets" in
9490 if test "$have_xaw" != "yes"; then
9491 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9494 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9496 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9498 { test "$extra_verbose" = "yes" && cat << EOF
9499 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9501 cat >> confdefs.h <<EOF
9502 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9506 { test "$extra_verbose" = "yes" && cat << EOF
9507 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9509 cat >> confdefs.h <<EOF
9510 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9514 { test "$extra_verbose" = "yes" && cat << EOF
9515 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9517 cat >> confdefs.h <<EOF
9518 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9522 { test "$extra_verbose" = "yes" && cat << EOF
9523 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9525 cat >> confdefs.h <<EOF
9526 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9530 { test "$extra_verbose" = "yes" && cat << EOF
9531 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9533 cat >> confdefs.h <<EOF
9534 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9538 { test "$extra_verbose" = "yes" && cat << EOF
9539 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9541 cat >> confdefs.h <<EOF
9542 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9546 { test "$extra_verbose" = "yes" && cat << EOF
9547 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9549 cat >> confdefs.h <<EOF
9550 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9554 { test "$extra_verbose" = "yes" && cat << EOF
9555 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9557 cat >> confdefs.h <<EOF
9558 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9562 { test "$extra_verbose" = "yes" && cat << EOF
9563 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9565 cat >> confdefs.h <<EOF
9566 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9570 { test "$extra_verbose" = "yes" && cat << EOF
9571 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9573 cat >> confdefs.h <<EOF
9574 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9579 { test "$extra_verbose" = "yes" && cat << \EOF
9580 Defining LWLIB_USES_ATHENA
9582 cat >> confdefs.h <<\EOF
9583 #define LWLIB_USES_ATHENA 1
9587 { test "$extra_verbose" = "yes" && cat << \EOF
9588 Defining NEED_ATHENA
9590 cat >> confdefs.h <<\EOF
9591 #define NEED_ATHENA 1
9597 if test "$athena_3d" = "yes"; then
9598 { test "$extra_verbose" = "yes" && cat << \EOF
9599 Defining HAVE_ATHENA_3D
9601 cat >> confdefs.h <<\EOF
9602 #define HAVE_ATHENA_3D 1
9610 case "$all_widgets" in *motif* )
9611 { test "$extra_verbose" = "yes" && cat << \EOF
9612 Defining LWLIB_USES_MOTIF
9614 cat >> confdefs.h <<\EOF
9615 #define LWLIB_USES_MOTIF 1
9619 { test "$extra_verbose" = "yes" && cat << \EOF
9622 cat >> confdefs.h <<\EOF
9623 #define NEED_MOTIF 1
9627 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9631 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9632 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9633 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9634 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9635 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9636 case "$with_widgets" in athena* )
9637 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;;
9639 case "$all_widgets" in *lucid* )
9640 { test "$extra_verbose" = "yes" && cat << \EOF
9643 cat >> confdefs.h <<\EOF
9644 #define NEED_LUCID 1
9648 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9653 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9654 Defining LWLIB_SCROLLBARS_ATHENA
9656 cat >> confdefs.h <<\EOF
9657 #define LWLIB_SCROLLBARS_ATHENA 1
9661 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9662 Defining LWLIB_DIALOGS_ATHENA
9664 cat >> confdefs.h <<\EOF
9665 #define LWLIB_DIALOGS_ATHENA 1
9670 if test "$athena_3d" = "yes"; then
9671 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9672 Defining LWLIB_SCROLLBARS_ATHENA3D
9674 cat >> confdefs.h <<\EOF
9675 #define LWLIB_SCROLLBARS_ATHENA3D 1
9679 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9680 Defining LWLIB_DIALOGS_ATHENA3D
9682 cat >> confdefs.h <<\EOF
9683 #define LWLIB_DIALOGS_ATHENA3D 1
9689 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9690 Defining LWLIB_WIDGETS_ATHENA
9692 cat >> confdefs.h <<\EOF
9693 #define LWLIB_WIDGETS_ATHENA 1
9697 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9698 { test "$extra_verbose" = "yes" && cat << \EOF
9699 Defining LWLIB_TABS_LUCID
9701 cat >> confdefs.h <<\EOF
9702 #define LWLIB_TABS_LUCID 1
9707 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9708 Defining HAVE_MENUBARS
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_MENUBARS 1
9715 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9716 Defining HAVE_SCROLLBARS
9718 cat >> confdefs.h <<\EOF
9719 #define HAVE_SCROLLBARS 1
9723 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9724 Defining HAVE_DIALOGS
9726 cat >> confdefs.h <<\EOF
9727 #define HAVE_DIALOGS 1
9731 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9732 Defining HAVE_TOOLBARS
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_TOOLBARS 1
9739 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9740 Defining HAVE_WIDGETS
9742 cat >> confdefs.h <<\EOF
9743 #define HAVE_WIDGETS 1
9748 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9749 Defining LWLIB_MENUBARS_LUCID
9751 cat >> confdefs.h <<\EOF
9752 #define LWLIB_MENUBARS_LUCID 1
9756 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9757 Defining LWLIB_SCROLLBARS_LUCID
9759 cat >> confdefs.h <<\EOF
9760 #define LWLIB_SCROLLBARS_LUCID 1
9765 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9766 Defining LWLIB_MENUBARS_MOTIF
9768 cat >> confdefs.h <<\EOF
9769 #define LWLIB_MENUBARS_MOTIF 1
9773 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9774 Defining LWLIB_SCROLLBARS_MOTIF
9776 cat >> confdefs.h <<\EOF
9777 #define LWLIB_SCROLLBARS_MOTIF 1
9781 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9782 Defining LWLIB_DIALOGS_MOTIF
9784 cat >> confdefs.h <<\EOF
9785 #define LWLIB_DIALOGS_MOTIF 1
9789 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9790 Defining LWLIB_WIDGETS_MOTIF
9792 cat >> confdefs.h <<\EOF
9793 #define LWLIB_WIDGETS_MOTIF 1
9798 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9799 echo " xemacs will be linked with \"menubar.o\""
9801 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9802 echo " xemacs will be linked with \"scrollbar.o\""
9804 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9805 echo " xemacs will be linked with \"dialog.o\""
9807 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9808 echo " xemacs will be linked with \"toolbar.o\""
9811 if test "$with_gtk" = "yes"; then
9812 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9813 echo " xemacs will be linked with \"menubar-gtk.o\""
9815 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9816 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9818 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9819 echo " xemacs will be linked with \"dialog-gtk.o\""
9821 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9822 echo " xemacs will be linked with \"toolbar-gtk.o\""
9824 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9825 echo " xemacs will be linked with \"gui-gtk.o\""
9829 if test "$with_x11" = "yes"; then
9830 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9831 echo " xemacs will be linked with \"menubar-x.o\""
9833 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9834 echo " xemacs will be linked with \"scrollbar-x.o\""
9836 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9837 echo " xemacs will be linked with \"dialog-x.o\""
9839 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9840 echo " xemacs will be linked with \"toolbar-x.o\""
9842 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9843 echo " xemacs will be linked with \"gui-x.o\""
9848 test -z "$with_mule" && with_mule=no
9849 test -z "$with_file_coding" && with_file_coding=no
9852 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9853 { test "$extra_verbose" = "yes" && cat << \EOF
9854 Defining FILE_CODING
9856 cat >> confdefs.h <<\EOF
9857 #define FILE_CODING 1
9861 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9862 echo " xemacs will be linked with \"file-coding.o\""
9866 if test "$with_mule" = "yes" ; then
9867 echo "checking for Mule-related features" 1>&6
9868 echo "configure:9869: checking for Mule-related features" >&5
9869 { test "$extra_verbose" = "yes" && cat << \EOF
9872 cat >> confdefs.h <<\EOF
9877 { test "$extra_verbose" = "yes" && cat << \EOF
9878 Defining FILE_CODING
9880 cat >> confdefs.h <<\EOF
9881 #define FILE_CODING 1
9885 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9886 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9889 for ac_hdr in libintl.h
9891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9893 echo "configure:9894: checking for $ac_hdr" >&5
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then
9905 eval "ac_cv_header_$ac_safe=yes"
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 eval "ac_cv_header_$ac_safe=no"
9914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9917 { test "$extra_verbose" = "yes" && cat << EOF
9920 cat >> confdefs.h <<EOF
9921 #define $ac_tr_hdr 1
9926 echo "$ac_t""no" 1>&6
9931 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9932 echo "configure:9933: checking for strerror in -lintl" >&5
9933 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9935 xe_check_libs=" -lintl "
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* Override any gcc2 internal prototype to avoid an error. */
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9950 eval "ac_cv_lib_$ac_lib_var=yes"
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 eval "ac_cv_lib_$ac_lib_var=no"
9960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9961 echo "$ac_t""yes" 1>&6
9962 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9964 { test "$extra_verbose" = "yes" && cat << EOF
9967 cat >> confdefs.h <<EOF
9968 #define $ac_tr_lib 1
9972 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9975 echo "$ac_t""no" 1>&6
9980 echo "checking for Mule input methods" 1>&6
9981 echo "configure:9982: checking for Mule input methods" >&5
9982 case "$with_xim" in "" | "yes" )
9983 echo "checking for XIM" 1>&6
9984 echo "configure:9985: checking for XIM" >&5
9986 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9987 echo "configure:9988: checking for XOpenIM in -lX11" >&5
9988 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9990 xe_check_libs=" -lX11 "
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10005 eval "ac_cv_lib_$ac_lib_var=yes"
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 eval "ac_cv_lib_$ac_lib_var=no"
10015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10016 echo "$ac_t""yes" 1>&6
10019 echo "$ac_t""no" 1>&6
10024 if test "$have_motif $have_lesstif" = "yes no"; then
10026 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10027 echo "configure:10028: checking for XmImMbLookupString in -lXm" >&5
10028 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10030 xe_check_libs=" -lXm "
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10034 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10037 char XmImMbLookupString();
10040 XmImMbLookupString()
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 eval "ac_cv_lib_$ac_lib_var=yes"
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 eval "ac_cv_lib_$ac_lib_var=no"
10055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10056 echo "$ac_t""yes" 1>&6
10059 echo "$ac_t""no" 1>&6
10065 if test "$with_xim" != "no"; then
10066 { test "$extra_verbose" = "yes" && cat << \EOF
10069 cat >> confdefs.h <<\EOF
10074 if test "$with_xim" = "xlib"; then
10075 { test "$extra_verbose" = "yes" && cat << \EOF
10078 cat >> confdefs.h <<\EOF
10083 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10084 echo " xemacs will be linked with \"input-method-xlib.o\""
10087 if test "$with_xim" = "motif"; then
10088 { test "$extra_verbose" = "yes" && cat << \EOF
10091 cat >> confdefs.h <<\EOF
10092 #define XIM_MOTIF 1
10097 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10098 echo " xemacs will be linked with \"input-method-motif.o\""
10101 if test "$with_xim" = "motif"; then
10106 if test "$with_xfs" = "yes" ; then
10107 echo "checking for XFontSet" 1>&6
10108 echo "configure:10109: checking for XFontSet" >&5
10110 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10111 echo "configure:10112: checking for XmbDrawString in -lX11" >&5
10112 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10114 xe_check_libs=" -lX11 "
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char XmbDrawString();
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10129 eval "ac_cv_lib_$ac_lib_var=yes"
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 eval "ac_cv_lib_$ac_lib_var=no"
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10140 echo "$ac_t""yes" 1>&6
10143 echo "$ac_t""no" 1>&6
10148 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10149 { test "$extra_verbose" = "yes" && cat << \EOF
10150 Defining USE_XFONTSET
10152 cat >> confdefs.h <<\EOF
10153 #define USE_XFONTSET 1
10157 if test "$with_xim" = "no" ; then
10158 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10159 echo " xemacs will be linked with \"input-method-xlib.o\""
10164 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10165 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10166 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10167 echo "configure:10168: checking for wnn/jllib.h" >&5
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <wnn/jllib.h>
10174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10175 { (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10177 if test -z "$ac_err"; then
10179 eval "ac_cv_header_$ac_safe=yes"
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 eval "ac_cv_header_$ac_safe=no"
10188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10192 echo "$ac_t""no" 1>&6
10196 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10197 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10198 echo "configure:10199: checking for wnn/commonhd.h" >&5
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <wnn/commonhd.h>
10205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10206 { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10208 if test -z "$ac_err"; then
10210 eval "ac_cv_header_$ac_safe=yes"
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 eval "ac_cv_header_$ac_safe=no"
10219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10223 echo "$ac_t""no" 1>&6
10227 if test "$with_wnn" != "no"; then
10228 for ac_func in crypt
10230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10231 echo "configure:10232: checking for $ac_func" >&5
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func(); below. */
10238 #include <assert.h>
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10246 /* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10257 if { (eval echo configure:10258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10259 eval "ac_cv_func_$ac_func=yes"
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10264 eval "ac_cv_func_$ac_func=no"
10268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10269 echo "$ac_t""yes" 1>&6
10270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10271 { test "$extra_verbose" = "yes" && cat << EOF
10272 Defining $ac_tr_func
10274 cat >> confdefs.h <<EOF
10275 #define $ac_tr_func 1
10280 echo "$ac_t""no" 1>&6
10284 test "$ac_cv_func_crypt" != "yes" && {
10285 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10286 echo "configure:10287: checking for crypt in -lcrypt" >&5
10287 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10289 xe_check_libs=" -lcrypt "
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10302 if { (eval echo configure:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10304 eval "ac_cv_lib_$ac_lib_var=yes"
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 eval "ac_cv_lib_$ac_lib_var=no"
10314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10315 echo "$ac_t""yes" 1>&6
10316 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10318 { test "$extra_verbose" = "yes" && cat << EOF
10319 Defining $ac_tr_lib
10321 cat >> confdefs.h <<EOF
10322 #define $ac_tr_lib 1
10326 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10329 echo "$ac_t""no" 1>&6
10334 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10336 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10337 echo "configure:10338: checking for jl_dic_list_e in -lwnn" >&5
10338 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10340 xe_check_libs=" -lwnn "
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 /* Override any gcc2 internal prototype to avoid an error. */
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10347 char jl_dic_list_e();
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10355 eval "ac_cv_lib_$ac_lib_var=yes"
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 eval "ac_cv_lib_$ac_lib_var=no"
10365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10366 echo "$ac_t""yes" 1>&6
10369 echo "$ac_t""no" 1>&6
10370 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10371 echo "configure:10372: checking for jl_dic_list_e in -lwnn4" >&5
10372 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10374 xe_check_libs=" -lwnn4 "
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 /* Override any gcc2 internal prototype to avoid an error. */
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381 char jl_dic_list_e();
10387 if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 eval "ac_cv_lib_$ac_lib_var=yes"
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 eval "ac_cv_lib_$ac_lib_var=no"
10399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10400 echo "$ac_t""yes" 1>&6
10403 echo "$ac_t""no" 1>&6
10404 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10405 echo "configure:10406: checking for jl_dic_list_e in -lwnn6" >&5
10406 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10408 xe_check_libs=" -lwnn6 "
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10415 char jl_dic_list_e();
10421 if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423 eval "ac_cv_lib_$ac_lib_var=yes"
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 eval "ac_cv_lib_$ac_lib_var=no"
10433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10434 echo "$ac_t""yes" 1>&6
10437 echo "$ac_t""no" 1>&6
10438 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10439 echo "configure:10440: checking for dic_list_e in -lwnn6_fromsrc" >&5
10440 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10442 xe_check_libs=" -lwnn6_fromsrc "
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10455 if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10457 eval "ac_cv_lib_$ac_lib_var=yes"
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 eval "ac_cv_lib_$ac_lib_var=no"
10467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10468 echo "$ac_t""yes" 1>&6
10469 libwnn=wnn6_fromsrc
10471 echo "$ac_t""no" 1>&6
10486 test -z "$with_wnn" && with_wnn=yes
10487 if test "$with_wnn" = "yes"; then
10488 { test "$extra_verbose" = "yes" && cat << \EOF
10491 cat >> confdefs.h <<\EOF
10496 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10497 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10498 echo " xemacs will be linked with \"mule-wnnfns.o\""
10500 if test "$with_wnn6" != "no"; then
10502 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10503 echo "configure:10504: checking for jl_fi_dic_list in -l$libwnn" >&5
10504 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10506 xe_check_libs=" -l$libwnn "
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10513 char jl_fi_dic_list();
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10521 eval "ac_cv_lib_$ac_lib_var=yes"
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10526 eval "ac_cv_lib_$ac_lib_var=no"
10531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10532 echo "$ac_t""yes" 1>&6
10535 echo "$ac_t""no" 1>&6
10539 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10542 cat >> confdefs.h <<\EOF
10550 canna_includes_found=no
10551 if test "$with_canna" != "no"; then
10552 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10553 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10554 echo "configure:10555: checking for canna/jrkanji.h" >&5
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 #include <canna/jrkanji.h>
10561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10562 { (eval echo configure:10563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10564 if test -z "$ac_err"; then
10566 eval "ac_cv_header_$ac_safe=yes"
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10572 eval "ac_cv_header_$ac_safe=no"
10575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10577 canna_includes_found=yes
10579 echo "$ac_t""no" 1>&6
10583 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10584 -d "/usr/local/canna/include"; then
10585 save_c_switch_site="$c_switch_site"
10586 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10587 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10588 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10589 echo "configure:10590: checking for canna/jrkanji.h" >&5
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 #include <canna/jrkanji.h>
10596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10597 { (eval echo configure:10598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10599 if test -z "$ac_err"; then
10601 eval "ac_cv_header_$ac_safe=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_header_$ac_safe=no"
10610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10611 echo "$ac_t""yes" 1>&6
10612 canna_includes_found=yes
10614 echo "$ac_t""no" 1>&6
10617 if test "$canna_includes_found" != "yes"; then
10618 c_switch_site="$save_c_switch_site"
10623 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10624 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10625 echo "configure:10626: checking for canna/RK.h" >&5
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <canna/RK.h>
10632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10633 { (eval echo configure:10634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10635 if test -z "$ac_err"; then
10637 eval "ac_cv_header_$ac_safe=yes"
10640 echo "configure: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10643 eval "ac_cv_header_$ac_safe=no"
10646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10650 echo "$ac_t""no" 1>&6
10654 test -z "$with_canna" && {
10655 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10656 echo "configure:10657: checking for RkBgnBun in -lRKC" >&5
10657 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10659 xe_check_libs=" -lRKC "
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 /* Override any gcc2 internal prototype to avoid an error. */
10664 /* We use char because int might match the return type of a gcc2
10665 builtin and then its argument prototype would still apply. */
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10674 eval "ac_cv_lib_$ac_lib_var=yes"
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 eval "ac_cv_lib_$ac_lib_var=no"
10684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10685 echo "$ac_t""yes" 1>&6
10688 echo "$ac_t""no" 1>&6
10693 test -z "$with_canna" && {
10694 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10695 echo "configure:10696: checking for jrKanjiControl in -lcanna" >&5
10696 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10698 xe_check_libs=" -lcanna "
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 /* Override any gcc2 internal prototype to avoid an error. */
10703 /* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705 char jrKanjiControl();
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713 eval "ac_cv_lib_$ac_lib_var=yes"
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10718 eval "ac_cv_lib_$ac_lib_var=no"
10723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10724 echo "$ac_t""yes" 1>&6
10727 echo "$ac_t""no" 1>&6
10732 test -z "$with_canna" && with_canna=yes
10733 if test "$with_canna" = "yes"; then
10734 { test "$extra_verbose" = "yes" && cat << \EOF
10735 Defining HAVE_CANNA
10737 cat >> confdefs.h <<\EOF
10738 #define HAVE_CANNA 1
10742 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10743 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10744 echo " xemacs will be linked with \"mule-canna.o\""
10748 else for feature in xim canna wnn; do
10749 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10750 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10752 eval "with_${feature}=no"
10756 if test "$need_motif" = "yes" ; then
10757 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10759 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10760 echo "configure:10761: checking for layout_object_getvalue in -li18n" >&5
10761 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10763 xe_check_libs=" -li18n "
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char layout_object_getvalue();
10773 layout_object_getvalue()
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 eval "ac_cv_lib_$ac_lib_var=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_lib_$ac_lib_var=no"
10788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10789 echo "$ac_t""yes" 1>&6
10790 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10792 echo "$ac_t""no" 1>&6
10797 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10798 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10799 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10801 runpath="" runpath_dirs=""
10802 if test -n "$LD_RUN_PATH"; then
10803 runpath="$LD_RUN_PATH"
10804 elif test "$GCC" = "yes"; then
10805 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10806 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10807 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10808 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10809 case "$arg" in P,* | -L* | -R* )
10810 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10812 xe_runpath_dir="$dir"
10813 test "$xe_runpath_dir" != "/lib" -a \
10814 "$xe_runpath_dir" != "/usr/lib" -a \
10815 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10816 eval "$xe_add_unique_runpath_dir"
10821 ld_switch_run="$ld_switch_run_save"
10824 for arg in $ld_switch_site $ld_switch_x_site; do
10825 case "$arg" in -L*) {
10826 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10827 test "$xe_runpath_dir" != "/lib" -a \
10828 "$xe_runpath_dir" != "/usr/lib" -a \
10829 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10830 eval "$xe_add_unique_runpath_dir"
10833 if test "$opsys $need_motif" = "sol2 yes"; then
10834 xe_runpath_dir="/opt/SUNWdt/lib";
10835 eval "$xe_add_unique_runpath_dir";
10838 if test -n "$runpath"; then
10839 ld_switch_run="${dash_r}${runpath}"
10841 if test "$GCC" = "yes"; then
10842 set x $ld_switch_run; shift; ld_switch_run=""
10843 while test -n "$1"; do
10845 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10846 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10848 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10853 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10859 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
10861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10862 echo "configure:10863: checking for $ac_func" >&5
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func(); below. */
10869 #include <assert.h>
10870 /* Override any gcc2 internal prototype to avoid an error. */
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10877 /* The GNU C library defines this for functions which it implements
10878 to always fail with ENOSYS. Some functions are actually named
10879 something starting with __ and the normal name is an alias. */
10880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10888 if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10890 eval "ac_cv_func_$ac_func=yes"
10892 echo "configure: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10895 eval "ac_cv_func_$ac_func=no"
10899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10900 echo "$ac_t""yes" 1>&6
10901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10902 { test "$extra_verbose" = "yes" && cat << EOF
10903 Defining $ac_tr_func
10905 cat >> confdefs.h <<EOF
10906 #define $ac_tr_func 1
10911 echo "$ac_t""no" 1>&6
10917 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10920 echo "configure:10921: checking for $ac_func" >&5
10922 cat > conftest.$ac_ext <<EOF
10923 #line 10924 "configure"
10924 #include "confdefs.h"
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char $ac_func(); below. */
10927 #include <assert.h>
10928 /* Override any gcc2 internal prototype to avoid an error. */
10929 /* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10935 /* The GNU C library defines this for functions which it implements
10936 to always fail with ENOSYS. Some functions are actually named
10937 something starting with __ and the normal name is an alias. */
10938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10946 if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10948 eval "ac_cv_func_$ac_func=yes"
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10953 eval "ac_cv_func_$ac_func=no"
10957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10960 { test "$extra_verbose" = "yes" && cat << EOF
10961 Defining $ac_tr_func
10963 cat >> confdefs.h <<EOF
10964 #define $ac_tr_func 1
10969 echo "$ac_t""no" 1>&6
10974 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10975 echo "configure:10976: checking for openpty" >&5
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 /* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char openpty(); below. */
10982 #include <assert.h>
10983 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined (__stub_openpty) || defined (__stub___openpty)
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 eval "ac_cv_func_openpty=yes"
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 eval "ac_cv_func_openpty=no"
11012 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11013 echo "$ac_t""yes" 1>&6
11016 echo "$ac_t""no" 1>&6
11019 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11020 echo "configure:11021: checking for openpty in -lutil" >&5
11021 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11023 xe_check_libs=" -lutil "
11024 cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11027 /* Override any gcc2 internal prototype to avoid an error. */
11028 /* We use char because int might match the return type of a gcc2
11029 builtin and then its argument prototype would still apply. */
11036 if { (eval echo configure:11037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11038 eval "ac_cv_lib_$ac_lib_var=yes"
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11043 eval "ac_cv_lib_$ac_lib_var=no"
11048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11049 echo "$ac_t""yes" 1>&6
11050 have_openpty=yes need_libutil=yes
11052 echo "$ac_t""no" 1>&6
11058 if test "$have_openpty" = "yes"; then
11059 { test "$extra_verbose" = "yes" && cat << \EOF
11060 Defining HAVE_OPENPTY
11062 cat >> confdefs.h <<\EOF
11063 #define HAVE_OPENPTY 1
11067 for ac_hdr in pty.h libutil.h util.h
11069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11071 echo "configure:11072: checking for $ac_hdr" >&5
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11079 { (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11081 if test -z "$ac_err"; then
11083 eval "ac_cv_header_$ac_safe=yes"
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11089 eval "ac_cv_header_$ac_safe=no"
11092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11095 { test "$extra_verbose" = "yes" && cat << EOF
11096 Defining $ac_tr_hdr
11098 cat >> confdefs.h <<EOF
11099 #define $ac_tr_hdr 1
11104 echo "$ac_t""no" 1>&6
11108 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11111 for ac_hdr in stropts.h
11113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11115 echo "configure:11116: checking for $ac_hdr" >&5
11117 cat > conftest.$ac_ext <<EOF
11118 #line 11119 "configure"
11119 #include "confdefs.h"
11122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11123 { (eval echo configure:11124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11125 if test -z "$ac_err"; then
11127 eval "ac_cv_header_$ac_safe=yes"
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11133 eval "ac_cv_header_$ac_safe=no"
11136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11139 { test "$extra_verbose" = "yes" && cat << EOF
11140 Defining $ac_tr_hdr
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_hdr 1
11148 echo "$ac_t""no" 1>&6
11152 if test "$ac_cv_header_stropts_h" = "yes"; then
11153 for ac_func in isastream
11155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11156 echo "configure:11157: checking for $ac_func" >&5
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 /* System header to define __stub macros and hopefully few prototypes,
11162 which can conflict with char $ac_func(); below. */
11163 #include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error. */
11165 /* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11171 /* The GNU C library defines this for functions which it implements
11172 to always fail with ENOSYS. Some functions are actually named
11173 something starting with __ and the normal name is an alias. */
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11184 eval "ac_cv_func_$ac_func=yes"
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11189 eval "ac_cv_func_$ac_func=no"
11193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11196 { test "$extra_verbose" = "yes" && cat << EOF
11197 Defining $ac_tr_func
11199 cat >> confdefs.h <<EOF
11200 #define $ac_tr_func 1
11205 echo "$ac_t""no" 1>&6
11209 for ac_hdr in strtio.h
11211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11213 echo "configure:11214: checking for $ac_hdr" >&5
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11221 { (eval echo configure:11222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11223 if test -z "$ac_err"; then
11225 eval "ac_cv_header_$ac_safe=yes"
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11231 eval "ac_cv_header_$ac_safe=no"
11234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11237 { test "$extra_verbose" = "yes" && cat << EOF
11238 Defining $ac_tr_hdr
11240 cat >> confdefs.h <<EOF
11241 #define $ac_tr_hdr 1
11246 echo "$ac_t""no" 1>&6
11251 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11252 echo " xemacs will be linked with \"realpath.o\""
11255 for ac_func in getloadavg
11257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11258 echo "configure:11259: checking for $ac_func" >&5
11260 cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure"
11262 #include "confdefs.h"
11263 /* System header to define __stub macros and hopefully few prototypes,
11264 which can conflict with char $ac_func(); below. */
11265 #include <assert.h>
11266 /* Override any gcc2 internal prototype to avoid an error. */
11267 /* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11273 /* The GNU C library defines this for functions which it implements
11274 to always fail with ENOSYS. Some functions are actually named
11275 something starting with __ and the normal name is an alias. */
11276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11286 eval "ac_cv_func_$ac_func=yes"
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11291 eval "ac_cv_func_$ac_func=no"
11295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11296 echo "$ac_t""yes" 1>&6
11297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11298 { test "$extra_verbose" = "yes" && cat << EOF
11299 Defining $ac_tr_func
11301 cat >> confdefs.h <<EOF
11302 #define $ac_tr_func 1
11307 echo "$ac_t""no" 1>&6
11312 if test "$ac_cv_func_getloadavg" = "yes"; then
11313 for ac_hdr in sys/loadavg.h
11315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11317 echo "configure:11318: checking for $ac_hdr" >&5
11319 cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11325 { (eval echo configure:11326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11327 if test -z "$ac_err"; then
11329 eval "ac_cv_header_$ac_safe=yes"
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11335 eval "ac_cv_header_$ac_safe=no"
11338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11339 echo "$ac_t""yes" 1>&6
11340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11341 { test "$extra_verbose" = "yes" && cat << EOF
11342 Defining $ac_tr_hdr
11344 cat >> confdefs.h <<EOF
11345 #define $ac_tr_hdr 1
11350 echo "$ac_t""no" 1>&6
11355 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11356 echo " xemacs will be linked with \"getloadavg.o\""
11360 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11361 echo "configure:11362: checking for kstat_open in -lkstat" >&5
11362 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11364 xe_check_libs=" -lkstat "
11365 cat > conftest.$ac_ext <<EOF
11366 #line 11367 "configure"
11367 #include "confdefs.h"
11368 /* Override any gcc2 internal prototype to avoid an error. */
11369 /* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11377 if { (eval echo configure:11378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11379 eval "ac_cv_lib_$ac_lib_var=yes"
11381 echo "configure: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11384 eval "ac_cv_lib_$ac_lib_var=no"
11389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11390 echo "$ac_t""yes" 1>&6
11391 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11393 { test "$extra_verbose" = "yes" && cat << EOF
11394 Defining $ac_tr_lib
11396 cat >> confdefs.h <<EOF
11397 #define $ac_tr_lib 1
11401 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11404 echo "$ac_t""no" 1>&6
11408 for ac_hdr in kstat.h
11410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11412 echo "configure:11413: checking for $ac_hdr" >&5
11414 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11420 { (eval echo configure:11421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11422 if test -z "$ac_err"; then
11424 eval "ac_cv_header_$ac_safe=yes"
11427 echo "configure: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11430 eval "ac_cv_header_$ac_safe=no"
11433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11434 echo "$ac_t""yes" 1>&6
11435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11436 { test "$extra_verbose" = "yes" && cat << EOF
11437 Defining $ac_tr_hdr
11439 cat >> confdefs.h <<EOF
11440 #define $ac_tr_hdr 1
11445 echo "$ac_t""no" 1>&6
11451 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11452 echo "configure:11453: checking for kvm_read in -lkvm" >&5
11453 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11455 xe_check_libs=" -lkvm "
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 /* Override any gcc2 internal prototype to avoid an error. */
11460 /* We use char because int might match the return type of a gcc2
11461 builtin and then its argument prototype would still apply. */
11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470 eval "ac_cv_lib_$ac_lib_var=yes"
11472 echo "configure: failed program was:" >&5
11473 cat conftest.$ac_ext >&5
11475 eval "ac_cv_lib_$ac_lib_var=no"
11480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11481 echo "$ac_t""yes" 1>&6
11482 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11484 { test "$extra_verbose" = "yes" && cat << EOF
11485 Defining $ac_tr_lib
11487 cat >> confdefs.h <<EOF
11488 #define $ac_tr_lib 1
11492 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11495 echo "$ac_t""no" 1>&6
11501 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11502 echo "configure:11503: checking whether netdb declares h_errno" >&5
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11513 echo "$ac_t""yes" 1>&6
11514 { test "$extra_verbose" = "yes" && cat << \EOF
11515 Defining HAVE_H_ERRNO
11517 cat >> confdefs.h <<\EOF
11518 #define HAVE_H_ERRNO 1
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11526 echo "$ac_t""no" 1>&6
11530 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11531 echo "configure:11532: checking for sigsetjmp" >&5
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 #include <setjmp.h>
11537 sigjmp_buf bar; sigsetjmp (bar, 0);
11540 if { (eval echo configure:11541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11542 echo "$ac_t""yes" 1>&6
11543 { test "$extra_verbose" = "yes" && cat << \EOF
11544 Defining HAVE_SIGSETJMP
11546 cat >> confdefs.h <<\EOF
11547 #define HAVE_SIGSETJMP 1
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11555 echo "$ac_t""no" 1>&6
11559 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11560 echo "configure:11561: checking whether localtime caches TZ" >&5
11562 if test "$ac_cv_func_tzset" = "yes"; then
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11568 # include <stdlib.h>
11570 extern char **environ;
11574 for (to = from = environ; (*to = *from); from++)
11575 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11578 char TZ_GMT0[] = "TZ=GMT0";
11579 char TZ_PST8[] = "TZ=PST8";
11582 time_t now = time ((time_t *) 0);
11583 int hour_GMT0, hour_unset;
11584 if (putenv (TZ_GMT0) != 0)
11586 hour_GMT0 = localtime (&now)->tm_hour;
11588 hour_unset = localtime (&now)->tm_hour;
11589 if (putenv (TZ_PST8) != 0)
11591 if (localtime (&now)->tm_hour == hour_GMT0)
11594 if (localtime (&now)->tm_hour != hour_unset)
11599 if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11601 emacs_cv_localtime_cache=no
11604 echo "configure: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11607 emacs_cv_localtime_cache=yes
11611 # If we lack tzset, report that localtime does not cache TZ,
11612 # since we can't invalidate the cache if we don't have tzset.
11613 emacs_cv_localtime_cache=no
11615 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11616 if test $emacs_cv_localtime_cache = yes; then
11617 { test "$extra_verbose" = "yes" && cat << \EOF
11618 Defining LOCALTIME_CACHE
11620 cat >> confdefs.h <<\EOF
11621 #define LOCALTIME_CACHE 1
11627 if test "$HAVE_TIMEVAL" = "yes"; then
11628 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11629 echo "configure:11630: checking whether gettimeofday accepts one or two arguments" >&5
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11634 #ifdef TIME_WITH_SYS_TIME
11635 #include <sys/time.h>
11638 #ifdef HAVE_SYS_TIME_H
11639 #include <sys/time.h>
11647 struct timeval time;
11648 gettimeofday (&time, 0);
11652 if { (eval echo configure:11653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11654 echo "$ac_t""two" 1>&6
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11659 echo "$ac_t""one" 1>&6
11660 { test "$extra_verbose" = "yes" && cat << \EOF
11661 Defining GETTIMEOFDAY_ONE_ARGUMENT
11663 cat >> confdefs.h <<\EOF
11664 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11673 echo $ac_n "checking for inline""... $ac_c" 1>&6
11674 echo "configure:11675: checking for inline" >&5
11677 for ac_kw in inline __inline__ __inline; do
11678 cat > conftest.$ac_ext <<EOF
11679 #line 11680 "configure"
11680 #include "confdefs.h"
11686 if { (eval echo configure:11687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11688 ac_cv_c_inline=$ac_kw; break
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11697 echo "$ac_t""$ac_cv_c_inline" 1>&6
11698 case "$ac_cv_c_inline" in
11700 no) { test "$extra_verbose" = "yes" && cat << \EOF
11703 cat >> confdefs.h <<\EOF
11708 *) { test "$extra_verbose" = "yes" && cat << EOF
11709 Defining inline = $ac_cv_c_inline
11711 cat >> confdefs.h <<EOF
11712 #define inline $ac_cv_c_inline
11718 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11719 echo " xemacs will be linked with \"inline.o\""
11723 if test "$__DECC" != "yes"; then
11724 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11725 # for constant arguments. Useless!
11726 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11727 echo "configure:11728: checking for working alloca.h" >&5
11729 cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11732 #include <alloca.h>
11734 char *p = alloca(2 * sizeof(int));
11737 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11739 ac_cv_header_alloca_h=yes
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11744 ac_cv_header_alloca_h=no
11748 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11749 if test $ac_cv_header_alloca_h = yes; then
11750 { test "$extra_verbose" = "yes" && cat << \EOF
11751 Defining HAVE_ALLOCA_H
11753 cat >> confdefs.h <<\EOF
11754 #define HAVE_ALLOCA_H 1
11760 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11761 echo "configure:11762: checking for alloca" >&5
11763 cat > conftest.$ac_ext <<EOF
11764 #line 11765 "configure"
11765 #include "confdefs.h"
11768 # define alloca __builtin_alloca
11771 # include <malloc.h>
11772 # define alloca _alloca
11775 # include <alloca.h>
11780 # ifndef alloca /* predefined by HP cc +Olibcalls */
11789 char *p = (char *) alloca(1);
11792 if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11794 ac_cv_func_alloca_works=yes
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 ac_cv_func_alloca_works=no
11803 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11804 if test $ac_cv_func_alloca_works = yes; then
11805 { test "$extra_verbose" = "yes" && cat << \EOF
11806 Defining HAVE_ALLOCA
11808 cat >> confdefs.h <<\EOF
11809 #define HAVE_ALLOCA 1
11815 if test $ac_cv_func_alloca_works = no; then
11816 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11817 # that cause trouble. Some versions do not even contain alloca or
11818 # contain a buggy version. If you still want to use their alloca,
11819 # use ar to extract alloca.o from them instead of compiling alloca.c.
11820 ALLOCA=alloca.${ac_objext}
11821 { test "$extra_verbose" = "yes" && cat << \EOF
11824 cat >> confdefs.h <<\EOF
11830 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11831 echo "configure:11832: checking whether alloca needs Cray hooks" >&5
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #if defined(CRAY) && ! defined(CRAY2)
11843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11844 egrep "webecray" >/dev/null 2>&1; then
11854 echo "$ac_t""$ac_cv_os_cray" 1>&6
11855 if test $ac_cv_os_cray = yes; then
11856 for ac_func in _getb67 GETB67 getb67; do
11857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11858 echo "configure:11859: checking for $ac_func" >&5
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func(); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11873 /* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886 eval "ac_cv_func_$ac_func=yes"
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11891 eval "ac_cv_func_$ac_func=no"
11895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11896 echo "$ac_t""yes" 1>&6
11897 { test "$extra_verbose" = "yes" && cat << EOF
11898 Defining CRAY_STACKSEG_END = $ac_func
11900 cat >> confdefs.h <<EOF
11901 #define CRAY_STACKSEG_END $ac_func
11907 echo "$ac_t""no" 1>&6
11913 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11914 echo "configure:11915: checking stack direction for C alloca" >&5
11916 cat > conftest.$ac_ext <<EOF
11917 #line 11918 "configure"
11918 #include "confdefs.h"
11919 find_stack_direction ()
11921 static char *addr = 0;
11926 return find_stack_direction ();
11929 return (&dummy > addr) ? 1 : -1;
11933 exit (find_stack_direction() < 0);
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11938 ac_cv_c_stack_direction=1
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 ac_cv_c_stack_direction=-1
11948 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11949 { test "$extra_verbose" = "yes" && cat << EOF
11950 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11952 cat >> confdefs.h <<EOF
11953 #define STACK_DIRECTION $ac_cv_c_stack_direction
11959 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11960 echo " xemacs will be linked with \"$ALLOCA\""
11964 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11965 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11966 echo "configure:11967: checking for vfork.h" >&5
11968 cat > conftest.$ac_ext <<EOF
11969 #line 11970 "configure"
11970 #include "confdefs.h"
11973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11974 { (eval echo configure:11975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11976 if test -z "$ac_err"; then
11978 eval "ac_cv_header_$ac_safe=yes"
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11984 eval "ac_cv_header_$ac_safe=no"
11987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11988 echo "$ac_t""yes" 1>&6
11989 { test "$extra_verbose" = "yes" && cat << \EOF
11990 Defining HAVE_VFORK_H
11992 cat >> confdefs.h <<\EOF
11993 #define HAVE_VFORK_H 1
11998 echo "$ac_t""no" 1>&6
12001 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12002 echo "configure:12003: checking for working vfork" >&5
12004 cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007 /* Thanks to Paul Eggert for this test. */
12009 #include <sys/types.h>
12010 #include <sys/stat.h>
12011 #ifdef HAVE_UNISTD_H
12012 #include <unistd.h>
12014 #ifdef HAVE_VFORK_H
12017 /* On some sparc systems, changes by the child to local and incoming
12018 argument registers are propagated back to the parent.
12019 The compiler is told about this with #include <vfork.h>,
12020 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12021 Test for this by using a static variable whose address
12022 is put into a register that is clobbered by the vfork. */
12025 sparc_address_test (int arg)
12027 sparc_address_test (arg) int arg;
12030 static pid_t child;
12045 pid_t parent = getpid ();
12048 sparc_address_test ();
12053 /* Here is another test for sparc vfork register problems.
12054 This test uses lots of local variables, at least
12055 as many local variables as main has allocated so far
12056 including compiler temporaries. 4 locals are enough for
12057 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12058 A buggy compiler should reuse the register of parent
12059 for one of the local variables, since it will think that
12060 parent can't possibly be used any more in this routine.
12061 Assigning to the local variable will thus munge parent
12062 in the parent process. */
12064 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12065 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12066 /* Convince the compiler that p..p7 are live; otherwise, it might
12067 use the same hardware register for all 8 local variables. */
12068 if (p != p1 || p != p2 || p != p3 || p != p4
12069 || p != p5 || p != p6 || p != p7)
12072 /* On some systems (e.g. IRIX 3.3),
12073 vfork doesn't separate parent from child file descriptors.
12074 If the child closes a descriptor before it execs or exits,
12075 this munges the parent's descriptor as well.
12076 Test for this by closing stdout in the child. */
12077 _exit(close(fileno(stdout)) != 0);
12082 while (wait(&status) != child)
12085 /* Was there some problem with vforking? */
12088 /* Did the child fail? (This shouldn't happen.) */
12091 /* Did the vfork/compiler bug occur? */
12092 || parent != getpid()
12094 /* Did the file descriptor bug occur? */
12095 || fstat(fileno(stdout), &st) != 0
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12102 ac_cv_func_vfork_works=yes
12105 echo "configure: failed program was:" >&5
12106 cat conftest.$ac_ext >&5
12108 ac_cv_func_vfork_works=no
12112 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12113 if test $ac_cv_func_vfork_works = no; then
12114 { test "$extra_verbose" = "yes" && cat << \EOF
12115 Defining vfork = fork
12117 cat >> confdefs.h <<\EOF
12125 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12126 echo "configure:12127: checking for working strcoll" >&5
12128 cat > conftest.$ac_ext <<EOF
12129 #line 12130 "configure"
12130 #include "confdefs.h"
12131 #include <string.h>
12134 exit (strcoll ("abc", "def") >= 0 ||
12135 strcoll ("ABC", "DEF") >= 0 ||
12136 strcoll ("123", "456") >= 0);
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12141 ac_cv_func_strcoll_works=yes
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12147 ac_cv_func_strcoll_works=no
12151 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12152 if test $ac_cv_func_strcoll_works = yes; then
12153 { test "$extra_verbose" = "yes" && cat << \EOF
12154 Defining HAVE_STRCOLL
12156 cat >> confdefs.h <<\EOF
12157 #define HAVE_STRCOLL 1
12164 for ac_func in getpgrp
12166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_func" >&5
12169 cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 /* System header to define __stub macros and hopefully few prototypes,
12173 which can conflict with char $ac_func(); below. */
12174 #include <assert.h>
12175 /* Override any gcc2 internal prototype to avoid an error. */
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12182 /* The GNU C library defines this for functions which it implements
12183 to always fail with ENOSYS. Some functions are actually named
12184 something starting with __ and the normal name is an alias. */
12185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12195 eval "ac_cv_func_$ac_func=yes"
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 eval "ac_cv_func_$ac_func=no"
12204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12205 echo "$ac_t""yes" 1>&6
12206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12207 { test "$extra_verbose" = "yes" && cat << EOF
12208 Defining $ac_tr_func
12210 cat >> confdefs.h <<EOF
12211 #define $ac_tr_func 1
12216 echo "$ac_t""no" 1>&6
12220 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12221 echo "configure:12222: checking whether getpgrp takes no argument" >&5
12223 cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12228 * If this system has a BSD-style getpgrp(),
12229 * which takes a pid argument, exit unsuccessfully.
12231 * Snarfed from Chet Ramey's bash pgrp.c test program
12234 #include <sys/types.h>
12237 int pg1, pg2, pg3, pg4;
12238 int ng, np, s, child;
12245 pg3 = getpgrp(pid);
12249 * If all of these values are the same, it's pretty sure that
12250 * we're on a system that ignores getpgrp's first argument.
12252 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12258 else if (child == 0) {
12261 * If this is Sys V, this will not work; pgrp will be
12262 * set to np because setpgrp just changes a pgrp to be
12263 * the same as the pid.
12266 ng = getpgrp(0); /* Same result for Sys V and BSD */
12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12281 ac_cv_func_getpgrp_void=yes
12284 echo "configure: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12287 ac_cv_func_getpgrp_void=no
12292 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12293 if test $ac_cv_func_getpgrp_void = yes; then
12294 { test "$extra_verbose" = "yes" && cat << \EOF
12295 Defining GETPGRP_VOID
12297 cat >> confdefs.h <<\EOF
12298 #define GETPGRP_VOID 1
12305 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12306 echo "configure:12307: checking for working mmap" >&5
12307 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12308 cat > conftest.$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12312 #include <unistd.h>
12314 #include <sys/mman.h>
12316 #ifndef MAP_VARIABLE
12317 #define MAP_VARIABLE 0
12321 #define MAP_FAILED -1
12324 int main (int argc, char *argv[])
12328 #ifndef MAP_ANONYMOUS
12329 fd = open ("/dev/zero", O_RDWR);
12332 #define MAP_ANONYMOUS 0
12334 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12335 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12336 fd, 0) != (void *) MAP_FAILED)
12338 perror ("conftest: mmap failed");
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12352 rm -fr conftest* ;;
12354 echo "$ac_t""$have_mmap" 1>&6
12355 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12358 cat >> confdefs.h <<\EOF
12359 #define HAVE_MMAP 1
12364 case "$opsys" in cygwin*)
12365 test "$rel_alloc" = "default" && rel_alloc=no ;;
12367 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12368 if test "$rel_alloc $have_mmap" = "default yes"; then
12369 if test "$doug_lea_malloc" = "yes"; then
12370 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12371 echo "configure:12372: checking for M_MMAP_THRESHOLD" >&5
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375 #include <malloc.h>
12378 #ifndef M_MMAP_THRESHOLD
12379 #error No M_MMAP_THRESHOLD :-(
12380 !@+$%^&*_)(_ - unlikely to compile...
12385 if { (eval echo configure:12386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12387 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12392 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12399 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12402 cat >> confdefs.h <<\EOF
12403 #define REL_ALLOC 1
12408 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12409 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12410 echo "configure:12411: checking for termios.h" >&5
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 #include <termios.h>
12417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12418 { (eval echo configure:12419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12420 if test -z "$ac_err"; then
12422 eval "ac_cv_header_$ac_safe=yes"
12425 echo "configure: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12428 eval "ac_cv_header_$ac_safe=no"
12431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12432 echo "$ac_t""yes" 1>&6
12433 { test "$extra_verbose" = "yes" && cat << \EOF
12434 Defining HAVE_TERMIOS
12436 cat >> confdefs.h <<\EOF
12437 #define HAVE_TERMIOS 1
12441 { test "$extra_verbose" = "yes" && cat << \EOF
12442 Defining SIGNALS_VIA_CHARACTERS
12444 cat >> confdefs.h <<\EOF
12445 #define SIGNALS_VIA_CHARACTERS 1
12449 { test "$extra_verbose" = "yes" && cat << \EOF
12452 cat >> confdefs.h <<\EOF
12453 #define NO_TERMIO 1
12458 echo "$ac_t""no" 1>&6
12459 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12460 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12461 echo "configure:12462: checking for termio.h" >&5
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12465 "configure"
12465 #include "confdefs.h"
12466 #include <termio.h>
12468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12469 { (eval echo configure:12470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12471 if test -z "$ac_err"; then
12473 eval "ac_cv_header_$ac_safe=yes"
12476 echo "configure: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12479 eval "ac_cv_header_$ac_safe=no"
12482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 { test "$extra_verbose" = "yes" && cat << \EOF
12485 Defining HAVE_TERMIO
12487 cat >> confdefs.h <<\EOF
12488 #define HAVE_TERMIO 1
12493 echo "$ac_t""no" 1>&6
12500 echo $ac_n "checking for socket""... $ac_c" 1>&6
12501 echo "configure:12502: checking for socket" >&5
12503 cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char socket(); below. */
12508 #include <assert.h>
12509 /* Override any gcc2 internal prototype to avoid an error. */
12510 /* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12516 /* The GNU C library defines this for functions which it implements
12517 to always fail with ENOSYS. Some functions are actually named
12518 something starting with __ and the normal name is an alias. */
12519 #if defined (__stub_socket) || defined (__stub___socket)
12527 if { (eval echo configure:12528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12529 eval "ac_cv_func_socket=yes"
12531 echo "configure: failed program was:" >&5
12532 cat conftest.$ac_ext >&5
12534 eval "ac_cv_func_socket=no"
12538 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12539 echo "$ac_t""yes" 1>&6
12540 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12541 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12542 echo "configure:12543: checking for netinet/in.h" >&5
12544 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12547 #include <netinet/in.h>
12549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12550 { (eval echo configure:12551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12552 if test -z "$ac_err"; then
12554 eval "ac_cv_header_$ac_safe=yes"
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12560 eval "ac_cv_header_$ac_safe=no"
12563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12564 echo "$ac_t""yes" 1>&6
12565 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12566 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12567 echo "configure:12568: checking for arpa/inet.h" >&5
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 #include <arpa/inet.h>
12574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12575 { (eval echo configure:12576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12577 if test -z "$ac_err"; then
12579 eval "ac_cv_header_$ac_safe=yes"
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12585 eval "ac_cv_header_$ac_safe=no"
12588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12589 echo "$ac_t""yes" 1>&6
12591 { test "$extra_verbose" = "yes" && cat << \EOF
12592 Defining HAVE_SOCKETS
12594 cat >> confdefs.h <<\EOF
12595 #define HAVE_SOCKETS 1
12599 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12600 echo "configure:12601: checking "for sun_len member in struct sockaddr_un"" >&5
12601 cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure"
12603 #include "confdefs.h"
12605 #include <sys/types.h>
12606 #include <sys/socket.h>
12607 #include <sys/un.h>
12610 static struct sockaddr_un x; x.sun_len = 1;
12613 if { (eval echo configure:12614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12615 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12616 Defining HAVE_SOCKADDR_SUN_LEN
12618 cat >> confdefs.h <<\EOF
12619 #define HAVE_SOCKADDR_SUN_LEN 1
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12627 echo "$ac_t""no" 1>&6
12630 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12631 echo "configure:12632: checking "for ip_mreq struct in netinet/in.h"" >&5
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12636 #include <sys/types.h>
12637 #include <netinet/in.h>
12640 static struct ip_mreq x;
12643 if { (eval echo configure:12644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12645 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12646 Defining HAVE_MULTICAST
12648 cat >> confdefs.h <<\EOF
12649 #define HAVE_MULTICAST 1
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12657 echo "$ac_t""no" 1>&6
12661 echo "$ac_t""no" 1>&6
12665 echo "$ac_t""no" 1>&6
12669 echo "$ac_t""no" 1>&6
12673 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12674 echo "configure:12675: checking for msgget" >&5
12676 cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure"
12678 #include "confdefs.h"
12679 /* System header to define __stub macros and hopefully few prototypes,
12680 which can conflict with char msgget(); below. */
12681 #include <assert.h>
12682 /* Override any gcc2 internal prototype to avoid an error. */
12683 /* We use char because int might match the return type of a gcc2
12684 builtin and then its argument prototype would still apply. */
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined (__stub_msgget) || defined (__stub___msgget)
12700 if { (eval echo configure:12701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12702 eval "ac_cv_func_msgget=yes"
12704 echo "configure: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12707 eval "ac_cv_func_msgget=no"
12711 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12712 echo "$ac_t""yes" 1>&6
12713 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12714 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12715 echo "configure:12716: checking for sys/ipc.h" >&5
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <sys/ipc.h>
12722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12723 { (eval echo configure:12724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12725 if test -z "$ac_err"; then
12727 eval "ac_cv_header_$ac_safe=yes"
12730 echo "configure: failed program was:" >&5
12731 cat conftest.$ac_ext >&5
12733 eval "ac_cv_header_$ac_safe=no"
12736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12737 echo "$ac_t""yes" 1>&6
12738 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12739 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12740 echo "configure:12741: checking for sys/msg.h" >&5
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 #include <sys/msg.h>
12747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12748 { (eval echo configure:12749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12750 if test -z "$ac_err"; then
12752 eval "ac_cv_header_$ac_safe=yes"
12755 echo "configure: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12758 eval "ac_cv_header_$ac_safe=no"
12761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12762 echo "$ac_t""yes" 1>&6
12763 { test "$extra_verbose" = "yes" && cat << \EOF
12764 Defining HAVE_SYSVIPC
12766 cat >> confdefs.h <<\EOF
12767 #define HAVE_SYSVIPC 1
12772 echo "$ac_t""no" 1>&6
12776 echo "$ac_t""no" 1>&6
12780 echo "$ac_t""no" 1>&6
12784 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12785 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12786 echo "configure:12787: checking for dirent.h" >&5
12788 cat > conftest.$ac_ext <<EOF
12789 #line 12790 "configure"
12790 #include "confdefs.h"
12791 #include <dirent.h>
12793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12794 { (eval echo configure:12795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12796 if test -z "$ac_err"; then
12798 eval "ac_cv_header_$ac_safe=yes"
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12804 eval "ac_cv_header_$ac_safe=no"
12807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12808 echo "$ac_t""yes" 1>&6
12809 { test "$extra_verbose" = "yes" && cat << \EOF
12810 Defining SYSV_SYSTEM_DIR
12812 cat >> confdefs.h <<\EOF
12813 #define SYSV_SYSTEM_DIR 1
12818 echo "$ac_t""no" 1>&6
12819 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12820 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12821 echo "configure:12822: checking for sys/dir.h" >&5
12823 cat > conftest.$ac_ext <<EOF
12824 #line 12825 "configure"
12825 #include "confdefs.h"
12826 #include <sys/dir.h>
12828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12829 { (eval echo configure:12830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12831 if test -z "$ac_err"; then
12833 eval "ac_cv_header_$ac_safe=yes"
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12839 eval "ac_cv_header_$ac_safe=no"
12842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12843 echo "$ac_t""yes" 1>&6
12846 echo "$ac_t""no" 1>&6
12847 { test "$extra_verbose" = "yes" && cat << \EOF
12848 Defining NONSYSTEM_DIR_LIBRARY
12850 cat >> confdefs.h <<\EOF
12851 #define NONSYSTEM_DIR_LIBRARY 1
12860 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12861 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12862 echo "configure:12863: checking for nlist.h" >&5
12864 cat > conftest.$ac_ext <<EOF
12865 #line 12866 "configure"
12866 #include "confdefs.h"
12869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12870 { (eval echo configure:12871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12872 if test -z "$ac_err"; then
12874 eval "ac_cv_header_$ac_safe=yes"
12877 echo "configure: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12880 eval "ac_cv_header_$ac_safe=no"
12883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 { test "$extra_verbose" = "yes" && cat << \EOF
12886 Defining NLIST_STRUCT
12888 cat >> confdefs.h <<\EOF
12889 #define NLIST_STRUCT 1
12894 echo "$ac_t""no" 1>&6
12899 echo "checking "for sound support"" 1>&6
12900 echo "configure:12901: checking "for sound support"" >&5
12901 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12903 if test "$with_native_sound" != "no"; then
12904 if test -n "$native_sound_lib"; then
12905 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12906 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12907 echo "configure:12908: checking for multimedia/audio_device.h" >&5
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12912 #include <multimedia/audio_device.h>
12914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12915 { (eval echo configure:12916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12917 if test -z "$ac_err"; then
12919 eval "ac_cv_header_$ac_safe=yes"
12922 echo "configure: failed program was:" >&5
12923 cat conftest.$ac_ext >&5
12925 eval "ac_cv_header_$ac_safe=no"
12928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930 sound_found=yes sound_cflags=""
12931 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12932 echo " xemacs will be linked with \"sunplay.o\""
12935 echo "$ac_t""no" 1>&6
12940 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12942 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12943 echo " xemacs will be linked with \"sunplay.o\""
12945 if test -d "/usr/demo/SOUND/include"
12946 then sound_cflags="-I/usr/demo/SOUND/include"
12947 else sound_cflags="-I/usr/demo/SOUND"
12949 if test -z "$native_sound_lib" ; then
12950 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12951 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12952 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12957 if test -z "$sound_found"; then
12958 case "$canonical" in
12960 if test -z "$native_sound_lib"; then
12962 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12963 echo "configure:12964: checking for ALopenport in -laudio" >&5
12964 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12966 xe_check_libs=" -laudio "
12967 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12970 /* Override any gcc2 internal prototype to avoid an error. */
12971 /* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12979 if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12981 eval "ac_cv_lib_$ac_lib_var=yes"
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12986 eval "ac_cv_lib_$ac_lib_var=no"
12991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12992 echo "$ac_t""yes" 1>&6
12993 native_sound_lib="-laudio"
12995 echo "$ac_t""no" 1>&6
13000 if test -n "$native_sound_lib"; then
13001 sound_found=yes sound_cflags=""
13002 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13003 echo " xemacs will be linked with \"sgiplay.o\""
13007 if test -z "$native_sound_lib"; then
13009 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13010 echo "configure:13011: checking for AOpenAudio in -lAlib" >&5
13011 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13013 xe_check_libs=" -lAlib "
13014 cat > conftest.$ac_ext <<EOF
13015 #line 13016 "configure"
13016 #include "confdefs.h"
13017 /* Override any gcc2 internal prototype to avoid an error. */
13018 /* We use char because int might match the return type of a gcc2
13019 builtin and then its argument prototype would still apply. */
13026 if { (eval echo configure:13027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13028 eval "ac_cv_lib_$ac_lib_var=yes"
13030 echo "configure: failed program was:" >&5
13031 cat conftest.$ac_ext >&5
13033 eval "ac_cv_lib_$ac_lib_var=no"
13038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13039 echo "$ac_t""yes" 1>&6
13040 native_sound_lib="-lAlib"
13042 echo "$ac_t""no" 1>&6
13047 if test -n "$native_sound_lib"; then
13049 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13050 echo " xemacs will be linked with \"hpplay.o\""
13052 if test "$GCC" = "yes" # Kludge city
13053 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13054 else sound_cflags="+e -I/usr/audio/examples"
13060 if test -z "$sound_found"; then
13061 if test "$with_msw" = "yes"; then
13067 if test -z "$sound_found"; then
13068 for dir in "machine" "sys" "linux"; do
13069 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13070 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13071 echo "configure:13072: checking for ${dir}/soundcard.h" >&5
13073 cat > conftest.$ac_ext <<EOF
13074 #line 13075 "configure"
13075 #include "confdefs.h"
13076 #include <${dir}/soundcard.h>
13078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13079 { (eval echo configure:13080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13081 if test -z "$ac_err"; then
13083 eval "ac_cv_header_$ac_safe=yes"
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13089 eval "ac_cv_header_$ac_safe=no"
13092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13093 echo "$ac_t""yes" 1>&6
13096 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13097 echo " xemacs will be linked with \"linuxplay.o\""
13099 { test "$extra_verbose" = "yes" && cat << EOF
13100 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13102 cat >> confdefs.h <<EOF
13103 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13109 echo "$ac_t""no" 1>&6
13115 test "$sound_found" = "yes" && with_native_sound=yes
13118 if test "$with_native_sound" = "yes"; then
13119 { test "$extra_verbose" = "yes" && cat << \EOF
13120 Defining HAVE_NATIVE_SOUND
13122 cat >> confdefs.h <<\EOF
13123 #define HAVE_NATIVE_SOUND 1
13127 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13130 if test "$with_nas_sound" != "no"; then
13131 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13132 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13133 echo "configure:13134: checking for audio/audiolib.h" >&5
13135 cat > conftest.$ac_ext <<EOF
13136 #line 13137 "configure"
13137 #include "confdefs.h"
13138 #include <audio/audiolib.h>
13140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13141 { (eval echo configure:13142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13143 if test -z "$ac_err"; then
13145 eval "ac_cv_header_$ac_safe=yes"
13148 echo "configure: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13151 eval "ac_cv_header_$ac_safe=no"
13154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13158 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13159 echo "configure:13160: checking for AuOpenServer in -laudio" >&5
13160 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13162 xe_check_libs=" -laudio "
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13169 char AuOpenServer();
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 eval "ac_cv_lib_$ac_lib_var=yes"
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13182 eval "ac_cv_lib_$ac_lib_var=no"
13187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13188 echo "$ac_t""yes" 1>&6
13191 echo "$ac_t""no" 1>&6
13196 echo "$ac_t""no" 1>&6
13199 if test "$have_nas_sound" = "yes"; then
13201 { test "$extra_verbose" = "yes" && cat << \EOF
13202 Defining HAVE_NAS_SOUND
13204 cat >> confdefs.h <<\EOF
13205 #define HAVE_NAS_SOUND 1
13209 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13210 echo " xemacs will be linked with \"nas.o\""
13212 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13213 cat > conftest.$ac_ext <<EOF
13214 #line 13215 "configure"
13215 #include "confdefs.h"
13216 #include <audio/Xtutil.h>
13218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13219 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13223 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13224 Defining NAS_NO_ERROR_JUMP
13226 cat >> confdefs.h <<\EOF
13227 #define NAS_NO_ERROR_JUMP 1
13235 test "$with_nas_sound" = "yes" && \
13236 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13241 if test "$with_esd_sound" != "no"; then
13242 # Extract the first word of "esd-config", so it can be a program name with args.
13243 set dummy esd-config; ac_word=$2
13244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13245 echo "configure:13246: checking for $ac_word" >&5
13247 if test -n "$have_esd_config"; then
13248 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13252 for ac_dir in $ac_dummy; do
13253 test -z "$ac_dir" && ac_dir=.
13254 if test -f $ac_dir/$ac_word; then
13255 ac_cv_prog_have_esd_config="yes"
13260 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13262 have_esd_config="$ac_cv_prog_have_esd_config"
13263 if test -n "$have_esd_config"; then
13264 echo "$ac_t""$have_esd_config" 1>&6
13266 echo "$ac_t""no" 1>&6
13269 if test "$have_esd_config" = "yes"; then
13270 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13271 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
13272 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13273 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13274 echo "configure:13275: checking for esd_play_stream" >&5
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char esd_play_stream(); below. */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error. */
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285 char esd_play_stream();
13289 /* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13302 eval "ac_cv_func_esd_play_stream=yes"
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13307 eval "ac_cv_func_esd_play_stream=no"
13311 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13312 echo "$ac_t""yes" 1>&6
13315 echo "$ac_t""no" 1>&6
13316 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13321 if test "$have_esd_sound" = "yes"; then
13324 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13325 echo " xemacs will be linked with \"esd.o\""
13327 { test "$extra_verbose" = "yes" && cat << \EOF
13328 Defining HAVE_ESD_SOUND
13330 cat >> confdefs.h <<\EOF
13331 #define HAVE_ESD_SOUND 1
13336 test "$with_esd_sound" = "yes" && \
13337 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13342 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13343 echo " xemacs will be linked with \"miscplay.o\""
13347 test -z "$with_tty" && with_tty=yes
13349 if test "$with_tty" = "yes" ; then
13350 echo "checking for TTY-related features" 1>&6
13351 echo "configure:13352: checking for TTY-related features" >&5
13352 { test "$extra_verbose" = "yes" && cat << \EOF
13355 cat >> confdefs.h <<\EOF
13360 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
13361 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\""
13364 if test -z "$with_ncurses"; then
13366 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13367 echo "configure:13368: checking for tgetent in -lncurses" >&5
13368 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13370 xe_check_libs=" -lncurses "
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13385 eval "ac_cv_lib_$ac_lib_var=yes"
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13390 eval "ac_cv_lib_$ac_lib_var=no"
13395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13396 echo "$ac_t""yes" 1>&6
13399 echo "$ac_t""no" 1>&6
13405 if test "$with_ncurses" = "yes"; then
13406 { test "$extra_verbose" = "yes" && cat << \EOF
13407 Defining HAVE_NCURSES
13409 cat >> confdefs.h <<\EOF
13410 #define HAVE_NCURSES 1
13414 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13415 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13416 echo "configure:13417: checking for ncurses/curses.h" >&5
13418 cat > conftest.$ac_ext <<EOF
13419 #line 13420 "configure"
13420 #include "confdefs.h"
13421 #include <ncurses/curses.h>
13423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13424 { (eval echo configure:13425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13426 if test -z "$ac_err"; then
13428 eval "ac_cv_header_$ac_safe=yes"
13431 echo "configure: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13434 eval "ac_cv_header_$ac_safe=no"
13437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13438 echo "$ac_t""yes" 1>&6
13439 curses_h_file=ncurses/curses.h
13441 echo "$ac_t""no" 1>&6
13444 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13445 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13446 echo "configure:13447: checking for ncurses/term.h" >&5
13448 cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 #include <ncurses/term.h>
13453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13454 { (eval echo configure:13455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13456 if test -z "$ac_err"; then
13458 eval "ac_cv_header_$ac_safe=yes"
13461 echo "configure: failed program was:" >&5
13462 cat conftest.$ac_ext >&5
13464 eval "ac_cv_header_$ac_safe=no"
13467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13468 echo "$ac_t""yes" 1>&6
13469 term_h_file=ncurses/term.h
13471 echo "$ac_t""no" 1>&6
13474 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13475 echo " xemacs will be linked with \"terminfo.o\""
13477 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13479 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13480 save_c_switch_site="$c_switch_site"
13481 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13482 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13483 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13484 echo "configure:13485: checking for ncurses/curses.h" >&5
13486 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure"
13488 #include "confdefs.h"
13489 #include <ncurses/curses.h>
13491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13492 { (eval echo configure:13493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13494 if test -z "$ac_err"; then
13496 eval "ac_cv_header_$ac_safe=yes"
13499 echo "configure: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13502 eval "ac_cv_header_$ac_safe=no"
13505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13506 echo "$ac_t""yes" 1>&6
13507 curses_h_file=ncurses/curses.h
13509 echo "$ac_t""no" 1>&6
13512 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13513 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13514 else c_switch_site="$save_c_switch_site"
13517 else if test "$have_terminfo" = "yes"; then
13518 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13519 echo " xemacs will be linked with \"terminfo.o\""
13521 if test -n "$libs_termcap"; then
13522 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13524 for lib in curses termlib termcap; do
13526 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13527 echo "configure:13528: checking for tgetent in -l$lib" >&5
13528 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13530 xe_check_libs=" -l$lib "
13531 cat > conftest.$ac_ext <<EOF
13532 #line 13533 "configure"
13533 #include "confdefs.h"
13534 /* Override any gcc2 internal prototype to avoid an error. */
13535 /* We use char because int might match the return type of a gcc2
13536 builtin and then its argument prototype would still apply. */
13543 if { (eval echo configure:13544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13545 eval "ac_cv_lib_$ac_lib_var=yes"
13547 echo "configure: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13550 eval "ac_cv_lib_$ac_lib_var=no"
13555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13556 echo "$ac_t""yes" 1>&6
13557 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13559 echo "$ac_t""no" 1>&6
13565 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13567 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13568 echo "configure:13569: checking for tgoto in -ltermcap" >&5
13569 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13571 xe_check_libs=" -ltermcap "
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 eval "ac_cv_lib_$ac_lib_var=yes"
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13591 eval "ac_cv_lib_$ac_lib_var=no"
13596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13597 echo "$ac_t""yes" 1>&6
13598 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13600 { test "$extra_verbose" = "yes" && cat << EOF
13601 Defining $ac_tr_lib
13603 cat >> confdefs.h <<EOF
13604 #define $ac_tr_lib 1
13608 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13611 echo "$ac_t""no" 1>&6
13612 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13613 echo " xemacs will be linked with \"tparam.o\""
13619 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13620 echo " xemacs will be linked with \"tparam.o\""
13623 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13624 if test -n "$libs_termcap"; then
13625 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13628 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13629 echo "configure:13630: checking for tgetent in -lcurses" >&5
13630 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13632 xe_check_libs=" -lcurses "
13633 cat > conftest.$ac_ext <<EOF
13634 #line 13635 "configure"
13635 #include "confdefs.h"
13636 /* Override any gcc2 internal prototype to avoid an error. */
13637 /* We use char because int might match the return type of a gcc2
13638 builtin and then its argument prototype would still apply. */
13645 if { (eval echo configure:13646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13647 eval "ac_cv_lib_$ac_lib_var=yes"
13649 echo "configure: failed program was:" >&5
13650 cat conftest.$ac_ext >&5
13652 eval "ac_cv_lib_$ac_lib_var=no"
13657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13658 echo "$ac_t""yes" 1>&6
13659 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13661 echo "$ac_t""no" 1>&6
13662 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13663 echo "configure:13664: checking for tgetent in -ltermcap" >&5
13664 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13666 xe_check_libs=" -ltermcap "
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 /* Override any gcc2 internal prototype to avoid an error. */
13671 /* We use char because int might match the return type of a gcc2
13672 builtin and then its argument prototype would still apply. */
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 eval "ac_cv_lib_$ac_lib_var=yes"
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13686 eval "ac_cv_lib_$ac_lib_var=no"
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13692 echo "$ac_t""yes" 1>&6
13693 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13695 echo "$ac_t""no" 1>&6
13696 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13697 echo " xemacs will be linked with \"termcap.o\""
13708 { test "$extra_verbose" = "yes" && cat << EOF
13709 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13711 cat >> confdefs.h <<EOF
13712 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13716 { test "$extra_verbose" = "yes" && cat << EOF
13717 Defining TERM_H_FILE = "${term_h_file-term.h}"
13719 cat >> confdefs.h <<EOF
13720 #define TERM_H_FILE "${term_h_file-term.h}"
13725 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13726 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13727 echo "configure:13728: checking for gpm.h" >&5
13729 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure"
13731 #include "confdefs.h"
13734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13735 { (eval echo configure:13736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13737 if test -z "$ac_err"; then
13739 eval "ac_cv_header_$ac_safe=yes"
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13745 eval "ac_cv_header_$ac_safe=no"
13748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13749 echo "$ac_t""yes" 1>&6
13752 echo "$ac_t""no" 1>&6
13756 test -z "$with_gpm" && {
13757 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13758 echo "configure:13759: checking for Gpm_Open in -lgpm" >&5
13759 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13761 xe_check_libs=" -lgpm "
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13765 /* Override any gcc2 internal prototype to avoid an error. */
13766 /* We use char because int might match the return type of a gcc2
13767 builtin and then its argument prototype would still apply. */
13774 if { (eval echo configure:13775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13776 eval "ac_cv_lib_$ac_lib_var=yes"
13778 echo "configure: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13781 eval "ac_cv_lib_$ac_lib_var=no"
13786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13787 echo "$ac_t""yes" 1>&6
13790 echo "$ac_t""no" 1>&6
13795 if test "$with_gpm" = "yes"; then
13796 { test "$extra_verbose" = "yes" && cat << \EOF
13799 cat >> confdefs.h <<\EOF
13804 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13805 echo " xemacs will be linked with \"gpmevent.o\""
13807 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13810 else for feature in ncurses gpm; do
13811 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13812 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13814 eval "with_${feature}=no"
13817 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
13818 echo " xemacs will be linked with \"event-unixoid.o\""
13822 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13823 != "no no no" && echo "checking for database support" 1>&6
13824 echo "configure:13825: checking for database support" >&5
13826 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13827 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13828 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13829 echo "configure:13830: checking for ndbm.h" >&5
13831 cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13837 { (eval echo configure:13838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13839 if test -z "$ac_err"; then
13841 eval "ac_cv_header_$ac_safe=yes"
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13847 eval "ac_cv_header_$ac_safe=no"
13850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13854 echo "$ac_t""no" 1>&6
13856 test "$with_database_gdbm" = "yes" -o \
13857 "$with_database_dbm" = "yes" && \
13858 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13859 with_database_gdbm=no with_database_dbm=no
13864 if test "$with_database_gdbm" != "no"; then
13866 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13867 echo "configure:13868: checking for dbm_open in -lgdbm" >&5
13868 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13870 xe_check_libs=" -lgdbm "
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 /* Override any gcc2 internal prototype to avoid an error. */
13875 /* We use char because int might match the return type of a gcc2
13876 builtin and then its argument prototype would still apply. */
13883 if { (eval echo configure:13884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13885 eval "ac_cv_lib_$ac_lib_var=yes"
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13890 eval "ac_cv_lib_$ac_lib_var=no"
13895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13896 echo "$ac_t""yes" 1>&6
13897 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13899 echo "$ac_t""no" 1>&6
13900 if test "$with_database_gdbm" = "yes"; then
13901 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13903 with_database_gdbm=no
13909 if test "$with_database_dbm" != "no"; then
13910 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13911 echo "configure:13912: checking for dbm_open" >&5
13913 cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 /* System header to define __stub macros and hopefully few prototypes,
13917 which can conflict with char dbm_open(); below. */
13918 #include <assert.h>
13919 /* Override any gcc2 internal prototype to avoid an error. */
13920 /* We use char because int might match the return type of a gcc2
13921 builtin and then its argument prototype would still apply. */
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13937 if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13939 eval "ac_cv_func_dbm_open=yes"
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13944 eval "ac_cv_func_dbm_open=no"
13948 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13949 echo "$ac_t""yes" 1>&6
13950 with_database_dbm=yes libdbm=
13952 echo "$ac_t""no" 1>&6
13955 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13956 echo "configure:13957: checking for dbm_open in -ldbm" >&5
13957 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13959 xe_check_libs=" -ldbm "
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 /* Override any gcc2 internal prototype to avoid an error. */
13964 /* We use char because int might match the return type of a gcc2
13965 builtin and then its argument prototype would still apply. */
13972 if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13974 eval "ac_cv_lib_$ac_lib_var=yes"
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13979 eval "ac_cv_lib_$ac_lib_var=no"
13984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13985 echo "$ac_t""yes" 1>&6
13986 with_database_dbm=yes libdbm=-ldbm
13988 echo "$ac_t""no" 1>&6
13989 test "$with_database_dbm" = "yes" && \
13990 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13991 with_database_dbm=no
13999 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14000 test "$with_database_gdbm" = "yes" -o \
14001 "$with_database_dbm" = "yes" && \
14002 { test "$extra_verbose" = "yes" && cat << \EOF
14005 cat >> confdefs.h <<\EOF
14011 if test "$with_database_berkdb" != "no"; then
14012 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14013 echo "configure:14014: checking for Berkeley db.h" >&5
14014 for header in "db/db.h" "db.h"; do
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14019 #include <stdlib.h>
14020 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14021 #ifdef HAVE_INTTYPES_H
14022 #define __BIT_TYPES_DEFINED__
14023 #include <inttypes.h>
14024 typedef uint8_t u_int8_t;
14025 typedef uint16_t u_int16_t;
14026 typedef uint32_t u_int32_t;
14027 #ifdef WE_DONT_NEED_QUADS
14028 typedef uint64_t u_int64_t;
14038 if { (eval echo configure:14039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14040 db_h_file="$header"; break
14042 echo "configure: failed program was:" >&5
14043 cat conftest.$ac_ext >&5
14047 if test -z "$db_h_file"
14048 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14049 else echo "$ac_t""$db_h_file" 1>&6
14052 if test "$with_database_berkdb" != "no"; then
14053 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14054 echo "configure:14055: checking for Berkeley DB version" >&5
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 #include <$db_h_file>
14059 #if DB_VERSION_MAJOR > 1
14064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14065 egrep "yes" >/dev/null 2>&1; then
14067 cat > conftest.$ac_ext <<EOF
14068 #line 14069 "configure"
14069 #include "confdefs.h"
14070 #include <$db_h_file>
14071 #if DB_VERSION_MAJOR > 2
14076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14077 egrep "yes" >/dev/null 2>&1; then
14079 echo "$ac_t""3" 1>&6; dbfunc=db_create
14083 echo "$ac_t""2" 1>&6; dbfunc=db_open
14090 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14094 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14095 echo "configure:14096: checking for $dbfunc" >&5
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* System header to define __stub macros and hopefully few prototypes,
14101 which can conflict with char $dbfunc(); below. */
14102 #include <assert.h>
14103 /* Override any gcc2 internal prototype to avoid an error. */
14104 /* We use char because int might match the return type of a gcc2
14105 builtin and then its argument prototype would still apply. */
14110 /* The GNU C library defines this for functions which it implements
14111 to always fail with ENOSYS. Some functions are actually named
14112 something starting with __ and the normal name is an alias. */
14113 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14123 eval "ac_cv_func_$dbfunc=yes"
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14128 eval "ac_cv_func_$dbfunc=no"
14132 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14133 echo "$ac_t""yes" 1>&6
14134 with_database_berkdb=yes need_libdb=no
14136 echo "$ac_t""no" 1>&6
14139 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14140 echo "configure:14141: checking for $dbfunc in -ldb" >&5
14141 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14143 xe_check_libs=" -ldb "
14144 cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14147 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158 eval "ac_cv_lib_$ac_lib_var=yes"
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14163 eval "ac_cv_lib_$ac_lib_var=no"
14168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14169 echo "$ac_t""yes" 1>&6
14170 with_database_berkdb=yes need_libdb=yes
14172 echo "$ac_t""no" 1>&6
14180 if test "$with_database_berkdb" = "yes"; then
14181 { test "$extra_verbose" = "yes" && cat << EOF
14182 Defining DB_H_FILE = "$db_h_file"
14184 cat >> confdefs.h <<EOF
14185 #define DB_H_FILE "$db_h_file"
14189 { test "$extra_verbose" = "yes" && cat << \EOF
14190 Defining HAVE_BERKELEY_DB
14192 cat >> confdefs.h <<\EOF
14193 #define HAVE_BERKELEY_DB 1
14197 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14198 else with_database_berkdb=no
14202 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14203 != "no no no"; then
14204 { test "$extra_verbose" = "yes" && cat << \EOF
14205 Defining HAVE_DATABASE
14207 cat >> confdefs.h <<\EOF
14208 #define HAVE_DATABASE 1
14212 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14213 echo " xemacs will be linked with \"database.o\""
14217 if test "$with_socks" = "yes"; then
14219 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14220 echo "configure:14221: checking for SOCKSinit in -lsocks" >&5
14221 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14223 xe_check_libs=" -lsocks "
14224 cat > conftest.$ac_ext <<EOF
14225 #line 14226 "configure"
14226 #include "confdefs.h"
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 /* We use char because int might match the return type of a gcc2
14229 builtin and then its argument prototype would still apply. */
14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14238 eval "ac_cv_lib_$ac_lib_var=yes"
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14243 eval "ac_cv_lib_$ac_lib_var=no"
14248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14249 echo "$ac_t""yes" 1>&6
14250 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14252 { test "$extra_verbose" = "yes" && cat << EOF
14253 Defining $ac_tr_lib
14255 cat >> confdefs.h <<EOF
14256 #define $ac_tr_lib 1
14260 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14263 echo "$ac_t""no" 1>&6
14267 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14268 Defining HAVE_SOCKS
14270 cat >> confdefs.h <<\EOF
14271 #define HAVE_SOCKS 1
14277 if test "$usage_tracking" = "yes"; then
14278 { test "$extra_verbose" = "yes" && cat << \EOF
14279 Defining USAGE_TRACKING
14281 cat >> confdefs.h <<\EOF
14282 #define USAGE_TRACKING 1
14286 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14289 if test "$with_modules" != "no"; then
14290 echo "checking for module support" 1>&6
14291 echo "configure:14292: checking for module support" >&5
14293 if test "$with_msw" = "yes"; then
14296 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14297 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14298 echo "configure:14299: checking for dlfcn.h" >&5
14300 cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14306 { (eval echo configure:14307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14308 if test -z "$ac_err"; then
14310 eval "ac_cv_header_$ac_safe=yes"
14313 echo "configure: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14316 eval "ac_cv_header_$ac_safe=no"
14319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14320 echo "$ac_t""yes" 1>&6
14322 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14323 echo "configure:14324: checking for dlopen in -lc" >&5
14324 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14332 if { (eval echo configure:14333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14336 echo "configure: failed program was:" >&5
14337 cat conftest.$ac_ext >&5
14340 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14341 echo "configure:14342: checking for dlopen in -ldl" >&5
14342 ac_save_LIBS="$LIBS"
14344 cat > conftest.$ac_ext <<EOF
14345 #line 14346 "configure"
14346 #include "confdefs.h"
14352 if { (eval echo configure:14353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 LIBS="$ac_save_LIBS"
14366 echo "$ac_t""no" 1>&6
14369 if test -n "$have_dl"; then
14370 { test "$extra_verbose" = "yes" && cat << \EOF
14371 Defining HAVE_DLOPEN
14373 cat >> confdefs.h <<\EOF
14374 #define HAVE_DLOPEN 1
14380 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14381 echo "configure:14382: checking for shl_load in -ldld" >&5
14382 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14384 xe_check_libs=" -ldld "
14385 cat > conftest.$ac_ext <<EOF
14386 #line 14387 "configure"
14387 #include "confdefs.h"
14388 /* Override any gcc2 internal prototype to avoid an error. */
14389 /* We use char because int might match the return type of a gcc2
14390 builtin and then its argument prototype would still apply. */
14397 if { (eval echo configure:14398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14399 eval "ac_cv_lib_$ac_lib_var=yes"
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14404 eval "ac_cv_lib_$ac_lib_var=no"
14409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14410 echo "$ac_t""yes" 1>&6
14411 libdl=dld have_dl=yes;
14412 { test "$extra_verbose" = "yes" && cat << \EOF
14413 Defining HAVE_SHL_LOAD
14415 cat >> confdefs.h <<\EOF
14416 #define HAVE_SHL_LOAD 1
14421 echo "$ac_t""no" 1>&6
14423 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14424 echo "configure:14425: checking for dld_init in -ldld" >&5
14425 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14427 xe_check_libs=" -ldld "
14428 cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 /* Override any gcc2 internal prototype to avoid an error. */
14432 /* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14440 if { (eval echo configure:14441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14442 eval "ac_cv_lib_$ac_lib_var=yes"
14444 echo "configure: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14447 eval "ac_cv_lib_$ac_lib_var=no"
14452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14453 echo "$ac_t""yes" 1>&6
14454 libdl=dld have_dl=yes;
14455 { test "$extra_verbose" = "yes" && cat << \EOF
14456 Defining HAVE_DLD_INIT
14458 cat >> confdefs.h <<\EOF
14459 #define HAVE_DLD_INIT 1
14464 echo "$ac_t""no" 1>&6
14473 if test -n "$have_dl"; then
14480 ld_dynamic_link_flags=
14482 xealias=$internal_configuration
14484 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14485 echo "configure:14486: checking how to build dynamic libraries for ${xehost}" >&5
14486 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14489 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14492 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14493 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14494 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14496 case "$xehost_os" in
14498 # AIX sometimes has problems with the GCC collect2 program. For some
14499 # reason, if we set the COLLECT_NAMES environment variable, the problems
14500 # vanish in a puff of smoke.
14501 if test "${COLLECT_NAMES+set}" != set; then
14503 export COLLECT_NAMES
14508 # Now see if the compiler is really GCC.
14509 if test "$GCC" = "yes"; then
14512 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14513 echo "configure:14514: checking checking whether we are using GNU C" >&5
14514 cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 egrep "yes" >/dev/null 2>&1; then
14533 echo "$ac_t""${XEGCC}" 1>&6
14536 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14537 echo "configure:14538: checking how to produce PIC code" >&5
14540 can_build_shared=yes
14541 if test "$XEGCC" = yes; then
14544 case "$xehost_os" in
14545 aix[3-9]* | irix[5-9]* | osf[3-9])
14546 # PIC is the default for these OSes.
14550 # We can build DLLs from non-PIC.
14553 # FIXME: we need at least 68020 code to build shared libraries, but
14554 # adding the `-m68020' flag to GCC prevents building anything better,
14556 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14558 *cygwin* | *mingw* )
14559 # PIC is the default
14566 # PORTME Check for PIC flags for the system compiler.
14567 case "$xehost_os" in
14568 hpux9* | hpux1[0-9]*)
14569 # Is there a better link_static_flag that works with the bundled CC?
14576 # PIC (with -KPIC) is the default.
14580 # We can build DLLs from non-PIC.
14584 # All OSF/1 code is PIC.
14589 # All AIX code is PIC.
14594 dll_cflags='-belf -Kpic'
14628 can_build_shared=no
14633 if test -n "$dll_cflags"; then
14634 echo "$ac_t""${dll_cflags}" 1>&6
14636 # Check to make sure the dll_cflags actually works.
14637 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14638 echo "configure:14639: checking if PIC flag ${dll_cflags} really works" >&5
14639 save_CFLAGS="$CFLAGS"
14640 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14641 cat > conftest.$ac_ext <<EOF
14642 #line 14643 "configure"
14643 #include "confdefs.h"
14649 if { (eval echo configure:14650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14652 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14653 # reports no error. So, we need to grep stderr for (Bundled).
14654 if grep '(Bundled)' config.log >/dev/null; then
14655 echo "$ac_t""no" 1>&6
14656 can_build_shared=no
14659 echo "$ac_t""yes" 1>&6
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14665 echo "$ac_t""no" 1>&6
14666 can_build_shared=no
14670 CFLAGS="$save_CFLAGS"
14672 echo "$ac_t""none" 1>&6
14675 if test "$can_build_shared" = "yes"; then
14679 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14680 echo "configure:14681: checking if C compiler can produce shared libraries" >&5
14681 if test "$XEGCC" = yes; then
14684 else # Not using GCC
14685 case "$xehost_os" in
14687 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14688 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14691 freebsd2* | netbsd* | openbsd*)
14693 xcldf="${wl}-Bshareable"
14702 xcldf="${wl}-b ${wl}+s"
14705 irix[5-9]* | osf[3-9]*)
14706 xcldf="${wl}-shared"
14710 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14716 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14717 xldf="-assert pure-text -Bstatic"
14720 fi # End if if we are using gcc
14722 if test -n "$xcldf"; then
14723 save_LDFLAGS=$LDFLAGS
14725 save_xe_libs=$xe_libs
14726 LDFLAGS="$xcldf $LDFLAGS"
14729 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14730 cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14738 if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14748 LDFLAGS=$save_LDFLAGS
14750 xe_libs=$save_xe_libs
14751 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14755 echo "$ac_t""${cc_produces_so}" 1>&6
14758 if test -z "$LTLD"; then
14760 if test "$XEGCC" = yes; then
14761 # Check if gcc -print-prog-name=ld gives a path.
14762 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14763 echo "configure:14764: checking for ld used by GCC" >&5
14764 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14766 # Accept absolute paths.
14768 if test -z "$LTLD"; then
14769 # case "$ac_prog" in
14770 # *gcc-lib*) LTLD="$CC"
14779 # If it fails, then pretend we aren't using GCC.
14783 # If it is relative, then search for the first ld in PATH.
14784 with_gnu_ld=unknown
14788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14789 echo "configure:14790: checking for GNU ld" >&5
14792 if test -z "$LTLD"; then
14793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14794 for ac_dir in $PATH; do
14795 test -z "$ac_dir" && ac_dir=.
14796 if test -f "$ac_dir/$ac_prog"; then
14797 LTLD="$ac_dir/$ac_prog"
14798 # Check to see if the program is GNU ld. I'd rather use --version,
14799 # but apparently some GNU ld's only accept -v.
14800 # Break only if it was the GNU/non-GNU ld that we prefer.
14801 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14811 if test -n "$LTLD"; then
14812 echo "$ac_t""${LTLD}" 1>&6
14814 echo "$ac_t""no" 1>&6
14817 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14818 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14823 ld_dynamic_link_flags=
14825 # Check to see if it really is or isn't GNU ld.
14826 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14827 echo "configure:14828: checking if the linker is GNU ld" >&5
14828 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14829 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14834 echo "$ac_t""${xe_gnu_ld}" 1>&6
14836 case "$xehost_os" in
14837 amigaos* | sunos4*)
14838 # On these operating systems, we should treat GNU ld like the system ld.
14839 gnu_ld_acts_native=yes
14842 gnu_ld_acts_native=no
14846 if test "$cc_produces_so" = "yes"; then
14849 can_build_shared=yes
14852 # OK - only NOW do we futz about with ld.
14853 # See if the linker supports building shared libraries.
14854 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14855 echo "configure:14856: checking whether the linker supports shared libraries" >&5
14857 dll_ldflags=$LDFLAGS
14859 can_build_shared=yes
14860 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14861 # See if GNU ld supports shared libraries.
14862 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14864 dll_ldflags="-shared"
14870 # PORTME fill in a description of your system's linker (not GNU ld)
14871 case "$xehost_os" in
14881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14882 # support. Future versions do this automatically, but an explicit c++rt0.o
14883 # doesn't break anything, and helps significantly (at the cost of a little
14888 dll_post="/usr/lib/c++rt0.o"
14891 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14894 dll_ldflags="-Bshareable"
14897 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14899 dll_ldflags="-shared"
14913 # Tested with NetBSD 1.2 ld
14928 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14929 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14932 *gcc*) dll_ldflags="-shared"
14935 *) dll_ldflags="-G"
14941 if test "$XEGCC" = yes; then
14961 can_build_shared=no
14965 echo "$ac_t""${ld_shlibs}" 1>&6
14966 if test "$ld_shlibs" = "no"; then
14967 can_build_shared=no
14969 fi # End of if cc_produces_so = no
14972 if test "$xe_gnu_ld" = yes; then
14973 if test "$ld_shlibs" = yes; then
14974 ld_dynamic_link_flags="${wl}-export-dynamic"
14978 if test -z "$ld_dynamic_link_flags"; then
14979 case "$xehost_os" in
14981 ld_dynamic_link_flags=
14985 ld_dynamic_link_flags=
14989 ld_dynamic_link_flags=
14993 ld_dynamic_link_flags=
14997 ld_dynamic_link_flags="${wl}-E"
15001 ld_dynamic_link_flags=
15005 ld_dynamic_link_flags=
15009 ld_dynamic_link_flags=
15013 ld_dynamic_link_flags=
15016 solaris2* | solaris7*)
15017 ld_dynamic_link_flags=
15020 sco3.2v5* | unixware* | sysv5* | sysv4*)
15021 ld_dynamic_link_flags="${wl}-Bexport"
15025 ld_dynamic_link_flags=
15029 ld_dynamic_link_flags=
15033 ld_dynamic_link_flags=
15037 fi # End of if -z ld_dynamic_link_flags
15038 fi # End of if test "$can_build_shared" = "yes"
15049 if test "$can_build_shared" = "yes"; then
15050 { test "$extra_verbose" = "yes" && cat << \EOF
15051 Defining HAVE_SHLIB
15053 cat >> confdefs.h <<\EOF
15054 #define HAVE_SHLIB 1
15058 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15059 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15061 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15062 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15063 for ac_func in dlerror _dlerror
15065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15066 echo "configure:15067: checking for $ac_func" >&5
15068 cat > conftest.$ac_ext <<EOF
15069 #line 15070 "configure"
15070 #include "confdefs.h"
15071 /* System header to define __stub macros and hopefully few prototypes,
15072 which can conflict with char $ac_func(); below. */
15073 #include <assert.h>
15074 /* Override any gcc2 internal prototype to avoid an error. */
15075 /* We use char because int might match the return type of a gcc2
15076 builtin and then its argument prototype would still apply. */
15081 /* The GNU C library defines this for functions which it implements
15082 to always fail with ENOSYS. Some functions are actually named
15083 something starting with __ and the normal name is an alias. */
15084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15092 if { (eval echo configure:15093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15094 eval "ac_cv_func_$ac_func=yes"
15096 echo "configure: failed program was:" >&5
15097 cat conftest.$ac_ext >&5
15099 eval "ac_cv_func_$ac_func=no"
15103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15104 echo "$ac_t""yes" 1>&6
15105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15106 { test "$extra_verbose" = "yes" && cat << EOF
15107 Defining $ac_tr_func
15109 cat >> confdefs.h <<EOF
15110 #define $ac_tr_func 1
15115 echo "$ac_t""no" 1>&6
15121 if test "$with_modules" = "yes"; then
15122 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15124 echo "configure: warning: "Module support cannot be provided."" 1>&2
15130 cat > conftest.$ac_ext <<EOF
15131 #line 15132 "configure"
15132 #include "confdefs.h"
15133 int main(int c,char *v[]){return 0;}
15135 if { (eval echo configure:15136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15145 echo "*** PANIC *** The C compiler can no longer build working executables."
15146 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15147 echo "*** PANIC *** The most likely reason for this problem is that configure"
15148 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15149 echo "*** PANIC *** found at run time."
15150 echo "*** PANIC ***"
15151 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15152 echo "*** PANIC *** On other systems, try telling configure where to find the"
15153 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15154 echo "*** PANIC ***"
15155 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15156 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15157 echo "*** PANIC *** on your system. Don't do that."
15162 if test "$win32_processes" = "yes"; then
15163 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15164 echo " xemacs will be linked with \"process-nt.o\""
15167 { test "$extra_verbose" = "yes" && cat << \EOF
15168 Defining HAVE_UNIX_PROCESSES
15170 cat >> confdefs.h <<\EOF
15171 #define HAVE_UNIX_PROCESSES 1
15175 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15176 echo " xemacs will be linked with \"process-unix.o\""
15183 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15188 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15193 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
15194 c_switch_general="$T"
15198 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
15199 c_switch_window_system="$T"
15203 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15208 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
15209 ld_switch_general="$T"
15213 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15214 ld_switch_window_system="$T"
15218 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15223 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15224 ld_libs_general="$T"
15228 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
15229 ld_libs_window_system="$T"
15233 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15238 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15239 internal_makefile_list="Makefile.in"
15240 SUBDIR_MAKEFILES=''
15241 test -d lock || mkdir lock
15242 for dir in $MAKE_SUBDIR; do
15243 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15244 test -d "$d" || mkdir "$d"; cd "$d"
15246 * ) test -d "$dir" || mkdir "$dir" ;;
15250 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15251 SUBDIR_MAKEFILES="$T"
15255 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15256 internal_makefile_list="$T"
15263 for dir in src/s src/m; do
15264 if test ! -d "$dir" ; then
15265 echo Making symbolic link to "$srcdir/$dir"
15266 ${LN_S} "$srcdir/$dir" "$dir"
15270 if test "$extra_verbose" = "yes"; then
15272 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
15277 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15278 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15279 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15282 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15283 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15284 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15287 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15288 test "$extra_verbose" = "yes" && echo "creating TAGS"
15290 $srcdir/TAGS,include" > "TAGS"
15293 if test "$__SUNPRO_C" = "yes"; then
15294 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15295 ( echo "# For use with Sun WorkShop's Source browser."
15296 echo "# See sbquery(1) and sbinit(4) for more information"
15297 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15325 *\$* ) eval "PREFIX=$PREFIX" ;;
15333 EXEC_PREFIX=$exec_prefix
15335 case "$EXEC_PREFIX" in
15336 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15347 *\$* ) eval "INFODIR=$INFODIR" ;;
15357 case "$INFOPATH" in
15358 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15366 PACKAGE_PATH=$package_path
15368 case "$PACKAGE_PATH" in
15369 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15380 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15388 MODULEDIR=$moduledir
15390 case "$MODULEDIR" in
15391 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15399 SITELISPDIR=$sitelispdir
15401 case "$SITELISPDIR" in
15402 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15410 SITEMODULEDIR=$sitemoduledir
15412 case "$SITEMODULEDIR" in
15413 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15424 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15435 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15443 ARCHLIBDIR=$archlibdir
15445 case "$ARCHLIBDIR" in
15446 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15470 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15478 : ${XEMACS_CC:=$CC}
15481 if test "$with_prefix" = "yes"; then
15482 { test "$extra_verbose" = "yes" && cat << \EOF
15483 Defining PREFIX_USER_DEFINED
15485 cat >> confdefs.h <<\EOF
15486 #define PREFIX_USER_DEFINED 1
15492 if test "$with_site_lisp" = "no"; then
15493 { test "$extra_verbose" = "yes" && cat << \EOF
15494 Defining INHIBIT_SITE_LISP
15496 cat >> confdefs.h <<\EOF
15497 #define INHIBIT_SITE_LISP 1
15502 if test "$with_site_modules" = "no"; then
15503 { test "$extra_verbose" = "yes" && cat << \EOF
15504 Defining INHIBIT_SITE_MODULES
15506 cat >> confdefs.h <<\EOF
15507 #define INHIBIT_SITE_MODULES 1
15515 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15516 ac_configure_args="$T"
15518 { test "$extra_verbose" = "yes" && cat << EOF
15519 Defining EMACS_CONFIGURATION = "$configuration"
15521 cat >> confdefs.h <<EOF
15522 #define EMACS_CONFIGURATION "$configuration"
15526 { test "$extra_verbose" = "yes" && cat << EOF
15527 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15529 cat >> confdefs.h <<EOF
15530 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15537 { test "$extra_verbose" = "yes" && cat << EOF
15538 Defining LD_SWITCH_X_SITE = $null_string
15540 cat >> confdefs.h <<EOF
15541 #define LD_SWITCH_X_SITE $null_string
15545 { test "$extra_verbose" = "yes" && cat << EOF
15546 Defining LD_SWITCH_X_SITE_AUX = $null_string
15548 cat >> confdefs.h <<EOF
15549 #define LD_SWITCH_X_SITE_AUX $null_string
15553 { test "$extra_verbose" = "yes" && cat << EOF
15554 Defining C_SWITCH_X_SITE = $null_string
15556 cat >> confdefs.h <<EOF
15557 #define C_SWITCH_X_SITE $null_string
15561 { test "$extra_verbose" = "yes" && cat << EOF
15562 Defining LD_SWITCH_SITE = $null_string
15564 cat >> confdefs.h <<EOF
15565 #define LD_SWITCH_SITE $null_string
15569 { test "$extra_verbose" = "yes" && cat << EOF
15570 Defining C_SWITCH_SITE = $null_string
15572 cat >> confdefs.h <<EOF
15573 #define C_SWITCH_SITE $null_string
15579 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15580 Defining GNU_MALLOC
15582 cat >> confdefs.h <<\EOF
15583 #define GNU_MALLOC 1
15587 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15588 Defining USE_SYSTEM_MALLOC
15590 cat >> confdefs.h <<\EOF
15591 #define USE_SYSTEM_MALLOC 1
15595 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15596 Defining USE_DEBUG_MALLOC
15598 cat >> confdefs.h <<\EOF
15599 #define USE_DEBUG_MALLOC 1
15603 { test "$extra_verbose" = "yes" && cat << \EOF
15604 Defining USE_SYSTEM_MALLOC
15606 cat >> confdefs.h <<\EOF
15607 #define USE_SYSTEM_MALLOC 1
15612 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15615 cat >> confdefs.h <<\EOF
15620 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15623 cat >> confdefs.h <<\EOF
15628 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15629 Defining EXTERNAL_WIDGET
15631 cat >> confdefs.h <<\EOF
15632 #define EXTERNAL_WIDGET 1
15636 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15637 Defining QUICK_BUILD
15639 cat >> confdefs.h <<\EOF
15640 #define QUICK_BUILD 1
15644 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15647 cat >> confdefs.h <<\EOF
15652 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15655 cat >> confdefs.h <<\EOF
15660 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15661 Defining MAIL_USE_POP
15663 cat >> confdefs.h <<\EOF
15664 #define MAIL_USE_POP 1
15668 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15671 cat >> confdefs.h <<\EOF
15676 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15679 cat >> confdefs.h <<\EOF
15684 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15685 Defining USE_UNION_TYPE
15687 cat >> confdefs.h <<\EOF
15688 #define USE_UNION_TYPE 1
15692 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15695 cat >> confdefs.h <<\EOF
15700 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15701 Defining IPV6_CANONICALIZE
15703 cat >> confdefs.h <<\EOF
15704 #define IPV6_CANONICALIZE 1
15711 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15713 echo "uname -a: `uname -a`"
15716 echo "$0 $quoted_arguments"
15719 if test ! -z ${emacs_beta_version} ; then
15720 if test -z "${emacs_is_beta}" ; then
15721 xemacs_betaname=".${emacs_beta_version}"
15723 xemacs_betaname="-b${emacs_beta_version}"
15732 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15735 Compilation / Installation:"
15736 echo " Source code location: $srcdir"
15737 echo " Installation prefix: $prefix"
15738 if test -n "$site_includes"; then
15739 echo " Additional header files: $site_includes"
15741 if test -n "$site_libraries"; then
15742 echo " Additional libraries: $site_libraries"
15744 if test -n "$site_prefixes"; then
15745 echo " Additional prefixes: $site_prefixes"
15747 if test -n "$runpath"; then
15748 echo " Runtime library search path: $runpath"
15751 if test -n "$opsysfile"
15752 then echo " Operating system description file: \`$opsysfile'"
15753 else echo " Not using any operating system description file"
15755 if test -n "$machfile"
15756 then echo " Machine description file: \`$machfile'"
15757 else echo " Not using any machine description file"
15760 echo " Compiler: $CC $CFLAGS"
15761 echo " Relocating allocator for buffers: $rel_alloc"
15762 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15763 case "$ld_switch_site" in
15764 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15765 - Consider configuring with --pdump." ;;
15770 if test "$with_msw" = "yes"; then
15771 echo " Compiling in support for the Microsoft window system."
15773 if test "$with_x11" = "yes"; then
15774 echo " Compiling in support for the X window system:"
15775 echo " - X Windows headers location: $x_includes"
15776 echo " - X Windows libraries location: $x_libraries"
15777 if test "$with_xauth" != yes; then
15778 echo " - Xau (X authority) not available."
15780 if test "$with_xmu" != yes; then
15781 echo " - Xmu library not available; substituting equivalent routines."
15783 if test "$with_wmcommand" != no; then
15784 echo " - Handling WM_COMMAND properly."
15787 if test "$need_athena" = "yes"; then
15788 echo " Compiling in support for the Athena widget set:"
15789 echo " - Athena headers location: $athena_h_path"
15790 echo " - Athena library to link: $athena_lib"
15792 case "$with_menubars" in
15793 gtk ) echo " Using GTK menubars." ;;
15794 lucid ) echo " Using Lucid menubars." ;;
15795 motif ) echo " Using Motif menubars."
15796 echo " *WARNING* The Motif menubar implementation is currently buggy."
15797 echo " We recommend using the Lucid menubar instead."
15798 echo " Re-run configure with --with-menubars='lucid'." ;;
15799 msw ) echo " Using MS-Windows menubars." ;;
15801 case "$with_scrollbars" in
15802 gtk ) echo " Using GTK scrollbars." ;;
15803 lucid ) echo " Using Lucid scrollbars." ;;
15804 motif ) echo " Using Motif scrollbars." ;;
15805 athena ) echo " Using Athena scrollbars." ;;
15806 msw ) echo " Using MS-Windows scrollbars." ;;
15808 case "$with_dialogs" in
15809 gtk ) echo " Using GTK dialog boxes." ;;
15810 motif ) echo " Using Motif dialog boxes."
15811 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15812 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15813 echo " We recommend using the Athena dialog boxes instead."
15814 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15815 echo " Read the PROBLEMS file for more information."
15817 athena ) echo " Using Athena dialog boxes." ;;
15818 msw ) echo " Using MS-Windows dialog boxes." ;;
15820 case "$with_widgets" in
15821 gtk ) echo " Using GTK native widgets." ;;
15822 motif ) echo " Using Motif native widgets." ;;
15823 athena ) echo " Using Athena native widgets." ;;
15824 msw ) echo " Using MS-Windows native widgets." ;;
15826 if test "$with_dragndrop" = yes; then
15827 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15828 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15833 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15834 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15838 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15839 if test "$with_xpm" = yes; then
15840 echo " Compiling in support for XPM images."
15841 elif test "$with_x11" = yes; then
15842 echo " WARNING: -----------------------------------------------------------"
15843 echo " WARNING: Compiling without XPM image support."
15844 if test "$xpm_problem" != ""; then
15845 echo " Reason: $xpm_problem"
15847 echo " WARNING: You should strongly consider installing XPM."
15848 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15849 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15850 echo " WARNING: -----------------------------------------------------------"
15852 if test "$with_png" = yes; then
15853 echo " Compiling in support for PNG images."
15854 elif test "$window_system" != "none"; then
15855 echo " WARNING: -----------------------------------------------------------"
15856 echo " WARNING: Compiling without PNG image support."
15857 if test "$png_problem" != ""; then
15858 echo " Reason: $png_problem"
15860 echo " WARNING: You should strongly consider installing the PNG libraries."
15861 echo " WARNING: Otherwise certain images and glyphs may not display."
15862 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15863 echo " WARNING: -----------------------------------------------------------"
15865 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15866 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15867 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15871 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15872 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15873 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15874 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15878 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15879 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15880 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15881 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15882 if test "$with_postgresql" = yes; then
15883 echo " Compiling in support for PostgreSQL."
15884 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15885 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15889 Internationalization:"
15890 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15891 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15892 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15893 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15894 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15895 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15896 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15897 if test "$with_wnn" = yes; then
15898 echo " Compiling in support for the WNN input method on Mule."
15899 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15901 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15905 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15906 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15907 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15908 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15912 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
15913 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15914 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15915 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15916 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15917 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15918 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15919 test "$pdump" = yes && echo " Using the new portable dumper."
15920 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15921 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15922 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15923 != "no no no no no no"; then
15924 echo " WARNING: ---------------------------------------------------------"
15925 echo " WARNING: Compiling in support for runtime error checking."
15926 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15927 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15928 echo " WARNING: ---------------------------------------------------------"
15931 ) | tee -a Installation
15935 # Remove any trailing slashes in these variables.
15936 test -n "$prefix" &&
15937 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15938 test -n "$exec_prefix" &&
15939 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15942 for file in $internal_makefile_list; do
15943 test "$file" = src/Makefile.in && \
15944 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15945 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15947 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15948 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
15952 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15955 # Let make expand exec_prefix.
15956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15958 # Any assignment to VPATH causes Sun make to only execute
15959 # the first set of double-colon rules, so remove it if not needed.
15960 # If there is a colon in the path, we need to keep it.
15961 if test "x$srcdir" = x.; then
15962 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15965 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15967 DEFS=-DHAVE_CONFIG_H
15969 # Without the "./", some shells look in PATH for config.status.
15970 : ${CONFIG_STATUS=./config.status}
15972 echo creating $CONFIG_STATUS
15973 rm -f $CONFIG_STATUS
15974 cat > $CONFIG_STATUS <<EOF
15976 # Generated automatically by configure.
15977 # Run this file to recreate the current configuration.
15978 # This directory was configured as follows,
15979 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15981 # $0 $ac_configure_args
15983 # Compiler output produced by configure, useful for debugging
15984 # configure, is in ./config.log if it exists.
15986 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15989 case "\$ac_option" in
15990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15991 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15992 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15993 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15994 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15996 -help | --help | --hel | --he | --h)
15997 echo "\$ac_cs_usage"; exit 0 ;;
15998 *) echo "\$ac_cs_usage"; exit 1 ;;
16002 ac_given_srcdir=$srcdir
16003 ac_given_INSTALL="$INSTALL"
16005 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16007 cat >> $CONFIG_STATUS <<EOF
16009 # Protect against being on the right side of a sed subst in config.status.
16010 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16011 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16015 s%@CFLAGS@%$CFLAGS%g
16016 s%@CPPFLAGS@%$CPPFLAGS%g
16017 s%@CXXFLAGS@%$CXXFLAGS%g
16018 s%@FFLAGS@%$FFLAGS%g
16020 s%@LDFLAGS@%$LDFLAGS%g
16022 s%@exec_prefix@%$exec_prefix%g
16023 s%@prefix@%$prefix%g
16024 s%@program_transform_name@%$program_transform_name%g
16025 s%@bindir@%$bindir%g
16026 s%@sbindir@%$sbindir%g
16027 s%@libexecdir@%$libexecdir%g
16028 s%@datadir@%$datadir%g
16029 s%@sysconfdir@%$sysconfdir%g
16030 s%@sharedstatedir@%$sharedstatedir%g
16031 s%@localstatedir@%$localstatedir%g
16032 s%@libdir@%$libdir%g
16033 s%@includedir@%$includedir%g
16034 s%@oldincludedir@%$oldincludedir%g
16035 s%@infodir@%$infodir%g
16036 s%@mandir@%$mandir%g
16038 s%@blddir@%$blddir%g
16041 s%@start_flags@%$start_flags%g
16042 s%@ld_switch_shared@%$ld_switch_shared%g
16043 s%@start_files@%$start_files%g
16045 s%@lib_gcc@%$lib_gcc%g
16046 s%@RANLIB@%$RANLIB%g
16047 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16048 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16049 s%@INSTALL_DATA@%$INSTALL_DATA%g
16051 s%@SET_MAKE@%$SET_MAKE%g
16052 s%@GTK_CONFIG@%$GTK_CONFIG%g
16053 s%@X_CFLAGS@%$X_CFLAGS%g
16054 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16055 s%@X_LIBS@%$X_LIBS%g
16056 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16057 s%@install_pp@%$install_pp%g
16058 s%@libs_xauth@%$libs_xauth%g
16059 s%@dnd_objs@%$dnd_objs%g
16060 s%@lwlib_objs@%$lwlib_objs%g
16061 s%@ALLOCA@%$ALLOCA%g
16062 s%@have_esd_config@%$have_esd_config%g
16063 s%@dll_ld@%$dll_ld%g
16064 s%@dll_cflags@%$dll_cflags%g
16065 s%@dll_ldflags@%$dll_ldflags%g
16066 s%@dll_post@%$dll_post%g
16067 s%@dll_ldo@%$dll_ldo%g
16068 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16069 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16070 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16071 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16072 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16073 s%@PROGNAME@%$PROGNAME%g
16074 s%@version@%$version%g
16075 s%@configuration@%$configuration%g
16076 s%@canonical@%$canonical%g
16077 s%@inststaticdir@%$inststaticdir%g
16078 s%@instvardir@%$instvardir%g
16079 s%@srcdir@%$srcdir%g
16080 s%@pkgdir@%$pkgdir%g
16081 s%@statedir@%$statedir%g
16082 s%@extra_includes@%$extra_includes%g
16083 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16084 s%@PREFIX@%$PREFIX%g
16085 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16086 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16087 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16088 s%@INFODIR@%$INFODIR%g
16089 s%@infopath@%$infopath%g
16090 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16091 s%@INFOPATH@%$INFOPATH%g
16092 s%@package_path@%$package_path%g
16093 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16094 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16095 s%@lispdir@%$lispdir%g
16096 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16097 s%@LISPDIR@%$LISPDIR%g
16098 s%@moduledir@%$moduledir%g
16099 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16100 s%@MODULEDIR@%$MODULEDIR%g
16101 s%@sitelispdir@%$sitelispdir%g
16102 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16103 s%@SITELISPDIR@%$SITELISPDIR%g
16104 s%@sitemoduledir@%$sitemoduledir%g
16105 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16106 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16107 s%@etcdir@%$etcdir%g
16108 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16109 s%@ETCDIR@%$ETCDIR%g
16110 s%@docdir@%$docdir%g
16111 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16112 s%@DOCDIR@%$DOCDIR%g
16113 s%@archlibdir@%$archlibdir%g
16114 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16115 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16116 s%@bitmapdir@%$bitmapdir%g
16117 s%@extra_objs@%$extra_objs%g
16118 s%@machfile@%$machfile%g
16119 s%@opsysfile@%$opsysfile%g
16120 s%@c_switch_general@%$c_switch_general%g
16121 s%@c_switch_window_system@%$c_switch_window_system%g
16122 s%@c_switch_all@%$c_switch_all%g
16123 s%@ld_switch_general@%$ld_switch_general%g
16124 s%@ld_switch_window_system@%$ld_switch_window_system%g
16125 s%@ld_switch_all@%$ld_switch_all%g
16126 s%@ld_libs_general@%$ld_libs_general%g
16127 s%@ld_libs_window_system@%$ld_libs_window_system%g
16128 s%@ld_libs_all@%$ld_libs_all%g
16129 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16130 s%@native_sound_lib@%$native_sound_lib%g
16131 s%@sound_cflags@%$sound_cflags%g
16132 s%@dynodump_arch@%$dynodump_arch%g
16133 s%@XEMACS_CC@%$XEMACS_CC%g
16134 s%@internal_makefile_list@%$internal_makefile_list%g
16139 cat >> $CONFIG_STATUS <<\EOF
16141 # Split the substitutions into bite-sized pieces for seds with
16142 # small command number limits, like on Digital OSF/1 and HP-UX.
16143 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16144 ac_file=1 # Number of current file.
16145 ac_beg=1 # First line for current file.
16146 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16149 while $ac_more_lines; do
16150 if test $ac_beg -gt 1; then
16151 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16153 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16155 if test ! -s conftest.s$ac_file; then
16156 ac_more_lines=false
16157 rm -f conftest.s$ac_file
16159 if test -z "$ac_sed_cmds"; then
16160 ac_sed_cmds="sed -f conftest.s$ac_file"
16162 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16164 ac_file=`expr $ac_file + 1`
16166 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16169 if test -z "$ac_sed_cmds"; then
16174 cat >> $CONFIG_STATUS <<EOF
16176 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16178 cat >> $CONFIG_STATUS <<\EOF
16179 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16182 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16183 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16184 *) ac_file_in="${ac_file}.in" ;;
16187 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16189 # Remove last slash and all that follows it. Not all systems have dirname.
16190 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16191 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16192 # The file is in a subdirectory.
16193 test ! -d "$ac_dir" && mkdir "$ac_dir"
16194 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16195 # A "../" for each directory in $ac_dir_suffix.
16196 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16198 ac_dir_suffix= ac_dots=
16201 case "$ac_given_srcdir" in
16203 if test -z "$ac_dots"; then top_srcdir=.
16204 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16205 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16206 *) # Relative path.
16207 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16208 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16211 case "$ac_given_INSTALL" in
16212 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16213 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16216 echo creating "$ac_file"
16218 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16220 *Makefile*) ac_comsub="1i\\
16221 # $configure_input" ;;
16225 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16227 s%@configure_input@%$configure_input%g
16228 s%@srcdir@%$srcdir%g
16229 s%@top_srcdir@%$top_srcdir%g
16230 s%@INSTALL@%$INSTALL%g
16231 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16238 # ac_d sets the value in "#define NAME VALUE" lines.
16239 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16240 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16243 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16244 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16245 ac_uB='\([ ]\)%\1#\2define\3'
16248 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16249 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16250 ac_eB='$%\1#\2define\3'
16254 if test "${CONFIG_HEADERS+set}" != set; then
16256 cat >> $CONFIG_STATUS <<EOF
16257 CONFIG_HEADERS="src/config.h lwlib/config.h"
16259 cat >> $CONFIG_STATUS <<\EOF
16261 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16266 *) ac_file_in="${ac_file}.in" ;;
16269 echo creating $ac_file
16271 rm -f conftest.frag conftest.in conftest.out
16272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16273 cat $ac_file_inputs > conftest.in
16277 # Transform confdefs.h into a sed script conftest.vals that substitutes
16278 # the proper values into config.h.in to produce config.h. And first:
16279 # Protect against being on the right side of a sed subst in config.status.
16280 # Protect against being in an unquoted here document in config.status.
16281 rm -f conftest.vals
16282 cat > conftest.hdr <<\EOF
16285 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16289 sed -n -f conftest.hdr confdefs.h > conftest.vals
16292 # This sed command replaces #undef with comments. This is necessary, for
16293 # example, in the case of _POSIX_SOURCE, which is predefined and required
16294 # on some systems where configure will not decide to define it.
16295 cat >> conftest.vals <<\EOF
16296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16299 # Break up conftest.vals because some shells have a limit on
16300 # the size of here documents, and old seds have small limits too.
16302 rm -f conftest.tail
16305 ac_lines=`grep -c . conftest.vals`
16306 # grep -c gives empty output for an empty file on some AIX systems.
16307 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16308 # Write a limited-size here document to conftest.frag.
16309 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16310 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16312 sed -f conftest.frag conftest.in > conftest.out
16314 mv conftest.out conftest.in
16315 ' >> $CONFIG_STATUS
16316 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16317 rm -f conftest.vals
16318 mv conftest.tail conftest.vals
16320 rm -f conftest.vals
16322 cat >> $CONFIG_STATUS <<\EOF
16323 rm -f conftest.frag conftest.h
16324 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16325 cat conftest.in >> conftest.h
16327 if cmp -s $ac_file conftest.h 2>/dev/null; then
16328 echo "$ac_file is unchanged"
16331 # Remove last slash and all that follows it. Not all systems have dirname.
16332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16334 # The file is in a subdirectory.
16335 test ! -d "$ac_dir" && mkdir "$ac_dir"
16338 mv conftest.h $ac_file
16343 cat >> $CONFIG_STATUS <<EOF
16345 top_srcdir="$srcdir"
16346 MAKE_SUBDIR="$MAKE_SUBDIR"
16349 cat >> $CONFIG_STATUS <<\EOF
16350 for dir in . $MAKE_SUBDIR; do
16355 sed -e '/^# Generated/d' \
16356 -e 's%/\*\*/#.*%%' \
16371 echo creating $dir/Makefile
16372 $CPP -I. -I${top_srcdir}/src junk.c \
16373 | sed -e 's/^\#.*//' \
16374 -e 's/^[ ][ ]*$//'\
16382 chmod 444 Makefile.new
16383 mv -f Makefile.new Makefile
16385 echo creating $dir/GNUmakefile
16386 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16387 | sed -e 's/^\#.*//' \
16388 -e 's/^[ ][ ]*$//'\
16396 chmod 444 Makefile.new
16397 mv -f Makefile.new GNUmakefile
16403 sed < config.status >> lib-src/config.values \
16404 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16405 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16406 -e 's/^\([^ ]*\) $/\1 ""/' \
16412 chmod +x $CONFIG_STATUS
16413 rm -fr confdefs* $ac_clean_files
16414 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1