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.
20 ### This file is part of XEmacs.
22 ### XEmacs is free software; you can redistribute it and/or modify it
23 ### under the terms of the GNU General Public License as published by
24 ### the Free Software Foundation; either version 2, or (at your
25 ### option) any later version.
27 ### XEmacs is distributed in the hope that it will be useful, but
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 ### General Public License for more details.
32 ### You should have received a copy of the GNU General Public License
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 ### For usage, run `./configure --help'
38 ### For more detailed information on building and installing XEmacs,
39 ### read the file `INSTALL'.
41 ### If configure succeeds, it leaves its status in config.status.
42 ### A log of configuration tests can be found in config.log.
43 ### If configure fails after disturbing the status quo,
44 ### config.status is removed.
47 --with-x use the X Window System"
51 if test -n "$ZSH_VERSION"; then
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
57 elif test -n "$BASH_VERSION"; then
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
72 program_transform_name=s,x,x,
83 SHELL=${CONFIG_SHELL-/bin/sh}
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
88 # File descriptor usage:
91 # 2 errors and warnings
92 # 3 some systems may open it to /dev/tty
93 # 4 used on the Kubota Titan
94 # 6 checking for... messages and results
95 # 5 compiler messages saved in config.log
96 if test "$silent" = yes; then
104 This file contains any messages produced by compilers while
105 running configure, to aid debugging if configure makes a mistake.
108 # Strip out --no-create and --no-recursion so they do not pile up.
109 # Also quote any args containing shell metacharacters.
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
115 | --no-cr | --no-c) ;;
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
125 # Only set these to C if already set. These must not be set unconditionally
126 # because not all systems understand e.g. LANG=C (notably SCO).
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
128 # Non-C LC_CTYPE values break the ctype check.
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
135 rm -rf conftest* confdefs.h
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
139 # A filename unique to this package, relative to the directory that
140 # configure is in, which we can look for to find out if srcdir is correct.
141 ac_unique_file=src/lisp.h
143 # Find the source files, if location was not specified.
144 if test -z "$srcdir"; then
145 ac_srcdir_defaulted=yes
146 # Try the directory containing this script, then its parent.
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
151 if test ! -r $srcdir/$ac_unique_file; then
155 ac_srcdir_defaulted=no
157 if test ! -r $srcdir/$ac_unique_file; then
158 if test "$ac_srcdir_defaulted" = yes; then
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
166 # Prefer explicitly selected file to automatically selected ones.
167 if test -z "$CONFIG_SITE"; then
168 if test "x$prefix" != xNONE; then
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
174 for ac_site_file in $CONFIG_SITE; do
175 if test -r "$ac_site_file"; then
176 echo "loading site script $ac_site_file"
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 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'
186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
202 ac_n= ac_c='\c' ac_t=
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
210 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
213 exec_prefix='${prefix}'
214 bindir='${exec_prefix}/bin'
215 datadir='${prefix}/lib'
216 statedir='${prefix}/lib'
217 libdir='${exec_prefix}/lib'
218 mandir='${prefix}/man/man1'
219 inststaticdir='${PROGNAME}'
220 instvardir='${PROGNAME}-${version}'
221 infodir='${datadir}/${instvardir}/info'
224 lispdir='${datadir}/${instvardir}/lisp'
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
228 pkgdir='${datadir}/${instvardir}/lisp'
230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}'
236 with_site_modules='yes'
242 cpp='' cppflags='' libs='' ldflags=''
248 with_system_malloc='default'
249 with_dlmalloc='default'
266 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c) ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
275 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
276 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
280 while test $# != 0; do
283 --no-create|--no-recursion) ;;
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
288 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
292 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
293 val="yes" valomitted=yes
298 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
300 case "${valomitted}-${opt}" in yes-without_* )
301 opt=`echo $opt | sed 's/without/with/'`
302 valomitted="no" val="no" ;;
309 with_site_modules | \
364 memory_usage_stats | \
365 with_clash_detection | \
369 y | ye | yes ) val=yes ;;
371 * ) (echo "$progname: Usage error:"
372 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
373 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
375 eval "$opt=\"$val\"" ;;
393 site_runtime_libraries )
394 if test "$valomitted" = "yes" ; then
395 if test "$#" = 0 ; then
396 (echo "$progname: Usage error:"
397 echo " " "The \`--$optname' option requires a value."
398 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
407 with_debug_malloc | use_debug_malloc | \
408 with_system_malloc | use_system_malloc )
410 y | ye | yes ) val=yes ;;
412 d | de | def | defa | defau | defaul | default ) val=default ;;
413 * ) (echo "$progname: Usage error:"
414 echo " " "The \`--$optname' option requires one of these values:
415 \`yes', \`no', or \`default'."
416 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
418 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
423 with_database_berkdb=no
425 with_database_gdbm=no
426 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
429 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
430 d | db | dbm ) with_database_dbm=yes ;;
431 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
432 * ) (echo "$progname: Usage error:"
433 echo " " "The \`--$optname' option value
434 must be either \`no' or a comma-separated list
435 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
436 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
439 if test "$with_database_dbm" = "yes" -a \
440 "$with_database_gdbm" = "yes"; then
441 (echo "$progname: Usage error:"
442 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
443 with the \`--$optname' option."
444 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
449 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
451 n | no | non | none ) new_sdefault=no ;;
452 a | al | all | both ) new_sdefault=yes ;;
454 native ) with_native_sound=yes ;;
455 nonative ) with_native_sound=no ;;
457 nas ) with_nas_sound=yes ;;
458 nonas ) with_nas_sound=no ;;
460 esd ) with_esd_sound=yes ;;
461 noesd ) with_esd_sound=no ;;
463 * ) bogus_sound=yes ;;
465 if test "$bogus_sound" -o \
466 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
467 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
468 (echo "$progname: Usage error:"
469 echo " " "Valid types for the \`--$optname' option are:
471 The default is to autodetect all sound support."
472 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
473 elif test -n "$new_sdefault" ; then
474 with_native_sound=$new_sdefault
475 with_nas_sound=$new_sdefault
476 with_esd_sound=$new_sdefault
477 new_sdefault= # reset this
485 xa | xaw ) val=xaw ;;
486 3 | 3d | xaw3d ) val=3d ;;
487 ne | nex | next | naxtaw) val=next ;;
488 9 | 95 | xaw95 ) val=95 ;;
489 xp | xpm | xawxpm ) val=xpm ;;
490 * ) (echo "$progname: Usage error:"
491 echo " " "The \`--$optname' option must have one of these values:
492 \`xaw', \`3d', \`next', \`95', or \`xpm'."
493 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
500 y | ye | yes ) val=yes ;;
501 n | no | non | none ) val=no ;;
502 x | xl | xli | xlib ) val=xlib ;;
503 m | mo | mot | moti | motif ) val=motif ;;
504 * ) (echo "$progname: Usage error:"
505 echo " " "The \`--$optname' option must have one of these values:
506 \`motif', \`xlib', \`yes', or \`no'."
507 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
516 file | dot ) val=file ;;
517 locking ) val=locking ;;
518 * ) (echo "$progname: Usage error:"
519 echo " " "The \`--$optname' option must have one of these values:
520 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
521 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
528 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
530 n | no | non | none ) new_default=no ;;
531 a | al | all ) new_default=yes ;;
533 extents ) error_check_extents=yes ;;
534 noextents ) error_check_extents=no ;;
536 typecheck ) error_check_typecheck=yes ;;
537 notypecheck ) error_check_typecheck=no ;;
539 bufpos ) error_check_bufpos=yes ;;
540 nobufpos ) error_check_bufpos=no ;;
542 gc ) error_check_gc=yes ;;
543 nogc ) error_check_gc=no ;;
545 malloc ) error_check_malloc=yes ;;
546 nomalloc ) error_check_malloc=no ;;
548 byte_code ) error_check_byte_code=yes ;;
549 nobyte_code ) error_check_byte_code=no ;;
551 glyphs ) error_check_glyphs=yes ;;
552 noglyphs ) error_check_glyphs=no ;;
554 * ) bogus_error_check=yes ;;
556 if test "$bogus_error_check" -o \
557 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
558 if test "$error_check_default" = yes ; then
559 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
561 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
563 (echo "$progname: Usage error:"
564 echo " " "Valid types for the \`--$optname' option are:
566 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
567 elif test -n "$new_default" ; then
568 error_check_extents=$new_default
569 error_check_typecheck=$new_default
570 error_check_bufpos=$new_default
571 error_check_gc=$new_default
572 error_check_malloc=$new_default
573 error_check_byte_code=$new_default
574 error_check_glyphs=$new_default
575 new_default= # reset this
582 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
583 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
584 archlibdir | docdir | package_path )
585 if test "$valomitted" = "yes"; then
586 if test "$#" = 0; then
587 (echo "$progname: Usage error:"
588 echo " " "The \`--$optname' option requires a value."
589 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
596 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
597 Defining EXEC_PREFIX_USER_DEFINED
599 cat >> confdefs.h <<\EOF
600 #define EXEC_PREFIX_USER_DEFINED 1
604 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
605 Defining LISPDIR_USER_DEFINED
607 cat >> confdefs.h <<\EOF
608 #define LISPDIR_USER_DEFINED 1
612 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
613 Defining SITELISPDIR_USER_DEFINED
615 cat >> confdefs.h <<\EOF
616 #define SITELISPDIR_USER_DEFINED 1
620 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
621 Defining MODULEDIR_USER_DEFINED
623 cat >> confdefs.h <<\EOF
624 #define MODULEDIR_USER_DEFINED 1
628 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
629 Defining ETCDIR_USER_DEFINED
631 cat >> confdefs.h <<\EOF
632 #define ETCDIR_USER_DEFINED 1
636 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
637 Defining INFODIR_USER_DEFINED
639 cat >> confdefs.h <<\EOF
640 #define INFODIR_USER_DEFINED 1
644 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
645 Defining INFOPATH_USER_DEFINED
647 cat >> confdefs.h <<\EOF
648 #define INFOPATH_USER_DEFINED 1
652 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
653 Defining PACKAGE_PATH_USER_DEFINED
655 cat >> confdefs.h <<\EOF
656 #define PACKAGE_PATH_USER_DEFINED 1
661 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining INFODIR_USER_DEFINED
664 cat >> confdefs.h <<\EOF
665 #define INFODIR_USER_DEFINED 1
669 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining LISPDIR_USER_DEFINED
672 cat >> confdefs.h <<\EOF
673 #define LISPDIR_USER_DEFINED 1
677 { test "$extra_verbose" = "yes" && cat << \EOF
678 Defining MODULEDIR_USER_DEFINED
680 cat >> confdefs.h <<\EOF
681 #define MODULEDIR_USER_DEFINED 1
685 { test "$extra_verbose" = "yes" && cat << \EOF
686 Defining ETCDIR_USER_DEFINED
688 cat >> confdefs.h <<\EOF
689 #define ETCDIR_USER_DEFINED 1
693 { test "$extra_verbose" = "yes" && cat << \EOF
694 Defining DOCDIR_USER_DEFINED
696 cat >> confdefs.h <<\EOF
697 #define DOCDIR_USER_DEFINED 1
701 { test "$extra_verbose" = "yes" && cat << \EOF
702 Defining ARCHLIBDIR_USER_DEFINED
704 cat >> confdefs.h <<\EOF
705 #define ARCHLIBDIR_USER_DEFINED 1
709 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
710 Defining DOCDIR_USER_DEFINED
712 cat >> confdefs.h <<\EOF
713 #define DOCDIR_USER_DEFINED 1
717 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
718 Defining ARCHLIBDIR_USER_DEFINED
720 cat >> confdefs.h <<\EOF
721 #define ARCHLIBDIR_USER_DEFINED 1
730 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
733 "with_scrollbars" | \
737 l | lu | luc | luci | lucid ) val=lucid ;;
738 m | mo | mot | moti | motif ) val=motif ;;
739 a | at | ath | athe | athen | athena ) val=athena ;;
740 n | no | non | none ) val=no ;;
741 y | ye | yes ) val=yes ;;
742 g | gt | gtk ) val=gtk ;;
743 m | ms | msw ) val=msw ;;
744 * ) (echo "$progname: Usage error:"
745 echo " " "The \`--$optname' option must have one of these values:
746 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
747 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
752 "use_minimal_tagbits" | \
753 "use_indexed_lrecord_implementation" | \
755 "const_is_losing" | \
757 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
760 * ) (echo "$progname: Usage error:"
761 echo " " "Unrecognized option: $arg"
762 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
767 *-*-*) configuration="$arg" ;;
769 *) (echo "$progname: Usage error:"
770 echo " " "Unrecognized argument: $arg"
771 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
777 test -n "$cpp" && CPP="$cpp"
778 test -n "$cppflags" && CPPFLAGS="$cppflags"
779 test -n "$libs" && LIBS="$libs"
780 test -n "$ldflags" && LDFLAGS="$ldflags"
782 eval set x "$quoted_arguments"; shift
784 test "$extra_verbose" = "yes" && verbose=yes
786 test -n "$with_x" && with_x11="$with_x"
788 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
789 test "$with_system_malloc" = "default" && with_system_malloc=yes
794 if test "$with_cde $with_tooltalk" = "yes no"; then
795 (echo "$progname: Usage error:"
796 echo " " "--with-cde requires --with-tooltalk"
797 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
798 elif test "$with_tooltalk" = "no" ; then with_cde=no
799 elif test "$with_cde" = "yes"; then with_tooltalk=yes
806 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
807 if test -f "$dir/src/lisp.h" -a \
808 -f "$dir/lisp/version.el" ; then
813 if test -z "$srcdir" ; then
814 (echo "$progname: Usage error:"
815 echo " " "Neither the current directory nor its parent seem to
816 contain the XEmacs sources. If you do not want to build XEmacs in its
817 source tree, you should run \`$progname' in the directory in which
818 you wish to build XEmacs, using the \`--srcdir' option to say where the
819 sources may be found."
820 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
825 if test ! -f "$srcdir/src/lisp.h" -o \
826 ! -f "$srcdir/lisp/version.el" ; then
827 (echo "$progname: Usage error:"
828 echo " " "The directory specified with the \`--srcdir' option,
829 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
830 either run the \`$progname' script at the top of the XEmacs source
831 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
832 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
837 if test -z "$configuration"; then
838 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
839 if test -z "$configuration"; then
840 (echo "$progname: Usage error:"
841 echo " " "XEmacs has not been ported to this host type.
842 Try explicitly specifying the CONFIGURATION when rerunning configure."
843 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
847 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
848 echo "configure:849: checking whether ln -s works" >&5
851 if ln -s X conftestdata 2>/dev/null
854 ac_cv_prog_LN_S="ln -s"
858 LN_S="$ac_cv_prog_LN_S"
859 if test "$ac_cv_prog_LN_S" = "ln -s"; then
860 echo "$ac_t""yes" 1>&6
862 echo "$ac_t""no" 1>&6
866 for dir in lisp etc man info tests; do
867 if test ! -d "$dir" ; then
868 echo Making symbolic link to "$srcdir/$dir"
869 ${LN_S} "$srcdir/$dir" "$dir"
874 absolute_pwd="`pwd`";
875 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
877 else blddir="$absolute_pwd"; if test -d "/net"; then
878 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
879 blddir=`echo "$blddir" | \
880 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
887 . ) srcdir="$blddir" ;;
888 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
889 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
890 srcdir=`echo "$srcdir" | \
891 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
895 if test `pwd` != `sh -c cd $srcdir && pwd` \
896 && test -f "$srcdir/src/config.h"; then
897 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
898 echo " as a build directory right now; it has been configured in its own"
899 echo " right. To configure in another directory as well, you MUST"
900 echo " use GNU make. If you do not have GNU make, then you must"
901 echo " now do \`make distclean' in $srcdir,"
902 echo " and then run $progname again.") >&2
903 extrasub='/^VPATH[ ]*=/c\
909 vpath %.in $(srcdir)'
912 . "$srcdir/version.sh" || exit 1;
913 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
914 : "${extra_verbose=$beta}"
915 version="${emacs_major_version}.${emacs_minor_version}"
916 { test "$extra_verbose" = "yes" && cat << EOF
917 Defining EMACS_MAJOR_VERSION = $emacs_major_version
919 cat >> confdefs.h <<EOF
920 #define EMACS_MAJOR_VERSION $emacs_major_version
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining EMACS_MINOR_VERSION = $emacs_minor_version
927 cat >> confdefs.h <<EOF
928 #define EMACS_MINOR_VERSION $emacs_minor_version
932 if test -n "$emacs_beta_version" ; then
933 if test "$beta" = "yes"; then
934 version="${version}-b${emacs_beta_version}"
935 { test "$extra_verbose" = "yes" && cat << EOF
936 Defining EMACS_BETA_VERSION = $emacs_beta_version
938 cat >> confdefs.h <<EOF
939 #define EMACS_BETA_VERSION $emacs_beta_version
944 version="${version}.${emacs_beta_version}"
945 { test "$extra_verbose" = "yes" && cat << EOF
946 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
948 cat >> confdefs.h <<EOF
949 #define EMACS_PATCH_LEVEL $emacs_beta_version
955 { test "$extra_verbose" = "yes" && cat << EOF
956 Defining XEMACS_CODENAME = "$xemacs_codename"
958 cat >> confdefs.h <<EOF
959 #define XEMACS_CODENAME "$xemacs_codename"
963 { test "$extra_verbose" = "yes" && cat << EOF
964 Defining EMACS_VERSION = "$version"
966 cat >> confdefs.h <<EOF
967 #define EMACS_VERSION "$version"
972 if test "$with_infodock" = "yes"; then
973 if test ! -f ../../ID-INSTALL; then
974 echo "Cannot build InfoDock without InfoDock sources"
979 if test "$with_infodock" = "yes"; then
980 { test "$extra_verbose" = "yes" && cat << EOF
981 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
983 cat >> confdefs.h <<EOF
984 #define INFODOCK_MAJOR_VERSION $infodock_major_version
988 { test "$extra_verbose" = "yes" && cat << EOF
989 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
991 cat >> confdefs.h <<EOF
992 #define INFODOCK_MINOR_VERSION $infodock_minor_version
996 { test "$extra_verbose" = "yes" && cat << EOF
997 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
999 cat >> confdefs.h <<EOF
1000 #define INFODOCK_BUILD_VERSION $infodock_build_version
1004 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1006 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1011 { test "$extra_verbose" = "yes" && cat << EOF
1012 Defining EMACS_PROGNAME = "$PROGNAME"
1014 cat >> confdefs.h <<EOF
1015 #define EMACS_PROGNAME "$PROGNAME"
1020 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1021 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1022 Defining ERROR_CHECK_EXTENTS
1024 cat >> confdefs.h <<\EOF
1025 #define ERROR_CHECK_EXTENTS 1
1029 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1030 Defining ERROR_CHECK_TYPECHECK
1032 cat >> confdefs.h <<\EOF
1033 #define ERROR_CHECK_TYPECHECK 1
1037 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1038 Defining ERROR_CHECK_BUFPOS
1040 cat >> confdefs.h <<\EOF
1041 #define ERROR_CHECK_BUFPOS 1
1045 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1046 Defining ERROR_CHECK_GC
1048 cat >> confdefs.h <<\EOF
1049 #define ERROR_CHECK_GC 1
1053 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1054 Defining ERROR_CHECK_MALLOC
1056 cat >> confdefs.h <<\EOF
1057 #define ERROR_CHECK_MALLOC 1
1061 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1062 Defining ERROR_CHECK_BYTE_CODE
1064 cat >> confdefs.h <<\EOF
1065 #define ERROR_CHECK_BYTE_CODE 1
1069 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1070 Defining ERROR_CHECK_GLYPHS
1072 cat >> confdefs.h <<\EOF
1073 #define ERROR_CHECK_GLYPHS 1
1077 if test "${debug:=$beta}" = "yes"; then
1078 use_assertions=yes memory_usage_stats=yes
1079 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1080 echo " xemacs will be linked with \"debug.o\""
1082 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1083 echo " xemacs will be linked with \"tests.o\""
1085 { test "$extra_verbose" = "yes" && cat << \EOF
1086 Defining DEBUG_XEMACS
1088 cat >> confdefs.h <<\EOF
1089 #define DEBUG_XEMACS 1
1094 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1095 Defining USE_ASSERTIONS
1097 cat >> confdefs.h <<\EOF
1098 #define USE_ASSERTIONS 1
1102 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1103 Defining MEMORY_USAGE_STATS
1105 cat >> confdefs.h <<\EOF
1106 #define MEMORY_USAGE_STATS 1
1112 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1113 echo "configure:1114: checking "host system type"" >&5
1114 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1115 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1116 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1117 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1118 echo "$ac_t""$configuration" 1>&6
1126 case "$canonical" in
1127 sparc-*-* ) machine=sparc ;;
1128 alpha*-*-* ) machine=alpha ;;
1129 vax-*-* ) machine=vax ;;
1130 mips-dec-* ) machine=pmax ;;
1131 mips-sgi-irix6* ) machine=iris6d ;;
1132 mips-sgi-* ) machine=iris4d ;;
1133 mips*-linux ) machine=mips ;;
1134 romp-ibm-* ) machine=ibmrt ;;
1135 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1136 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1137 powerpc*-* ) machine=powerpc ;;
1138 hppa-*-* ) machine=hp800 ;;
1139 m88k-dg-* ) machine=aviion ;;
1140 m68*-sony-* ) machine=news ;;
1141 mips-sony-* ) machine=news-risc ;;
1142 clipper-* ) machine=clipper ;;
1143 arm* ) machine=arm ;;
1144 ns32k-* ) machine=ns32000 ;;
1147 case "$canonical" in
1148 *-*-linux* ) opsys=linux ;;
1149 *-*-netbsd* ) opsys=netbsd ;;
1150 *-*-openbsd* ) opsys=openbsd ;;
1151 *-*-nextstep* ) opsys=nextstep ;;
1152 *-*-vms ) opsys=vms ;;
1154 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1155 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1156 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1157 *-dec-osf3* ) opsys=decosf3-1 ;;
1158 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1160 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1161 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1162 *-*-ultrix* ) opsys=ultrix4-3 ;;
1164 *-*-aix3.1* ) opsys=aix3-1 ;;
1165 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1166 *-*-aix3* ) opsys=aix3-2 ;;
1167 *-*-aix4.0* ) opsys=aix4 ;;
1168 *-*-aix4.1* ) opsys=aix4-1 ;;
1169 *-*-aix4* ) opsys=aix4-2 ;;
1171 *-gnu* ) opsys=gnu ;;
1172 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1173 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1174 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1175 *-*-aos4.2 ) opsys=bsd4-2 ;;
1176 *-*-aos* ) opsys=bsd4-3 ;;
1177 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1178 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1179 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1180 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1181 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1182 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1183 if test -z "$NON_GNU_CPP" ; then
1184 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1185 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1189 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1190 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1193 case "$canonical" in
1196 case "$canonical" in
1197 i[3-9]86-*-netbsd*) machine=intel386 ;;
1198 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1199 machine=hp9000s300 ;;
1200 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1201 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1206 case "${canonical}" in
1207 i386-*-openbsd*) machine=intel386 ;;
1208 m68k-*-openbsd*) machine=hp9000s300 ;;
1209 mipsel-*-openbsd*) machine=pmax ;;
1213 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1214 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1216 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1217 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1219 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1221 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1223 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1225 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1227 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1229 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1230 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1231 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1234 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1236 *-convex-bsd* | *-convex-convexos* )
1237 machine=convex opsys=bsd4-3
1238 NON_GNU_CPP="cc -E -P"
1241 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1243 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1244 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1245 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1246 m88k-dg-dgux* ) opsys=dgux ;;
1248 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1249 m88k-motorola-sysv4* )
1250 machine=delta88k opsys=usg5-4-2
1252 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1254 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1255 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1257 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1259 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1260 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1261 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1264 case "`uname -r`" in
1265 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1266 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1268 NON_GNU_CPP="/lib/cpp"
1270 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1271 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1273 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1275 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1278 case "$canonical" in
1279 m68* ) machine=hp9000s300 ;;
1280 hppa* ) machine=hp800 ;;
1283 case "$canonical" in
1284 *-hp-hpux7* ) opsys=hpux ;;
1285 *-hp-hpux8* ) opsys=hpux8 ;;
1286 *-hp-hpux9* ) opsys=hpux9 ;;
1287 *-hp-hpux10* ) opsys=hpux10 ;;
1288 *-hp-hpux11* ) opsys=hpux11 ;;
1292 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1293 echo " xemacs will be linked with \"strcat.o\""
1296 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1297 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1298 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1300 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1303 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1304 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1306 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1307 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1308 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1309 romp-ibm-aos* ) opsys=bsd4-3 ;;
1310 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1311 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1313 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1314 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1316 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1318 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1320 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1322 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1324 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1326 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1328 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1330 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1332 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1334 mips-mips-usg* ) machine=mips4 ;;
1337 NON_GNU_CC="cc -systype bsd43"
1338 NON_GNU_CPP="cc -systype bsd43 -E"
1339 case "$canonical" in
1340 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1341 mips-mips-riscos5* ) opsys=riscos5 ;;
1344 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1345 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1347 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1349 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1351 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1352 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1354 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1356 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1358 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1360 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1362 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1363 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1365 mips-siemens-sysv* | mips-sni-sysv*)
1366 machine=mips-siemens opsys=usg5-4
1367 NON_GNU_CC=/usr/ccs/bin/cc
1368 NON_GNU_CPP=/usr/ccs/lib/cpp
1373 NON_GNU_CC=/usr/ccs/bin/cc
1374 NON_GNU_CPP=/usr/ccs/lib/cpp
1377 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1378 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1379 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1380 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1381 mips-sgi-irix6* ) opsys=irix6-0 ;;
1382 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1383 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1384 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1385 mips-sgi-irix* ) opsys=irix5-0 ;;
1387 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1388 *-sony-news* ) opsys=newsos5 ;;
1390 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1392 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1393 case "$canonical" in
1394 m68*-sunos1* ) machine=sun1 ;;
1395 m68*-sunos2* ) machine=sun2 ;;
1396 m68* ) machine=sun3 ;;
1397 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1398 i*86-*-* ) machine=intel386 ;;
1399 rs6000* ) machine=rs6000 ;;
1402 case "$canonical" in *-sunos5*)
1403 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1406 case "$canonical" in
1408 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1411 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1415 case "$canonical" in
1418 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1419 { test "$extra_verbose" = "yes" && cat << EOF
1420 Defining OS_RELEASE = $os_release
1422 cat >> confdefs.h <<EOF
1423 #define OS_RELEASE $os_release
1428 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1429 *-sunos4.0* ) opsys=sunos4-0 ;;
1430 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1431 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1432 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1433 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1434 *-mach* ) opsys=mach-bsd4-3 ;;
1438 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1440 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1443 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1445 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1446 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1448 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1450 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1452 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1453 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1455 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1457 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1460 case "$canonical" in
1461 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1462 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1463 *-mach* ) opsys=mach-bsd4-3 ;;
1467 ns16k-whitechapel-* ) machine=mg1 ;;
1469 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1473 case "$canonical" in
1474 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1475 *-isc2.2* ) opsys=isc2-2 ;;
1476 *-isc4.0* ) opsys=isc4-0 ;;
1477 *-isc4.* ) opsys=isc4-1
1478 GCC_TEST_OPTIONS=-posix
1479 NON_GCC_TEST_OPTIONS=-Xp
1481 *-isc* ) opsys=isc3-0 ;;
1482 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1483 *-esix* ) opsys=esix ;;
1484 *-mach* ) opsys=mach-bsd4-3 ;;
1485 *-xenix* ) opsys=xenix ;;
1486 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1487 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1488 *-bsdi4* ) opsys=bsdos4 ;;
1489 *-bsdi3* ) opsys=bsdos3 ;;
1490 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1491 *-bsdi2* ) opsys=bsdos2 ;;
1492 *-sco3.2v5* ) opsys=sco5 ;;
1493 *-sysv5* ) opsys=sco7 ;;
1494 *-386bsd* ) opsys=386bsd ;;
1495 *-freebsd* ) opsys=freebsd ;;
1496 *-nextstep* ) opsys=nextstep ;;
1497 *-pc-cygwin* ) opsys=cygwin32 ;;
1498 *-pc-mingw* ) opsys=mingw32 ;
1499 test -z "$with_tty" && with_tty="no";;
1503 m68k-*-linux* ) machine=m68k opsys=linux ;;
1507 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1509 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1511 if test -r "${srcdir}/src/m/${machine}.h"; then
1512 machfile="m/${machine}.h"
1513 { test "$extra_verbose" = "yes" && cat << EOF
1514 Defining config_machfile = "$machfile"
1516 cat >> confdefs.h <<EOF
1517 #define config_machfile "$machfile"
1522 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1523 echo "Using configure-time autodetection only."
1526 if test -r "${srcdir}/src/s/${opsys}.h"; then
1527 opsysfile="s/${opsys}.h"
1528 { test "$extra_verbose" = "yes" && cat << EOF
1529 Defining config_opsysfile = "$opsysfile"
1531 cat >> confdefs.h <<EOF
1532 #define config_opsysfile "$opsysfile"
1537 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1538 echo "Using configure-time autodetection only."
1542 if test -z "$dynamic"; then
1544 hpux* | sunos4* ) dynamic=no ;;
1548 if test "$dynamic" = "yes"; then
1550 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1551 decosf* ) ld_call_shared="-call_shared" ;;
1553 else case "$opsys" in
1555 echo "Static linking is not supported on Solaris 2."
1556 echo "Rerun configure without specifying --dynamic=no."
1558 linux ) ld_call_shared="-Bstatic" ;;
1559 decosf* ) ld_call_shared="-non_shared" ;;
1563 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1565 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1566 { test "$extra_verbose" = "yes" && cat << EOF
1567 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1569 cat >> confdefs.h <<EOF
1570 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1576 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1577 if test "$with_workshop $with_tooltalk" = "yes no"; then
1578 (echo "$progname: Usage error:"
1579 echo " " "--with-workshop requires --with-tooltalk"
1580 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1581 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1582 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1585 if test "$with_workshop" = "yes"; then
1586 { test "$extra_verbose" = "yes" && cat << \EOF
1589 cat >> confdefs.h <<\EOF
1594 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1595 echo " xemacs will be linked with \"sunpro.o\""
1599 if test "$with_clash_detection" != "no"; then
1600 { test "$extra_verbose" = "yes" && cat << \EOF
1601 Defining CLASH_DETECTION
1603 cat >> confdefs.h <<\EOF
1604 #define CLASH_DETECTION 1
1608 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1609 echo " xemacs will be linked with \"filelock.o\""
1613 test -n "$compiler" && CC="$compiler"
1614 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1617 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1618 if test "${CFLAGS-unset}" != unset
1619 then cflags_specified=yes;
1620 else cflags_specified=no;
1623 xe_save_CFLAGS="$CFLAGS"
1625 # Extract the first word of "gcc", so it can be a program name with args.
1626 set dummy gcc; ac_word=$2
1627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1628 echo "configure:1629: checking for $ac_word" >&5
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1645 if test -n "$CC"; then
1646 echo "$ac_t""$CC" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 if test -z "$CC"; then
1652 # Extract the first word of "cc", so it can be a program name with args.
1653 set dummy cc; ac_word=$2
1654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_word" >&5
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1675 if test $ac_prog_rejected = yes; then
1676 # We found a bogon in the path, so make sure we never use it.
1677 set dummy $ac_cv_prog_CC
1679 if test $# -gt 0; then
1680 # We chose a different compiler from the bogus one.
1681 # However, it has the same basename, so the bogon will be chosen
1682 # first if we set CC to just the basename; use the full file name.
1684 set dummy "$ac_dir/$ac_word" "$@"
1691 if test -n "$CC"; then
1692 echo "$ac_t""$CC" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 if test -z "$CC"; then
1698 case "`uname -s`" in
1700 # Extract the first word of "cl", so it can be a program name with args.
1701 set dummy cl; ac_word=$2
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_word" >&5
1705 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1710 for ac_dir in $ac_dummy; do
1711 test -z "$ac_dir" && ac_dir=.
1712 if test -f $ac_dir/$ac_word; then
1720 if test -n "$CC"; then
1721 echo "$ac_t""$CC" 1>&6
1723 echo "$ac_t""no" 1>&6
1728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1735 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1736 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1737 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'
1738 ac_cpp='$CPP '"$xe_cppflags"
1739 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1740 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1743 cat > conftest.$ac_ext << EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1751 ac_cv_prog_cc_works=yes
1752 # If we can't run a trivial program, we are probably using a cross compiler.
1753 if (./conftest; exit) 2>/dev/null; then
1754 ac_cv_prog_cc_cross=no
1756 ac_cv_prog_cc_cross=yes
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 ac_cv_prog_cc_works=no
1765 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1766 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1767 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'
1768 ac_cpp='$CPP '"$xe_cppflags"
1769 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1770 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1774 if test $ac_cv_prog_cc_works = no; then
1775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1778 echo "configure:1779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1779 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1780 cross_compiling=$ac_cv_prog_cc_cross
1782 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether we are using GNU C" >&5
1785 cat > conftest.c <<EOF
1790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1796 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1798 if test $ac_cv_prog_gcc = yes; then
1804 ac_test_CFLAGS="${CFLAGS+set}"
1805 ac_save_CFLAGS="$CFLAGS"
1807 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ${CC-cc} accepts -g" >&5
1810 echo 'void f(){}' > conftest.c
1811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1819 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1820 if test "$ac_test_CFLAGS" = set; then
1821 CFLAGS="$ac_save_CFLAGS"
1822 elif test $ac_cv_prog_cc_g = yes; then
1823 if test "$GCC" = yes; then
1829 if test "$GCC" = yes; then
1836 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1838 # Extract the first word of "gcc", so it can be a program name with args.
1839 set dummy gcc; ac_word=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1848 for ac_dir in $ac_dummy; do
1849 test -z "$ac_dir" && ac_dir=.
1850 if test -f $ac_dir/$ac_word; then
1858 if test -n "$CC"; then
1859 echo "$ac_t""$CC" 1>&6
1861 echo "$ac_t""no" 1>&6
1864 if test -z "$CC"; then
1865 # Extract the first word of "cc", so it can be a program name with args.
1866 set dummy cc; ac_word=$2
1867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_word" >&5
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1892 if test $# -gt 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1897 set dummy "$ac_dir/$ac_word" "$@"
1904 if test -n "$CC"; then
1905 echo "$ac_t""$CC" 1>&6
1907 echo "$ac_t""no" 1>&6
1910 if test -z "$CC"; then
1911 case "`uname -s`" in
1913 # Extract the first word of "cl", so it can be a program name with args.
1914 set dummy cl; ac_word=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1923 for ac_dir in $ac_dummy; do
1924 test -z "$ac_dir" && ac_dir=.
1925 if test -f $ac_dir/$ac_word; then
1933 if test -n "$CC"; then
1934 echo "$ac_t""$CC" 1>&6
1936 echo "$ac_t""no" 1>&6
1941 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1948 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1949 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1950 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'
1951 ac_cpp='$CPP '"$xe_cppflags"
1952 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1953 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1956 cat > conftest.$ac_ext << EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1964 ac_cv_prog_cc_works=yes
1965 # If we can't run a trivial program, we are probably using a cross compiler.
1966 if (./conftest; exit) 2>/dev/null; then
1967 ac_cv_prog_cc_cross=no
1969 ac_cv_prog_cc_cross=yes
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 ac_cv_prog_cc_works=no
1978 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1979 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1980 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'
1981 ac_cpp='$CPP '"$xe_cppflags"
1982 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1983 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1986 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1987 if test $ac_cv_prog_cc_works = no; then
1988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1990 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1991 echo "configure:1992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1992 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1993 cross_compiling=$ac_cv_prog_cc_cross
1995 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether we are using GNU C" >&5
1998 cat > conftest.c <<EOF
2003 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2009 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2011 if test $ac_cv_prog_gcc = yes; then
2017 ac_test_CFLAGS="${CFLAGS+set}"
2018 ac_save_CFLAGS="$CFLAGS"
2020 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether ${CC-cc} accepts -g" >&5
2023 echo 'void f(){}' > conftest.c
2024 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2032 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2033 if test "$ac_test_CFLAGS" = set; then
2034 CFLAGS="$ac_save_CFLAGS"
2035 elif test $ac_cv_prog_cc_g = yes; then
2036 if test "$GCC" = yes; then
2042 if test "$GCC" = yes; then
2049 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_word" >&5
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2061 for ac_dir in $ac_dummy; do
2062 test -z "$ac_dir" && ac_dir=.
2063 if test -f $ac_dir/$ac_word; then
2071 if test -n "$CC"; then
2072 echo "$ac_t""$CC" 1>&6
2074 echo "$ac_t""no" 1>&6
2077 if test -z "$CC"; then
2078 # Extract the first word of "cc", so it can be a program name with args.
2079 set dummy cc; ac_word=$2
2080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_word" >&5
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/$ac_word; then
2092 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2101 if test $ac_prog_rejected = yes; then
2102 # We found a bogon in the path, so make sure we never use it.
2103 set dummy $ac_cv_prog_CC
2105 if test $# -gt 0; then
2106 # We chose a different compiler from the bogus one.
2107 # However, it has the same basename, so the bogon will be chosen
2108 # first if we set CC to just the basename; use the full file name.
2110 set dummy "$ac_dir/$ac_word" "$@"
2117 if test -n "$CC"; then
2118 echo "$ac_t""$CC" 1>&6
2120 echo "$ac_t""no" 1>&6
2123 if test -z "$CC"; then
2124 case "`uname -s`" in
2126 # Extract the first word of "cl", so it can be a program name with args.
2127 set dummy cl; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/$ac_word; then
2146 if test -n "$CC"; then
2147 echo "$ac_t""$CC" 1>&6
2149 echo "$ac_t""no" 1>&6
2154 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2157 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2161 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2162 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2163 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'
2164 ac_cpp='$CPP '"$xe_cppflags"
2165 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2166 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2169 cat > conftest.$ac_ext << EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2177 ac_cv_prog_cc_works=yes
2178 # If we can't run a trivial program, we are probably using a cross compiler.
2179 if (./conftest; exit) 2>/dev/null; then
2180 ac_cv_prog_cc_cross=no
2182 ac_cv_prog_cc_cross=yes
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 ac_cv_prog_cc_works=no
2191 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2192 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2193 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'
2194 ac_cpp='$CPP '"$xe_cppflags"
2195 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2196 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2199 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2200 if test $ac_cv_prog_cc_works = no; then
2201 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2203 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2205 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2206 cross_compiling=$ac_cv_prog_cc_cross
2208 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether we are using GNU C" >&5
2211 cat > conftest.c <<EOF
2216 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2222 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2224 if test $ac_cv_prog_gcc = yes; then
2230 ac_test_CFLAGS="${CFLAGS+set}"
2231 ac_save_CFLAGS="$CFLAGS"
2233 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether ${CC-cc} accepts -g" >&5
2236 echo 'void f(){}' > conftest.c
2237 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2245 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2246 if test "$ac_test_CFLAGS" = set; then
2247 CFLAGS="$ac_save_CFLAGS"
2248 elif test $ac_cv_prog_cc_g = yes; then
2249 if test "$GCC" = yes; then
2255 if test "$GCC" = yes; then
2263 CFLAGS="$xe_save_CFLAGS"
2266 test -n "$CPP" -a -d "$CPP" && CPP=
2268 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2270 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2271 echo "configure:2272: checking how to run the C preprocessor" >&5
2272 # On Suns, sometimes $CPP names a directory.
2273 if test -n "$CPP" && test -d "$CPP"; then
2276 if test -z "$CPP"; then
2278 # This must be in double quotes, not single quotes, because CPP may get
2279 # substituted into the Makefile and "${CC-cc}" will confuse make.
2281 # On the NeXT, cc -E runs the code through the compiler's parser,
2282 # not just through cpp.
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 CPP="${CC-cc} -E -traditional-cpp"
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 CPP="${CC-cc} -nologo -E"
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2340 ac_cv_prog_CPP="$CPP"
2341 CPP="$ac_cv_prog_CPP"
2343 ac_cv_prog_CPP="$CPP"
2345 echo "$ac_t""$CPP" 1>&6
2349 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2350 echo "configure:2351: checking for AIX" >&5
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360 egrep "yes" >/dev/null 2>&1; then
2362 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2363 Defining _ALL_SOURCE
2365 cat >> confdefs.h <<\EOF
2366 #define _ALL_SOURCE 1
2372 echo "$ac_t""no" 1>&6
2378 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2379 echo "configure:2380: checking for GNU libc" >&5
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 #include <features.h>
2386 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2387 #error Not a GNU libc system :-(
2388 ******* ======= ******** &&&&&&&&
2393 if { (eval echo configure:2394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2403 echo "$ac_t""$have_glibc" 1>&6
2404 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2405 Defining _GNU_SOURCE
2407 cat >> confdefs.h <<\EOF
2408 #define _GNU_SOURCE 1
2415 { test "$extra_verbose" = "yes" && cat << \EOF
2416 Defining __EXTENSIONS__
2418 cat >> confdefs.h <<\EOF
2419 #define __EXTENSIONS__ 1
2423 if test "$os_release" -ge 55; then
2424 { test "$extra_verbose" = "yes" && cat << \EOF
2425 Defining _XOPEN_SOURCE = 500
2427 cat >> confdefs.h <<\EOF
2428 #define _XOPEN_SOURCE 500
2432 { test "$extra_verbose" = "yes" && cat << \EOF
2433 Defining _XOPEN_SOURCE_EXTENDED
2435 cat >> confdefs.h <<\EOF
2436 #define _XOPEN_SOURCE_EXTENDED 1
2442 { test "$extra_verbose" = "yes" && cat << \EOF
2443 Defining _POSIX_C_SOURCE = 199506L
2445 cat >> confdefs.h <<\EOF
2446 #define _POSIX_C_SOURCE 199506L
2450 { test "$extra_verbose" = "yes" && cat << \EOF
2451 Defining _XOPEN_SOURCE = 500
2453 cat >> confdefs.h <<\EOF
2454 #define _XOPEN_SOURCE 500
2458 { test "$extra_verbose" = "yes" && cat << \EOF
2459 Defining _XOPEN_SOURCE_EXTENDED
2461 cat >> confdefs.h <<\EOF
2462 #define _XOPEN_SOURCE_EXTENDED 1
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2473 #if defined __SUNPRO_C
2475 #elif defined __DECC
2477 #elif defined __USLC__ && defined __SCO_VERSION__
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 case "$conftest_rc" in
2493 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2494 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2495 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2503 echo "Extracting information from the machine- and system-dependent headers..."
2505 tempcname="conftest.c"
2509 cat > $tempcname < confdefs.h
2510 cat >> $tempcname <<EOF
2512 #define C_SWITCH_SITE
2513 #define C_SWITCH_X_SITE
2514 #define LD_SWITCH_SITE
2515 #define LD_SWITCH_X_SITE
2516 #define LD_SWITCH_X_SITE_AUX
2517 #define OS_RELEASE $os_release
2519 #ifdef config_opsysfile
2520 #include "$srcdir/src/$opsysfile"
2523 #ifdef config_machfile
2524 #include "$srcdir/src/$machfile"
2527 #ifndef LIBS_MACHINE
2528 #define LIBS_MACHINE
2530 configure___ libs_machine=LIBS_MACHINE
2535 configure___ libs_system=LIBS_SYSTEM
2537 #ifndef LIBS_TERMCAP
2538 #define LIBS_TERMCAP
2540 configure___ libs_termcap=LIBS_TERMCAP
2542 #ifndef LIB_STANDARD
2543 #define LIB_STANDARD
2545 configure___ libs_standard=LIB_STANDARD
2548 #ifndef OBJECTS_MACHINE
2549 #define OBJECTS_MACHINE
2551 configure___ objects_machine=OBJECTS_MACHINE
2553 #ifndef OBJECTS_SYSTEM
2554 #define OBJECTS_SYSTEM
2556 configure___ objects_system=OBJECTS_SYSTEM
2559 #ifndef C_SWITCH_MACHINE
2560 #define C_SWITCH_MACHINE
2562 configure___ c_switch_machine=C_SWITCH_MACHINE
2564 #ifndef C_SWITCH_SYSTEM
2565 #define C_SWITCH_SYSTEM
2567 configure___ c_switch_system=C_SWITCH_SYSTEM
2570 #ifndef LD_SWITCH_MACHINE
2571 #define LD_SWITCH_MACHINE
2573 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2575 #ifndef LD_SWITCH_SYSTEM
2576 #define LD_SWITCH_SYSTEM
2578 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2582 #define UNEXEC "unexec.o"
2584 configure___ unexec=UNEXEC
2587 #ifndef LD_SWITCH_SHARED
2588 #define LD_SWITCH_SHARED "-c"
2590 configure___ ld_switch_shared=LD_SWITCH_SHARED
2593 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2594 configure___ ordinary_ld=ORDINARY_LD
2596 #ifdef ORDINARY_LINK
2597 #define LD ORDINARY_LD
2598 #else /* no ORDINARY LINK */
2599 #ifdef COFF_ENCAPSULATE
2600 #define LD "\$(CC) -nostdlib"
2601 #else /* not COFF_ENCAPSULATE */
2604 #else /* ! defined (LINKER) */
2606 #endif /* ! defined (LINKER) */
2607 #endif /* ! defined (COFF_ENCAPSULATE) */
2608 #endif /* not ORDINARY_LINK */
2614 configure___ lib_gcc=LIB_GCC
2616 #ifndef LD_TEXT_START_ADDR
2617 #define LD_TEXT_START_ADDR
2619 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2622 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2624 #ifdef COFF_ENCAPSULATE
2625 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2626 #else /* ! defined (COFF_ENCAPSULATE) */
2627 #define START_FILES "pre-crt0.o /lib/crt0.o"
2628 #endif /* ! defined (COFF_ENCAPSULATE) */
2629 #else /* ! defined (NO_REMAP) */
2630 #define START_FILES "ecrt0.o"
2631 #endif /* ! defined (NO_REMAP) */
2632 #endif /* no ORDINARY_LINK */
2636 configure___ start_files=START_FILES
2638 #ifdef ORDINARY_LINK
2639 configure___ ordinary_link=yes
2641 configure___ ordinary_link=no
2644 #ifdef SYSTEM_MALLOC
2645 configure___ system_malloc=yes
2647 configure___ system_malloc=no
2651 configure___ have_terminfo=yes
2653 configure___ have_terminfo=no
2656 #ifdef MAIL_USE_FLOCK
2657 configure___ mail_use_flock=yes
2659 configure___ mail_use_flock=no
2662 #ifdef MAIL_USE_LOCKF
2663 configure___ mail_use_lockf=yes
2665 configure___ mail_use_lockf=no
2668 #ifdef MAIL_USE_LOCKING
2669 configure___ mail_use_locking=yes
2671 configure___ mail_use_locking=no
2674 #ifdef HAVE_WIN32_PROCESSES
2675 configure___ win32_processes=yes
2677 configure___ win32_processes=no
2682 CPP=`eval "echo $CPP $CPPFLAGS"`
2683 eval `$CPP -Isrc $tempcname \
2684 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2688 if test "$pdump" = "yes"; then
2697 test "$extra_verbose" = "yes" && \
2698 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 ""
2700 case "$opsys" in mingw* | cygwin*)
2701 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2702 cygwin_include=`eval "dirname $cygwin_include"` ;
2703 cygwin_include="-I$cygwin_include/../include" ;
2704 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2705 case "$opsys" in mingw*)
2706 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2711 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2714 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2716 if test "$__USLC__" = yes; then
2717 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2718 echo "configure:2719: checking for whether the -Kalloca compiler flag is needed" >&5
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2725 void *x = alloca(4);
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2736 xe_save_c_switch_system="$c_switch_system"
2737 c_switch_system="$c_switch_system -Kalloca"
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 void *x = alloca(4);
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2754 c_switch_system="$xe_save_c_switch_system"
2757 echo "$ac_t""$need_kalloca" 1>&6
2758 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
2761 if test "$cflags_specified" = "no"; then
2762 if test "$GCC" = "yes"; then
2763 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2764 CFLAGS="$CFLAGS -Wsign-compare"
2765 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2766 elif test "$__SUNPRO_C" = "yes"; then
2768 sol2 ) CFLAGS="-v -xO4" ;;
2769 sunos4* ) CFLAGS="-xO2";;
2771 elif test "$__DECC" = "yes"; then
2773 elif test "$CC" = "xlc"; then
2774 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2779 if test "$GCC" = "yes"; then
2780 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2781 echo "configure:2782: checking for buggy gcc versions" >&5
2782 GCC_VERSION=`$CC --version`
2783 case `uname -s`:`uname -m`:$GCC_VERSION in
2784 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2788 *-fno-schedule-insns*) ;;
2790 echo "$ac_t""yes" 1>&6
2791 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2792 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2793 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2799 Linux:alpha:egcs-2.91.*)
2800 echo "$ac_t""yes" 1>&6
2801 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2802 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2803 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2808 case "$GCC_VERSION" in
2811 *-fno-strength-reduce*) ;;
2813 echo "$ac_t""yes" 1>&6
2814 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2815 echo "configure: warning: -fno-strength-reduce." 1>&2
2816 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2822 *-fno-caller-saves*) ;;
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-caller-saves." 1>&2
2827 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2834 echo "$ac_t""no" 1>&6
2838 if test "$GCC" = "yes"; then
2839 set x $ld_switch_system; shift; ld_switch_system=""
2840 while test -n "$1"; do
2842 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2843 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2845 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2851 if test "$GCC" = "yes"; then
2852 set x $ld_switch_machine; shift; ld_switch_machine=""
2853 while test -n "$1"; do
2855 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2856 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2858 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2864 if test "$GCC" = "yes"; then
2865 set x $LDFLAGS; shift; LDFLAGS=""
2866 while test -n "$1"; do
2868 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2869 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2871 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2877 if test "$GCC" = "yes"; then
2878 set x $ld_call_shared; shift; ld_call_shared=""
2879 while test -n "$1"; do
2881 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2882 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2884 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2890 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2891 echo " xemacs will be linked with \"$objects_machine\""
2893 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2894 echo " xemacs will be linked with \"$objects_system\""
2896 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2897 echo " xemacs will be linked with \"$unexec\""
2899 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2900 echo " xemacs will be linked with \"dumper.o\""
2903 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2904 echo "configure:2905: checking for dynodump" >&5
2905 if test "$unexec" != "unexsol2.o"; then
2906 echo "$ac_t""no" 1>&6
2908 echo "$ac_t""yes" 1>&6
2909 { test "$extra_verbose" = "yes" && cat << \EOF
2912 cat >> confdefs.h <<\EOF
2917 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2918 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2920 sparc ) dynodump_arch=sparc ;;
2921 *86* ) dynodump_arch=i386 ;;
2922 powerpc ) dynodump_arch=ppc ;;
2924 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
2928 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2930 if test "$unexec" = "unexaix.o"; then
2931 if test "$dynamic" = "no"; then
2932 start_flags="-Wl,-bnso,-bnodelcsect"
2933 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2934 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2935 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2937 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2938 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2941 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2942 echo "configure:2943: checking for terminateAndUnload in -lC" >&5
2943 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2945 xe_check_libs=" -lC "
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2952 char terminateAndUnload();
2955 terminateAndUnload()
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 eval "ac_cv_lib_$ac_lib_var=no"
2970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2971 echo "$ac_t""yes" 1>&6
2972 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2974 echo "$ac_t""no" 1>&6
2979 elif test -n "$ld_text_start_addr"; then
2980 start_flags="-T $ld_text_start_addr -e __start"
2986 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2987 test -z "$linker" && linker='$(CC) -nostdlib'
2988 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2990 test "$GCC" != "yes" && lib_gcc=
2996 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2997 if test -n "$site_libraries"; then
2998 for arg in $site_libraries; do
3001 * ) test -d "$arg" || \
3002 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3005 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3009 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3010 if test -n "$site_includes"; then
3011 for arg in $site_includes; do
3014 * ) test -d "$arg" || \
3015 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3018 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3022 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3023 if test -n "$site_prefixes"; then
3024 for dir in $site_prefixes; do
3025 lib_dir="${dir}/lib"
3026 inc_dir="${dir}/include"
3027 if test ! -d "$dir"; then
3028 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3029 elif test ! -d "$lib_dir"; then
3030 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3032 if test -d "$inc_dir"; then
3033 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
3035 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
3041 for dir in "/usr/ccs/lib"; do
3042 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
3045 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3046 if test -n "$site_runtime_libraries"; then
3047 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3055 if test -n "$add_runtime_path"; then :;
3056 elif test "$dynamic" = "no"; then add_runtime_path=no
3057 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3058 else case "$opsys" in
3059 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3060 * ) add_runtime_path=no ;;
3064 if test "$add_runtime_path" = "yes"; then
3065 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3066 echo "configure:3067: checking "for runtime libraries flag"" >&5
3068 sol2 ) dash_r="-R" ;;
3069 decosf* | linux* | irix*) dash_r="-rpath " ;;
3072 for try_dash_r in "-R" "-R " "-rpath "; do
3073 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3075 if test "$GCC" = "yes"; then
3076 set x $xe_check_libs; shift; xe_check_libs=""
3077 while test -n "$1"; do
3079 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3080 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3082 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3097 dash_r="$try_dash_r"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3104 test -n "$dash_r" && break
3107 if test -n "$dash_r";
3108 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3109 else echo "$ac_t""NONE" 1>&6
3113 xe_add_unique_runpath_dir='
3115 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3117 if test "$xe_add_p" = "yes"; then
3118 test -n "$runpath" && runpath="${runpath}:"
3119 runpath="${runpath}${xe_runpath_dir}"
3120 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3126 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3127 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3128 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3130 runpath="" runpath_dirs=""
3131 if test -n "$LD_RUN_PATH"; then
3132 runpath="$LD_RUN_PATH"
3133 elif test "$GCC" = "yes"; then
3134 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3135 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3136 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3137 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3138 case "$arg" in P,* | -L* | -R* )
3139 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3141 xe_runpath_dir="$dir"
3142 test "$xe_runpath_dir" != "/lib" -a \
3143 "$xe_runpath_dir" != "/usr/lib" -a \
3144 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3145 eval "$xe_add_unique_runpath_dir"
3150 ld_switch_run="$ld_switch_run_save"
3153 for arg in $ld_switch_site $ld_switch_x_site; do
3154 case "$arg" in -L*) {
3155 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3156 test "$xe_runpath_dir" != "/lib" -a \
3157 "$xe_runpath_dir" != "/usr/lib" -a \
3158 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3159 eval "$xe_add_unique_runpath_dir"
3162 if test "$opsys $need_motif" = "sol2 yes"; then
3163 xe_runpath_dir="/opt/SUNWdt/lib";
3164 eval "$xe_add_unique_runpath_dir";
3167 if test -n "$runpath"; then
3168 ld_switch_run="${dash_r}${runpath}"
3170 if test "$GCC" = "yes"; then
3171 set x $ld_switch_run; shift; ld_switch_run=""
3172 while test -n "$1"; do
3174 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3175 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3177 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3182 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3189 if test "$with_dlmalloc" != "no"; then
3194 after_morecore_hook_exists=yes
3195 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3196 echo "configure:3197: checking for malloc_set_state" >&5
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 /* System header to define __stub macros and hopefully few prototypes,
3202 which can conflict with char malloc_set_state(); below. */
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3207 char malloc_set_state();
3211 /* The GNU C library defines this for functions which it implements
3212 to always fail with ENOSYS. Some functions are actually named
3213 something starting with __ and the normal name is an alias. */
3214 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 eval "ac_cv_func_malloc_set_state=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_func_malloc_set_state=no"
3233 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3237 echo "$ac_t""no" 1>&6
3241 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3242 echo "configure:3243: checking whether __after_morecore_hook exists" >&5
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 extern void (* __after_morecore_hook)();
3248 __after_morecore_hook = 0
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3253 echo "$ac_t""yes" 1>&6
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 echo "$ac_t""no" 1>&6
3259 after_morecore_hook_exists=no
3262 if test "$system_malloc" = "yes" ; then
3265 - The GNU allocators don't work with this system configuration."
3266 elif test "$with_system_malloc" = "yes" ; then
3269 - User chose not to use GNU allocators."
3270 elif test "$with_debug_malloc" = "yes" ; then
3273 - User chose to use Debugging Malloc."
3276 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3278 - Using Doug Lea's new malloc from the GNU C Library."
3279 { test "$extra_verbose" = "yes" && cat << \EOF
3280 Defining DOUG_LEA_MALLOC
3282 cat >> confdefs.h <<\EOF
3283 #define DOUG_LEA_MALLOC 1
3287 if test "$after_morecore_hook_exists" = "no" ; then
3289 - Using Doug Lea's new malloc from the Linux C Library."
3290 { test "$extra_verbose" = "yes" && cat << \EOF
3291 Defining _NO_MALLOC_WARNING_
3293 cat >> confdefs.h <<\EOF
3294 #define _NO_MALLOC_WARNING_ 1
3304 # Extract the first word of "ranlib", so it can be a program name with args.
3305 set dummy ranlib; ac_word=$2
3306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_word" >&5
3309 if test -n "$RANLIB"; then
3310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3314 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f $ac_dir/$ac_word; then
3317 ac_cv_prog_RANLIB="ranlib"
3322 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3324 RANLIB="$ac_cv_prog_RANLIB"
3325 if test -n "$RANLIB"; then
3326 echo "$ac_t""$RANLIB" 1>&6
3328 echo "$ac_t""no" 1>&6
3332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3333 if test -f $ac_dir/install-sh; then
3335 ac_install_sh="$ac_aux_dir/install-sh -c"
3337 elif test -f $ac_dir/install.sh; then
3339 ac_install_sh="$ac_aux_dir/install.sh -c"
3343 if test -z "$ac_aux_dir"; then
3344 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3346 ac_config_guess=$ac_aux_dir/config.guess
3347 ac_config_sub=$ac_aux_dir/config.sub
3348 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3350 # Find a good install program. We prefer a C program (faster),
3351 # so one script is as good as another. But avoid the broken or
3352 # incompatible versions:
3353 # SysV /etc/install, /usr/sbin/install
3354 # SunOS /usr/etc/install
3355 # IRIX /sbin/install
3357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3360 # ./install, which can be erroneously created by make from ./install.sh.
3361 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3362 echo "configure:3363: checking for a BSD compatible install" >&5
3363 if test -z "$INSTALL"; then
3365 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3366 for ac_dir in $PATH; do
3367 # Account for people who put trailing slashes in PATH elements.
3369 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3371 # OSF1 and SCO ODT 3.0 have their own names for install.
3372 # Don't use installbsd from OSF since it installs stuff as root
3374 for ac_prog in ginstall scoinst install; do
3375 if test -f $ac_dir/$ac_prog; then
3376 if test $ac_prog = install &&
3377 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3378 # AIX install. It has an incompatible calling convention.
3381 ac_cv_path_install="$ac_dir/$ac_prog -c"
3391 if test "${ac_cv_path_install+set}" = set; then
3392 INSTALL="$ac_cv_path_install"
3394 # As a last resort, use the slow shell script. We don't cache a
3395 # path for INSTALL within a source directory, because that will
3396 # break other packages using the cache if that directory is
3397 # removed, or if the path is relative.
3398 INSTALL="$ac_install_sh"
3401 echo "$ac_t""$INSTALL" 1>&6
3403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3404 # It thinks the first close brace ends the variable substitution.
3405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3411 for ac_prog in 'bison -y' byacc
3413 # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set dummy $ac_prog; ac_word=$2
3415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_word" >&5
3418 if test -n "$YACC"; then
3419 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3423 for ac_dir in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 ac_cv_prog_YACC="$ac_prog"
3432 YACC="$ac_cv_prog_YACC"
3433 if test -n "$YACC"; then
3434 echo "$ac_t""$YACC" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 test -n "$YACC" && break
3441 test -n "$YACC" || YACC="yacc"
3444 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
3446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3448 echo "configure:3449: checking for $ac_hdr" >&5
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3456 { (eval echo configure:3457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3458 if test -z "$ac_err"; then
3460 eval "ac_cv_header_$ac_safe=yes"
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3466 eval "ac_cv_header_$ac_safe=no"
3469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3472 { test "$extra_verbose" = "yes" && cat << EOF
3475 cat >> confdefs.h <<EOF
3476 #define $ac_tr_hdr 1
3481 echo "$ac_t""no" 1>&6
3485 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3486 echo "configure:3487: checking for sys/wait.h that is POSIX.1 compatible" >&5
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <sys/types.h>
3492 #include <sys/wait.h>
3494 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3497 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3502 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 ac_cv_header_sys_wait_h=yes
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 ac_cv_header_sys_wait_h=no
3516 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3517 if test $ac_cv_header_sys_wait_h = yes; then
3518 { test "$extra_verbose" = "yes" && cat << \EOF
3519 Defining HAVE_SYS_WAIT_H
3521 cat >> confdefs.h <<\EOF
3522 #define HAVE_SYS_WAIT_H 1
3528 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3529 echo "configure:3530: checking for ANSI C header files" >&5
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3540 { (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3542 if test -z "$ac_err"; then
3544 ac_cv_header_stdc=yes
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 ac_cv_header_stdc=no
3554 if test $ac_cv_header_stdc = yes; then
3555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 egrep "memchr" >/dev/null 2>&1; then
3566 ac_cv_header_stdc=no
3572 if test $ac_cv_header_stdc = yes; then
3573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 egrep "free" >/dev/null 2>&1; then
3584 ac_cv_header_stdc=no
3590 if test $ac_cv_header_stdc = yes; then
3591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3596 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3599 int main () { int i; for (i = 0; i < 256; i++)
3600 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 ac_cv_header_stdc=no
3617 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3618 if test $ac_cv_header_stdc = yes; then
3619 { test "$extra_verbose" = "yes" && cat << \EOF
3620 Defining STDC_HEADERS
3622 cat >> confdefs.h <<\EOF
3623 #define STDC_HEADERS 1
3629 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3630 echo "configure:3631: checking whether time.h and sys/time.h may both be included" >&5
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3636 #include <sys/time.h>
3642 if { (eval echo configure:3643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3644 ac_cv_header_time=yes
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 ac_cv_header_time=no
3653 echo "$ac_t""$ac_cv_header_time" 1>&6
3654 if test $ac_cv_header_time = yes; then
3655 { test "$extra_verbose" = "yes" && cat << \EOF
3656 Defining TIME_WITH_SYS_TIME
3658 cat >> confdefs.h <<\EOF
3659 #define TIME_WITH_SYS_TIME 1
3665 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3666 echo "configure:3667: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 #include <sys/types.h>
3673 /* NetBSD declares sys_siglist in unistd.h. */
3674 #ifdef HAVE_UNISTD_H
3678 char *msg = *(sys_siglist + 1);
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_cv_decl_sys_siglist=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ac_cv_decl_sys_siglist=no
3692 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3693 if test $ac_cv_decl_sys_siglist = yes; then
3694 { test "$extra_verbose" = "yes" && cat << \EOF
3695 Defining SYS_SIGLIST_DECLARED
3697 cat >> confdefs.h <<\EOF
3698 #define SYS_SIGLIST_DECLARED 1
3706 echo $ac_n "checking for utime""... $ac_c" 1>&6
3707 echo "configure:3708: checking for utime" >&5
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <sys/types.h>
3714 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 echo "$ac_t""yes" 1>&6
3720 { test "$extra_verbose" = "yes" && cat << \EOF
3723 cat >> confdefs.h <<\EOF
3724 #define HAVE_UTIME 1
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 echo "$ac_t""no" 1>&6
3733 for ac_func in utimes
3735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3736 echo "configure:3737: checking for $ac_func" >&5
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741 /* System header to define __stub macros and hopefully few prototypes,
3742 which can conflict with char $ac_func(); below. */
3744 /* Override any gcc2 internal prototype to avoid an error. */
3745 /* We use char because int might match the return type of a gcc2
3746 builtin and then its argument prototype would still apply. */
3751 /* The GNU C library defines this for functions which it implements
3752 to always fail with ENOSYS. Some functions are actually named
3753 something starting with __ and the normal name is an alias. */
3754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 eval "ac_cv_func_$ac_func=yes"
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 eval "ac_cv_func_$ac_func=no"
3773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 { test "$extra_verbose" = "yes" && cat << EOF
3777 Defining $ac_tr_func
3779 cat >> confdefs.h <<EOF
3780 #define $ac_tr_func 1
3785 echo "$ac_t""no" 1>&6
3793 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3794 echo "configure:3795: checking return type of signal handlers" >&5
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <sys/types.h>
3805 extern "C" void (*signal (int, void (*)(int)))(int);
3807 void (*signal ()) ();
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 ac_cv_type_signal=void
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 ac_cv_type_signal=int
3825 echo "$ac_t""$ac_cv_type_signal" 1>&6
3826 { test "$extra_verbose" = "yes" && cat << EOF
3827 Defining RETSIGTYPE = $ac_cv_type_signal
3829 cat >> confdefs.h <<EOF
3830 #define RETSIGTYPE $ac_cv_type_signal
3835 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3836 echo "configure:3837: checking for size_t" >&5
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 #include <sys/types.h>
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3850 ac_cv_type_size_t=yes
3853 ac_cv_type_size_t=no
3857 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3858 if test $ac_cv_type_size_t = no; then
3859 { test "$extra_verbose" = "yes" && cat << \EOF
3860 Defining size_t = unsigned
3862 cat >> confdefs.h <<\EOF
3863 #define size_t unsigned
3869 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3870 echo "configure:3871: checking for pid_t" >&5
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <sys/types.h>
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3884 ac_cv_type_pid_t=yes
3891 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3892 if test $ac_cv_type_pid_t = no; then
3893 { test "$extra_verbose" = "yes" && cat << \EOF
3894 Defining pid_t = int
3896 cat >> confdefs.h <<\EOF
3903 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3904 echo "configure:3905: checking for uid_t in sys/types.h" >&5
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 #include <sys/types.h>
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 egrep "uid_t" >/dev/null 2>&1; then
3914 ac_cv_type_uid_t=yes
3922 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3923 if test $ac_cv_type_uid_t = no; then
3924 { test "$extra_verbose" = "yes" && cat << \EOF
3925 Defining uid_t = int
3927 cat >> confdefs.h <<\EOF
3932 { test "$extra_verbose" = "yes" && cat << \EOF
3933 Defining gid_t = int
3935 cat >> confdefs.h <<\EOF
3942 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3943 echo "configure:3944: checking for mode_t" >&5
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3948 #include <sys/types.h>
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3957 ac_cv_type_mode_t=yes
3960 ac_cv_type_mode_t=no
3964 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3965 if test $ac_cv_type_mode_t = no; then
3966 { test "$extra_verbose" = "yes" && cat << \EOF
3967 Defining mode_t = int
3969 cat >> confdefs.h <<\EOF
3976 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3977 echo "configure:3978: checking for off_t" >&5
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 #include <sys/types.h>
3988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3991 ac_cv_type_off_t=yes
3998 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3999 if test $ac_cv_type_off_t = no; then
4000 { test "$extra_verbose" = "yes" && cat << \EOF
4001 Defining off_t = long
4003 cat >> confdefs.h <<\EOF
4010 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4011 echo "configure:4012: checking for ssize_t" >&5
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <sys/types.h>
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4025 ac_cv_type_ssize_t=yes
4028 ac_cv_type_ssize_t=no
4032 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4033 if test $ac_cv_type_ssize_t = no; then
4034 { test "$extra_verbose" = "yes" && cat << \EOF
4035 Defining ssize_t = int
4037 cat >> confdefs.h <<\EOF
4045 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4046 echo "configure:4047: checking for socklen_t" >&5
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 #include <sys/socket.h>
4057 if { (eval echo configure:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 echo "$ac_t""yes" 1>&6
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <sys/socket.h>
4069 int accept (int, struct sockaddr *, size_t *);
4075 if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 echo "$ac_t""size_t" 1>&6
4079 { test "$extra_verbose" = "yes" && cat << \EOF
4080 Defining socklen_t = size_t
4082 cat >> confdefs.h <<\EOF
4083 #define socklen_t size_t
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4092 echo "$ac_t""int" 1>&6
4093 { test "$extra_verbose" = "yes" && cat << \EOF
4094 Defining socklen_t = int
4096 cat >> confdefs.h <<\EOF
4097 #define socklen_t int
4106 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4107 echo "configure:4108: checking for struct timeval" >&5
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #ifdef TIME_WITH_SYS_TIME
4112 #include <sys/time.h>
4115 #ifdef HAVE_SYS_TIME_H
4116 #include <sys/time.h>
4122 static struct timeval x; x.tv_sec = x.tv_usec;
4125 if { (eval echo configure:4126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 echo "$ac_t""yes" 1>&6
4129 { test "$extra_verbose" = "yes" && cat << \EOF
4130 Defining HAVE_TIMEVAL
4132 cat >> confdefs.h <<\EOF
4133 #define HAVE_TIMEVAL 1
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4141 echo "$ac_t""no" 1>&6
4146 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4147 echo "configure:4148: checking whether struct tm is in sys/time.h or time.h" >&5
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <sys/types.h>
4155 struct tm *tp; tp->tm_sec;
4158 if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 ac_cv_struct_tm=time.h
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4165 ac_cv_struct_tm=sys/time.h
4169 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4170 if test $ac_cv_struct_tm = sys/time.h; then
4171 { test "$extra_verbose" = "yes" && cat << \EOF
4172 Defining TM_IN_SYS_TIME
4174 cat >> confdefs.h <<\EOF
4175 #define TM_IN_SYS_TIME 1
4181 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4182 echo "configure:4183: checking for tm_zone in struct tm" >&5
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <sys/types.h>
4188 #include <$ac_cv_struct_tm>
4190 struct tm tm; tm.tm_zone;
4193 if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4195 ac_cv_struct_tm_zone=yes
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 ac_cv_struct_tm_zone=no
4204 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4205 if test "$ac_cv_struct_tm_zone" = yes; then
4206 { test "$extra_verbose" = "yes" && cat << \EOF
4207 Defining HAVE_TM_ZONE
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_TM_ZONE 1
4215 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4216 echo "configure:4217: checking for tzname" >&5
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4222 #ifndef tzname /* For SGI. */
4223 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4231 ac_cv_var_tzname=yes
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4240 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4241 if test $ac_cv_var_tzname = yes; then
4242 { test "$extra_verbose" = "yes" && cat << \EOF
4243 Defining HAVE_TZNAME
4245 cat >> confdefs.h <<\EOF
4246 #define HAVE_TZNAME 1
4254 echo $ac_n "checking for working const""... $ac_c" 1>&6
4255 echo "configure:4256: checking for working const" >&5
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4263 /* Ultrix mips cc rejects this. */
4264 typedef int charset[2]; const charset x;
4265 /* SunOS 4.1.1 cc rejects this. */
4266 char const *const *ccp;
4268 /* NEC SVR4.0.2 mips cc rejects this. */
4269 struct point {int x, y;};
4270 static struct point const zero = {0,0};
4271 /* AIX XL C 1.02.0.0 rejects this.
4272 It does not let you subtract one const X* pointer from another in an arm
4273 of an if-expression whose if-part is not a constant expression */
4274 const char *g = "string";
4275 ccp = &g + (g ? g-g : 0);
4276 /* HPUX 7.0 cc rejects these. */
4279 ccp = (char const *const *) p;
4280 { /* SCO 3.2v4 cc rejects this. */
4282 char const *s = 0 ? (char *) 0 : (char const *) 0;
4286 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4288 const int *foo = &x[0];
4291 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4292 typedef const int *iptr;
4296 { /* AIX XL C 1.02.0.0 rejects this saying
4297 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4298 struct s { int j; const int *ap[3]; };
4299 struct s *b; b->j = 5;
4301 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4307 if { (eval echo configure:4308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4318 echo "$ac_t""$ac_cv_c_const" 1>&6
4319 if test $ac_cv_c_const = no; then
4320 { test "$extra_verbose" = "yes" && cat << \EOF
4323 cat >> confdefs.h <<\EOF
4331 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4332 echo "configure:4333: checking whether ${MAKE-make} sets \${MAKE}" >&5
4333 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4335 cat > conftestmake <<\EOF
4337 @echo 'ac_maketemp="${MAKE}"'
4339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4340 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4341 if test -n "$ac_maketemp"; then
4342 eval ac_cv_prog_make_${ac_make}_set=yes
4344 eval ac_cv_prog_make_${ac_make}_set=no
4347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4351 echo "$ac_t""no" 1>&6
4352 SET_MAKE="MAKE=${MAKE-make}"
4356 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4357 echo "configure:4358: checking whether byte ordering is bigendian" >&5
4359 ac_cv_c_bigendian=unknown
4360 # See if sys/param.h defines the BYTE_ORDER macro.
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 #include <sys/types.h>
4365 #include <sys/param.h>
4368 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 if { (eval echo configure:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 # It does; now see whether it defined to BIG_ENDIAN or not.
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4383 #if BYTE_ORDER != BIG_ENDIAN
4388 if { (eval echo configure:4389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 ac_cv_c_bigendian=yes
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 ac_cv_c_bigendian=no
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4403 if test $ac_cv_c_bigendian = unknown; then
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4408 /* Are we little or big endian? From Harbison&Steele. */
4412 char c[sizeof (long)];
4415 exit (u.c[sizeof (long) - 1] == 1);
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4420 ac_cv_c_bigendian=no
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 ac_cv_c_bigendian=yes
4431 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4432 if test $ac_cv_c_bigendian = yes; then
4433 { test "$extra_verbose" = "yes" && cat << \EOF
4434 Defining WORDS_BIGENDIAN
4436 cat >> confdefs.h <<\EOF
4437 #define WORDS_BIGENDIAN 1
4444 echo $ac_n "checking size of short""... $ac_c" 1>&6
4445 echo "configure:4446: checking size of short" >&5
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4451 #include <sys/types.h>
4454 FILE *f=fopen("conftestval", "w");
4456 fprintf(f, "%d\n", sizeof(short));
4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4462 ac_cv_sizeof_short=`cat conftestval`
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 ac_cv_sizeof_short=0
4471 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4472 { test "$extra_verbose" = "yes" && cat << EOF
4473 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4475 cat >> confdefs.h <<EOF
4476 #define SIZEOF_SHORT $ac_cv_sizeof_short
4481 if test "$ac_cv_sizeof_short" = 0; then
4483 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4484 echo "*** PANIC *** Please examine config.log for compilation errors."
4487 echo $ac_n "checking size of int""... $ac_c" 1>&6
4488 echo "configure:4489: checking size of int" >&5
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4494 #include <sys/types.h>
4497 FILE *f=fopen("conftestval", "w");
4499 fprintf(f, "%d\n", sizeof(int));
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4505 ac_cv_sizeof_int=`cat conftestval`
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4514 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4515 { test "$extra_verbose" = "yes" && cat << EOF
4516 Defining SIZEOF_INT = $ac_cv_sizeof_int
4518 cat >> confdefs.h <<EOF
4519 #define SIZEOF_INT $ac_cv_sizeof_int
4524 echo $ac_n "checking size of long""... $ac_c" 1>&6
4525 echo "configure:4526: checking size of long" >&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(long));
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_long=`cat conftestval`
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4551 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4552 { test "$extra_verbose" = "yes" && cat << EOF
4553 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4555 cat >> confdefs.h <<EOF
4556 #define SIZEOF_LONG $ac_cv_sizeof_long
4561 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4562 echo "configure:4563: checking size of long 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 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_long=`cat conftestval`
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 ac_cv_sizeof_long_long=0
4588 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4589 { test "$extra_verbose" = "yes" && cat << EOF
4590 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4592 cat >> confdefs.h <<EOF
4593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4598 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4599 echo "configure:4600: checking size of void *" >&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(void *));
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_void_p=`cat conftestval`
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 ac_cv_sizeof_void_p=0
4625 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4626 { test "$extra_verbose" = "yes" && cat << EOF
4627 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4629 cat >> confdefs.h <<EOF
4630 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4636 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4637 echo "configure:4638: checking for long file names" >&5
4639 ac_cv_sys_long_file_names=yes
4640 # Test for long file names in all the places we know might matter:
4641 # . the current directory, where building will happen
4642 # $prefix/lib where we will be installing things
4643 # $exec_prefix/lib likewise
4644 # eval it to expand exec_prefix.
4645 # $TMPDIR if set, where it might want to write temporary files
4646 # if $TMPDIR is not set:
4647 # /tmp where it might want to write temporary files
4650 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4651 ac_tmpdirs="$TMPDIR"
4653 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4655 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4656 test -d $ac_dir || continue
4657 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4658 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4659 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4660 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4661 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4662 ac_cv_sys_long_file_names=no
4663 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4666 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4669 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4670 if test $ac_cv_sys_long_file_names = yes; then
4671 { test "$extra_verbose" = "yes" && cat << \EOF
4672 Defining HAVE_LONG_FILE_NAMES
4674 cat >> confdefs.h <<\EOF
4675 #define HAVE_LONG_FILE_NAMES 1
4682 echo $ac_n "checking for sin""... $ac_c" 1>&6
4683 echo "configure:4684: checking for sin" >&5
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 /* System header to define __stub macros and hopefully few prototypes,
4689 which can conflict with char sin(); below. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 /* We use char because int might match the return type of a gcc2
4693 builtin and then its argument prototype would still apply. */
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub_sin) || defined (__stub___sin)
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 eval "ac_cv_func_sin=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_func_sin=no"
4720 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4724 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4727 echo "configure:4728: checking for sin in -lm" >&5
4728 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4730 xe_check_libs=" -lm "
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 eval "ac_cv_lib_$ac_lib_var=yes"
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 eval "ac_cv_lib_$ac_lib_var=no"
4755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4759 { test "$extra_verbose" = "yes" && cat << EOF
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_lib 1
4767 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4770 echo "$ac_t""no" 1>&6
4777 { test "$extra_verbose" = "yes" && cat << \EOF
4778 Defining LISP_FLOAT_TYPE
4780 cat >> confdefs.h <<\EOF
4781 #define LISP_FLOAT_TYPE 1
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4791 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4794 if { (eval echo configure:4795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4796 { test "$extra_verbose" = "yes" && cat << \EOF
4797 Defining HAVE_INVERSE_HYPERBOLIC
4799 cat >> confdefs.h <<\EOF
4800 #define HAVE_INVERSE_HYPERBOLIC 1
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4810 echo "checking type of mail spool file locking" 1>&6
4811 echo "configure:4812: checking type of mail spool file locking" >&5
4812 for ac_func in lockf flock
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* System header to define __stub macros and hopefully few prototypes,
4821 which can conflict with char $ac_func(); below. */
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4830 /* The GNU C library defines this for functions which it implements
4831 to always fail with ENOSYS. Some functions are actually named
4832 something starting with __ and the normal name is an alias. */
4833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4841 if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4843 eval "ac_cv_func_$ac_func=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4848 eval "ac_cv_func_$ac_func=no"
4852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4855 { test "$extra_verbose" = "yes" && cat << EOF
4856 Defining $ac_tr_func
4858 cat >> confdefs.h <<EOF
4859 #define $ac_tr_func 1
4864 echo "$ac_t""no" 1>&6
4868 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4869 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4870 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4871 if test -z "$mail_locking"; then
4872 case "$opsys" in cygwin* | mingw*)
4877 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4878 Defining MAIL_LOCK_LOCKF
4880 cat >> confdefs.h <<\EOF
4881 #define MAIL_LOCK_LOCKF 1
4885 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4886 Defining MAIL_LOCK_FLOCK
4888 cat >> confdefs.h <<\EOF
4889 #define MAIL_LOCK_FLOCK 1
4893 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4894 Defining MAIL_LOCK_LOCKING
4896 cat >> confdefs.h <<\EOF
4897 #define MAIL_LOCK_LOCKING 1
4901 elif test "$mail_locking" = "pop"; then
4904 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4905 Defining MAIL_LOCK_DOT
4907 cat >> confdefs.h <<\EOF
4908 #define MAIL_LOCK_DOT 1
4913 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4914 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4915 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4916 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4917 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4918 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4920 case "$opsys" in decosf*)
4922 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4923 echo "configure:4924: checking for cma_open in -lpthreads" >&5
4924 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4926 xe_check_libs=" -lpthreads "
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4941 eval "ac_cv_lib_$ac_lib_var=yes"
4943 echo "configure: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4946 eval "ac_cv_lib_$ac_lib_var=no"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4955 { test "$extra_verbose" = "yes" && cat << EOF
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_lib 1
4963 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4966 echo "$ac_t""no" 1>&6
4970 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4971 c_switch_site="$c_switch_site -threads" ;;
4974 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4975 echo "configure:4976: checking whether the -xildoff compiler flag is required" >&5
4976 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4977 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4978 then echo "$ac_t""no" 1>&6;
4979 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
4981 else echo "$ac_t""no" 1>&6
4984 if test "$opsys" = "sol2"; then
4985 if test "$os_release" -ge 56; then
4986 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4987 echo "configure:4988: checking for \"-z ignore\" linker flag" >&5
4988 case "`ld -h 2>&1`" in
4989 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4990 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4991 *) echo "$ac_t""no" 1>&6 ;;
4997 echo "checking "for specified window system"" 1>&6
4998 echo "configure:4999: checking "for specified window system"" >&5
5004 if test "$with_gnome" != "no"; then
5005 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5006 echo "configure:5007: checking for GNOME configuration script" >&5
5007 for possible in gnome-config
5009 possible_version=`${possible} --version 2> /dev/null`
5010 if test "x${possible_version}" != "x"; then
5011 GNOME_CONFIG="${possible}"
5017 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5020 if test "${GNOME_CONFIG}" != "no"; then
5021 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5022 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5023 { test "$extra_verbose" = "yes" && cat << \EOF
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_GNOME 1
5031 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5032 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5035 if test "$with_gtk" != "no";then
5036 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5037 echo "configure:5038: checking for GTK configuration script" >&5
5038 for possible in gtk12-config gtk14-config gtk-config
5040 possible_version=`${possible} --version 2> /dev/null`
5041 if test "x${possible_version}" != "x"; then
5042 GTK_CONFIG="${possible}"
5044 case "${possible_version}" in
5045 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5046 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5051 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5054 echo "$ac_t""${GTK_CONFIG}" 1>&6
5057 if test "${GTK_CONFIG}" != "no"; then
5058 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5059 echo "configure:5060: checking gtk version" >&5
5060 GTK_VERSION=`${GTK_CONFIG} --version`
5061 echo "$ac_t""${GTK_VERSION}" 1>&6
5063 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5064 echo "configure:5065: checking gtk libs" >&5
5065 GTK_LIBS=`${GTK_CONFIG} --libs`
5066 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5067 echo "$ac_t""${GTK_LIBS}" 1>&6
5069 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5070 echo "configure:5071: checking gtk cflags" >&5
5071 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5072 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5073 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5076 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5077 echo "configure:5078: checking for main in -lgdk_imlib" >&5
5078 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5080 xe_check_libs=" -lgdk_imlib "
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 eval "ac_cv_lib_$ac_lib_var=yes"
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5096 eval "ac_cv_lib_$ac_lib_var=no"
5101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5102 echo "$ac_t""yes" 1>&6
5103 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5105 echo "$ac_t""no" 1>&6
5110 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5111 echo "configure:5112: checking for Imlib_init in -lImlib" >&5
5112 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5114 xe_check_libs=" -lImlib "
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 /* Override any gcc2 internal prototype to avoid an error. */
5119 /* We use char because int might match the return type of a gcc2
5120 builtin and then its argument prototype would still apply. */
5127 if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 eval "ac_cv_lib_$ac_lib_var=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 eval "ac_cv_lib_$ac_lib_var=no"
5139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5140 echo "$ac_t""yes" 1>&6
5141 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5143 echo "$ac_t""no" 1>&6
5147 for ac_func in gdk_imlib_init
5149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_func" >&5
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* System header to define __stub macros and hopefully few prototypes,
5156 which can conflict with char $ac_func(); below. */
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5165 /* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 eval "ac_cv_func_$ac_func=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_func_$ac_func=no"
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 { test "$extra_verbose" = "yes" && cat << EOF
5191 Defining $ac_tr_func
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_func 1
5199 echo "$ac_t""no" 1>&6
5204 { test "$extra_verbose" = "yes" && cat << \EOF
5207 cat >> confdefs.h <<\EOF
5212 { test "$extra_verbose" = "yes" && cat << \EOF
5215 cat >> confdefs.h <<\EOF
5226 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5227 test "${with_toolbars}" != no && with_toolbars=gtk
5228 test "${with_menubars}" != "no" && with_menubars=gtk
5229 test "${with_dialogs}" != "no" && with_dialogs=gtk
5230 test "${with_widgets}" != "no" && with_widgets=gtk
5232 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5233 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5235 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5236 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5238 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5239 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5241 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5242 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5245 OLD_CFLAGS="${CFLAGS}"
5246 OLD_LDFLAGS="${LDFLAGS}"
5247 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5248 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5249 for ac_hdr in glade/glade.h glade.h
5251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_hdr" >&5
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5265 eval "ac_cv_header_$ac_safe=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5271 eval "ac_cv_header_$ac_safe=no"
5274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5277 { test "$extra_verbose" = "yes" && cat << EOF
5280 cat >> confdefs.h <<EOF
5281 #define $ac_tr_hdr 1
5286 echo "$ac_t""no" 1>&6
5291 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5292 echo "configure:5293: checking for main in -lxml" >&5
5293 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5295 xe_check_libs=" -lxml "
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5317 echo "$ac_t""yes" 1>&6
5318 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5320 echo "$ac_t""no" 1>&6
5325 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5326 echo "configure:5327: checking for main in -lglade" >&5
5327 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5329 xe_check_libs=" -lglade "
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 eval "ac_cv_lib_$ac_lib_var=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 eval "ac_cv_lib_$ac_lib_var=no"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5351 echo "$ac_t""yes" 1>&6
5352 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5354 echo "$ac_t""no" 1>&6
5359 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5360 echo "configure:5361: checking for main in -lglade-gnome" >&5
5361 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5363 xe_check_libs=" -lglade-gnome "
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374 eval "ac_cv_lib_$ac_lib_var=yes"
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 eval "ac_cv_lib_$ac_lib_var=no"
5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5385 echo "$ac_t""yes" 1>&6
5386 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5388 echo "$ac_t""no" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <glade/glade-xml.h>
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5400 echo "$ac_t""yes" 1>&6
5401 { test "$extra_verbose" = "yes" && cat << \EOF
5402 Defining LIBGLADE_XML_TXTDOMAIN = 1
5404 cat >> confdefs.h <<\EOF
5405 #define LIBGLADE_XML_TXTDOMAIN 1
5411 echo "$ac_t""no" 1>&6
5415 CFLAGS="${OLD_CFLAGS}"
5416 LDFLAGS="${OLD_LDFLAGS}"
5420 if test "$with_x11" != "no"; then
5421 test "$x_includes $x_libraries" != "NONE NONE" && \
5422 window_system=x11 with_x11=yes
5425 if test "$x_includes $x_libraries" = "NONE NONE" \
5426 -a -n "$OPENWINHOME" \
5427 -a "$OPENWINHOME" != "/usr/openwin" \
5428 -a -d "$OPENWINHOME"; then
5429 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5430 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5431 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5434 if test "$x_includes" = "NONE"; then
5435 for dir in "/usr/X11" "/usr/X11R6"; do
5436 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5440 if test "$x_libraries" = "NONE"; then
5441 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5442 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5446 # If we find X, set shell vars x_includes and x_libraries to the
5447 # paths, otherwise set no_x=yes.
5448 # Uses ac_ vars as temps to allow command line to override cache and checks.
5449 # --without-x overrides everything else, but does not touch the cache.
5450 echo $ac_n "checking for X""... $ac_c" 1>&6
5451 echo "configure:5452: checking for X" >&5
5453 # Check whether --with-x or --without-x was given.
5454 if test "${with_x+set}" = set; then
5459 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5460 if test "x$with_x" = xno; then
5461 # The user explicitly disabled X.
5464 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5465 # Both variables are already set.
5469 # One or both of the vars are not set, and there is no cached value.
5470 ac_x_includes=NO ac_x_libraries=NO
5472 if mkdir conftestdir; then
5474 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5475 cat > Imakefile <<'EOF'
5477 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5479 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5481 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5482 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5483 for ac_extension in a so sl; do
5484 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5485 test -f $ac_im_libdir/libX11.$ac_extension; then
5486 ac_im_usrlibdir=$ac_im_libdir; break
5489 # Screen out bogus values from the imake configuration. They are
5490 # bogus both because they are the default anyway, and because
5491 # using them would break gcc on systems where it needs fixed includes.
5492 case "$ac_im_incroot" in
5494 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5496 case "$ac_im_usrlibdir" in
5498 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5505 if test "$ac_x_includes" = NO; then
5506 # Guess where to find include files, by looking for this one X11 .h file.
5507 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5509 # First, try using that file with no special directory specified.
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 #include <$x_direct_test_include>
5515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5516 { (eval echo configure:5517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5518 if test -z "$ac_err"; then
5520 # We can compile using X headers with no special include directory.
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 # Look for the header file in a standard set of common directories.
5528 # Check X11 before X11Rn because it is often a symlink to the current release.
5531 /usr/X11R6/include \
5532 /usr/X11R5/include \
5533 /usr/X11R4/include \
5536 /usr/include/X11R6 \
5537 /usr/include/X11R5 \
5538 /usr/include/X11R4 \
5540 /usr/local/X11/include \
5541 /usr/local/X11R6/include \
5542 /usr/local/X11R5/include \
5543 /usr/local/X11R4/include \
5545 /usr/local/include/X11 \
5546 /usr/local/include/X11R6 \
5547 /usr/local/include/X11R5 \
5548 /usr/local/include/X11R4 \
5552 /usr/XFree86/include/X11 \
5555 /usr/local/include \
5556 /usr/unsupported/include \
5557 /usr/athena/include \
5558 /usr/local/x11r5/include \
5559 /usr/lpp/Xamples/include \
5561 /usr/openwin/include \
5562 /usr/openwin/share/include \
5565 if test -r "$ac_dir/$x_direct_test_include"; then
5566 ac_x_includes=$ac_dir
5572 fi # $ac_x_includes = NO
5574 if test "$ac_x_libraries" = NO; then
5575 # Check for the libraries.
5577 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5578 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5580 # See if we find them without any special options.
5581 # Don't add to $LIBS permanently.
5582 ac_save_LIBS="$LIBS"
5583 LIBS="-l$x_direct_test_library $LIBS"
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5589 ${x_direct_test_function}()
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 LIBS="$ac_save_LIBS"
5595 # We can link X programs with no special library path.
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 LIBS="$ac_save_LIBS"
5602 # First see if replacing the include by lib works.
5603 # Check X11 before X11Rn because it is often a symlink to the current release.
5604 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5615 /usr/local/X11/lib \
5616 /usr/local/X11R6/lib \
5617 /usr/local/X11R5/lib \
5618 /usr/local/X11R4/lib \
5620 /usr/local/lib/X11 \
5621 /usr/local/lib/X11R6 \
5622 /usr/local/lib/X11R5 \
5623 /usr/local/lib/X11R4 \
5627 /usr/XFree86/lib/X11 \
5631 /usr/unsupported/lib \
5633 /usr/local/x11r5/lib \
5634 /usr/lpp/Xamples/lib \
5638 /usr/openwin/share/lib \
5641 for ac_extension in a so sl; do
5642 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5643 ac_x_libraries=$ac_dir
5650 fi # $ac_x_libraries = NO
5652 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5653 # Didn't find X anywhere. Cache the known absence of X.
5654 ac_cv_have_x="have_x=no"
5656 # Record where we found X for the cache.
5657 ac_cv_have_x="have_x=yes \
5658 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5661 eval "$ac_cv_have_x"
5664 if test "$have_x" != yes; then
5665 echo "$ac_t""$have_x" 1>&6
5668 # If each of the values was on the command line, it overrides each guess.
5669 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5670 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5671 # Update the cache value to reflect the command line values.
5672 ac_cv_have_x="have_x=yes \
5673 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5674 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5677 if test "$no_x" = yes; then
5678 # Not all programs may use this symbol, but it does not hurt to define it.
5679 { test "$extra_verbose" = "yes" && cat << \EOF
5680 Defining X_DISPLAY_MISSING
5682 cat >> confdefs.h <<\EOF
5683 #define X_DISPLAY_MISSING 1
5687 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5689 if test -n "$x_includes"; then
5690 X_CFLAGS="$X_CFLAGS -I$x_includes"
5693 # It would also be nice to do this for all -L options, not just this one.
5694 if test -n "$x_libraries"; then
5695 X_LIBS="$X_LIBS -L$x_libraries"
5696 # For Solaris; some versions of Sun CC require a space after -R and
5697 # others require no space. Words are not sufficient . . . .
5698 case "`(uname -sr) 2>/dev/null`" in
5700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5701 echo "configure:5702: checking whether -R must be followed by a space" >&5
5702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5703 cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5721 if test $ac_R_nospace = yes; then
5722 echo "$ac_t""no" 1>&6
5723 X_LIBS="$X_LIBS -R$x_libraries"
5725 LIBS="$ac_xsave_LIBS -R $x_libraries"
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5744 if test $ac_R_space = yes; then
5745 echo "$ac_t""yes" 1>&6
5746 X_LIBS="$X_LIBS -R $x_libraries"
5748 echo "$ac_t""neither works" 1>&6
5751 LIBS="$ac_xsave_LIBS"
5755 # Check for system-dependent libraries X programs must link with.
5756 # Do this before checking for the system-independent R6 libraries
5757 # (-lICE), since we may need -lsocket or whatever for X linking.
5759 if test "$ISC" = yes; then
5760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5762 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5763 # libraries were built with DECnet support. And karl@cs.umb.edu says
5764 # the Alpha needs dnet_stub (dnet does not exist).
5765 if test "$with_dnet" = "no" ; then
5766 ac_cv_lib_dnet_dnet_ntoa=no
5769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5770 echo "configure:5771: checking for dnet_ntoa in -ldnet" >&5
5771 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5773 xe_check_libs=" -ldnet "
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5788 eval "ac_cv_lib_$ac_lib_var=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_lib_$ac_lib_var=no"
5798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5799 echo "$ac_t""yes" 1>&6
5800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5802 echo "$ac_t""no" 1>&6
5807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5809 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5810 echo "configure:5811: checking for dnet_ntoa in -ldnet_stub" >&5
5811 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5813 xe_check_libs=" -ldnet_stub "
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5826 if { (eval echo configure:5827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5828 eval "ac_cv_lib_$ac_lib_var=yes"
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 eval "ac_cv_lib_$ac_lib_var=no"
5838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5839 echo "$ac_t""yes" 1>&6
5840 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5842 echo "$ac_t""no" 1>&6
5848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5849 # to get the SysV transport functions.
5850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5852 # The nsl library prevents programs from opening the X display
5853 # on Irix 5.2, according to dickey@clark.net.
5854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5855 echo "configure:5856: checking for gethostbyname" >&5
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 /* System header to define __stub macros and hopefully few prototypes,
5861 which can conflict with char gethostbyname(); below. */
5863 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5866 char gethostbyname();
5870 /* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5881 if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5883 eval "ac_cv_func_gethostbyname=yes"
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5888 eval "ac_cv_func_gethostbyname=no"
5892 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5896 echo "$ac_t""no" 1>&6
5899 if test $ac_cv_func_gethostbyname = no; then
5901 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5902 echo "configure:5903: checking for gethostbyname in -lnsl" >&5
5903 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5905 xe_check_libs=" -lnsl "
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5912 char gethostbyname();
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 eval "ac_cv_lib_$ac_lib_var=yes"
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 eval "ac_cv_lib_$ac_lib_var=no"
5930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5931 echo "$ac_t""yes" 1>&6
5932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5934 echo "$ac_t""no" 1>&6
5940 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5941 # socket/setsockopt and other routines are undefined under SCO ODT
5942 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5943 # on later versions), says simon@lia.di.epfl.ch: it contains
5944 # gethostby* variants that don't use the nameserver (or something).
5945 # -lsocket must be given before -lnsl if both are needed.
5946 # We assume that if connect needs -lnsl, so does gethostbyname.
5947 echo $ac_n "checking for connect""... $ac_c" 1>&6
5948 echo "configure:5949: checking for connect" >&5
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char connect(); below. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_connect) || defined (__stub___connect)
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 eval "ac_cv_func_connect=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 eval "ac_cv_func_connect=no"
5985 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5989 echo "$ac_t""no" 1>&6
5992 if test $ac_cv_func_connect = no; then
5994 xe_msg_checking="for connect in -lsocket"
5995 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5996 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5997 echo "configure:5998: checking "$xe_msg_checking"" >&5
5998 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6000 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 eval "ac_cv_lib_$ac_lib_var=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_lib_$ac_lib_var=no"
6025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6026 echo "$ac_t""yes" 1>&6
6027 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6029 echo "$ac_t""no" 1>&6
6035 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6036 echo $ac_n "checking for remove""... $ac_c" 1>&6
6037 echo "configure:6038: checking for remove" >&5
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 /* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char remove(); below. */
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6052 /* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055 #if defined (__stub_remove) || defined (__stub___remove)
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 eval "ac_cv_func_remove=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_func_remove=no"
6074 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6078 echo "$ac_t""no" 1>&6
6081 if test $ac_cv_func_remove = no; then
6083 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6084 echo "configure:6085: checking for remove in -lposix" >&5
6085 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6087 xe_check_libs=" -lposix "
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6102 eval "ac_cv_lib_$ac_lib_var=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_lib_$ac_lib_var=no"
6112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6113 echo "$ac_t""yes" 1>&6
6114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6116 echo "$ac_t""no" 1>&6
6122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6123 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6124 echo "configure:6125: checking for shmat" >&5
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char shmat(); below. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6139 /* The GNU C library defines this for functions which it implements
6140 to always fail with ENOSYS. Some functions are actually named
6141 something starting with __ and the normal name is an alias. */
6142 #if defined (__stub_shmat) || defined (__stub___shmat)
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6152 eval "ac_cv_func_shmat=yes"
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 eval "ac_cv_func_shmat=no"
6161 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6165 echo "$ac_t""no" 1>&6
6168 if test $ac_cv_func_shmat = no; then
6170 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6171 echo "configure:6172: checking for shmat in -lipc" >&5
6172 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6174 xe_check_libs=" -lipc "
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 eval "ac_cv_lib_$ac_lib_var=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_lib_$ac_lib_var=no"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6200 echo "$ac_t""yes" 1>&6
6201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6203 echo "$ac_t""no" 1>&6
6210 # Check for libraries that X11R6 Xt/Xaw programs need.
6211 ac_save_LDFLAGS="$LDFLAGS"
6212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6214 # check for ICE first), but we must link in the order -lSM -lICE or
6215 # we get undefined symbols. So assume we have SM if we have ICE.
6216 # These have to be linked with before -lX11, unlike the other
6217 # libraries we check for below, so use a different variable.
6218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6220 xe_msg_checking="for IceConnectionNumber in -lICE"
6221 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6222 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6223 echo "configure:6224: checking "$xe_msg_checking"" >&5
6224 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6226 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6233 char IceConnectionNumber();
6236 IceConnectionNumber()
6239 if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6241 eval "ac_cv_lib_$ac_lib_var=yes"
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6246 eval "ac_cv_lib_$ac_lib_var=no"
6251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6252 echo "$ac_t""yes" 1>&6
6253 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6255 echo "$ac_t""no" 1>&6
6259 LDFLAGS="$ac_save_LDFLAGS"
6262 # Autoconf claims to find X library and include dirs for us.
6263 if test "$no_x" = "yes"
6264 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6265 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6270 if test "$with_x11" = "yes"; then
6271 { test "$extra_verbose" = "yes" && cat << \EOF
6272 Defining HAVE_X_WINDOWS
6274 cat >> confdefs.h <<\EOF
6275 #define HAVE_X_WINDOWS 1
6279 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6280 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6282 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6283 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6284 if test -d "$lib_dir" -a -d "$inc_dir"; then
6285 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6286 x_libraries="$lib_dir $x_libraries"
6287 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6289 case "$x_includes" in "$inc_dir"* ) ;; *)
6290 x_includes="$inc_dir $x_includes"
6291 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6296 for rel in "X11R6" "X11R5" "X11R4"; do
6297 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6298 if test -d "$lib_dir" -a -d "$inc_dir"; then
6299 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6300 x_libraries="$x_libraries $lib_dir"
6301 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6303 case "$x_includes" in "$inc_dir"* ) ;; *)
6304 x_includes="$x_includes $inc_dir"
6305 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6311 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 ;;
6314 ld_switch_x_site="$X_LIBS"
6317 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6318 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6319 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6321 runpath="" runpath_dirs=""
6322 if test -n "$LD_RUN_PATH"; then
6323 runpath="$LD_RUN_PATH"
6324 elif test "$GCC" = "yes"; then
6325 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6326 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6327 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6328 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6329 case "$arg" in P,* | -L* | -R* )
6330 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6332 xe_runpath_dir="$dir"
6333 test "$xe_runpath_dir" != "/lib" -a \
6334 "$xe_runpath_dir" != "/usr/lib" -a \
6335 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6336 eval "$xe_add_unique_runpath_dir"
6341 ld_switch_run="$ld_switch_run_save"
6344 for arg in $ld_switch_site $ld_switch_x_site; do
6345 case "$arg" in -L*) {
6346 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6347 test "$xe_runpath_dir" != "/lib" -a \
6348 "$xe_runpath_dir" != "/usr/lib" -a \
6349 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6350 eval "$xe_add_unique_runpath_dir"
6353 if test "$opsys $need_motif" = "sol2 yes"; then
6354 xe_runpath_dir="/opt/SUNWdt/lib";
6355 eval "$xe_add_unique_runpath_dir";
6358 if test -n "$runpath"; then
6359 ld_switch_run="${dash_r}${runpath}"
6361 if test "$GCC" = "yes"; then
6362 set x $ld_switch_run; shift; ld_switch_run=""
6363 while test -n "$1"; do
6365 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6366 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6368 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6373 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6378 if test "$extra_verbose" = "yes"; then
6379 echo; echo "X11 compilation variables:"
6380 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6385 if test "$x_includes" != NONE; then
6386 for i in $x_includes; do
6387 if test -d "$i/bitmaps"; then
6388 bitmapdirs="$i/bitmaps:$bitmapdirs"
6390 if test -d "$i/X11/bitmaps"; then
6391 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6394 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6396 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6397 Defining BITMAPDIR = "$bitmapdirs"
6399 cat >> confdefs.h <<EOF
6400 #define BITMAPDIR "$bitmapdirs"
6405 echo "checking for X defines extracted by xmkmf" 1>&6
6406 echo "configure:6407: checking for X defines extracted by xmkmf" >&5
6408 if mkdir conftestdir; then
6410 cat > Imakefile <<'EOF'
6412 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6414 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6416 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6420 for word in $xmkmf_defines; do
6424 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6426 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6429 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6430 if test "$val" = "1"
6431 then { test "$extra_verbose" = "yes" && cat << EOF
6434 cat >> confdefs.h <<EOF
6439 else { test "$extra_verbose" = "yes" && cat << EOF
6440 Defining $sym = $val
6442 cat >> confdefs.h <<EOF
6453 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6454 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6455 echo "configure:6456: checking for X11/Intrinsic.h" >&5
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 #include <X11/Intrinsic.h>
6462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6463 { (eval echo configure:6464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6465 if test -z "$ac_err"; then
6467 eval "ac_cv_header_$ac_safe=yes"
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 eval "ac_cv_header_$ac_safe=no"
6476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6480 echo "$ac_t""no" 1>&6
6481 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6486 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6487 echo "configure:6488: checking for XOpenDisplay in -lX11" >&5
6488 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6490 xe_check_libs=" -lX11 "
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6497 char XOpenDisplay();
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6516 echo "$ac_t""yes" 1>&6
6519 echo "$ac_t""no" 1>&6
6523 if test "$have_lib_x11" != "yes"; then
6525 xe_msg_checking="for XGetFontProperty in -lX11"
6526 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6527 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6528 echo "configure:6529: checking "$xe_msg_checking"" >&5
6529 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6531 xe_check_libs=" -lX11 -b i486-linuxaout"
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6534 "configure"
6534 #include "confdefs.h"
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538 char XGetFontProperty();
6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6546 eval "ac_cv_lib_$ac_lib_var=yes"
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 eval "ac_cv_lib_$ac_lib_var=no"
6556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6557 echo "$ac_t""yes" 1>&6
6558 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6560 echo "$ac_t""no" 1>&6
6561 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6567 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6570 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6571 echo "configure:6572: checking for XShapeSelectInput in -lXext" >&5
6572 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6574 xe_check_libs=" -lXext "
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6581 char XShapeSelectInput();
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6589 eval "ac_cv_lib_$ac_lib_var=yes"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 eval "ac_cv_lib_$ac_lib_var=no"
6599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6600 echo "$ac_t""yes" 1>&6
6601 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6603 echo "$ac_t""no" 1>&6
6609 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6610 echo "configure:6611: checking for XtOpenDisplay in -lXt" >&5
6611 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6613 xe_check_libs=" -lXt "
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6620 char XtOpenDisplay();
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6639 echo "$ac_t""yes" 1>&6
6640 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6642 echo "$ac_t""no" 1>&6
6643 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6648 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6649 echo "configure:6650: checking the version of X11 being used" >&5
6650 cat > conftest.$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6653 #include <X11/Intrinsic.h>
6654 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6658 ./conftest foobar; x11_release=$?
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6667 echo "$ac_t""R${x11_release}" 1>&6
6668 { test "$extra_verbose" = "yes" && cat << EOF
6669 Defining THIS_IS_X11R${x11_release}
6671 cat >> confdefs.h <<EOF
6672 #define THIS_IS_X11R${x11_release} 1
6677 if test "${x11_release}" = "4"; then
6678 case "$with_widgets" in
6679 "" | "no") with_widgets=no ;;
6680 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6684 for ac_func in XConvertCase
6686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6687 echo "configure:6688: checking for $ac_func" >&5
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6692 /* System header to define __stub macros and hopefully few prototypes,
6693 which can conflict with char $ac_func(); below. */
6695 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6702 /* The GNU C library defines this for functions which it implements
6703 to always fail with ENOSYS. Some functions are actually named
6704 something starting with __ and the normal name is an alias. */
6705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 eval "ac_cv_func_$ac_func=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_func_$ac_func=no"
6724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6725 echo "$ac_t""yes" 1>&6
6726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6727 { test "$extra_verbose" = "yes" && cat << EOF
6728 Defining $ac_tr_func
6730 cat >> confdefs.h <<EOF
6731 #define $ac_tr_func 1
6736 echo "$ac_t""no" 1>&6
6741 for ac_hdr in X11/Xlocale.h
6743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6745 echo "configure:6746: checking for $ac_hdr" >&5
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6753 { (eval echo configure:6754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6755 if test -z "$ac_err"; then
6757 eval "ac_cv_header_$ac_safe=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_header_$ac_safe=no"
6766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6769 { test "$extra_verbose" = "yes" && cat << EOF
6772 cat >> confdefs.h <<EOF
6773 #define $ac_tr_hdr 1
6778 echo "$ac_t""no" 1>&6
6783 for ac_func in XRegisterIMInstantiateCallback
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6801 /* The GNU C library defines this for functions which it implements
6802 to always fail with ENOSYS. Some functions are actually named
6803 something starting with __ and the normal name is an alias. */
6804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 eval "ac_cv_func_$ac_func=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 eval "ac_cv_func_$ac_func=no"
6823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6826 { test "$extra_verbose" = "yes" && cat << EOF
6827 Defining $ac_tr_func
6829 cat >> confdefs.h <<EOF
6830 #define $ac_tr_func 1
6835 echo "$ac_t""no" 1>&6
6839 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6840 echo "configure:6841: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6845 #define NeedFunctionPrototypes 1
6846 #include <X11/Xlib.h>
6847 extern Bool XRegisterIMInstantiateCallback(
6848 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6854 if { (eval echo configure:6855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6856 echo "$ac_t""yes" 1>&6
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6861 echo "$ac_t""no" 1>&6
6862 { test "$extra_verbose" = "yes" && cat << \EOF
6863 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6865 cat >> confdefs.h <<\EOF
6866 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6873 test -z "$with_xmu" && {
6874 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6875 echo "configure:6876: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6876 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6878 xe_check_libs=" -lXmu "
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6885 char XmuReadBitmapDataFromFile();
6888 XmuReadBitmapDataFromFile()
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 eval "ac_cv_lib_$ac_lib_var=yes"
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6898 eval "ac_cv_lib_$ac_lib_var=no"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6904 echo "$ac_t""yes" 1>&6
6907 echo "$ac_t""no" 1>&6
6912 if test "$with_xmu" = "no"; then
6913 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6914 echo " xemacs will be linked with \"xmu.o\""
6917 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6918 { test "$extra_verbose" = "yes" && cat << \EOF
6921 cat >> confdefs.h <<\EOF
6929 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6930 echo "configure:6931: checking for main in -lXbsd" >&5
6931 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6933 xe_check_libs=" -lXbsd "
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6944 eval "ac_cv_lib_$ac_lib_var=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 eval "ac_cv_lib_$ac_lib_var=no"
6954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6955 echo "$ac_t""yes" 1>&6
6956 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6958 echo "$ac_t""no" 1>&6
6963 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6964 if test "$GCC" = "yes"; then
6965 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6966 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6969 "xlc" ) CC="xlc_r" ;;
6970 "xlC" ) CC="xlC_r" ;;
6977 if test "$with_msw" != "no"; then
6978 echo "checking for MS-Windows" 1>&6
6979 echo "configure:6980: checking for MS-Windows" >&5
6981 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6982 echo "configure:6983: checking for main in -lgdi32" >&5
6983 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6985 xe_check_libs=" -lgdi32 "
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_lib_$ac_lib_var=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_lib_$ac_lib_var=no"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7007 echo "$ac_t""yes" 1>&6
7010 echo "$ac_t""no" 1>&6
7014 if test "$with_msw" = "yes"; then
7015 { test "$extra_verbose" = "yes" && cat << \EOF
7016 Defining HAVE_MS_WINDOWS
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_MS_WINDOWS 1
7024 if test "$with_netinstall" = "yes"; then
7025 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7026 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7027 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7030 install_pp="$blddir/lib-src/installexe.sh"
7031 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
7032 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7033 if test "$window_system" != x11; then
7035 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7036 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7037 echo " xemacs will be linked with \"scrollbar-msw.o\""
7039 test "$with_menubars" != "no" && with_menubars=msw \
7040 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7041 echo " xemacs will be linked with \"menubar-msw.o\""
7043 test "$with_toolbars" != "no" && with_toolbars=msw \
7044 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7045 echo " xemacs will be linked with \"toolbar-msw.o\""
7047 test "$with_dialogs" != "no" && with_dialogs=msw \
7048 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7049 echo " xemacs will be linked with \"dialog-msw.o\""
7051 test "$with_widgets" != "no" && with_widgets=msw
7053 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7054 echo " xemacs will be linked with \"scrollbar-msw.o\""
7056 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7057 echo " xemacs will be linked with \"menubar-msw.o\""
7059 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7060 echo " xemacs will be linked with \"toolbar-msw.o\""
7062 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7063 echo " xemacs will be linked with \"dialog-msw.o\""
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7070 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7072 if { (eval echo configure:7073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7074 { test "$extra_verbose" = "yes" && cat << \EOF
7075 Defining HAVE_MSG_SELECT
7077 cat >> confdefs.h <<\EOF
7078 #define HAVE_MSG_SELECT 1
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7088 with_file_coding=yes
7089 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
7090 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\""
7097 test -z "$window_system" && window_system="none"
7099 if test "$window_system" = "none"; then
7100 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7102 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7103 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7105 eval "with_${feature}=no"
7108 test -z "$with_toolbars" && with_toolbars=yes
7111 if test "$with_msw" != "yes"; then
7112 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7114 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7115 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7117 eval "with_${feature}=no"
7123 if test "$with_x11" != "yes"; then
7124 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7126 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7127 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7129 eval "with_${feature}=no"
7133 if test "$with_x11" = "yes"; then
7134 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7135 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7136 echo "configure:7137: checking for X11/extensions/shape.h" >&5
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 #include <X11/extensions/shape.h>
7143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7144 { (eval echo configure:7145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7146 if test -z "$ac_err"; then
7148 eval "ac_cv_header_$ac_safe=yes"
7151 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7154 eval "ac_cv_header_$ac_safe=no"
7157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7160 { test "$extra_verbose" = "yes" && cat << \EOF
7161 Defining HAVE_BALLOON_HELP
7163 cat >> confdefs.h <<\EOF
7164 #define HAVE_BALLOON_HELP 1
7168 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7169 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7172 echo "$ac_t""no" 1>&6
7179 case "$window_system" in
7180 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7181 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7184 test "$with_gnome" = "yes" && echo " Using GNOME."
7185 test "$with_gnome" = "no" && echo " Using GTK."
7187 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7190 case "$x_libraries" in *X11R4* )
7191 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7192 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7195 echo "checking for WM_COMMAND option" 1>&6
7196 echo "configure:7197: checking for WM_COMMAND option" >&5;
7197 if test "$with_wmcommand" != "no"; then
7198 { test "$extra_verbose" = "yes" && cat << \EOF
7199 Defining HAVE_WMCOMMAND
7201 cat >> confdefs.h <<\EOF
7202 #define HAVE_WMCOMMAND 1
7208 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7209 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7210 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7211 echo "configure:7212: checking for X11/Xauth.h" >&5
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 #include <X11/Xauth.h>
7218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7219 { (eval echo configure:7220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7221 if test -z "$ac_err"; then
7223 eval "ac_cv_header_$ac_safe=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 eval "ac_cv_header_$ac_safe=no"
7232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7236 echo "$ac_t""no" 1>&6
7240 test -z "$with_xauth" && {
7241 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7242 echo "configure:7243: checking for XauGetAuthByAddr in -lXau" >&5
7243 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7245 xe_check_libs=" -lXau "
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252 char XauGetAuthByAddr();
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 eval "ac_cv_lib_$ac_lib_var=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_lib_$ac_lib_var=no"
7270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7271 echo "$ac_t""yes" 1>&6
7274 echo "$ac_t""no" 1>&6
7279 test -z "$with_xauth" && with_xauth=yes
7280 if test "$with_xauth" = "yes"; then
7281 { test "$extra_verbose" = "yes" && cat << \EOF
7284 cat >> confdefs.h <<\EOF
7285 #define HAVE_XAUTH 1
7291 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
7299 if test "$with_tooltalk" != "no" ; then
7300 for dir in "" "Tt/" "desktop/" ; do
7301 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7302 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7303 echo "configure:7304: checking for ${dir}tt_c.h" >&5
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 #include <${dir}tt_c.h>
7310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7311 { (eval echo configure:7312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7313 if test -z "$ac_err"; then
7315 eval "ac_cv_header_$ac_safe=yes"
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7321 eval "ac_cv_header_$ac_safe=no"
7324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7325 echo "$ac_t""yes" 1>&6
7326 tt_c_h_file="${dir}tt_c.h"; break
7328 echo "$ac_t""no" 1>&6
7332 if test -z "$tt_c_h_file"; then
7333 if test "$with_tooltalk" = "yes"; then
7334 (echo "$progname: Usage error:"
7335 echo " " "Unable to find required tooltalk header files."
7336 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7341 if test "$with_tooltalk" != "no" ; then
7342 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7344 xe_msg_checking="for tt_message_create in -ltt"
7345 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7346 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7347 echo "configure:7348: checking "$xe_msg_checking"" >&5
7348 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7350 xe_check_libs=" -ltt $extra_libs"
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char tt_message_create();
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 eval "ac_cv_lib_$ac_lib_var=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 eval "ac_cv_lib_$ac_lib_var=no"
7375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7376 echo "$ac_t""yes" 1>&6
7377 tt_libs="-ltt $extra_libs"; break
7379 echo "$ac_t""no" 1>&6
7385 if test -z "$tt_libs"; then
7386 if test "$with_tooltalk" = "yes"; then
7387 (echo "$progname: Usage error:"
7388 echo " " "Unable to find required tooltalk libraries."
7389 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7394 test -z "$with_tooltalk" && with_tooltalk=yes
7395 if test "$with_tooltalk" = "yes"; then
7396 { test "$extra_verbose" = "yes" && cat << \EOF
7399 cat >> confdefs.h <<\EOF
7404 { test "$extra_verbose" = "yes" && cat << EOF
7405 Defining TT_C_H_FILE = "$tt_c_h_file"
7407 cat >> confdefs.h <<EOF
7408 #define TT_C_H_FILE "$tt_c_h_file"
7412 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7413 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7414 echo " xemacs will be linked with \"tooltalk.o\""
7418 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7419 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7420 echo "configure:7421: checking for Dt/Dt.h" >&5
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7428 { (eval echo configure:7429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7430 if test -z "$ac_err"; then
7432 eval "ac_cv_header_$ac_safe=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 eval "ac_cv_header_$ac_safe=no"
7441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7442 echo "$ac_t""yes" 1>&6
7445 echo "$ac_t""no" 1>&6
7449 test -z "$with_cde" && {
7450 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7451 echo "configure:7452: checking for DtDndDragStart in -lDtSvc" >&5
7452 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7454 xe_check_libs=" -lDtSvc "
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char DtDndDragStart();
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7469 eval "ac_cv_lib_$ac_lib_var=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7474 eval "ac_cv_lib_$ac_lib_var=no"
7479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7480 echo "$ac_t""yes" 1>&6
7483 echo "$ac_t""no" 1>&6
7488 test -z "$with_cde" && with_cde=yes
7489 if test "$with_dragndrop" = no; then
7490 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7493 if test "$with_cde" = "yes" ; then
7494 { test "$extra_verbose" = "yes" && cat << \EOF
7497 cat >> confdefs.h <<\EOF
7502 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7503 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7504 with_tooltalk=yes # CDE requires Tooltalk
7505 need_motif=yes # CDE requires Motif
7508 test "$window_system" != "x11" && with_offix=no
7509 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7510 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7513 if test "$with_dragndrop" = no; then
7514 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7517 if test "$with_cde" = yes; then
7518 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7521 test -z "$with_offix" && with_offix=no
7522 if test "$with_offix" = "yes"; then
7523 { test "$extra_verbose" = "yes" && cat << \EOF
7524 Defining HAVE_OFFIX_DND
7526 cat >> confdefs.h <<\EOF
7527 #define HAVE_OFFIX_DND 1
7531 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7532 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7534 if test "$with_gtk" = "yes"; then
7535 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7538 if test "$with_dragndrop" != "no" ; then
7539 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7540 echo "configure:7541: checking if drag and drop API is needed" >&5
7541 if test -n "$dragndrop_proto" ; then
7543 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7544 { test "$extra_verbose" = "yes" && cat << \EOF
7545 Defining HAVE_DRAGNDROP
7547 cat >> confdefs.h <<\EOF
7548 #define HAVE_DRAGNDROP 1
7552 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7555 echo "$ac_t""no" 1>&6
7559 echo "checking for LDAP" 1>&6
7560 echo "configure:7561: checking for LDAP" >&5
7561 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7562 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7563 echo "configure:7564: checking for ldap.h" >&5
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7571 { (eval echo configure:7572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7573 if test -z "$ac_err"; then
7575 eval "ac_cv_header_$ac_safe=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 eval "ac_cv_header_$ac_safe=no"
7584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7585 echo "$ac_t""yes" 1>&6
7588 echo "$ac_t""no" 1>&6
7592 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7593 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7594 echo "configure:7595: checking for lber.h" >&5
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 { (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 if test -z "$ac_err"; then
7606 eval "ac_cv_header_$ac_safe=yes"
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 eval "ac_cv_header_$ac_safe=no"
7615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7619 echo "$ac_t""no" 1>&6
7623 if test "$with_ldap" != "no"; then
7625 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7626 echo "configure:7627: checking for ldap_search in -lldap" >&5
7627 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7629 xe_check_libs=" -lldap "
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 /* Override any gcc2 internal prototype to avoid an error. */
7634 /* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 eval "ac_cv_lib_$ac_lib_var=yes"
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 eval "ac_cv_lib_$ac_lib_var=no"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7655 echo "$ac_t""yes" 1>&6
7656 with_ldap_nolber=yes
7658 echo "$ac_t""no" 1>&6
7663 test "$with_ldap_nolber" = "no" && {
7664 xe_msg_checking="for ldap_open in -lldap"
7665 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7666 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7667 echo "configure:7668: checking "$xe_msg_checking"" >&5
7668 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7670 xe_check_libs=" -lldap -llber"
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* Override any gcc2 internal prototype to avoid an error. */
7675 /* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7683 if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7685 eval "ac_cv_lib_$ac_lib_var=yes"
7687 echo "configure: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7690 eval "ac_cv_lib_$ac_lib_var=no"
7695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7696 echo "$ac_t""yes" 1>&6
7699 echo "$ac_t""no" 1>&6
7704 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7705 xe_msg_checking="for ldap_open in -lldap"
7706 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7707 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7708 echo "configure:7709: checking "$xe_msg_checking"" >&5
7709 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7711 xe_check_libs=" -lldap -llber -lkrb"
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7726 eval "ac_cv_lib_$ac_lib_var=yes"
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7731 eval "ac_cv_lib_$ac_lib_var=no"
7736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7737 echo "$ac_t""yes" 1>&6
7740 echo "$ac_t""no" 1>&6
7745 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7746 xe_msg_checking="for ldap_open in -lldap"
7747 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7748 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7749 echo "configure:7750: checking "$xe_msg_checking"" >&5
7750 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7752 xe_check_libs=" -lldap -llber -lkrb -ldes"
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7767 eval "ac_cv_lib_$ac_lib_var=yes"
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 eval "ac_cv_lib_$ac_lib_var=no"
7777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7778 echo "$ac_t""yes" 1>&6
7779 with_ldap_krbdes=yes
7781 echo "$ac_t""no" 1>&6
7786 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
7788 if test "$with_ldap" = "yes"; then
7789 { test "$extra_verbose" = "yes" && cat << \EOF
7792 cat >> confdefs.h <<\EOF
7797 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7798 echo " xemacs will be linked with \"eldap.o\""
7800 if test "$with_ldap_nolber" = "yes" ; then
7801 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7803 if test "$with_ldap_krb" = "yes" ; then
7804 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7806 if test "$with_ldap_krbdes" = "yes" ; then
7807 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7808 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7810 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7811 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7813 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7816 echo "configure:7817: checking for $ac_func" >&5
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char $ac_func(); below. */
7824 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844 eval "ac_cv_func_$ac_func=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 eval "ac_cv_func_$ac_func=no"
7853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7856 { test "$extra_verbose" = "yes" && cat << EOF
7857 Defining $ac_tr_func
7859 cat >> confdefs.h <<EOF
7860 #define $ac_tr_func 1
7865 echo "$ac_t""no" 1>&6
7871 if test "$with_postgresql" != "no"; then
7872 echo "checking for PostgreSQL" 1>&6
7873 echo "configure:7874: checking for PostgreSQL" >&5
7875 for header_dir in "" "pgsql/" "postgresql/"; do
7876 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7877 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7878 echo "configure:7879: checking for ${header_dir}libpq-fe.h" >&5
7880 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 #include <${header_dir}libpq-fe.h>
7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7888 if test -z "$ac_err"; then
7890 eval "ac_cv_header_$ac_safe=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_header_$ac_safe=no"
7899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7903 echo "$ac_t""no" 1>&6
7908 test -n "$libpq_fe_h_file" && {
7909 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7910 echo "configure:7911: checking for PQconnectdb in -lpq" >&5
7911 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7913 xe_check_libs=" -lpq "
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7917 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 eval "ac_cv_lib_$ac_lib_var=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_lib_$ac_lib_var=no"
7938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7939 echo "$ac_t""yes" 1>&6
7942 echo "$ac_t""no" 1>&6
7947 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7949 { test "$extra_verbose" = "yes" && cat << \EOF
7950 Defining HAVE_POSTGRESQL
7952 cat >> confdefs.h <<\EOF
7953 #define HAVE_POSTGRESQL 1
7958 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7959 echo "configure:7960: checking for PQconnectStart in -lpq" >&5
7960 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7962 xe_check_libs=" -lpq "
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 /* Override any gcc2 internal prototype to avoid an error. */
7967 /* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7969 char PQconnectStart();
7975 if { (eval echo configure:7976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7977 eval "ac_cv_lib_$ac_lib_var=yes"
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 eval "ac_cv_lib_$ac_lib_var=no"
7987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7988 echo "$ac_t""yes" 1>&6
7989 with_postgresqlv7=yes;
7990 { test "$extra_verbose" = "yes" && cat << \EOF
7991 Defining HAVE_POSTGRESQLV7
7993 cat >> confdefs.h <<\EOF
7994 #define HAVE_POSTGRESQLV7 1
7999 echo "$ac_t""no" 1>&6
8003 { test "$extra_verbose" = "yes" && cat << EOF
8004 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8006 cat >> confdefs.h <<EOF
8007 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8011 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8012 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8013 echo " xemacs will be linked with \"postgresql.o\""
8015 elif test "$with_postgresql" = "yes"; then
8016 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8021 if test "$window_system" != "none"; then
8022 echo "checking for graphics libraries" 1>&6
8023 echo "configure:8024: checking for graphics libraries" >&5
8026 if test -z "$with_xpm"; then
8027 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8028 echo "configure:8029: checking for Xpm - no older than 3.4f" >&5
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8034 #include <X11/xpm.h>
8035 int main(int c, char **v) {
8037 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8038 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8042 ./conftest dummy_arg; xpm_status=$?;
8043 if test "$xpm_status" = "0"; then
8047 if test "$xpm_status" = "1"; then
8048 xpm_problem="Xpm library version and header file version don't match!"
8049 elif test "$xpm_status" = "2"; then
8050 xpm_problem="Xpm library version is too old!"
8052 xpm_problem="Internal xpm detection logic error!"
8055 *** WARNING *** $xpm_problem
8056 I'm not touching that with a 10-foot pole!
8057 If you really want to use the installed version of Xpm, rerun
8058 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8062 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8069 echo "$ac_t""$with_xpm" 1>&6
8071 if test "$with_xpm" = "yes"; then
8072 { test "$extra_verbose" = "yes" && cat << \EOF
8075 cat >> confdefs.h <<\EOF
8080 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8081 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8082 echo "configure:8083: checking for \"FOR_MSW\" xpm" >&5
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8089 XpmCreatePixmapFromData()
8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8096 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8103 echo "$ac_t""$xpm_for_msw" 1>&6
8104 if test "$xpm_for_msw" = "yes"; then
8105 { test "$extra_verbose" = "yes" && cat << \EOF
8108 cat >> confdefs.h <<\EOF
8116 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8117 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8118 echo "configure:8119: checking for compface.h" >&5
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 #include <compface.h>
8125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8126 { (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128 if test -z "$ac_err"; then
8130 eval "ac_cv_header_$ac_safe=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8136 eval "ac_cv_header_$ac_safe=no"
8139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8140 echo "$ac_t""yes" 1>&6
8143 echo "$ac_t""no" 1>&6
8147 test -z "$with_xface" && {
8148 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8149 echo "configure:8150: checking for UnGenFace in -lcompface" >&5
8150 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8152 xe_check_libs=" -lcompface "
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8167 eval "ac_cv_lib_$ac_lib_var=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 eval "ac_cv_lib_$ac_lib_var=no"
8177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8178 echo "$ac_t""yes" 1>&6
8181 echo "$ac_t""no" 1>&6
8186 test -z "$with_xface" && with_xface=yes
8187 if test "$with_xface" = "yes"; then
8188 { test "$extra_verbose" = "yes" && cat << \EOF
8191 cat >> confdefs.h <<\EOF
8192 #define HAVE_XFACE 1
8196 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8199 if test "$with_gif" != "no"; then
8201 { test "$extra_verbose" = "yes" && cat << \EOF
8204 cat >> confdefs.h <<\EOF
8209 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8210 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8214 if test "$with_png $with_tiff" != "no no"; then
8216 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8217 echo "configure:8218: checking for inflate in -lc" >&5
8218 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8220 xe_check_libs=" -lc "
8221 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure"
8223 #include "confdefs.h"
8224 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8235 eval "ac_cv_lib_$ac_lib_var=yes"
8237 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5
8240 eval "ac_cv_lib_$ac_lib_var=no"
8245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8246 echo "$ac_t""yes" 1>&6
8249 echo "$ac_t""no" 1>&6
8251 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8252 echo "configure:8253: checking for inflate in -lz" >&5
8253 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8255 xe_check_libs=" -lz "
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8258 "configure"
8258 #include "confdefs.h"
8259 /* Override any gcc2 internal prototype to avoid an error. */
8260 /* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8268 if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8270 eval "ac_cv_lib_$ac_lib_var=yes"
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8275 eval "ac_cv_lib_$ac_lib_var=no"
8280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8281 echo "$ac_t""yes" 1>&6
8282 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8284 echo "$ac_t""no" 1>&6
8286 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8287 echo "configure:8288: checking for inflate in -lgz" >&5
8288 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8290 xe_check_libs=" -lgz "
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 eval "ac_cv_lib_$ac_lib_var=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 eval "ac_cv_lib_$ac_lib_var=no"
8315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8316 echo "$ac_t""yes" 1>&6
8317 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8319 echo "$ac_t""no" 1>&6
8331 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8332 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8333 echo "configure:8334: checking for jpeglib.h" >&5
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 #include <jpeglib.h>
8340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8341 { (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8343 if test -z "$ac_err"; then
8345 eval "ac_cv_header_$ac_safe=yes"
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 eval "ac_cv_header_$ac_safe=no"
8354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8355 echo "$ac_t""yes" 1>&6
8358 echo "$ac_t""no" 1>&6
8362 test -z "$with_jpeg" && {
8363 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8364 echo "configure:8365: checking for jpeg_destroy_decompress in -ljpeg" >&5
8365 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8367 xe_check_libs=" -ljpeg "
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char jpeg_destroy_decompress();
8377 jpeg_destroy_decompress()
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8382 eval "ac_cv_lib_$ac_lib_var=yes"
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 eval "ac_cv_lib_$ac_lib_var=no"
8392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8393 echo "$ac_t""yes" 1>&6
8396 echo "$ac_t""no" 1>&6
8401 test -z "$with_jpeg" && with_jpeg=yes
8402 if test "$with_jpeg" = "yes"; then
8403 { test "$extra_verbose" = "yes" && cat << \EOF
8406 cat >> confdefs.h <<\EOF
8411 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8415 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8416 echo "configure:8417: checking for pow" >&5
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8421 /* System header to define __stub macros and hopefully few prototypes,
8422 which can conflict with char pow(); below. */
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8431 /* The GNU C library defines this for functions which it implements
8432 to always fail with ENOSYS. Some functions are actually named
8433 something starting with __ and the normal name is an alias. */
8434 #if defined (__stub_pow) || defined (__stub___pow)
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 eval "ac_cv_func_pow=yes"
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8449 eval "ac_cv_func_pow=no"
8453 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8454 echo "$ac_t""yes" 1>&6
8457 echo "$ac_t""no" 1>&6
8461 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8462 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8463 echo "configure:8464: checking for png.h" >&5
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8471 { (eval echo configure:8472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8473 if test -z "$ac_err"; then
8475 eval "ac_cv_header_$ac_safe=yes"
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 eval "ac_cv_header_$ac_safe=no"
8484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8488 echo "$ac_t""no" 1>&6
8492 test -z "$with_png" && {
8493 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8494 echo "configure:8495: checking for png_read_image in -lpng" >&5
8495 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8497 xe_check_libs=" -lpng "
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char png_read_image();
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8512 eval "ac_cv_lib_$ac_lib_var=yes"
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 eval "ac_cv_lib_$ac_lib_var=no"
8522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8523 echo "$ac_t""yes" 1>&6
8526 echo "$ac_t""no" 1>&6
8531 if test -z "$with_png"; then
8532 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8533 echo "configure:8534: checking for workable png version information" >&5
8534 xe_check_libs="-lpng -lz"
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8539 int main(int c, char **v) {
8540 if (c == 1) return 0;
8541 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8542 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8544 if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8546 ./conftest dummy_arg; png_status=$?;
8547 if test "$png_status" = "0"; then
8551 if test "$png_status" = "1"; then
8552 png_problem="PNG library version and header file don't match!"
8553 elif test "$png_status" = "2"; then
8554 png_problem="PNG library version too old (pre 1.0.2)!"
8557 *** WARNING *** $png_problem
8558 I'm not touching that with a 10-foot pole!
8559 If you really want to use the installed version of libPNG, rerun
8560 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8571 echo "$ac_t""$with_png" 1>&6
8573 if test "$with_png" = "yes"; then
8574 { test "$extra_verbose" = "yes" && cat << \EOF
8577 cat >> confdefs.h <<\EOF
8582 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8585 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8586 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8587 echo "configure:8588: checking for tiffio.h" >&5
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8595 { (eval echo configure:8596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8597 if test -z "$ac_err"; then
8599 eval "ac_cv_header_$ac_safe=yes"
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8605 eval "ac_cv_header_$ac_safe=no"
8608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8612 echo "$ac_t""no" 1>&6
8616 test -z "$with_tiff" && {
8617 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8618 echo "configure:8619: checking for TIFFClientOpen in -ltiff" >&5
8619 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8621 xe_check_libs=" -ltiff "
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 /* Override any gcc2 internal prototype to avoid an error. */
8626 /* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8628 char TIFFClientOpen();
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8636 eval "ac_cv_lib_$ac_lib_var=yes"
8638 echo "configure: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8641 eval "ac_cv_lib_$ac_lib_var=no"
8646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8647 echo "$ac_t""yes" 1>&6
8650 echo "$ac_t""no" 1>&6
8655 test -z "$with_tiff" && with_tiff=yes
8656 if test "$with_tiff" = "yes"; then
8657 { test "$extra_verbose" = "yes" && cat << \EOF
8660 cat >> confdefs.h <<\EOF
8665 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8670 if test "$with_gtk" = "yes"; then
8671 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8672 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8673 echo "configure:8674: checking for compface.h" >&5
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 #include <compface.h>
8680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8681 { (eval echo configure:8682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8683 if test -z "$ac_err"; then
8685 eval "ac_cv_header_$ac_safe=yes"
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 eval "ac_cv_header_$ac_safe=no"
8694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8698 echo "$ac_t""no" 1>&6
8702 test -z "$with_xface" && {
8703 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8704 echo "configure:8705: checking for UnGenFace in -lcompface" >&5
8705 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8707 xe_check_libs=" -lcompface "
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 eval "ac_cv_lib_$ac_lib_var=yes"
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8727 eval "ac_cv_lib_$ac_lib_var=no"
8732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8733 echo "$ac_t""yes" 1>&6
8736 echo "$ac_t""no" 1>&6
8741 test -z "$with_xface" && with_xface=yes
8742 if test "$with_xface" = "yes"; then
8743 { test "$extra_verbose" = "yes" && cat << \EOF
8746 cat >> confdefs.h <<\EOF
8747 #define HAVE_XFACE 1
8751 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8757 if test "$with_x11" = "yes"; then
8759 echo "checking for X11 graphics libraries" 1>&6
8760 echo "configure:8761: checking for X11 graphics libraries" >&5
8762 echo "checking for the Athena widgets" 1>&6
8763 echo "configure:8764: checking for the Athena widgets" >&5
8765 case "$with_athena" in
8766 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8767 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8768 "next") athena_variant=neXtaw athena_3d=yes ;;
8769 "95") athena_variant=Xaw95 athena_3d=yes ;;
8770 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8771 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8774 if test "$athena_3d" = "no"; then
8776 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8777 echo "configure:8778: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8778 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8780 xe_check_libs=" -l$athena_variant "
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8787 char XawScrollbarSetThumb();
8790 XawScrollbarSetThumb()
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 eval "ac_cv_lib_$ac_lib_var=yes"
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8800 eval "ac_cv_lib_$ac_lib_var=no"
8805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8806 echo "$ac_t""yes" 1>&6
8808 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8809 echo "configure:8810: checking for threeDClassRec in -l$athena_variant" >&5
8810 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8812 xe_check_libs=" -l$athena_variant "
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8816 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8819 char threeDClassRec();
8825 if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8827 eval "ac_cv_lib_$ac_lib_var=yes"
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 eval "ac_cv_lib_$ac_lib_var=no"
8837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8838 echo "$ac_t""yes" 1>&6
8839 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8841 echo "$ac_t""no" 1>&6
8842 athena_lib=$athena_variant
8848 echo "$ac_t""no" 1>&6
8849 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8855 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8856 echo "configure:8857: checking for threeDClassRec in -l$athena_variant" >&5
8857 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8859 xe_check_libs=" -l$athena_variant "
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8863 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8866 char threeDClassRec();
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8874 eval "ac_cv_lib_$ac_lib_var=yes"
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8879 eval "ac_cv_lib_$ac_lib_var=no"
8884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8885 echo "$ac_t""yes" 1>&6
8886 athena_lib=$athena_variant
8888 echo "$ac_t""no" 1>&6
8889 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8890 echo "configure:8891: checking for threeDClassRec in -lXaw" >&5
8891 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8893 xe_check_libs=" -lXaw "
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8900 char threeDClassRec();
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8908 eval "ac_cv_lib_$ac_lib_var=yes"
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 eval "ac_cv_lib_$ac_lib_var=no"
8918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8919 echo "$ac_t""yes" 1>&6
8921 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8924 echo "$ac_t""no" 1>&6
8925 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8934 if test "$athena_3d" = "no"; then
8935 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8936 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8937 echo "configure:8938: checking for X11/Xaw/ThreeD.h" >&5
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <X11/Xaw/ThreeD.h>
8944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8945 { (eval echo configure:8946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8947 if test -z "$ac_err"; then
8949 eval "ac_cv_header_$ac_safe=yes"
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 eval "ac_cv_header_$ac_safe=no"
8958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8960 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8962 echo "$ac_t""no" 1>&6
8963 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8964 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8965 echo "configure:8966: checking for X11/Xaw/XawInit.h" >&5
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 #include <X11/Xaw/XawInit.h>
8972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8973 { (eval echo configure:8974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8975 if test -z "$ac_err"; then
8977 eval "ac_cv_header_$ac_safe=yes"
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 eval "ac_cv_header_$ac_safe=no"
8986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8987 echo "$ac_t""yes" 1>&6
8988 athena_h_path=X11/Xaw
8990 echo "$ac_t""no" 1>&6
8991 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8997 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8998 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8999 echo "configure:9000: checking for X11/$athena_variant/XawInit.h" >&5
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 #include <X11/$athena_variant/XawInit.h>
9006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9007 { (eval echo configure:9008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9009 if test -z "$ac_err"; then
9011 eval "ac_cv_header_$ac_safe=yes"
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 eval "ac_cv_header_$ac_safe=no"
9020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9021 echo "$ac_t""yes" 1>&6
9022 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9023 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9024 echo "configure:9025: checking for X11/$athena_variant/ThreeD.h" >&5
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9029 #include <X11/$athena_variant/ThreeD.h>
9031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9032 { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9034 if test -z "$ac_err"; then
9036 eval "ac_cv_header_$ac_safe=yes"
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9042 eval "ac_cv_header_$ac_safe=no"
9045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9046 echo "$ac_t""yes" 1>&6
9047 athena_h_path=X11/$athena_variant
9049 echo "$ac_t""no" 1>&6
9053 echo "$ac_t""no" 1>&6
9057 if test -z "$athena_h_path"; then
9058 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9059 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9060 echo "configure:9061: checking for $athena_variant/XawInit.h" >&5
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <$athena_variant/XawInit.h>
9067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9068 { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9070 if test -z "$ac_err"; then
9072 eval "ac_cv_header_$ac_safe=yes"
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 eval "ac_cv_header_$ac_safe=no"
9081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9082 echo "$ac_t""yes" 1>&6
9083 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9084 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9085 echo "configure:9086: checking for $athena_variant/ThreeD.h" >&5
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 #include <$athena_variant/ThreeD.h>
9092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9093 { (eval echo configure:9094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9095 if test -z "$ac_err"; then
9097 eval "ac_cv_header_$ac_safe=yes"
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9103 eval "ac_cv_header_$ac_safe=no"
9106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9107 echo "$ac_t""yes" 1>&6
9108 athena_h_path=$athena_variant
9110 echo "$ac_t""no" 1>&6
9114 echo "$ac_t""no" 1>&6
9119 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9120 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9121 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9122 echo "configure:9123: checking for X11/Xaw3d/XawInit.h" >&5
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 #include <X11/Xaw3d/XawInit.h>
9129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9130 { (eval echo configure:9131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9132 if test -z "$ac_err"; then
9134 eval "ac_cv_header_$ac_safe=yes"
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9140 eval "ac_cv_header_$ac_safe=no"
9143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9144 echo "$ac_t""yes" 1>&6
9145 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9146 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9147 echo "configure:9148: checking for X11/Xaw3d/ThreeD.h" >&5
9149 cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9152 #include <X11/Xaw3d/ThreeD.h>
9154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9155 { (eval echo configure:9156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9157 if test -z "$ac_err"; then
9159 eval "ac_cv_header_$ac_safe=yes"
9162 echo "configure: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 eval "ac_cv_header_$ac_safe=no"
9168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9169 echo "$ac_t""yes" 1>&6
9171 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9172 athena_h_path=X11/Xaw3d
9175 echo "$ac_t""no" 1>&6
9179 echo "$ac_t""no" 1>&6
9184 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9185 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9186 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9187 echo "configure:9188: checking for Xaw3d/XawInit.h" >&5
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9192 #include <Xaw3d/XawInit.h>
9194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9195 { (eval echo configure:9196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9197 if test -z "$ac_err"; then
9199 eval "ac_cv_header_$ac_safe=yes"
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 eval "ac_cv_header_$ac_safe=no"
9208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9209 echo "$ac_t""yes" 1>&6
9210 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9211 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9212 echo "configure:9213: checking for Xaw3d/ThreeD.h" >&5
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <Xaw3d/ThreeD.h>
9219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9220 { (eval echo configure:9221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9222 if test -z "$ac_err"; then
9224 eval "ac_cv_header_$ac_safe=yes"
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9230 eval "ac_cv_header_$ac_safe=no"
9233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9234 echo "$ac_t""yes" 1>&6
9236 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9240 echo "$ac_t""no" 1>&6
9244 echo "$ac_t""no" 1>&6
9249 if test -z "$athena_h_path"; then
9250 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9251 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9252 echo "configure:9253: checking for X11/Xaw/ThreeD.h" >&5
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257 #include <X11/Xaw/ThreeD.h>
9259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9260 { (eval echo configure:9261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9262 if test -z "$ac_err"; then
9264 eval "ac_cv_header_$ac_safe=yes"
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9270 eval "ac_cv_header_$ac_safe=no"
9273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9274 echo "$ac_t""yes" 1>&6
9276 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9277 athena_h_path=X11/Xaw
9280 echo "$ac_t""no" 1>&6
9281 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9287 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9293 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9294 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9295 echo "configure:9296: checking for Xm/Xm.h" >&5
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9303 { (eval echo configure:9304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9305 if test -z "$ac_err"; then
9307 eval "ac_cv_header_$ac_safe=yes"
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9313 eval "ac_cv_header_$ac_safe=no"
9316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9319 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9320 echo "configure:9321: checking for XmStringFree in -lXm" >&5
9321 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9323 xe_check_libs=" -lXm "
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9327 /* Override any gcc2 internal prototype to avoid an error. */
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9330 char XmStringFree();
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9338 eval "ac_cv_lib_$ac_lib_var=yes"
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9343 eval "ac_cv_lib_$ac_lib_var=no"
9348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9349 echo "$ac_t""yes" 1>&6
9352 echo "$ac_t""no" 1>&6
9358 echo "$ac_t""no" 1>&6
9363 if test "$have_motif" = "yes"; then
9364 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9365 echo "configure:9366: checking for Lesstif" >&5
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9370 #ifdef LESSTIF_VERSION
9375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9376 egrep "yes" >/dev/null 2>&1; then
9385 echo "$ac_t""$have_lesstif" 1>&6
9390 case "$with_menubars" in "" | "yes" | "athena" )
9391 with_menubars="lucid" ;;
9393 case "$with_dialogs" in "" | "yes" | "lucid" )
9394 if test "$have_motif" = "yes"; then with_dialogs="motif"
9395 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9396 else with_dialogs=no
9399 case "$with_scrollbars" in "" | "yes" )
9400 with_scrollbars="lucid" ;;
9402 case "$with_widgets" in "" | "yes" | "lucid")
9403 if test "$have_motif" = "yes"; then with_widgets="motif"
9404 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9405 else with_widgets=no
9409 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9411 case "$all_widgets" in
9413 if test "$have_xaw" != "yes"; then
9414 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9417 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9419 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9421 { test "$extra_verbose" = "yes" && cat << EOF
9422 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9424 cat >> confdefs.h <<EOF
9425 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9429 { test "$extra_verbose" = "yes" && cat << EOF
9430 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9432 cat >> confdefs.h <<EOF
9433 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9437 { test "$extra_verbose" = "yes" && cat << EOF
9438 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9440 cat >> confdefs.h <<EOF
9441 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9445 { test "$extra_verbose" = "yes" && cat << EOF
9446 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9448 cat >> confdefs.h <<EOF
9449 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9453 { test "$extra_verbose" = "yes" && cat << EOF
9454 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9456 cat >> confdefs.h <<EOF
9457 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9461 { test "$extra_verbose" = "yes" && cat << EOF
9462 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9464 cat >> confdefs.h <<EOF
9465 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9469 { test "$extra_verbose" = "yes" && cat << EOF
9470 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9472 cat >> confdefs.h <<EOF
9473 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9477 { test "$extra_verbose" = "yes" && cat << EOF
9478 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9480 cat >> confdefs.h <<EOF
9481 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9485 { test "$extra_verbose" = "yes" && cat << EOF
9486 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9488 cat >> confdefs.h <<EOF
9489 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9493 { test "$extra_verbose" = "yes" && cat << EOF
9494 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9496 cat >> confdefs.h <<EOF
9497 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9502 { test "$extra_verbose" = "yes" && cat << \EOF
9503 Defining LWLIB_USES_ATHENA
9505 cat >> confdefs.h <<\EOF
9506 #define LWLIB_USES_ATHENA 1
9510 { test "$extra_verbose" = "yes" && cat << \EOF
9511 Defining NEED_ATHENA
9513 cat >> confdefs.h <<\EOF
9514 #define NEED_ATHENA 1
9520 if test "$athena_3d" = "yes"; then
9521 { test "$extra_verbose" = "yes" && cat << \EOF
9522 Defining HAVE_ATHENA_3D
9524 cat >> confdefs.h <<\EOF
9525 #define HAVE_ATHENA_3D 1
9533 case "$all_widgets" in *motif* )
9534 { test "$extra_verbose" = "yes" && cat << \EOF
9535 Defining LWLIB_USES_MOTIF
9537 cat >> confdefs.h <<\EOF
9538 #define LWLIB_USES_MOTIF 1
9542 { test "$extra_verbose" = "yes" && cat << \EOF
9545 cat >> confdefs.h <<\EOF
9546 #define NEED_MOTIF 1
9550 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9554 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9555 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9556 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9557 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9558 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9559 case "$with_widgets" in athena* )
9560 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;;
9562 case "$all_widgets" in *lucid* )
9563 { test "$extra_verbose" = "yes" && cat << \EOF
9566 cat >> confdefs.h <<\EOF
9567 #define NEED_LUCID 1
9571 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9576 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9577 Defining LWLIB_SCROLLBARS_ATHENA
9579 cat >> confdefs.h <<\EOF
9580 #define LWLIB_SCROLLBARS_ATHENA 1
9584 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9585 Defining LWLIB_DIALOGS_ATHENA
9587 cat >> confdefs.h <<\EOF
9588 #define LWLIB_DIALOGS_ATHENA 1
9593 if test "$athena_3d" = "yes"; then
9594 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9595 Defining LWLIB_SCROLLBARS_ATHENA3D
9597 cat >> confdefs.h <<\EOF
9598 #define LWLIB_SCROLLBARS_ATHENA3D 1
9602 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9603 Defining LWLIB_DIALOGS_ATHENA3D
9605 cat >> confdefs.h <<\EOF
9606 #define LWLIB_DIALOGS_ATHENA3D 1
9612 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9613 Defining LWLIB_WIDGETS_ATHENA
9615 cat >> confdefs.h <<\EOF
9616 #define LWLIB_WIDGETS_ATHENA 1
9620 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9621 { test "$extra_verbose" = "yes" && cat << \EOF
9622 Defining LWLIB_TABS_LUCID
9624 cat >> confdefs.h <<\EOF
9625 #define LWLIB_TABS_LUCID 1
9630 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9631 Defining HAVE_MENUBARS
9633 cat >> confdefs.h <<\EOF
9634 #define HAVE_MENUBARS 1
9638 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9639 Defining HAVE_SCROLLBARS
9641 cat >> confdefs.h <<\EOF
9642 #define HAVE_SCROLLBARS 1
9646 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9647 Defining HAVE_DIALOGS
9649 cat >> confdefs.h <<\EOF
9650 #define HAVE_DIALOGS 1
9654 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9655 Defining HAVE_TOOLBARS
9657 cat >> confdefs.h <<\EOF
9658 #define HAVE_TOOLBARS 1
9662 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9663 Defining HAVE_WIDGETS
9665 cat >> confdefs.h <<\EOF
9666 #define HAVE_WIDGETS 1
9671 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9672 Defining LWLIB_MENUBARS_LUCID
9674 cat >> confdefs.h <<\EOF
9675 #define LWLIB_MENUBARS_LUCID 1
9679 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9680 Defining LWLIB_SCROLLBARS_LUCID
9682 cat >> confdefs.h <<\EOF
9683 #define LWLIB_SCROLLBARS_LUCID 1
9688 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9689 Defining LWLIB_MENUBARS_MOTIF
9691 cat >> confdefs.h <<\EOF
9692 #define LWLIB_MENUBARS_MOTIF 1
9696 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9697 Defining LWLIB_SCROLLBARS_MOTIF
9699 cat >> confdefs.h <<\EOF
9700 #define LWLIB_SCROLLBARS_MOTIF 1
9704 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9705 Defining LWLIB_DIALOGS_MOTIF
9707 cat >> confdefs.h <<\EOF
9708 #define LWLIB_DIALOGS_MOTIF 1
9712 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9713 Defining LWLIB_WIDGETS_MOTIF
9715 cat >> confdefs.h <<\EOF
9716 #define LWLIB_WIDGETS_MOTIF 1
9721 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9722 echo " xemacs will be linked with \"menubar.o\""
9724 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9725 echo " xemacs will be linked with \"scrollbar.o\""
9727 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9728 echo " xemacs will be linked with \"dialog.o\""
9730 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9731 echo " xemacs will be linked with \"toolbar.o\""
9734 if test "$with_gtk" = "yes"; then
9735 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9736 echo " xemacs will be linked with \"menubar-gtk.o\""
9738 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9739 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9741 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9742 echo " xemacs will be linked with \"dialog-gtk.o\""
9744 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9745 echo " xemacs will be linked with \"toolbar-gtk.o\""
9747 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9748 echo " xemacs will be linked with \"gui-gtk.o\""
9752 if test "$with_x11" = "yes"; then
9753 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9754 echo " xemacs will be linked with \"menubar-x.o\""
9756 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9757 echo " xemacs will be linked with \"scrollbar-x.o\""
9759 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9760 echo " xemacs will be linked with \"dialog-x.o\""
9762 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9763 echo " xemacs will be linked with \"toolbar-x.o\""
9765 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9766 echo " xemacs will be linked with \"gui-x.o\""
9771 test -z "$with_mule" && with_mule=no
9772 test -z "$with_file_coding" && with_file_coding=no
9775 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9776 { test "$extra_verbose" = "yes" && cat << \EOF
9777 Defining FILE_CODING
9779 cat >> confdefs.h <<\EOF
9780 #define FILE_CODING 1
9784 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9785 echo " xemacs will be linked with \"file-coding.o\""
9789 if test "$with_mule" = "yes" ; then
9790 echo "checking for Mule-related features" 1>&6
9791 echo "configure:9792: checking for Mule-related features" >&5
9792 { test "$extra_verbose" = "yes" && cat << \EOF
9795 cat >> confdefs.h <<\EOF
9800 { test "$extra_verbose" = "yes" && cat << \EOF
9801 Defining FILE_CODING
9803 cat >> confdefs.h <<\EOF
9804 #define FILE_CODING 1
9808 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9809 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9811 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9812 { test "$extra_verbose" = "yes" && cat << \EOF
9813 Defining TEXT_CODING
9815 cat >> confdefs.h <<\EOF
9816 #define TEXT_CODING 1
9820 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9821 echo " xemacs will be linked with \"text-coding.o\""
9824 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9825 echo " xemacs will be linked with \"file-coding.o\""
9828 for ac_hdr in libintl.h
9830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9832 echo "configure:9833: checking for $ac_hdr" >&5
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9840 { (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842 if test -z "$ac_err"; then
9844 eval "ac_cv_header_$ac_safe=yes"
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9850 eval "ac_cv_header_$ac_safe=no"
9853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9854 echo "$ac_t""yes" 1>&6
9855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9856 { test "$extra_verbose" = "yes" && cat << EOF
9859 cat >> confdefs.h <<EOF
9860 #define $ac_tr_hdr 1
9865 echo "$ac_t""no" 1>&6
9870 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9871 echo "configure:9872: checking for strerror in -lintl" >&5
9872 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9874 xe_check_libs=" -lintl "
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9889 eval "ac_cv_lib_$ac_lib_var=yes"
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9894 eval "ac_cv_lib_$ac_lib_var=no"
9899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9900 echo "$ac_t""yes" 1>&6
9901 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9903 { test "$extra_verbose" = "yes" && cat << EOF
9906 cat >> confdefs.h <<EOF
9907 #define $ac_tr_lib 1
9911 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9914 echo "$ac_t""no" 1>&6
9919 if test "$with_utf_2000" = "yes" ; then
9920 { test "$extra_verbose" = "yes" && cat << \EOF
9921 Defining CHAR_IS_UCS4
9923 cat >> confdefs.h <<\EOF
9924 #define CHAR_IS_UCS4 1
9928 { test "$extra_verbose" = "yes" && cat << \EOF
9931 cat >> confdefs.h <<\EOF
9938 echo "checking for Mule input methods" 1>&6
9939 echo "configure:9940: checking for Mule input methods" >&5
9940 case "$with_xim" in "" | "yes" )
9941 echo "checking for XIM" 1>&6
9942 echo "configure:9943: checking for XIM" >&5
9944 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9945 echo "configure:9946: checking for XOpenIM in -lX11" >&5
9946 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9948 xe_check_libs=" -lX11 "
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 eval "ac_cv_lib_$ac_lib_var=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_lib_$ac_lib_var=no"
9973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9974 echo "$ac_t""yes" 1>&6
9977 echo "$ac_t""no" 1>&6
9982 if test "$have_motif $have_lesstif" = "yes no"; then
9984 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9985 echo "configure:9986: checking for XmImMbLookupString in -lXm" >&5
9986 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9988 xe_check_libs=" -lXm "
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9995 char XmImMbLookupString();
9998 XmImMbLookupString()
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10003 eval "ac_cv_lib_$ac_lib_var=yes"
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10008 eval "ac_cv_lib_$ac_lib_var=no"
10013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10014 echo "$ac_t""yes" 1>&6
10017 echo "$ac_t""no" 1>&6
10023 if test "$with_xim" != "no"; then
10024 { test "$extra_verbose" = "yes" && cat << \EOF
10027 cat >> confdefs.h <<\EOF
10032 if test "$with_xim" = "xlib"; then
10033 { test "$extra_verbose" = "yes" && cat << \EOF
10036 cat >> confdefs.h <<\EOF
10041 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10042 echo " xemacs will be linked with \"input-method-xlib.o\""
10045 if test "$with_xim" = "motif"; then
10046 { test "$extra_verbose" = "yes" && cat << \EOF
10049 cat >> confdefs.h <<\EOF
10050 #define XIM_MOTIF 1
10055 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10056 echo " xemacs will be linked with \"input-method-motif.o\""
10059 if test "$with_xim" = "motif"; then
10064 if test "$with_xfs" = "yes" ; then
10065 echo "checking for XFontSet" 1>&6
10066 echo "configure:10067: checking for XFontSet" >&5
10068 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10069 echo "configure:10070: checking for XmbDrawString in -lX11" >&5
10070 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10072 xe_check_libs=" -lX11 "
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char XmbDrawString();
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 eval "ac_cv_lib_$ac_lib_var=yes"
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 eval "ac_cv_lib_$ac_lib_var=no"
10097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10098 echo "$ac_t""yes" 1>&6
10101 echo "$ac_t""no" 1>&6
10106 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10107 { test "$extra_verbose" = "yes" && cat << \EOF
10108 Defining USE_XFONTSET
10110 cat >> confdefs.h <<\EOF
10111 #define USE_XFONTSET 1
10115 if test "$with_xim" = "no" ; then
10116 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10117 echo " xemacs will be linked with \"input-method-xlib.o\""
10122 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10123 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10124 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10125 echo "configure:10126: checking for wnn/jllib.h" >&5
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10130 #include <wnn/jllib.h>
10132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10133 { (eval echo configure:10134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10135 if test -z "$ac_err"; then
10137 eval "ac_cv_header_$ac_safe=yes"
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 eval "ac_cv_header_$ac_safe=no"
10146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10150 echo "$ac_t""no" 1>&6
10154 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10155 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10156 echo "configure:10157: checking for wnn/commonhd.h" >&5
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <wnn/commonhd.h>
10163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10164 { (eval echo configure:10165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10166 if test -z "$ac_err"; then
10168 eval "ac_cv_header_$ac_safe=yes"
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10174 eval "ac_cv_header_$ac_safe=no"
10177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10181 echo "$ac_t""no" 1>&6
10185 if test "$with_wnn" != "no"; then
10186 for ac_func in crypt
10188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10189 echo "configure:10190: checking for $ac_func" >&5
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10194 /* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char $ac_func(); below. */
10196 #include <assert.h>
10197 /* Override any gcc2 internal prototype to avoid an error. */
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217 eval "ac_cv_func_$ac_func=yes"
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10222 eval "ac_cv_func_$ac_func=no"
10226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10229 { test "$extra_verbose" = "yes" && cat << EOF
10230 Defining $ac_tr_func
10232 cat >> confdefs.h <<EOF
10233 #define $ac_tr_func 1
10238 echo "$ac_t""no" 1>&6
10242 test "$ac_cv_func_crypt" != "yes" && {
10243 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10244 echo "configure:10245: checking for crypt in -lcrypt" >&5
10245 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10247 xe_check_libs=" -lcrypt "
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 /* Override any gcc2 internal prototype to avoid an error. */
10252 /* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10262 eval "ac_cv_lib_$ac_lib_var=yes"
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10267 eval "ac_cv_lib_$ac_lib_var=no"
10272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10273 echo "$ac_t""yes" 1>&6
10274 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10276 { test "$extra_verbose" = "yes" && cat << EOF
10277 Defining $ac_tr_lib
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_lib 1
10284 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10287 echo "$ac_t""no" 1>&6
10292 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10294 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10295 echo "configure:10296: checking for jl_dic_list_e in -lwnn" >&5
10296 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10298 xe_check_libs=" -lwnn "
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10305 char jl_dic_list_e();
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10313 eval "ac_cv_lib_$ac_lib_var=yes"
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 eval "ac_cv_lib_$ac_lib_var=no"
10323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10324 echo "$ac_t""yes" 1>&6
10327 echo "$ac_t""no" 1>&6
10328 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10329 echo "configure:10330: checking for jl_dic_list_e in -lwnn4" >&5
10330 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10332 xe_check_libs=" -lwnn4 "
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 /* Override any gcc2 internal prototype to avoid an error. */
10337 /* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10339 char jl_dic_list_e();
10345 if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10347 eval "ac_cv_lib_$ac_lib_var=yes"
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 eval "ac_cv_lib_$ac_lib_var=no"
10357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10358 echo "$ac_t""yes" 1>&6
10361 echo "$ac_t""no" 1>&6
10362 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10363 echo "configure:10364: checking for jl_dic_list_e in -lwnn6" >&5
10364 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10366 xe_check_libs=" -lwnn6 "
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370 /* Override any gcc2 internal prototype to avoid an error. */
10371 /* We use char because int might match the return type of a gcc2
10372 builtin and then its argument prototype would still apply. */
10373 char jl_dic_list_e();
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10381 eval "ac_cv_lib_$ac_lib_var=yes"
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10386 eval "ac_cv_lib_$ac_lib_var=no"
10391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10392 echo "$ac_t""yes" 1>&6
10395 echo "$ac_t""no" 1>&6
10396 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10397 echo "configure:10398: checking for dic_list_e in -lwnn6_fromsrc" >&5
10398 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10400 xe_check_libs=" -lwnn6_fromsrc "
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 /* Override any gcc2 internal prototype to avoid an error. */
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10413 if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10415 eval "ac_cv_lib_$ac_lib_var=yes"
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10420 eval "ac_cv_lib_$ac_lib_var=no"
10425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10426 echo "$ac_t""yes" 1>&6
10427 libwnn=wnn6_fromsrc
10429 echo "$ac_t""no" 1>&6
10444 test -z "$with_wnn" && with_wnn=yes
10445 if test "$with_wnn" = "yes"; then
10446 { test "$extra_verbose" = "yes" && cat << \EOF
10449 cat >> confdefs.h <<\EOF
10454 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10455 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10456 echo " xemacs will be linked with \"mule-wnnfns.o\""
10458 if test "$with_wnn6" != "no"; then
10460 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10461 echo "configure:10462: checking for jl_fi_dic_list in -l$libwnn" >&5
10462 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10464 xe_check_libs=" -l$libwnn "
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10468 /* Override any gcc2 internal prototype to avoid an error. */
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10471 char jl_fi_dic_list();
10477 if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10479 eval "ac_cv_lib_$ac_lib_var=yes"
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10484 eval "ac_cv_lib_$ac_lib_var=no"
10489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10490 echo "$ac_t""yes" 1>&6
10493 echo "$ac_t""no" 1>&6
10497 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10500 cat >> confdefs.h <<\EOF
10508 canna_includes_found=no
10509 if test "$with_canna" != "no"; then
10510 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10512 echo "configure:10513: checking for canna/jrkanji.h" >&5
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <canna/jrkanji.h>
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then
10524 eval "ac_cv_header_$ac_safe=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_header_$ac_safe=no"
10533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10534 echo "$ac_t""yes" 1>&6
10535 canna_includes_found=yes
10537 echo "$ac_t""no" 1>&6
10541 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10542 -d "/usr/local/canna/include"; then
10543 save_c_switch_site="$c_switch_site"
10544 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10545 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10546 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10547 echo "configure:10548: checking for canna/jrkanji.h" >&5
10549 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10552 #include <canna/jrkanji.h>
10554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10555 { (eval echo configure:10556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10557 if test -z "$ac_err"; then
10559 eval "ac_cv_header_$ac_safe=yes"
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10565 eval "ac_cv_header_$ac_safe=no"
10568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 canna_includes_found=yes
10572 echo "$ac_t""no" 1>&6
10575 if test "$canna_includes_found" != "yes"; then
10576 c_switch_site="$save_c_switch_site"
10581 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10582 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10583 echo "configure:10584: checking for canna/RK.h" >&5
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include <canna/RK.h>
10590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10591 { (eval echo configure:10592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10593 if test -z "$ac_err"; then
10595 eval "ac_cv_header_$ac_safe=yes"
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10601 eval "ac_cv_header_$ac_safe=no"
10604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10605 echo "$ac_t""yes" 1>&6
10608 echo "$ac_t""no" 1>&6
10612 test -z "$with_canna" && {
10613 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10614 echo "configure:10615: checking for RkBgnBun in -lRKC" >&5
10615 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10617 xe_check_libs=" -lRKC "
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10632 eval "ac_cv_lib_$ac_lib_var=yes"
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 eval "ac_cv_lib_$ac_lib_var=no"
10642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10643 echo "$ac_t""yes" 1>&6
10646 echo "$ac_t""no" 1>&6
10651 test -z "$with_canna" && {
10652 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10653 echo "configure:10654: checking for jrKanjiControl in -lcanna" >&5
10654 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10656 xe_check_libs=" -lcanna "
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 /* Override any gcc2 internal prototype to avoid an error. */
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char jrKanjiControl();
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_lib_$ac_lib_var=no"
10681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10682 echo "$ac_t""yes" 1>&6
10685 echo "$ac_t""no" 1>&6
10690 test -z "$with_canna" && with_canna=yes
10691 if test "$with_canna" = "yes"; then
10692 { test "$extra_verbose" = "yes" && cat << \EOF
10693 Defining HAVE_CANNA
10695 cat >> confdefs.h <<\EOF
10696 #define HAVE_CANNA 1
10700 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10701 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10702 echo " xemacs will be linked with \"mule-canna.o\""
10706 else for feature in xim canna wnn; do
10707 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10708 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10710 eval "with_${feature}=no"
10714 if test "$need_motif" = "yes" ; then
10715 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10717 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10718 echo "configure:10719: checking for layout_object_getvalue in -li18n" >&5
10719 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10721 xe_check_libs=" -li18n "
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 /* Override any gcc2 internal prototype to avoid an error. */
10726 /* We use char because int might match the return type of a gcc2
10727 builtin and then its argument prototype would still apply. */
10728 char layout_object_getvalue();
10731 layout_object_getvalue()
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10736 eval "ac_cv_lib_$ac_lib_var=yes"
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10741 eval "ac_cv_lib_$ac_lib_var=no"
10746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10747 echo "$ac_t""yes" 1>&6
10748 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10750 echo "$ac_t""no" 1>&6
10755 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10756 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10757 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10759 runpath="" runpath_dirs=""
10760 if test -n "$LD_RUN_PATH"; then
10761 runpath="$LD_RUN_PATH"
10762 elif test "$GCC" = "yes"; then
10763 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10764 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10765 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10766 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10767 case "$arg" in P,* | -L* | -R* )
10768 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10770 xe_runpath_dir="$dir"
10771 test "$xe_runpath_dir" != "/lib" -a \
10772 "$xe_runpath_dir" != "/usr/lib" -a \
10773 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10774 eval "$xe_add_unique_runpath_dir"
10779 ld_switch_run="$ld_switch_run_save"
10782 for arg in $ld_switch_site $ld_switch_x_site; do
10783 case "$arg" in -L*) {
10784 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10785 test "$xe_runpath_dir" != "/lib" -a \
10786 "$xe_runpath_dir" != "/usr/lib" -a \
10787 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10788 eval "$xe_add_unique_runpath_dir"
10791 if test "$opsys $need_motif" = "sol2 yes"; then
10792 xe_runpath_dir="/opt/SUNWdt/lib";
10793 eval "$xe_add_unique_runpath_dir";
10796 if test -n "$runpath"; then
10797 ld_switch_run="${dash_r}${runpath}"
10799 if test "$GCC" = "yes"; then
10800 set x $ld_switch_run; shift; ld_switch_run=""
10801 while test -n "$1"; do
10803 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10804 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10806 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10811 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10817 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
10819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10820 echo "configure:10821: checking for $ac_func" >&5
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 /* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char $ac_func(); below. */
10827 #include <assert.h>
10828 /* Override any gcc2 internal prototype to avoid an error. */
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10848 eval "ac_cv_func_$ac_func=yes"
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 eval "ac_cv_func_$ac_func=no"
10857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10860 { test "$extra_verbose" = "yes" && cat << EOF
10861 Defining $ac_tr_func
10863 cat >> confdefs.h <<EOF
10864 #define $ac_tr_func 1
10869 echo "$ac_t""no" 1>&6
10875 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10878 echo "configure:10879: checking for $ac_func" >&5
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func(); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10893 /* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10906 eval "ac_cv_func_$ac_func=yes"
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10911 eval "ac_cv_func_$ac_func=no"
10915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10916 echo "$ac_t""yes" 1>&6
10917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10918 { test "$extra_verbose" = "yes" && cat << EOF
10919 Defining $ac_tr_func
10921 cat >> confdefs.h <<EOF
10922 #define $ac_tr_func 1
10927 echo "$ac_t""no" 1>&6
10932 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10933 echo "configure:10934: checking for openpty" >&5
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 /* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char openpty(); below. */
10940 #include <assert.h>
10941 /* Override any gcc2 internal prototype to avoid an error. */
10942 /* We use char because int might match the return type of a gcc2
10943 builtin and then its argument prototype would still apply. */
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined (__stub_openpty) || defined (__stub___openpty)
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961 eval "ac_cv_func_openpty=yes"
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 eval "ac_cv_func_openpty=no"
10970 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10974 echo "$ac_t""no" 1>&6
10977 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10978 echo "configure:10979: checking for openpty in -lutil" >&5
10979 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10981 xe_check_libs=" -lutil "
10982 cat > conftest.$ac_ext <<EOF
10983 #line 10984 "configure"
10984 #include "confdefs.h"
10985 /* Override any gcc2 internal prototype to avoid an error. */
10986 /* We use char because int might match the return type of a gcc2
10987 builtin and then its argument prototype would still apply. */
10994 if { (eval echo configure:10995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10996 eval "ac_cv_lib_$ac_lib_var=yes"
10998 echo "configure: failed program was:" >&5
10999 cat conftest.$ac_ext >&5
11001 eval "ac_cv_lib_$ac_lib_var=no"
11006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11007 echo "$ac_t""yes" 1>&6
11008 have_openpty=yes need_libutil=yes
11010 echo "$ac_t""no" 1>&6
11016 if test "$have_openpty" = "yes"; then
11017 { test "$extra_verbose" = "yes" && cat << \EOF
11018 Defining HAVE_OPENPTY
11020 cat >> confdefs.h <<\EOF
11021 #define HAVE_OPENPTY 1
11025 for ac_hdr in pty.h libutil.h util.h
11027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11029 echo "configure:11030: checking for $ac_hdr" >&5
11031 cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure"
11033 #include "confdefs.h"
11036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11037 { (eval echo configure:11038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11039 if test -z "$ac_err"; then
11041 eval "ac_cv_header_$ac_safe=yes"
11044 echo "configure: failed program was:" >&5
11045 cat conftest.$ac_ext >&5
11047 eval "ac_cv_header_$ac_safe=no"
11050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11051 echo "$ac_t""yes" 1>&6
11052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11053 { test "$extra_verbose" = "yes" && cat << EOF
11054 Defining $ac_tr_hdr
11056 cat >> confdefs.h <<EOF
11057 #define $ac_tr_hdr 1
11062 echo "$ac_t""no" 1>&6
11066 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11069 for ac_hdr in stropts.h
11071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11073 echo "configure:11074: checking for $ac_hdr" >&5
11075 cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11081 { (eval echo configure:11082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11083 if test -z "$ac_err"; then
11085 eval "ac_cv_header_$ac_safe=yes"
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 eval "ac_cv_header_$ac_safe=no"
11094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11097 { test "$extra_verbose" = "yes" && cat << EOF
11098 Defining $ac_tr_hdr
11100 cat >> confdefs.h <<EOF
11101 #define $ac_tr_hdr 1
11106 echo "$ac_t""no" 1>&6
11110 if test "$ac_cv_header_stropts_h" = "yes"; then
11111 for ac_func in isastream
11113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11114 echo "configure:11115: checking for $ac_func" >&5
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* System header to define __stub macros and hopefully few prototypes,
11120 which can conflict with char $ac_func(); below. */
11121 #include <assert.h>
11122 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140 if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11142 eval "ac_cv_func_$ac_func=yes"
11144 echo "configure: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11147 eval "ac_cv_func_$ac_func=no"
11151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11152 echo "$ac_t""yes" 1>&6
11153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11154 { test "$extra_verbose" = "yes" && cat << EOF
11155 Defining $ac_tr_func
11157 cat >> confdefs.h <<EOF
11158 #define $ac_tr_func 1
11163 echo "$ac_t""no" 1>&6
11167 for ac_hdr in strtio.h
11169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11171 echo "configure:11172: checking for $ac_hdr" >&5
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11179 { (eval echo configure:11180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11181 if test -z "$ac_err"; then
11183 eval "ac_cv_header_$ac_safe=yes"
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11189 eval "ac_cv_header_$ac_safe=no"
11192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11193 echo "$ac_t""yes" 1>&6
11194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11195 { test "$extra_verbose" = "yes" && cat << EOF
11196 Defining $ac_tr_hdr
11198 cat >> confdefs.h <<EOF
11199 #define $ac_tr_hdr 1
11204 echo "$ac_t""no" 1>&6
11209 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11210 echo " xemacs will be linked with \"realpath.o\""
11213 for ac_func in getloadavg
11215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11216 echo "configure:11217: checking for $ac_func" >&5
11218 cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222 which can conflict with char $ac_func(); below. */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error. */
11225 /* We use char because int might match the return type of a gcc2
11226 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11244 eval "ac_cv_func_$ac_func=yes"
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11249 eval "ac_cv_func_$ac_func=no"
11253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11254 echo "$ac_t""yes" 1>&6
11255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11256 { test "$extra_verbose" = "yes" && cat << EOF
11257 Defining $ac_tr_func
11259 cat >> confdefs.h <<EOF
11260 #define $ac_tr_func 1
11265 echo "$ac_t""no" 1>&6
11270 if test "$ac_cv_func_getloadavg" = "yes"; then
11271 for ac_hdr in sys/loadavg.h
11273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11275 echo "configure:11276: checking for $ac_hdr" >&5
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure"
11279 #include "confdefs.h"
11282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11283 { (eval echo configure:11284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11285 if test -z "$ac_err"; then
11287 eval "ac_cv_header_$ac_safe=yes"
11290 echo "configure: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11293 eval "ac_cv_header_$ac_safe=no"
11296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11297 echo "$ac_t""yes" 1>&6
11298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11299 { test "$extra_verbose" = "yes" && cat << EOF
11300 Defining $ac_tr_hdr
11302 cat >> confdefs.h <<EOF
11303 #define $ac_tr_hdr 1
11308 echo "$ac_t""no" 1>&6
11313 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11314 echo " xemacs will be linked with \"getloadavg.o\""
11318 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11319 echo "configure:11320: checking for kstat_open in -lkstat" >&5
11320 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11322 xe_check_libs=" -lkstat "
11323 cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 /* Override any gcc2 internal prototype to avoid an error. */
11327 /* We use char because int might match the return type of a gcc2
11328 builtin and then its argument prototype would still apply. */
11335 if { (eval echo configure:11336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11337 eval "ac_cv_lib_$ac_lib_var=yes"
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11342 eval "ac_cv_lib_$ac_lib_var=no"
11347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11348 echo "$ac_t""yes" 1>&6
11349 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11351 { test "$extra_verbose" = "yes" && cat << EOF
11352 Defining $ac_tr_lib
11354 cat >> confdefs.h <<EOF
11355 #define $ac_tr_lib 1
11359 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11362 echo "$ac_t""no" 1>&6
11366 for ac_hdr in kstat.h
11368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11370 echo "configure:11371: checking for $ac_hdr" >&5
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11378 { (eval echo configure:11379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11380 if test -z "$ac_err"; then
11382 eval "ac_cv_header_$ac_safe=yes"
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11388 eval "ac_cv_header_$ac_safe=no"
11391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11392 echo "$ac_t""yes" 1>&6
11393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11394 { test "$extra_verbose" = "yes" && cat << EOF
11395 Defining $ac_tr_hdr
11397 cat >> confdefs.h <<EOF
11398 #define $ac_tr_hdr 1
11403 echo "$ac_t""no" 1>&6
11409 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11410 echo "configure:11411: checking for kvm_read in -lkvm" >&5
11411 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11413 xe_check_libs=" -lkvm "
11414 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11426 if { (eval echo configure:11427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11428 eval "ac_cv_lib_$ac_lib_var=yes"
11430 echo "configure: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11433 eval "ac_cv_lib_$ac_lib_var=no"
11438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11439 echo "$ac_t""yes" 1>&6
11440 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11442 { test "$extra_verbose" = "yes" && cat << EOF
11443 Defining $ac_tr_lib
11445 cat >> confdefs.h <<EOF
11446 #define $ac_tr_lib 1
11450 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11453 echo "$ac_t""no" 1>&6
11459 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11460 echo "configure:11461: checking whether netdb declares h_errno" >&5
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11471 echo "$ac_t""yes" 1>&6
11472 { test "$extra_verbose" = "yes" && cat << \EOF
11473 Defining HAVE_H_ERRNO
11475 cat >> confdefs.h <<\EOF
11476 #define HAVE_H_ERRNO 1
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11484 echo "$ac_t""no" 1>&6
11488 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11489 echo "configure:11490: checking for sigsetjmp" >&5
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #include <setjmp.h>
11495 sigjmp_buf bar; sigsetjmp (bar, 0);
11498 if { (eval echo configure:11499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11500 echo "$ac_t""yes" 1>&6
11501 { test "$extra_verbose" = "yes" && cat << \EOF
11502 Defining HAVE_SIGSETJMP
11504 cat >> confdefs.h <<\EOF
11505 #define HAVE_SIGSETJMP 1
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11513 echo "$ac_t""no" 1>&6
11517 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11518 echo "configure:11519: checking whether localtime caches TZ" >&5
11520 if test "$ac_cv_func_tzset" = "yes"; then
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11526 # include <stdlib.h>
11528 extern char **environ;
11532 for (to = from = environ; (*to = *from); from++)
11533 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11536 char TZ_GMT0[] = "TZ=GMT0";
11537 char TZ_PST8[] = "TZ=PST8";
11540 time_t now = time ((time_t *) 0);
11541 int hour_GMT0, hour_unset;
11542 if (putenv (TZ_GMT0) != 0)
11544 hour_GMT0 = localtime (&now)->tm_hour;
11546 hour_unset = localtime (&now)->tm_hour;
11547 if (putenv (TZ_PST8) != 0)
11549 if (localtime (&now)->tm_hour == hour_GMT0)
11552 if (localtime (&now)->tm_hour != hour_unset)
11557 if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11559 emacs_cv_localtime_cache=no
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11565 emacs_cv_localtime_cache=yes
11569 # If we lack tzset, report that localtime does not cache TZ,
11570 # since we can't invalidate the cache if we don't have tzset.
11571 emacs_cv_localtime_cache=no
11573 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11574 if test $emacs_cv_localtime_cache = yes; then
11575 { test "$extra_verbose" = "yes" && cat << \EOF
11576 Defining LOCALTIME_CACHE
11578 cat >> confdefs.h <<\EOF
11579 #define LOCALTIME_CACHE 1
11585 if test "$HAVE_TIMEVAL" = "yes"; then
11586 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11587 echo "configure:11588: checking whether gettimeofday accepts one or two arguments" >&5
11588 cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11592 #ifdef TIME_WITH_SYS_TIME
11593 #include <sys/time.h>
11596 #ifdef HAVE_SYS_TIME_H
11597 #include <sys/time.h>
11605 struct timeval time;
11606 gettimeofday (&time, 0);
11610 if { (eval echo configure:11611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11612 echo "$ac_t""two" 1>&6
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11617 echo "$ac_t""one" 1>&6
11618 { test "$extra_verbose" = "yes" && cat << \EOF
11619 Defining GETTIMEOFDAY_ONE_ARGUMENT
11621 cat >> confdefs.h <<\EOF
11622 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11631 echo $ac_n "checking for inline""... $ac_c" 1>&6
11632 echo "configure:11633: checking for inline" >&5
11635 for ac_kw in inline __inline__ __inline; do
11636 cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11644 if { (eval echo configure:11645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11646 ac_cv_c_inline=$ac_kw; break
11648 echo "configure: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11655 echo "$ac_t""$ac_cv_c_inline" 1>&6
11656 case "$ac_cv_c_inline" in
11658 no) { test "$extra_verbose" = "yes" && cat << \EOF
11661 cat >> confdefs.h <<\EOF
11666 *) { test "$extra_verbose" = "yes" && cat << EOF
11667 Defining inline = $ac_cv_c_inline
11669 cat >> confdefs.h <<EOF
11670 #define inline $ac_cv_c_inline
11676 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11677 echo " xemacs will be linked with \"inline.o\""
11681 if test "$__DECC" != "yes"; then
11682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11683 # for constant arguments. Useless!
11684 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11685 echo "configure:11686: checking for working alloca.h" >&5
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <alloca.h>
11692 char *p = alloca(2 * sizeof(int));
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697 ac_cv_header_alloca_h=yes
11699 echo "configure: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11702 ac_cv_header_alloca_h=no
11706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11707 if test $ac_cv_header_alloca_h = yes; then
11708 { test "$extra_verbose" = "yes" && cat << \EOF
11709 Defining HAVE_ALLOCA_H
11711 cat >> confdefs.h <<\EOF
11712 #define HAVE_ALLOCA_H 1
11718 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11719 echo "configure:11720: checking for alloca" >&5
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11726 # define alloca __builtin_alloca
11729 # include <malloc.h>
11730 # define alloca _alloca
11733 # include <alloca.h>
11738 # ifndef alloca /* predefined by HP cc +Olibcalls */
11747 char *p = (char *) alloca(1);
11750 if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752 ac_cv_func_alloca_works=yes
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11757 ac_cv_func_alloca_works=no
11761 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11762 if test $ac_cv_func_alloca_works = yes; then
11763 { test "$extra_verbose" = "yes" && cat << \EOF
11764 Defining HAVE_ALLOCA
11766 cat >> confdefs.h <<\EOF
11767 #define HAVE_ALLOCA 1
11773 if test $ac_cv_func_alloca_works = no; then
11774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11775 # that cause trouble. Some versions do not even contain alloca or
11776 # contain a buggy version. If you still want to use their alloca,
11777 # use ar to extract alloca.o from them instead of compiling alloca.c.
11778 ALLOCA=alloca.${ac_objext}
11779 { test "$extra_verbose" = "yes" && cat << \EOF
11782 cat >> confdefs.h <<\EOF
11788 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11789 echo "configure:11790: checking whether alloca needs Cray hooks" >&5
11791 cat > conftest.$ac_ext <<EOF
11792 #line 11793 "configure"
11793 #include "confdefs.h"
11794 #if defined(CRAY) && ! defined(CRAY2)
11801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11802 egrep "webecray" >/dev/null 2>&1; then
11812 echo "$ac_t""$ac_cv_os_cray" 1>&6
11813 if test $ac_cv_os_cray = yes; then
11814 for ac_func in _getb67 GETB67 getb67; do
11815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11816 echo "configure:11817: checking for $ac_func" >&5
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 /* System header to define __stub macros and hopefully few prototypes,
11822 which can conflict with char $ac_func(); below. */
11823 #include <assert.h>
11824 /* Override any gcc2 internal prototype to avoid an error. */
11825 /* We use char because int might match the return type of a gcc2
11826 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11844 eval "ac_cv_func_$ac_func=yes"
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11849 eval "ac_cv_func_$ac_func=no"
11853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11854 echo "$ac_t""yes" 1>&6
11855 { test "$extra_verbose" = "yes" && cat << EOF
11856 Defining CRAY_STACKSEG_END = $ac_func
11858 cat >> confdefs.h <<EOF
11859 #define CRAY_STACKSEG_END $ac_func
11865 echo "$ac_t""no" 1>&6
11871 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11872 echo "configure:11873: checking stack direction for C alloca" >&5
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 find_stack_direction ()
11879 static char *addr = 0;
11884 return find_stack_direction ();
11887 return (&dummy > addr) ? 1 : -1;
11891 exit (find_stack_direction() < 0);
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11896 ac_cv_c_stack_direction=1
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11902 ac_cv_c_stack_direction=-1
11906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11907 { test "$extra_verbose" = "yes" && cat << EOF
11908 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11910 cat >> confdefs.h <<EOF
11911 #define STACK_DIRECTION $ac_cv_c_stack_direction
11917 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11918 echo " xemacs will be linked with \"$ALLOCA\""
11922 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11923 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11924 echo "configure:11925: checking for vfork.h" >&5
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11932 { (eval echo configure:11933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11934 if test -z "$ac_err"; then
11936 eval "ac_cv_header_$ac_safe=yes"
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11942 eval "ac_cv_header_$ac_safe=no"
11945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11946 echo "$ac_t""yes" 1>&6
11947 { test "$extra_verbose" = "yes" && cat << \EOF
11948 Defining HAVE_VFORK_H
11950 cat >> confdefs.h <<\EOF
11951 #define HAVE_VFORK_H 1
11956 echo "$ac_t""no" 1>&6
11959 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11960 echo "configure:11961: checking for working vfork" >&5
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965 /* Thanks to Paul Eggert for this test. */
11967 #include <sys/types.h>
11968 #include <sys/stat.h>
11969 #ifdef HAVE_UNISTD_H
11970 #include <unistd.h>
11972 #ifdef HAVE_VFORK_H
11975 /* On some sparc systems, changes by the child to local and incoming
11976 argument registers are propagated back to the parent.
11977 The compiler is told about this with #include <vfork.h>,
11978 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11979 Test for this by using a static variable whose address
11980 is put into a register that is clobbered by the vfork. */
11983 sparc_address_test (int arg)
11985 sparc_address_test (arg) int arg;
11988 static pid_t child;
12003 pid_t parent = getpid ();
12006 sparc_address_test ();
12011 /* Here is another test for sparc vfork register problems.
12012 This test uses lots of local variables, at least
12013 as many local variables as main has allocated so far
12014 including compiler temporaries. 4 locals are enough for
12015 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12016 A buggy compiler should reuse the register of parent
12017 for one of the local variables, since it will think that
12018 parent can't possibly be used any more in this routine.
12019 Assigning to the local variable will thus munge parent
12020 in the parent process. */
12022 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12023 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12024 /* Convince the compiler that p..p7 are live; otherwise, it might
12025 use the same hardware register for all 8 local variables. */
12026 if (p != p1 || p != p2 || p != p3 || p != p4
12027 || p != p5 || p != p6 || p != p7)
12030 /* On some systems (e.g. IRIX 3.3),
12031 vfork doesn't separate parent from child file descriptors.
12032 If the child closes a descriptor before it execs or exits,
12033 this munges the parent's descriptor as well.
12034 Test for this by closing stdout in the child. */
12035 _exit(close(fileno(stdout)) != 0);
12040 while (wait(&status) != child)
12043 /* Was there some problem with vforking? */
12046 /* Did the child fail? (This shouldn't happen.) */
12049 /* Did the vfork/compiler bug occur? */
12050 || parent != getpid()
12052 /* Did the file descriptor bug occur? */
12053 || fstat(fileno(stdout), &st) != 0
12058 if { (eval echo configure:12059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12060 ac_cv_func_vfork_works=yes
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12066 ac_cv_func_vfork_works=no
12070 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12071 if test $ac_cv_func_vfork_works = no; then
12072 { test "$extra_verbose" = "yes" && cat << \EOF
12073 Defining vfork = fork
12075 cat >> confdefs.h <<\EOF
12083 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12084 echo "configure:12085: checking for working strcoll" >&5
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 #include <string.h>
12092 exit (strcoll ("abc", "def") >= 0 ||
12093 strcoll ("ABC", "DEF") >= 0 ||
12094 strcoll ("123", "456") >= 0);
12097 if { (eval echo configure:12098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12099 ac_cv_func_strcoll_works=yes
12102 echo "configure: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12105 ac_cv_func_strcoll_works=no
12109 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12110 if test $ac_cv_func_strcoll_works = yes; then
12111 { test "$extra_verbose" = "yes" && cat << \EOF
12112 Defining HAVE_STRCOLL
12114 cat >> confdefs.h <<\EOF
12115 #define HAVE_STRCOLL 1
12122 for ac_func in getpgrp
12124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12125 echo "configure:12126: checking for $ac_func" >&5
12127 cat > conftest.$ac_ext <<EOF
12128 #line 12129 "configure"
12129 #include "confdefs.h"
12130 /* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char $ac_func(); below. */
12132 #include <assert.h>
12133 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12140 /* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
12143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12151 if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12153 eval "ac_cv_func_$ac_func=yes"
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12158 eval "ac_cv_func_$ac_func=no"
12162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12165 { test "$extra_verbose" = "yes" && cat << EOF
12166 Defining $ac_tr_func
12168 cat >> confdefs.h <<EOF
12169 #define $ac_tr_func 1
12174 echo "$ac_t""no" 1>&6
12178 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12179 echo "configure:12180: checking whether getpgrp takes no argument" >&5
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12186 * If this system has a BSD-style getpgrp(),
12187 * which takes a pid argument, exit unsuccessfully.
12189 * Snarfed from Chet Ramey's bash pgrp.c test program
12192 #include <sys/types.h>
12195 int pg1, pg2, pg3, pg4;
12196 int ng, np, s, child;
12203 pg3 = getpgrp(pid);
12207 * If all of these values are the same, it's pretty sure that
12208 * we're on a system that ignores getpgrp's first argument.
12210 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12216 else if (child == 0) {
12219 * If this is Sys V, this will not work; pgrp will be
12220 * set to np because setpgrp just changes a pgrp to be
12221 * the same as the pid.
12224 ng = getpgrp(0); /* Same result for Sys V and BSD */
12237 if { (eval echo configure:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12239 ac_cv_func_getpgrp_void=yes
12242 echo "configure: failed program was:" >&5
12243 cat conftest.$ac_ext >&5
12245 ac_cv_func_getpgrp_void=no
12250 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12251 if test $ac_cv_func_getpgrp_void = yes; then
12252 { test "$extra_verbose" = "yes" && cat << \EOF
12253 Defining GETPGRP_VOID
12255 cat >> confdefs.h <<\EOF
12256 #define GETPGRP_VOID 1
12263 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12264 echo "configure:12265: checking for working mmap" >&5
12265 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12270 #include <unistd.h>
12272 #include <sys/mman.h>
12274 #ifndef MAP_VARIABLE
12275 #define MAP_VARIABLE 0
12279 #define MAP_FAILED -1
12282 int main (int argc, char *argv[])
12286 #ifndef MAP_ANONYMOUS
12287 fd = open ("/dev/zero", O_RDWR);
12290 #define MAP_ANONYMOUS 0
12292 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12293 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12294 fd, 0) != (void *) MAP_FAILED)
12296 perror ("conftest: mmap failed");
12300 if { (eval echo configure:12301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12310 rm -fr conftest* ;;
12312 echo "$ac_t""$have_mmap" 1>&6
12313 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12316 cat >> confdefs.h <<\EOF
12317 #define HAVE_MMAP 1
12322 case "$opsys" in cygwin*)
12323 test "$rel_alloc" = "default" && rel_alloc=no ;;
12325 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12326 if test "$rel_alloc $have_mmap" = "default yes"; then
12327 if test "$doug_lea_malloc" = "yes"; then
12328 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12329 echo "configure:12330: checking for M_MMAP_THRESHOLD" >&5
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 #include <malloc.h>
12336 #ifndef M_MMAP_THRESHOLD
12337 #error No M_MMAP_THRESHOLD :-(
12338 !@+$%^&*_)(_ - unlikely to compile...
12343 if { (eval echo configure:12344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12345 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12357 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12360 cat >> confdefs.h <<\EOF
12361 #define REL_ALLOC 1
12366 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12367 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12368 echo "configure:12369: checking for termios.h" >&5
12370 cat > conftest.$ac_ext <<EOF
12371 #line 12372 "configure"
12372 #include "confdefs.h"
12373 #include <termios.h>
12375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12376 { (eval echo configure:12377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12378 if test -z "$ac_err"; then
12380 eval "ac_cv_header_$ac_safe=yes"
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12386 eval "ac_cv_header_$ac_safe=no"
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 { test "$extra_verbose" = "yes" && cat << \EOF
12392 Defining HAVE_TERMIOS
12394 cat >> confdefs.h <<\EOF
12395 #define HAVE_TERMIOS 1
12399 { test "$extra_verbose" = "yes" && cat << \EOF
12400 Defining SIGNALS_VIA_CHARACTERS
12402 cat >> confdefs.h <<\EOF
12403 #define SIGNALS_VIA_CHARACTERS 1
12407 { test "$extra_verbose" = "yes" && cat << \EOF
12410 cat >> confdefs.h <<\EOF
12411 #define NO_TERMIO 1
12416 echo "$ac_t""no" 1>&6
12417 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12418 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12419 echo "configure:12420: checking for termio.h" >&5
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 #include <termio.h>
12426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12427 { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12429 if test -z "$ac_err"; then
12431 eval "ac_cv_header_$ac_safe=yes"
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12437 eval "ac_cv_header_$ac_safe=no"
12440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12441 echo "$ac_t""yes" 1>&6
12442 { test "$extra_verbose" = "yes" && cat << \EOF
12443 Defining HAVE_TERMIO
12445 cat >> confdefs.h <<\EOF
12446 #define HAVE_TERMIO 1
12451 echo "$ac_t""no" 1>&6
12458 echo $ac_n "checking for socket""... $ac_c" 1>&6
12459 echo "configure:12460: checking for socket" >&5
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464 /* System header to define __stub macros and hopefully few prototypes,
12465 which can conflict with char socket(); below. */
12466 #include <assert.h>
12467 /* Override any gcc2 internal prototype to avoid an error. */
12468 /* We use char because int might match the return type of a gcc2
12469 builtin and then its argument prototype would still apply. */
12474 /* The GNU C library defines this for functions which it implements
12475 to always fail with ENOSYS. Some functions are actually named
12476 something starting with __ and the normal name is an alias. */
12477 #if defined (__stub_socket) || defined (__stub___socket)
12485 if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12487 eval "ac_cv_func_socket=yes"
12489 echo "configure: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12492 eval "ac_cv_func_socket=no"
12496 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12497 echo "$ac_t""yes" 1>&6
12498 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12499 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12500 echo "configure:12501: checking for netinet/in.h" >&5
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 #include <netinet/in.h>
12507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12508 { (eval echo configure:12509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12510 if test -z "$ac_err"; then
12512 eval "ac_cv_header_$ac_safe=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_header_$ac_safe=no"
12521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12524 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12525 echo "configure:12526: checking for arpa/inet.h" >&5
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 #include <arpa/inet.h>
12532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12533 { (eval echo configure:12534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12535 if test -z "$ac_err"; then
12537 eval "ac_cv_header_$ac_safe=yes"
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12543 eval "ac_cv_header_$ac_safe=no"
12546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12547 echo "$ac_t""yes" 1>&6
12549 { test "$extra_verbose" = "yes" && cat << \EOF
12550 Defining HAVE_SOCKETS
12552 cat >> confdefs.h <<\EOF
12553 #define HAVE_SOCKETS 1
12557 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12558 echo "configure:12559: checking "for sun_len member in struct sockaddr_un"" >&5
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12563 #include <sys/types.h>
12564 #include <sys/socket.h>
12565 #include <sys/un.h>
12568 static struct sockaddr_un x; x.sun_len = 1;
12571 if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12573 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12574 Defining HAVE_SOCKADDR_SUN_LEN
12576 cat >> confdefs.h <<\EOF
12577 #define HAVE_SOCKADDR_SUN_LEN 1
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12585 echo "$ac_t""no" 1>&6
12588 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12589 echo "configure:12590: checking "for ip_mreq struct in netinet/in.h"" >&5
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12594 #include <sys/types.h>
12595 #include <netinet/in.h>
12598 static struct ip_mreq x;
12601 if { (eval echo configure:12602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12603 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12604 Defining HAVE_MULTICAST
12606 cat >> confdefs.h <<\EOF
12607 #define HAVE_MULTICAST 1
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 echo "$ac_t""no" 1>&6
12619 echo "$ac_t""no" 1>&6
12623 echo "$ac_t""no" 1>&6
12627 echo "$ac_t""no" 1>&6
12631 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12632 echo "configure:12633: checking for msgget" >&5
12634 cat > conftest.$ac_ext <<EOF
12635 #line 12636 "configure"
12636 #include "confdefs.h"
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char msgget(); below. */
12639 #include <assert.h>
12640 /* Override any gcc2 internal prototype to avoid an error. */
12641 /* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12647 /* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650 #if defined (__stub_msgget) || defined (__stub___msgget)
12658 if { (eval echo configure:12659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12660 eval "ac_cv_func_msgget=yes"
12662 echo "configure: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12665 eval "ac_cv_func_msgget=no"
12669 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12672 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12673 echo "configure:12674: checking for sys/ipc.h" >&5
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 #include <sys/ipc.h>
12680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12681 { (eval echo configure:12682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12683 if test -z "$ac_err"; then
12685 eval "ac_cv_header_$ac_safe=yes"
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12691 eval "ac_cv_header_$ac_safe=no"
12694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12695 echo "$ac_t""yes" 1>&6
12696 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12697 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12698 echo "configure:12699: checking for sys/msg.h" >&5
12700 cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure"
12702 #include "confdefs.h"
12703 #include <sys/msg.h>
12705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12706 { (eval echo configure:12707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12708 if test -z "$ac_err"; then
12710 eval "ac_cv_header_$ac_safe=yes"
12713 echo "configure: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12716 eval "ac_cv_header_$ac_safe=no"
12719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12721 { test "$extra_verbose" = "yes" && cat << \EOF
12722 Defining HAVE_SYSVIPC
12724 cat >> confdefs.h <<\EOF
12725 #define HAVE_SYSVIPC 1
12730 echo "$ac_t""no" 1>&6
12734 echo "$ac_t""no" 1>&6
12738 echo "$ac_t""no" 1>&6
12742 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12743 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12744 echo "configure:12745: checking for dirent.h" >&5
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12749 #include <dirent.h>
12751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12752 { (eval echo configure:12753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12754 if test -z "$ac_err"; then
12756 eval "ac_cv_header_$ac_safe=yes"
12759 echo "configure: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12762 eval "ac_cv_header_$ac_safe=no"
12765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12766 echo "$ac_t""yes" 1>&6
12767 { test "$extra_verbose" = "yes" && cat << \EOF
12768 Defining SYSV_SYSTEM_DIR
12770 cat >> confdefs.h <<\EOF
12771 #define SYSV_SYSTEM_DIR 1
12776 echo "$ac_t""no" 1>&6
12777 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12778 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12779 echo "configure:12780: checking for sys/dir.h" >&5
12781 cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 #include <sys/dir.h>
12786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12787 { (eval echo configure:12788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12789 if test -z "$ac_err"; then
12791 eval "ac_cv_header_$ac_safe=yes"
12794 echo "configure: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12797 eval "ac_cv_header_$ac_safe=no"
12800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12801 echo "$ac_t""yes" 1>&6
12804 echo "$ac_t""no" 1>&6
12805 { test "$extra_verbose" = "yes" && cat << \EOF
12806 Defining NONSYSTEM_DIR_LIBRARY
12808 cat >> confdefs.h <<\EOF
12809 #define NONSYSTEM_DIR_LIBRARY 1
12818 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12819 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12820 echo "configure:12821: checking for nlist.h" >&5
12822 cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12828 { (eval echo configure:12829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12830 if test -z "$ac_err"; then
12832 eval "ac_cv_header_$ac_safe=yes"
12835 echo "configure: failed program was:" >&5
12836 cat conftest.$ac_ext >&5
12838 eval "ac_cv_header_$ac_safe=no"
12841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12843 { test "$extra_verbose" = "yes" && cat << \EOF
12844 Defining NLIST_STRUCT
12846 cat >> confdefs.h <<\EOF
12847 #define NLIST_STRUCT 1
12852 echo "$ac_t""no" 1>&6
12857 echo "checking "for sound support"" 1>&6
12858 echo "configure:12859: checking "for sound support"" >&5
12859 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12861 if test "$with_native_sound" != "no"; then
12862 if test -n "$native_sound_lib"; then
12863 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12864 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12865 echo "configure:12866: checking for multimedia/audio_device.h" >&5
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 #include <multimedia/audio_device.h>
12872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12873 { (eval echo configure:12874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12875 if test -z "$ac_err"; then
12877 eval "ac_cv_header_$ac_safe=yes"
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12883 eval "ac_cv_header_$ac_safe=no"
12886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12887 echo "$ac_t""yes" 1>&6
12888 sound_found=yes sound_cflags=""
12889 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12890 echo " xemacs will be linked with \"sunplay.o\""
12893 echo "$ac_t""no" 1>&6
12898 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12900 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12901 echo " xemacs will be linked with \"sunplay.o\""
12903 if test -d "/usr/demo/SOUND/include"
12904 then sound_cflags="-I/usr/demo/SOUND/include"
12905 else sound_cflags="-I/usr/demo/SOUND"
12907 if test -z "$native_sound_lib" ; then
12908 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12909 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12910 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12915 if test -z "$sound_found"; then
12916 case "$canonical" in
12918 if test -z "$native_sound_lib"; then
12920 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12921 echo "configure:12922: checking for ALopenport in -laudio" >&5
12922 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12924 xe_check_libs=" -laudio "
12925 cat > conftest.$ac_ext <<EOF
12926 #line 12927 "configure"
12927 #include "confdefs.h"
12928 /* Override any gcc2 internal prototype to avoid an error. */
12929 /* We use char because int might match the return type of a gcc2
12930 builtin and then its argument prototype would still apply. */
12937 if { (eval echo configure:12938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12939 eval "ac_cv_lib_$ac_lib_var=yes"
12941 echo "configure: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12944 eval "ac_cv_lib_$ac_lib_var=no"
12949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12950 echo "$ac_t""yes" 1>&6
12951 native_sound_lib="-laudio"
12953 echo "$ac_t""no" 1>&6
12958 if test -n "$native_sound_lib"; then
12959 sound_found=yes sound_cflags=""
12960 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12961 echo " xemacs will be linked with \"sgiplay.o\""
12965 if test -z "$native_sound_lib"; then
12967 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12968 echo "configure:12969: checking for AOpenAudio in -lAlib" >&5
12969 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12971 xe_check_libs=" -lAlib "
12972 cat > conftest.$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12975 /* Override any gcc2 internal prototype to avoid an error. */
12976 /* We use char because int might match the return type of a gcc2
12977 builtin and then its argument prototype would still apply. */
12984 if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12986 eval "ac_cv_lib_$ac_lib_var=yes"
12988 echo "configure: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12991 eval "ac_cv_lib_$ac_lib_var=no"
12996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12997 echo "$ac_t""yes" 1>&6
12998 native_sound_lib="-lAlib"
13000 echo "$ac_t""no" 1>&6
13005 if test -n "$native_sound_lib"; then
13007 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13008 echo " xemacs will be linked with \"hpplay.o\""
13010 if test "$GCC" = "yes" # Kludge city
13011 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13012 else sound_cflags="+e -I/usr/audio/examples"
13018 if test -z "$sound_found"; then
13019 if test "$with_msw" = "yes"; then
13025 if test -z "$sound_found"; then
13026 for dir in "machine" "sys" "linux"; do
13027 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13028 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13029 echo "configure:13030: checking for ${dir}/soundcard.h" >&5
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 #include <${dir}/soundcard.h>
13036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13037 { (eval echo configure:13038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13039 if test -z "$ac_err"; then
13041 eval "ac_cv_header_$ac_safe=yes"
13044 echo "configure: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13047 eval "ac_cv_header_$ac_safe=no"
13050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13051 echo "$ac_t""yes" 1>&6
13054 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13055 echo " xemacs will be linked with \"linuxplay.o\""
13057 { test "$extra_verbose" = "yes" && cat << EOF
13058 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13060 cat >> confdefs.h <<EOF
13061 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13067 echo "$ac_t""no" 1>&6
13073 test "$sound_found" = "yes" && with_native_sound=yes
13076 if test "$with_native_sound" = "yes"; then
13077 { test "$extra_verbose" = "yes" && cat << \EOF
13078 Defining HAVE_NATIVE_SOUND
13080 cat >> confdefs.h <<\EOF
13081 #define HAVE_NATIVE_SOUND 1
13085 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13088 if test "$with_nas_sound" != "no"; then
13089 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13090 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13091 echo "configure:13092: checking for audio/audiolib.h" >&5
13093 cat > conftest.$ac_ext <<EOF
13094 #line 13095 "configure"
13095 #include "confdefs.h"
13096 #include <audio/audiolib.h>
13098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13099 { (eval echo configure:13100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13101 if test -z "$ac_err"; then
13103 eval "ac_cv_header_$ac_safe=yes"
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13109 eval "ac_cv_header_$ac_safe=no"
13112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13113 echo "$ac_t""yes" 1>&6
13116 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13117 echo "configure:13118: checking for AuOpenServer in -laudio" >&5
13118 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13120 xe_check_libs=" -laudio "
13121 cat > conftest.$ac_ext <<EOF
13122 #line 13123 "configure"
13123 #include "confdefs.h"
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13127 char AuOpenServer();
13133 if { (eval echo configure:13134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13135 eval "ac_cv_lib_$ac_lib_var=yes"
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13140 eval "ac_cv_lib_$ac_lib_var=no"
13145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13146 echo "$ac_t""yes" 1>&6
13149 echo "$ac_t""no" 1>&6
13154 echo "$ac_t""no" 1>&6
13157 if test "$have_nas_sound" = "yes"; then
13159 { test "$extra_verbose" = "yes" && cat << \EOF
13160 Defining HAVE_NAS_SOUND
13162 cat >> confdefs.h <<\EOF
13163 #define HAVE_NAS_SOUND 1
13167 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13168 echo " xemacs will be linked with \"nas.o\""
13170 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 #include <audio/Xtutil.h>
13176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13177 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13181 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13182 Defining NAS_NO_ERROR_JUMP
13184 cat >> confdefs.h <<\EOF
13185 #define NAS_NO_ERROR_JUMP 1
13193 test "$with_nas_sound" = "yes" && \
13194 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13199 if test "$with_esd_sound" != "no"; then
13200 # Extract the first word of "esd-config", so it can be a program name with args.
13201 set dummy esd-config; ac_word=$2
13202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13203 echo "configure:13204: checking for $ac_word" >&5
13205 if test -n "$have_esd_config"; then
13206 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13210 for ac_dir in $ac_dummy; do
13211 test -z "$ac_dir" && ac_dir=.
13212 if test -f $ac_dir/$ac_word; then
13213 ac_cv_prog_have_esd_config="yes"
13218 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13220 have_esd_config="$ac_cv_prog_have_esd_config"
13221 if test -n "$have_esd_config"; then
13222 echo "$ac_t""$have_esd_config" 1>&6
13224 echo "$ac_t""no" 1>&6
13227 if test "$have_esd_config" = "yes"; then
13228 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13229 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
13230 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13231 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13232 echo "configure:13233: checking for esd_play_stream" >&5
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* System header to define __stub macros and hopefully few prototypes,
13238 which can conflict with char esd_play_stream(); below. */
13239 #include <assert.h>
13240 /* Override any gcc2 internal prototype to avoid an error. */
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13243 char esd_play_stream();
13247 /* The GNU C library defines this for functions which it implements
13248 to always fail with ENOSYS. Some functions are actually named
13249 something starting with __ and the normal name is an alias. */
13250 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13260 eval "ac_cv_func_esd_play_stream=yes"
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 eval "ac_cv_func_esd_play_stream=no"
13269 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13270 echo "$ac_t""yes" 1>&6
13273 echo "$ac_t""no" 1>&6
13274 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13279 if test "$have_esd_sound" = "yes"; then
13282 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13283 echo " xemacs will be linked with \"esd.o\""
13285 { test "$extra_verbose" = "yes" && cat << \EOF
13286 Defining HAVE_ESD_SOUND
13288 cat >> confdefs.h <<\EOF
13289 #define HAVE_ESD_SOUND 1
13294 test "$with_esd_sound" = "yes" && \
13295 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13300 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13301 echo " xemacs will be linked with \"miscplay.o\""
13305 test -z "$with_tty" && with_tty=yes
13307 if test "$with_tty" = "yes" ; then
13308 echo "checking for TTY-related features" 1>&6
13309 echo "configure:13310: checking for TTY-related features" >&5
13310 { test "$extra_verbose" = "yes" && cat << \EOF
13313 cat >> confdefs.h <<\EOF
13318 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
13319 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\""
13322 if test -z "$with_ncurses"; then
13324 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13325 echo "configure:13326: checking for tgetent in -lncurses" >&5
13326 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13328 xe_check_libs=" -lncurses "
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 /* We use char because int might match the return type of a gcc2
13334 builtin and then its argument prototype would still apply. */
13341 if { (eval echo configure:13342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13343 eval "ac_cv_lib_$ac_lib_var=yes"
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13348 eval "ac_cv_lib_$ac_lib_var=no"
13353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13354 echo "$ac_t""yes" 1>&6
13357 echo "$ac_t""no" 1>&6
13363 if test "$with_ncurses" = "yes"; then
13364 { test "$extra_verbose" = "yes" && cat << \EOF
13365 Defining HAVE_NCURSES
13367 cat >> confdefs.h <<\EOF
13368 #define HAVE_NCURSES 1
13372 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13373 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13374 echo "configure:13375: checking for ncurses/curses.h" >&5
13376 cat > conftest.$ac_ext <<EOF
13377 #line 13378 "configure"
13378 #include "confdefs.h"
13379 #include <ncurses/curses.h>
13381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13382 { (eval echo configure:13383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13384 if test -z "$ac_err"; then
13386 eval "ac_cv_header_$ac_safe=yes"
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13392 eval "ac_cv_header_$ac_safe=no"
13395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13396 echo "$ac_t""yes" 1>&6
13397 curses_h_file=ncurses/curses.h
13399 echo "$ac_t""no" 1>&6
13402 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13403 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13404 echo "configure:13405: checking for ncurses/term.h" >&5
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 #include <ncurses/term.h>
13411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13412 { (eval echo configure:13413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13414 if test -z "$ac_err"; then
13416 eval "ac_cv_header_$ac_safe=yes"
13419 echo "configure: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13422 eval "ac_cv_header_$ac_safe=no"
13425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13426 echo "$ac_t""yes" 1>&6
13427 term_h_file=ncurses/term.h
13429 echo "$ac_t""no" 1>&6
13432 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13433 echo " xemacs will be linked with \"terminfo.o\""
13435 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13437 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13438 save_c_switch_site="$c_switch_site"
13439 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13440 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13441 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13442 echo "configure:13443: checking for ncurses/curses.h" >&5
13444 cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13447 #include <ncurses/curses.h>
13449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13450 { (eval echo configure:13451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13452 if test -z "$ac_err"; then
13454 eval "ac_cv_header_$ac_safe=yes"
13457 echo "configure: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13460 eval "ac_cv_header_$ac_safe=no"
13463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13464 echo "$ac_t""yes" 1>&6
13465 curses_h_file=ncurses/curses.h
13467 echo "$ac_t""no" 1>&6
13470 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13471 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13472 else c_switch_site="$save_c_switch_site"
13475 else if test "$have_terminfo" = "yes"; then
13476 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13477 echo " xemacs will be linked with \"terminfo.o\""
13479 if test -n "$libs_termcap"; then
13480 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13482 for lib in curses termlib termcap; do
13484 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13485 echo "configure:13486: checking for tgetent in -l$lib" >&5
13486 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13488 xe_check_libs=" -l$lib "
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13492 /* Override any gcc2 internal prototype to avoid an error. */
13493 /* We use char because int might match the return type of a gcc2
13494 builtin and then its argument prototype would still apply. */
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 eval "ac_cv_lib_$ac_lib_var=yes"
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 eval "ac_cv_lib_$ac_lib_var=no"
13513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13514 echo "$ac_t""yes" 1>&6
13515 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13517 echo "$ac_t""no" 1>&6
13523 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13524 echo " xemacs will be linked with \"tparam.o\""
13526 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13527 if test -n "$libs_termcap"; then
13528 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13531 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13532 echo "configure:13533: checking for tgetent in -lcurses" >&5
13533 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13535 xe_check_libs=" -lcurses "
13536 cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13548 if { (eval echo configure:13549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13550 eval "ac_cv_lib_$ac_lib_var=yes"
13552 echo "configure: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13555 eval "ac_cv_lib_$ac_lib_var=no"
13560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13561 echo "$ac_t""yes" 1>&6
13562 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13564 echo "$ac_t""no" 1>&6
13565 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13566 echo "configure:13567: checking for tgetent in -ltermcap" >&5
13567 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13569 xe_check_libs=" -ltermcap "
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 /* Override any gcc2 internal prototype to avoid an error. */
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13582 if { (eval echo configure:13583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13584 eval "ac_cv_lib_$ac_lib_var=yes"
13586 echo "configure: failed program was:" >&5
13587 cat conftest.$ac_ext >&5
13589 eval "ac_cv_lib_$ac_lib_var=no"
13594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13595 echo "$ac_t""yes" 1>&6
13596 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13598 echo "$ac_t""no" 1>&6
13599 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13600 echo " xemacs will be linked with \"termcap.o\""
13611 { test "$extra_verbose" = "yes" && cat << EOF
13612 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13614 cat >> confdefs.h <<EOF
13615 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13619 { test "$extra_verbose" = "yes" && cat << EOF
13620 Defining TERM_H_FILE = "${term_h_file-term.h}"
13622 cat >> confdefs.h <<EOF
13623 #define TERM_H_FILE "${term_h_file-term.h}"
13628 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13629 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13630 echo "configure:13631: checking for gpm.h" >&5
13632 cat > conftest.$ac_ext <<EOF
13633 #line 13634 "configure"
13634 #include "confdefs.h"
13637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13638 { (eval echo configure:13639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13640 if test -z "$ac_err"; then
13642 eval "ac_cv_header_$ac_safe=yes"
13645 echo "configure: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13648 eval "ac_cv_header_$ac_safe=no"
13651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13652 echo "$ac_t""yes" 1>&6
13655 echo "$ac_t""no" 1>&6
13659 test -z "$with_gpm" && {
13660 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13661 echo "configure:13662: checking for Gpm_Open in -lgpm" >&5
13662 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13664 xe_check_libs=" -lgpm "
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 /* Override any gcc2 internal prototype to avoid an error. */
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13677 if { (eval echo configure:13678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13679 eval "ac_cv_lib_$ac_lib_var=yes"
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13684 eval "ac_cv_lib_$ac_lib_var=no"
13689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13690 echo "$ac_t""yes" 1>&6
13693 echo "$ac_t""no" 1>&6
13698 if test "$with_gpm" = "yes"; then
13699 { test "$extra_verbose" = "yes" && cat << \EOF
13702 cat >> confdefs.h <<\EOF
13707 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13708 echo " xemacs will be linked with \"gpmevent.o\""
13710 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13713 else for feature in ncurses gpm; do
13714 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13715 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13717 eval "with_${feature}=no"
13720 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13721 echo " xemacs will be linked with \"event-unixoid.o\""
13725 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13726 != "no no no" && echo "checking for database support" 1>&6
13727 echo "configure:13728: checking for database support" >&5
13729 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13730 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13731 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13732 echo "configure:13733: checking for ndbm.h" >&5
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13740 { (eval echo configure:13741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13742 if test -z "$ac_err"; then
13744 eval "ac_cv_header_$ac_safe=yes"
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13750 eval "ac_cv_header_$ac_safe=no"
13753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13754 echo "$ac_t""yes" 1>&6
13757 echo "$ac_t""no" 1>&6
13759 test "$with_database_gdbm" = "yes" -o \
13760 "$with_database_dbm" = "yes" && \
13761 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13762 with_database_gdbm=no with_database_dbm=no
13767 if test "$with_database_gdbm" != "no"; then
13769 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13770 echo "configure:13771: checking for dbm_open in -lgdbm" >&5
13771 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13773 xe_check_libs=" -lgdbm "
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 /* Override any gcc2 internal prototype to avoid an error. */
13778 /* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13788 eval "ac_cv_lib_$ac_lib_var=yes"
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13793 eval "ac_cv_lib_$ac_lib_var=no"
13798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13799 echo "$ac_t""yes" 1>&6
13800 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13802 echo "$ac_t""no" 1>&6
13803 if test "$with_database_gdbm" = "yes"; then
13804 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13806 with_database_gdbm=no
13812 if test "$with_database_dbm" != "no"; then
13813 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13814 echo "configure:13815: checking for dbm_open" >&5
13816 cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 /* System header to define __stub macros and hopefully few prototypes,
13820 which can conflict with char dbm_open(); below. */
13821 #include <assert.h>
13822 /* Override any gcc2 internal prototype to avoid an error. */
13823 /* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13840 if { (eval echo configure:13841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13842 eval "ac_cv_func_dbm_open=yes"
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13847 eval "ac_cv_func_dbm_open=no"
13851 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13852 echo "$ac_t""yes" 1>&6
13853 with_database_dbm=yes libdbm=
13855 echo "$ac_t""no" 1>&6
13858 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13859 echo "configure:13860: checking for dbm_open in -ldbm" >&5
13860 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13862 xe_check_libs=" -ldbm "
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 /* Override any gcc2 internal prototype to avoid an error. */
13867 /* We use char because int might match the return type of a gcc2
13868 builtin and then its argument prototype would still apply. */
13875 if { (eval echo configure:13876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13877 eval "ac_cv_lib_$ac_lib_var=yes"
13879 echo "configure: failed program was:" >&5
13880 cat conftest.$ac_ext >&5
13882 eval "ac_cv_lib_$ac_lib_var=no"
13887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13888 echo "$ac_t""yes" 1>&6
13889 with_database_dbm=yes libdbm=-ldbm
13891 echo "$ac_t""no" 1>&6
13892 test "$with_database_dbm" = "yes" && \
13893 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13894 with_database_dbm=no
13902 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13903 test "$with_database_gdbm" = "yes" -o \
13904 "$with_database_dbm" = "yes" && \
13905 { test "$extra_verbose" = "yes" && cat << \EOF
13908 cat >> confdefs.h <<\EOF
13914 if test "$with_database_berkdb" != "no"; then
13915 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13916 echo "configure:13917: checking for Berkeley db.h" >&5
13917 for header in "db/db.h" "db.h"; do
13918 cat > conftest.$ac_ext <<EOF
13919 #line 13920 "configure"
13920 #include "confdefs.h"
13922 #include <stdlib.h>
13923 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13924 #ifdef HAVE_INTTYPES_H
13925 #define __BIT_TYPES_DEFINED__
13926 #include <inttypes.h>
13927 typedef uint8_t u_int8_t;
13928 typedef uint16_t u_int16_t;
13929 typedef uint32_t u_int32_t;
13930 #ifdef WE_DONT_NEED_QUADS
13931 typedef uint64_t u_int64_t;
13941 if { (eval echo configure:13942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13943 db_h_file="$header"; break
13945 echo "configure: failed program was:" >&5
13946 cat conftest.$ac_ext >&5
13950 if test -z "$db_h_file"
13951 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13952 else echo "$ac_t""$db_h_file" 1>&6
13955 if test "$with_database_berkdb" != "no"; then
13956 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13957 echo "configure:13958: checking for Berkeley DB version" >&5
13958 cat > conftest.$ac_ext <<EOF
13959 #line 13960 "configure"
13960 #include "confdefs.h"
13961 #include <$db_h_file>
13962 #if DB_VERSION_MAJOR > 1
13967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13968 egrep "yes" >/dev/null 2>&1; then
13970 cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973 #include <$db_h_file>
13974 #if DB_VERSION_MAJOR > 2
13979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 egrep "yes" >/dev/null 2>&1; then
13982 echo "$ac_t""3" 1>&6; dbfunc=db_create
13986 echo "$ac_t""2" 1>&6; dbfunc=db_open
13993 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13997 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13998 echo "configure:13999: checking for $dbfunc" >&5
14000 cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 /* System header to define __stub macros and hopefully few prototypes,
14004 which can conflict with char $dbfunc(); below. */
14005 #include <assert.h>
14006 /* Override any gcc2 internal prototype to avoid an error. */
14007 /* We use char because int might match the return type of a gcc2
14008 builtin and then its argument prototype would still apply. */
14013 /* The GNU C library defines this for functions which it implements
14014 to always fail with ENOSYS. Some functions are actually named
14015 something starting with __ and the normal name is an alias. */
14016 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14024 if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14026 eval "ac_cv_func_$dbfunc=yes"
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14031 eval "ac_cv_func_$dbfunc=no"
14035 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14036 echo "$ac_t""yes" 1>&6
14037 with_database_berkdb=yes need_libdb=no
14039 echo "$ac_t""no" 1>&6
14042 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14043 echo "configure:14044: checking for $dbfunc in -ldb" >&5
14044 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14046 xe_check_libs=" -ldb "
14047 cat > conftest.$ac_ext <<EOF
14048 #line 14049 "configure"
14049 #include "confdefs.h"
14050 /* Override any gcc2 internal prototype to avoid an error. */
14051 /* We use char because int might match the return type of a gcc2
14052 builtin and then its argument prototype would still apply. */
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14061 eval "ac_cv_lib_$ac_lib_var=yes"
14063 echo "configure: failed program was:" >&5
14064 cat conftest.$ac_ext >&5
14066 eval "ac_cv_lib_$ac_lib_var=no"
14071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14072 echo "$ac_t""yes" 1>&6
14073 with_database_berkdb=yes need_libdb=yes
14075 echo "$ac_t""no" 1>&6
14083 if test "$with_database_berkdb" = "yes"; then
14084 { test "$extra_verbose" = "yes" && cat << EOF
14085 Defining DB_H_FILE = "$db_h_file"
14087 cat >> confdefs.h <<EOF
14088 #define DB_H_FILE "$db_h_file"
14092 { test "$extra_verbose" = "yes" && cat << \EOF
14093 Defining HAVE_BERKELEY_DB
14095 cat >> confdefs.h <<\EOF
14096 #define HAVE_BERKELEY_DB 1
14100 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14101 else with_database_berkdb=no
14105 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14106 != "no no no"; then
14107 { test "$extra_verbose" = "yes" && cat << \EOF
14108 Defining HAVE_DATABASE
14110 cat >> confdefs.h <<\EOF
14111 #define HAVE_DATABASE 1
14115 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14116 echo " xemacs will be linked with \"database.o\""
14118 if test "$with_utf_2000" = "yes"; then
14119 { test "$extra_verbose" = "yes" && cat << \EOF
14120 Defining HAVE_CHISE_CLIENT
14122 cat >> confdefs.h <<\EOF
14123 #define HAVE_CHISE_CLIENT 1
14130 if test "$with_socks" = "yes"; then
14132 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14133 echo "configure:14134: checking for SOCKSinit in -lsocks" >&5
14134 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14136 xe_check_libs=" -lsocks "
14137 cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14140 /* Override any gcc2 internal prototype to avoid an error. */
14141 /* We use char because int might match the return type of a gcc2
14142 builtin and then its argument prototype would still apply. */
14149 if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14151 eval "ac_cv_lib_$ac_lib_var=yes"
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14156 eval "ac_cv_lib_$ac_lib_var=no"
14161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14162 echo "$ac_t""yes" 1>&6
14163 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14165 { test "$extra_verbose" = "yes" && cat << EOF
14166 Defining $ac_tr_lib
14168 cat >> confdefs.h <<EOF
14169 #define $ac_tr_lib 1
14173 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14176 echo "$ac_t""no" 1>&6
14180 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14181 Defining HAVE_SOCKS
14183 cat >> confdefs.h <<\EOF
14184 #define HAVE_SOCKS 1
14190 if test "$usage_tracking" = "yes"; then
14191 { test "$extra_verbose" = "yes" && cat << \EOF
14192 Defining USAGE_TRACKING
14194 cat >> confdefs.h <<\EOF
14195 #define USAGE_TRACKING 1
14199 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14202 if test "$with_modules" != "no"; then
14203 echo "checking for module support" 1>&6
14204 echo "configure:14205: checking for module support" >&5
14206 if test "$with_msw" = "yes"; then
14209 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14210 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14211 echo "configure:14212: checking for dlfcn.h" >&5
14213 cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14219 { (eval echo configure:14220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14221 if test -z "$ac_err"; then
14223 eval "ac_cv_header_$ac_safe=yes"
14226 echo "configure: failed program was:" >&5
14227 cat conftest.$ac_ext >&5
14229 eval "ac_cv_header_$ac_safe=no"
14232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14233 echo "$ac_t""yes" 1>&6
14235 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14236 echo "configure:14237: checking for dlopen in -lc" >&5
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14253 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14254 echo "configure:14255: checking for dlopen in -ldl" >&5
14255 ac_save_LIBS="$LIBS"
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14265 if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14272 LIBS="$ac_save_LIBS"
14279 echo "$ac_t""no" 1>&6
14282 if test -n "$have_dl"; then
14283 { test "$extra_verbose" = "yes" && cat << \EOF
14284 Defining HAVE_DLOPEN
14286 cat >> confdefs.h <<\EOF
14287 #define HAVE_DLOPEN 1
14293 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14294 echo "configure:14295: checking for shl_load in -ldld" >&5
14295 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14297 xe_check_libs=" -ldld "
14298 cat > conftest.$ac_ext <<EOF
14299 #line 14300 "configure"
14300 #include "confdefs.h"
14301 /* Override any gcc2 internal prototype to avoid an error. */
14302 /* We use char because int might match the return type of a gcc2
14303 builtin and then its argument prototype would still apply. */
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14312 eval "ac_cv_lib_$ac_lib_var=yes"
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 eval "ac_cv_lib_$ac_lib_var=no"
14322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14323 echo "$ac_t""yes" 1>&6
14324 libdl=dld have_dl=yes;
14325 { test "$extra_verbose" = "yes" && cat << \EOF
14326 Defining HAVE_SHL_LOAD
14328 cat >> confdefs.h <<\EOF
14329 #define HAVE_SHL_LOAD 1
14334 echo "$ac_t""no" 1>&6
14336 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14337 echo "configure:14338: checking for dld_init in -ldld" >&5
14338 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14340 xe_check_libs=" -ldld "
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 /* Override any gcc2 internal prototype to avoid an error. */
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14353 if { (eval echo configure:14354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14355 eval "ac_cv_lib_$ac_lib_var=yes"
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14360 eval "ac_cv_lib_$ac_lib_var=no"
14365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14366 echo "$ac_t""yes" 1>&6
14367 libdl=dld have_dl=yes;
14368 { test "$extra_verbose" = "yes" && cat << \EOF
14369 Defining HAVE_DLD_INIT
14371 cat >> confdefs.h <<\EOF
14372 #define HAVE_DLD_INIT 1
14377 echo "$ac_t""no" 1>&6
14386 if test -n "$have_dl"; then
14393 ld_dynamic_link_flags=
14395 xealias=$internal_configuration
14397 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14398 echo "configure:14399: checking how to build dynamic libraries for ${xehost}" >&5
14399 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14402 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14405 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14406 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14407 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14409 case "$xehost_os" in
14411 # AIX sometimes has problems with the GCC collect2 program. For some
14412 # reason, if we set the COLLECT_NAMES environment variable, the problems
14413 # vanish in a puff of smoke.
14414 if test "${COLLECT_NAMES+set}" != set; then
14416 export COLLECT_NAMES
14421 # Now see if the compiler is really GCC.
14422 if test "$GCC" = "yes"; then
14425 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14426 echo "configure:14427: checking checking whether we are using GNU C" >&5
14427 cat > conftest.$ac_ext <<EOF
14428 #line 14429 "configure"
14429 #include "confdefs.h"
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437 egrep "yes" >/dev/null 2>&1; then
14446 echo "$ac_t""${XEGCC}" 1>&6
14449 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14450 echo "configure:14451: checking how to produce PIC code" >&5
14453 can_build_shared=yes
14454 if test "$XEGCC" = yes; then
14457 case "$xehost_os" in
14458 aix[3-9]* | irix[5-9]* | osf[3-9])
14459 # PIC is the default for these OSes.
14463 # We can build DLLs from non-PIC.
14466 # FIXME: we need at least 68020 code to build shared libraries, but
14467 # adding the `-m68020' flag to GCC prevents building anything better,
14469 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14471 *cygwin* | *mingw* )
14472 # PIC is the default
14479 # PORTME Check for PIC flags for the system compiler.
14480 case "$xehost_os" in
14481 hpux9* | hpux1[0-9]*)
14482 # Is there a better link_static_flag that works with the bundled CC?
14489 # PIC (with -KPIC) is the default.
14493 # We can build DLLs from non-PIC.
14497 # All OSF/1 code is PIC.
14502 # All AIX code is PIC.
14507 dll_cflags='-belf -Kpic'
14541 can_build_shared=no
14546 if test -n "$dll_cflags"; then
14547 echo "$ac_t""${dll_cflags}" 1>&6
14549 # Check to make sure the dll_cflags actually works.
14550 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14551 echo "configure:14552: checking if PIC flag ${dll_cflags} really works" >&5
14552 save_CFLAGS="$CFLAGS"
14553 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14562 if { (eval echo configure:14563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14565 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14566 # reports no error. So, we need to grep stderr for (Bundled).
14567 if grep '(Bundled)' config.log >/dev/null; then
14568 echo "$ac_t""no" 1>&6
14569 can_build_shared=no
14572 echo "$ac_t""yes" 1>&6
14575 echo "configure: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14578 echo "$ac_t""no" 1>&6
14579 can_build_shared=no
14583 CFLAGS="$save_CFLAGS"
14585 echo "$ac_t""none" 1>&6
14588 if test "$can_build_shared" = "yes"; then
14592 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14593 echo "configure:14594: checking if C compiler can produce shared libraries" >&5
14594 if test "$XEGCC" = yes; then
14597 else # Not using GCC
14598 case "$xehost_os" in
14600 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14601 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14604 freebsd2* | netbsd* | openbsd*)
14606 xcldf="${wl}-Bshareable"
14615 xcldf="${wl}-b ${wl}+s"
14618 irix[5-9]* | osf[3-9]*)
14619 xcldf="${wl}-shared"
14623 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14629 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14630 xldf="-assert pure-text -Bstatic"
14633 fi # End if if we are using gcc
14635 if test -n "$xcldf"; then
14636 save_LDFLAGS=$LDFLAGS
14638 save_xe_libs=$xe_libs
14639 LDFLAGS="$xcldf $LDFLAGS"
14642 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14643 cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14651 if { (eval echo configure:14652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14655 echo "configure: failed program was:" >&5
14656 cat conftest.$ac_ext >&5
14661 LDFLAGS=$save_LDFLAGS
14663 xe_libs=$save_xe_libs
14664 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14668 echo "$ac_t""${cc_produces_so}" 1>&6
14671 if test -z "$LTLD"; then
14673 if test "$XEGCC" = yes; then
14674 # Check if gcc -print-prog-name=ld gives a path.
14675 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14676 echo "configure:14677: checking for ld used by GCC" >&5
14677 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14679 # Accept absolute paths.
14681 if test -z "$LTLD"; then
14683 *gcc-lib*) LTLD="$CC"
14691 # If it fails, then pretend we aren't using GCC.
14695 # If it is relative, then search for the first ld in PATH.
14696 with_gnu_ld=unknown
14700 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14701 echo "configure:14702: checking for GNU ld" >&5
14704 if test -z "$LTLD"; then
14705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14706 for ac_dir in $PATH; do
14707 test -z "$ac_dir" && ac_dir=.
14708 if test -f "$ac_dir/$ac_prog"; then
14709 LTLD="$ac_dir/$ac_prog"
14710 # Check to see if the program is GNU ld. I'd rather use --version,
14711 # but apparently some GNU ld's only accept -v.
14712 # Break only if it was the GNU/non-GNU ld that we prefer.
14713 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14723 if test -n "$LTLD"; then
14724 echo "$ac_t""${LTLD}" 1>&6
14726 echo "$ac_t""no" 1>&6
14729 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14730 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14735 ld_dynamic_link_flags=
14737 # Check to see if it really is or isn't GNU ld.
14738 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14739 echo "configure:14740: checking if the linker is GNU ld" >&5
14740 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14741 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14746 echo "$ac_t""${xe_gnu_ld}" 1>&6
14748 case "$xehost_os" in
14749 amigaos* | sunos4*)
14750 # On these operating systems, we should treat GNU ld like the system ld.
14751 gnu_ld_acts_native=yes
14754 gnu_ld_acts_native=no
14758 if test "$cc_produces_so" = "yes"; then
14761 can_build_shared=yes
14764 # OK - only NOW do we futz about with ld.
14765 # See if the linker supports building shared libraries.
14766 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14767 echo "configure:14768: checking whether the linker supports shared libraries" >&5
14769 dll_ldflags=$LDFLAGS
14771 can_build_shared=yes
14772 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14773 # See if GNU ld supports shared libraries.
14774 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14776 dll_ldflags="-shared"
14782 # PORTME fill in a description of your system's linker (not GNU ld)
14783 case "$xehost_os" in
14793 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14794 # support. Future versions do this automatically, but an explicit c++rt0.o
14795 # doesn't break anything, and helps significantly (at the cost of a little
14800 dll_post="/usr/lib/c++rt0.o"
14803 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14806 dll_ldflags="-Bshareable"
14809 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14811 dll_ldflags="-shared"
14825 # Tested with NetBSD 1.2 ld
14840 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14841 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14844 *gcc*) dll_ldflags="-shared"
14847 *) dll_ldflags="-G"
14853 if test "$XEGCC" = yes; then
14873 can_build_shared=no
14877 echo "$ac_t""${ld_shlibs}" 1>&6
14878 if test "$ld_shlibs" = "no"; then
14879 can_build_shared=no
14881 fi # End of if cc_produces_so = no
14884 if test "$xe_gnu_ld" = yes; then
14885 if test "$ld_shlibs" = yes; then
14886 ld_dynamic_link_flags="${wl}-export-dynamic"
14890 if test -z "$ld_dynamic_link_flags"; then
14891 case "$xehost_os" in
14893 ld_dynamic_link_flags=
14897 ld_dynamic_link_flags=
14901 ld_dynamic_link_flags=
14905 ld_dynamic_link_flags=
14909 ld_dynamic_link_flags="${wl}-E"
14913 ld_dynamic_link_flags=
14917 ld_dynamic_link_flags=
14921 ld_dynamic_link_flags=
14925 ld_dynamic_link_flags=
14928 solaris2* | solaris7*)
14929 ld_dynamic_link_flags=
14932 sco3.2v5* | unixware* | sysv5* | sysv4*)
14933 ld_dynamic_link_flags="${wl}-Bexport"
14937 ld_dynamic_link_flags=
14941 ld_dynamic_link_flags=
14945 ld_dynamic_link_flags=
14949 fi # End of if -z ld_dynamic_link_flags
14950 fi # End of if test "$can_build_shared" = "yes"
14961 if test "$can_build_shared" = "yes"; then
14962 { test "$extra_verbose" = "yes" && cat << \EOF
14963 Defining HAVE_SHLIB
14965 cat >> confdefs.h <<\EOF
14966 #define HAVE_SHLIB 1
14970 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14971 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14973 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14974 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14975 for ac_func in dlerror _dlerror
14977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14978 echo "configure:14979: checking for $ac_func" >&5
14980 cat > conftest.$ac_ext <<EOF
14981 #line 14982 "configure"
14982 #include "confdefs.h"
14983 /* System header to define __stub macros and hopefully few prototypes,
14984 which can conflict with char $ac_func(); below. */
14985 #include <assert.h>
14986 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14993 /* The GNU C library defines this for functions which it implements
14994 to always fail with ENOSYS. Some functions are actually named
14995 something starting with __ and the normal name is an alias. */
14996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15004 if { (eval echo configure:15005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15006 eval "ac_cv_func_$ac_func=yes"
15008 echo "configure: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15011 eval "ac_cv_func_$ac_func=no"
15015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15016 echo "$ac_t""yes" 1>&6
15017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15018 { test "$extra_verbose" = "yes" && cat << EOF
15019 Defining $ac_tr_func
15021 cat >> confdefs.h <<EOF
15022 #define $ac_tr_func 1
15027 echo "$ac_t""no" 1>&6
15033 if test "$with_modules" = "yes"; then
15034 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15036 echo "configure: warning: "Module support cannot be provided."" 1>&2
15042 cat > conftest.$ac_ext <<EOF
15043 #line 15044 "configure"
15044 #include "confdefs.h"
15045 int main(int c,char *v[]){return 0;}
15047 if { (eval echo configure:15048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15052 echo "configure: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15057 echo "*** PANIC *** The C compiler can no longer build working executables."
15058 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15059 echo "*** PANIC *** The most likely reason for this problem is that configure"
15060 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15061 echo "*** PANIC *** found at run time."
15062 echo "*** PANIC ***"
15063 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15064 echo "*** PANIC *** On other systems, try telling configure where to find the"
15065 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15066 echo "*** PANIC ***"
15067 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15068 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15069 echo "*** PANIC *** on your system. Don't do that."
15074 if test "$win32_processes" = "yes"; then
15075 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15076 echo " xemacs will be linked with \"process-nt.o\""
15079 { test "$extra_verbose" = "yes" && cat << \EOF
15080 Defining HAVE_UNIX_PROCESSES
15082 cat >> confdefs.h <<\EOF
15083 #define HAVE_UNIX_PROCESSES 1
15087 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15088 echo " xemacs will be linked with \"process-unix.o\""
15095 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15100 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15105 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
15106 c_switch_general="$T"
15110 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
15111 c_switch_window_system="$T"
15115 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15120 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
15121 ld_switch_general="$T"
15125 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15126 ld_switch_window_system="$T"
15130 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15135 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15136 ld_libs_general="$T"
15140 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
15141 ld_libs_window_system="$T"
15145 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15150 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15151 internal_makefile_list="Makefile.in"
15152 SUBDIR_MAKEFILES=''
15153 test -d lock || mkdir lock
15154 for dir in $MAKE_SUBDIR; do
15155 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15156 test -d "$d" || mkdir "$d"; cd "$d"
15158 * ) test -d "$dir" || mkdir "$dir" ;;
15162 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15163 SUBDIR_MAKEFILES="$T"
15167 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15168 internal_makefile_list="$T"
15175 for dir in src/s src/m; do
15176 if test ! -d "$dir" ; then
15177 echo Making symbolic link to "$srcdir/$dir"
15178 ${LN_S} "$srcdir/$dir" "$dir"
15182 if test "$extra_verbose" = "yes"; then
15184 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
15189 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15190 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15191 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15194 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15195 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15196 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15199 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15200 test "$extra_verbose" = "yes" && echo "creating TAGS"
15202 $srcdir/TAGS,include" > "TAGS"
15205 if test "$__SUNPRO_C" = "yes"; then
15206 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15207 ( echo "# For use with Sun WorkShop's Source browser."
15208 echo "# See sbquery(1) and sbinit(4) for more information"
15209 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15237 *\$* ) eval "PREFIX=$PREFIX" ;;
15245 EXEC_PREFIX=$exec_prefix
15247 case "$EXEC_PREFIX" in
15248 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15259 *\$* ) eval "INFODIR=$INFODIR" ;;
15269 case "$INFOPATH" in
15270 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15278 PACKAGE_PATH=$package_path
15280 case "$PACKAGE_PATH" in
15281 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15292 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15300 MODULEDIR=$moduledir
15302 case "$MODULEDIR" in
15303 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15311 SITELISPDIR=$sitelispdir
15313 case "$SITELISPDIR" in
15314 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15322 SITEMODULEDIR=$sitemoduledir
15324 case "$SITEMODULEDIR" in
15325 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15336 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15347 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15355 ARCHLIBDIR=$archlibdir
15357 case "$ARCHLIBDIR" in
15358 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15382 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15390 : ${XEMACS_CC:=$CC}
15393 if test "$with_prefix" = "yes"; then
15394 { test "$extra_verbose" = "yes" && cat << \EOF
15395 Defining PREFIX_USER_DEFINED
15397 cat >> confdefs.h <<\EOF
15398 #define PREFIX_USER_DEFINED 1
15404 if test "$with_site_lisp" = "no"; then
15405 { test "$extra_verbose" = "yes" && cat << \EOF
15406 Defining INHIBIT_SITE_LISP
15408 cat >> confdefs.h <<\EOF
15409 #define INHIBIT_SITE_LISP 1
15414 if test "$with_site_modules" = "no"; then
15415 { test "$extra_verbose" = "yes" && cat << \EOF
15416 Defining INHIBIT_SITE_MODULES
15418 cat >> confdefs.h <<\EOF
15419 #define INHIBIT_SITE_MODULES 1
15427 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15428 ac_configure_args="$T"
15430 { test "$extra_verbose" = "yes" && cat << EOF
15431 Defining EMACS_CONFIGURATION = "$configuration"
15433 cat >> confdefs.h <<EOF
15434 #define EMACS_CONFIGURATION "$configuration"
15438 { test "$extra_verbose" = "yes" && cat << EOF
15439 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15441 cat >> confdefs.h <<EOF
15442 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15449 { test "$extra_verbose" = "yes" && cat << EOF
15450 Defining LD_SWITCH_X_SITE = $null_string
15452 cat >> confdefs.h <<EOF
15453 #define LD_SWITCH_X_SITE $null_string
15457 { test "$extra_verbose" = "yes" && cat << EOF
15458 Defining LD_SWITCH_X_SITE_AUX = $null_string
15460 cat >> confdefs.h <<EOF
15461 #define LD_SWITCH_X_SITE_AUX $null_string
15465 { test "$extra_verbose" = "yes" && cat << EOF
15466 Defining C_SWITCH_X_SITE = $null_string
15468 cat >> confdefs.h <<EOF
15469 #define C_SWITCH_X_SITE $null_string
15473 { test "$extra_verbose" = "yes" && cat << EOF
15474 Defining LD_SWITCH_SITE = $null_string
15476 cat >> confdefs.h <<EOF
15477 #define LD_SWITCH_SITE $null_string
15481 { test "$extra_verbose" = "yes" && cat << EOF
15482 Defining C_SWITCH_SITE = $null_string
15484 cat >> confdefs.h <<EOF
15485 #define C_SWITCH_SITE $null_string
15491 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15492 Defining GNU_MALLOC
15494 cat >> confdefs.h <<\EOF
15495 #define GNU_MALLOC 1
15499 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15500 Defining USE_SYSTEM_MALLOC
15502 cat >> confdefs.h <<\EOF
15503 #define USE_SYSTEM_MALLOC 1
15507 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15508 Defining USE_DEBUG_MALLOC
15510 cat >> confdefs.h <<\EOF
15511 #define USE_DEBUG_MALLOC 1
15515 { test "$extra_verbose" = "yes" && cat << \EOF
15516 Defining USE_SYSTEM_MALLOC
15518 cat >> confdefs.h <<\EOF
15519 #define USE_SYSTEM_MALLOC 1
15524 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15527 cat >> confdefs.h <<\EOF
15532 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15535 cat >> confdefs.h <<\EOF
15540 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15541 Defining EXTERNAL_WIDGET
15543 cat >> confdefs.h <<\EOF
15544 #define EXTERNAL_WIDGET 1
15548 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15549 Defining QUICK_BUILD
15551 cat >> confdefs.h <<\EOF
15552 #define QUICK_BUILD 1
15556 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15559 cat >> confdefs.h <<\EOF
15564 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15567 cat >> confdefs.h <<\EOF
15572 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15573 Defining MAIL_USE_POP
15575 cat >> confdefs.h <<\EOF
15576 #define MAIL_USE_POP 1
15580 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15583 cat >> confdefs.h <<\EOF
15588 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15591 cat >> confdefs.h <<\EOF
15596 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15597 Defining USE_UNION_TYPE
15599 cat >> confdefs.h <<\EOF
15600 #define USE_UNION_TYPE 1
15604 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15607 cat >> confdefs.h <<\EOF
15615 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15617 echo "uname -a: `uname -a`"
15620 echo "$0 $quoted_arguments"
15623 if test ! -z ${emacs_beta_version} ; then
15624 if test -z "${emacs_is_beta}" ; then
15625 xemacs_betaname=".${emacs_beta_version}"
15627 xemacs_betaname="-b${emacs_beta_version}"
15636 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15639 Compilation / Installation:"
15640 echo " Source code location: $srcdir"
15641 echo " Installation prefix: $prefix"
15642 if test -n "$site_includes"; then
15643 echo " Additional header files: $site_includes"
15645 if test -n "$site_libraries"; then
15646 echo " Additional libraries: $site_libraries"
15648 if test -n "$site_prefixes"; then
15649 echo " Additional prefixes: $site_prefixes"
15651 if test -n "$runpath"; then
15652 echo " Runtime library search path: $runpath"
15655 if test -n "$opsysfile"
15656 then echo " Operating system description file: \`$opsysfile'"
15657 else echo " Not using any operating system description file"
15659 if test -n "$machfile"
15660 then echo " Machine description file: \`$machfile'"
15661 else echo " Not using any machine description file"
15664 echo " Compiler: $CC $CFLAGS"
15665 echo " Relocating allocator for buffers: $rel_alloc"
15666 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15670 if test "$with_msw" = "yes"; then
15671 echo " Compiling in support for the Microsoft window system."
15673 if test "$with_x11" = "yes"; then
15674 echo " Compiling in support for the X window system:"
15675 echo " - X Windows headers location: $x_includes"
15676 echo " - X Windows libraries location: $x_libraries"
15677 if test "$with_xauth" != yes; then
15678 echo " - Xau (X authority) not available."
15680 if test "$with_xmu" != yes; then
15681 echo " - Xmu library not available; substituting equivalent routines."
15683 if test "$with_wmcommand" != no; then
15684 echo " - Handling WM_COMMAND properly."
15687 if test "$need_athena" = "yes"; then
15688 echo " Compiling in support for the Athena widget set:"
15689 echo " - Athena headers location: $athena_h_path"
15690 echo " - Athena library to link: $athena_lib"
15692 case "$with_menubars" in
15693 gtk ) echo " Using GTK menubars." ;;
15694 lucid ) echo " Using Lucid menubars." ;;
15695 motif ) echo " Using Motif menubars."
15696 echo " *WARNING* The Motif menubar implementation is currently buggy."
15697 echo " We recommend using the Lucid menubar instead."
15698 echo " Re-run configure with --with-menubars='lucid'." ;;
15699 msw ) echo " Using MS-Windows menubars." ;;
15701 case "$with_scrollbars" in
15702 gtk ) echo " Using GTK scrollbars." ;;
15703 lucid ) echo " Using Lucid scrollbars." ;;
15704 motif ) echo " Using Motif scrollbars." ;;
15705 athena ) echo " Using Athena scrollbars." ;;
15706 msw ) echo " Using MS-Windows scrollbars." ;;
15708 case "$with_dialogs" in
15709 gtk ) echo " Using GTK dialog boxes." ;;
15710 motif ) echo " Using Motif dialog boxes."
15711 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15712 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15713 echo " We recommend using the Athena dialog boxes instead."
15714 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15715 echo " Read the PROBLEMS file for more information."
15717 athena ) echo " Using Athena dialog boxes." ;;
15718 msw ) echo " Using MS-Windows dialog boxes." ;;
15720 case "$with_widgets" in
15721 gtk ) echo " Using GTK native widgets." ;;
15722 motif ) echo " Using Motif native widgets." ;;
15723 athena ) echo " Using Athena native widgets." ;;
15724 msw ) echo " Using MS-Windows native widgets." ;;
15726 if test "$with_dragndrop" = yes; then
15727 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15728 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15733 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15734 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15738 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15739 if test "$with_xpm" = yes; then
15740 echo " Compiling in support for XPM images."
15741 elif test "$with_x11" = yes; then
15742 echo " WARNING: -----------------------------------------------------------"
15743 echo " WARNING: Compiling without XPM image support."
15744 if test "$xpm_problem" != ""; then
15745 echo " Reason: $xpm_problem"
15747 echo " WARNING: You should strongly consider installing XPM."
15748 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15749 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15750 echo " WARNING: -----------------------------------------------------------"
15752 if test "$with_png" = yes; then
15753 echo " Compiling in support for PNG images."
15754 elif test "$window_system" != "none"; then
15755 echo " WARNING: -----------------------------------------------------------"
15756 echo " WARNING: Compiling without PNG image support."
15757 if test "$png_problem" != ""; then
15758 echo " Reason: $png_problem"
15760 echo " WARNING: You should strongly consider installing the PNG libraries."
15761 echo " WARNING: Otherwise certain images and glyphs may not display."
15762 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15763 echo " WARNING: -----------------------------------------------------------"
15765 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15766 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15767 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15771 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15772 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15773 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15774 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15778 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15779 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15780 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15781 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15782 if test "$with_postgresql" = yes; then
15783 echo " Compiling in support for PostgreSQL."
15784 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15785 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15789 Internationalization:"
15790 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15791 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15792 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15793 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15794 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15795 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15796 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15797 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15798 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15799 if test "$with_wnn" = yes; then
15800 echo " Compiling in support for the WNN input method on Mule."
15801 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15803 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15807 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15808 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15809 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15810 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15814 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15815 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15816 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15817 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15818 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15819 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15820 test "$pdump" = yes && echo " Using the new portable dumper."
15821 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15822 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15823 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15824 != "no no no no no no"; then
15825 echo " WARNING: ---------------------------------------------------------"
15826 echo " WARNING: Compiling in support for runtime error checking."
15827 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15828 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15829 echo " WARNING: ---------------------------------------------------------"
15832 ) | tee -a Installation
15836 # Remove any trailing slashes in these variables.
15837 test -n "$prefix" &&
15838 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15839 test -n "$exec_prefix" &&
15840 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15843 for file in $internal_makefile_list; do
15844 test "$file" = src/Makefile.in && \
15845 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15846 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15848 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15849 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
15853 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15856 # Let make expand exec_prefix.
15857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15859 # Any assignment to VPATH causes Sun make to only execute
15860 # the first set of double-colon rules, so remove it if not needed.
15861 # If there is a colon in the path, we need to keep it.
15862 if test "x$srcdir" = x.; then
15863 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15866 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15868 DEFS=-DHAVE_CONFIG_H
15870 # Without the "./", some shells look in PATH for config.status.
15871 : ${CONFIG_STATUS=./config.status}
15873 echo creating $CONFIG_STATUS
15874 rm -f $CONFIG_STATUS
15875 cat > $CONFIG_STATUS <<EOF
15877 # Generated automatically by configure.
15878 # Run this file to recreate the current configuration.
15879 # This directory was configured as follows,
15880 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15882 # $0 $ac_configure_args
15884 # Compiler output produced by configure, useful for debugging
15885 # configure, is in ./config.log if it exists.
15887 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15890 case "\$ac_option" in
15891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15892 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15893 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15894 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15895 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15897 -help | --help | --hel | --he | --h)
15898 echo "\$ac_cs_usage"; exit 0 ;;
15899 *) echo "\$ac_cs_usage"; exit 1 ;;
15903 ac_given_srcdir=$srcdir
15904 ac_given_INSTALL="$INSTALL"
15906 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15908 cat >> $CONFIG_STATUS <<EOF
15910 # Protect against being on the right side of a sed subst in config.status.
15911 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15912 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15916 s%@CFLAGS@%$CFLAGS%g
15917 s%@CPPFLAGS@%$CPPFLAGS%g
15918 s%@CXXFLAGS@%$CXXFLAGS%g
15919 s%@FFLAGS@%$FFLAGS%g
15921 s%@LDFLAGS@%$LDFLAGS%g
15923 s%@exec_prefix@%$exec_prefix%g
15924 s%@prefix@%$prefix%g
15925 s%@program_transform_name@%$program_transform_name%g
15926 s%@bindir@%$bindir%g
15927 s%@sbindir@%$sbindir%g
15928 s%@libexecdir@%$libexecdir%g
15929 s%@datadir@%$datadir%g
15930 s%@sysconfdir@%$sysconfdir%g
15931 s%@sharedstatedir@%$sharedstatedir%g
15932 s%@localstatedir@%$localstatedir%g
15933 s%@libdir@%$libdir%g
15934 s%@includedir@%$includedir%g
15935 s%@oldincludedir@%$oldincludedir%g
15936 s%@infodir@%$infodir%g
15937 s%@mandir@%$mandir%g
15939 s%@blddir@%$blddir%g
15942 s%@start_flags@%$start_flags%g
15943 s%@ld_switch_shared@%$ld_switch_shared%g
15944 s%@start_files@%$start_files%g
15946 s%@lib_gcc@%$lib_gcc%g
15947 s%@RANLIB@%$RANLIB%g
15948 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15949 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15950 s%@INSTALL_DATA@%$INSTALL_DATA%g
15952 s%@SET_MAKE@%$SET_MAKE%g
15953 s%@GTK_CONFIG@%$GTK_CONFIG%g
15954 s%@X_CFLAGS@%$X_CFLAGS%g
15955 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15956 s%@X_LIBS@%$X_LIBS%g
15957 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15958 s%@install_pp@%$install_pp%g
15959 s%@libs_xauth@%$libs_xauth%g
15960 s%@dnd_objs@%$dnd_objs%g
15961 s%@lwlib_objs@%$lwlib_objs%g
15962 s%@ALLOCA@%$ALLOCA%g
15963 s%@have_esd_config@%$have_esd_config%g
15964 s%@dll_ld@%$dll_ld%g
15965 s%@dll_cflags@%$dll_cflags%g
15966 s%@dll_ldflags@%$dll_ldflags%g
15967 s%@dll_post@%$dll_post%g
15968 s%@dll_ldo@%$dll_ldo%g
15969 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15970 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15971 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15972 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15973 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15974 s%@PROGNAME@%$PROGNAME%g
15975 s%@version@%$version%g
15976 s%@configuration@%$configuration%g
15977 s%@canonical@%$canonical%g
15978 s%@inststaticdir@%$inststaticdir%g
15979 s%@instvardir@%$instvardir%g
15980 s%@srcdir@%$srcdir%g
15981 s%@pkgdir@%$pkgdir%g
15982 s%@statedir@%$statedir%g
15983 s%@extra_includes@%$extra_includes%g
15984 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15985 s%@PREFIX@%$PREFIX%g
15986 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15987 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15988 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15989 s%@INFODIR@%$INFODIR%g
15990 s%@infopath@%$infopath%g
15991 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15992 s%@INFOPATH@%$INFOPATH%g
15993 s%@package_path@%$package_path%g
15994 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15995 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15996 s%@lispdir@%$lispdir%g
15997 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15998 s%@LISPDIR@%$LISPDIR%g
15999 s%@moduledir@%$moduledir%g
16000 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16001 s%@MODULEDIR@%$MODULEDIR%g
16002 s%@sitelispdir@%$sitelispdir%g
16003 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16004 s%@SITELISPDIR@%$SITELISPDIR%g
16005 s%@sitemoduledir@%$sitemoduledir%g
16006 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16007 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16008 s%@etcdir@%$etcdir%g
16009 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16010 s%@ETCDIR@%$ETCDIR%g
16011 s%@docdir@%$docdir%g
16012 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16013 s%@DOCDIR@%$DOCDIR%g
16014 s%@archlibdir@%$archlibdir%g
16015 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16016 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16017 s%@bitmapdir@%$bitmapdir%g
16018 s%@extra_objs@%$extra_objs%g
16019 s%@machfile@%$machfile%g
16020 s%@opsysfile@%$opsysfile%g
16021 s%@c_switch_general@%$c_switch_general%g
16022 s%@c_switch_window_system@%$c_switch_window_system%g
16023 s%@c_switch_all@%$c_switch_all%g
16024 s%@ld_switch_general@%$ld_switch_general%g
16025 s%@ld_switch_window_system@%$ld_switch_window_system%g
16026 s%@ld_switch_all@%$ld_switch_all%g
16027 s%@ld_libs_general@%$ld_libs_general%g
16028 s%@ld_libs_window_system@%$ld_libs_window_system%g
16029 s%@ld_libs_all@%$ld_libs_all%g
16030 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16031 s%@native_sound_lib@%$native_sound_lib%g
16032 s%@sound_cflags@%$sound_cflags%g
16033 s%@dynodump_arch@%$dynodump_arch%g
16034 s%@XEMACS_CC@%$XEMACS_CC%g
16035 s%@internal_makefile_list@%$internal_makefile_list%g
16040 cat >> $CONFIG_STATUS <<\EOF
16042 # Split the substitutions into bite-sized pieces for seds with
16043 # small command number limits, like on Digital OSF/1 and HP-UX.
16044 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16045 ac_file=1 # Number of current file.
16046 ac_beg=1 # First line for current file.
16047 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16050 while $ac_more_lines; do
16051 if test $ac_beg -gt 1; then
16052 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16054 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16056 if test ! -s conftest.s$ac_file; then
16057 ac_more_lines=false
16058 rm -f conftest.s$ac_file
16060 if test -z "$ac_sed_cmds"; then
16061 ac_sed_cmds="sed -f conftest.s$ac_file"
16063 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16065 ac_file=`expr $ac_file + 1`
16067 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16070 if test -z "$ac_sed_cmds"; then
16075 cat >> $CONFIG_STATUS <<EOF
16077 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16079 cat >> $CONFIG_STATUS <<\EOF
16080 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16083 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16084 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16085 *) ac_file_in="${ac_file}.in" ;;
16088 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16090 # Remove last slash and all that follows it. Not all systems have dirname.
16091 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16092 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16093 # The file is in a subdirectory.
16094 test ! -d "$ac_dir" && mkdir "$ac_dir"
16095 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16096 # A "../" for each directory in $ac_dir_suffix.
16097 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16099 ac_dir_suffix= ac_dots=
16102 case "$ac_given_srcdir" in
16104 if test -z "$ac_dots"; then top_srcdir=.
16105 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16106 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16107 *) # Relative path.
16108 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16109 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16112 case "$ac_given_INSTALL" in
16113 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16114 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16117 echo creating "$ac_file"
16119 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16121 *Makefile*) ac_comsub="1i\\
16122 # $configure_input" ;;
16126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16128 s%@configure_input@%$configure_input%g
16129 s%@srcdir@%$srcdir%g
16130 s%@top_srcdir@%$top_srcdir%g
16131 s%@INSTALL@%$INSTALL%g
16132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16139 # ac_d sets the value in "#define NAME VALUE" lines.
16140 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16141 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16144 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16145 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16146 ac_uB='\([ ]\)%\1#\2define\3'
16149 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16150 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16151 ac_eB='$%\1#\2define\3'
16155 if test "${CONFIG_HEADERS+set}" != set; then
16157 cat >> $CONFIG_STATUS <<EOF
16158 CONFIG_HEADERS="src/config.h lwlib/config.h"
16160 cat >> $CONFIG_STATUS <<\EOF
16162 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16165 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16166 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16167 *) ac_file_in="${ac_file}.in" ;;
16170 echo creating $ac_file
16172 rm -f conftest.frag conftest.in conftest.out
16173 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16174 cat $ac_file_inputs > conftest.in
16178 # Transform confdefs.h into a sed script conftest.vals that substitutes
16179 # the proper values into config.h.in to produce config.h. And first:
16180 # Protect against being on the right side of a sed subst in config.status.
16181 # Protect against being in an unquoted here document in config.status.
16182 rm -f conftest.vals
16183 cat > conftest.hdr <<\EOF
16186 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16190 sed -n -f conftest.hdr confdefs.h > conftest.vals
16193 # This sed command replaces #undef with comments. This is necessary, for
16194 # example, in the case of _POSIX_SOURCE, which is predefined and required
16195 # on some systems where configure will not decide to define it.
16196 cat >> conftest.vals <<\EOF
16197 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16200 # Break up conftest.vals because some shells have a limit on
16201 # the size of here documents, and old seds have small limits too.
16203 rm -f conftest.tail
16206 ac_lines=`grep -c . conftest.vals`
16207 # grep -c gives empty output for an empty file on some AIX systems.
16208 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16209 # Write a limited-size here document to conftest.frag.
16210 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16211 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16213 sed -f conftest.frag conftest.in > conftest.out
16215 mv conftest.out conftest.in
16216 ' >> $CONFIG_STATUS
16217 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16218 rm -f conftest.vals
16219 mv conftest.tail conftest.vals
16221 rm -f conftest.vals
16223 cat >> $CONFIG_STATUS <<\EOF
16224 rm -f conftest.frag conftest.h
16225 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16226 cat conftest.in >> conftest.h
16228 if cmp -s $ac_file conftest.h 2>/dev/null; then
16229 echo "$ac_file is unchanged"
16232 # Remove last slash and all that follows it. Not all systems have dirname.
16233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16235 # The file is in a subdirectory.
16236 test ! -d "$ac_dir" && mkdir "$ac_dir"
16239 mv conftest.h $ac_file
16244 cat >> $CONFIG_STATUS <<EOF
16246 top_srcdir="$srcdir"
16247 MAKE_SUBDIR="$MAKE_SUBDIR"
16250 cat >> $CONFIG_STATUS <<\EOF
16251 for dir in . $MAKE_SUBDIR; do
16256 sed -e '/^# Generated/d' \
16257 -e 's%/\*\*/#.*%%' \
16272 echo creating $dir/Makefile
16273 $CPP -I. -I${top_srcdir}/src junk.c \
16274 | sed -e 's/^\#.*//' \
16275 -e 's/^[ ][ ]*$//'\
16283 chmod 444 Makefile.new
16284 mv -f Makefile.new Makefile
16286 echo creating $dir/GNUmakefile
16287 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16288 | sed -e 's/^\#.*//' \
16289 -e 's/^[ ][ ]*$//'\
16297 chmod 444 Makefile.new
16298 mv -f Makefile.new GNUmakefile
16304 sed < config.status >> lib-src/config.values \
16305 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16306 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16307 -e 's/^\([^ ]*\) $/\1 ""/' \
16313 chmod +x $CONFIG_STATUS
16314 rm -fr confdefs* $ac_clean_files
16315 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1