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/-.*$//'`
1508 test -z "$opsys" && opsys=`echo $canonical | sed 's/^^-*-^-*-//'`
1510 if test -r "${srcdir}/src/m/${machine}.h"; then
1511 machfile="m/${machine}.h"
1512 { test "$extra_verbose" = "yes" && cat << EOF
1513 Defining config_machfile = "$machfile"
1515 cat >> confdefs.h <<EOF
1516 #define config_machfile "$machfile"
1521 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1522 echo "Using configure-time autodetection only."
1525 if test -r "${srcdir}/src/s/${opsys}.h"; then
1526 opsysfile="s/${opsys}.h"
1527 { test "$extra_verbose" = "yes" && cat << EOF
1528 Defining config_opsysfile = "$opsysfile"
1530 cat >> confdefs.h <<EOF
1531 #define config_opsysfile "$opsysfile"
1536 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1537 echo "Using configure-time autodetection only."
1541 if test -z "$dynamic"; then
1543 hpux* | sunos4* ) dynamic=no ;;
1547 if test "$dynamic" = "yes"; then
1549 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1550 decosf* ) ld_call_shared="-call_shared" ;;
1552 else case "$opsys" in
1554 echo "Static linking is not supported on Solaris 2."
1555 echo "Rerun configure without specifying --dynamic=no."
1557 linux ) ld_call_shared="-Bstatic" ;;
1558 decosf* ) ld_call_shared="-non_shared" ;;
1562 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1564 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1565 { test "$extra_verbose" = "yes" && cat << EOF
1566 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1568 cat >> confdefs.h <<EOF
1569 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1575 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1576 if test "$with_workshop $with_tooltalk" = "yes no"; then
1577 (echo "$progname: Usage error:"
1578 echo " " "--with-workshop requires --with-tooltalk"
1579 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1580 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1581 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1584 if test "$with_workshop" = "yes"; then
1585 { test "$extra_verbose" = "yes" && cat << \EOF
1588 cat >> confdefs.h <<\EOF
1593 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1594 echo " xemacs will be linked with \"sunpro.o\""
1598 if test "$with_clash_detection" != "no"; then
1599 { test "$extra_verbose" = "yes" && cat << \EOF
1600 Defining CLASH_DETECTION
1602 cat >> confdefs.h <<\EOF
1603 #define CLASH_DETECTION 1
1607 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1608 echo " xemacs will be linked with \"filelock.o\""
1612 test -n "$compiler" && CC="$compiler"
1613 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1616 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1617 if test "${CFLAGS-unset}" != unset
1618 then cflags_specified=yes;
1619 else cflags_specified=no;
1622 xe_save_CFLAGS="$CFLAGS"
1624 # Extract the first word of "gcc", so it can be a program name with args.
1625 set dummy gcc; ac_word=$2
1626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_word" >&5
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1644 if test -n "$CC"; then
1645 echo "$ac_t""$CC" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 if test -z "$CC"; then
1651 # Extract the first word of "cc", so it can be a program name with args.
1652 set dummy cc; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 if test -f $ac_dir/$ac_word; then
1665 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1674 if test $ac_prog_rejected = yes; then
1675 # We found a bogon in the path, so make sure we never use it.
1676 set dummy $ac_cv_prog_CC
1678 if test $# -gt 0; then
1679 # We chose a different compiler from the bogus one.
1680 # However, it has the same basename, so the bogon will be chosen
1681 # first if we set CC to just the basename; use the full file name.
1683 set dummy "$ac_dir/$ac_word" "$@"
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1693 echo "$ac_t""no" 1>&6
1696 if test -z "$CC"; then
1697 case "`uname -s`" in
1699 # Extract the first word of "cl", so it can be a program name with args.
1700 set dummy cl; ac_word=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1719 if test -n "$CC"; then
1720 echo "$ac_t""$CC" 1>&6
1722 echo "$ac_t""no" 1>&6
1727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1734 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1735 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1736 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'
1737 ac_cpp='$CPP '"$xe_cppflags"
1738 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1739 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1742 cat > conftest.$ac_ext << EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 ac_cv_prog_cc_works=yes
1751 # If we can't run a trivial program, we are probably using a cross compiler.
1752 if (./conftest; exit) 2>/dev/null; then
1753 ac_cv_prog_cc_cross=no
1755 ac_cv_prog_cc_cross=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 ac_cv_prog_cc_works=no
1764 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1765 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1766 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'
1767 ac_cpp='$CPP '"$xe_cppflags"
1768 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1769 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1773 if test $ac_cv_prog_cc_works = no; then
1774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1779 cross_compiling=$ac_cv_prog_cc_cross
1781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1782 echo "configure:1783: checking whether we are using GNU C" >&5
1784 cat > conftest.c <<EOF
1789 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1795 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1797 if test $ac_cv_prog_gcc = yes; then
1803 ac_test_CFLAGS="${CFLAGS+set}"
1804 ac_save_CFLAGS="$CFLAGS"
1806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether ${CC-cc} accepts -g" >&5
1809 echo 'void f(){}' > conftest.c
1810 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1819 if test "$ac_test_CFLAGS" = set; then
1820 CFLAGS="$ac_save_CFLAGS"
1821 elif test $ac_cv_prog_cc_g = yes; then
1822 if test "$GCC" = yes; then
1828 if test "$GCC" = yes; then
1835 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1837 # Extract the first word of "gcc", so it can be a program name with args.
1838 set dummy gcc; ac_word=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1847 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/$ac_word; then
1857 if test -n "$CC"; then
1858 echo "$ac_t""$CC" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 if test -z "$CC"; then
1864 # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_word" >&5
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1875 for ac_dir in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir=.
1877 if test -f $ac_dir/$ac_word; then
1878 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1879 ac_prog_rejected=yes
1887 if test $ac_prog_rejected = yes; then
1888 # We found a bogon in the path, so make sure we never use it.
1889 set dummy $ac_cv_prog_CC
1891 if test $# -gt 0; then
1892 # We chose a different compiler from the bogus one.
1893 # However, it has the same basename, so the bogon will be chosen
1894 # first if we set CC to just the basename; use the full file name.
1896 set dummy "$ac_dir/$ac_word" "$@"
1903 if test -n "$CC"; then
1904 echo "$ac_t""$CC" 1>&6
1906 echo "$ac_t""no" 1>&6
1909 if test -z "$CC"; then
1910 case "`uname -s`" in
1912 # Extract the first word of "cl", so it can be a program name with args.
1913 set dummy cl; ac_word=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1932 if test -n "$CC"; then
1933 echo "$ac_t""$CC" 1>&6
1935 echo "$ac_t""no" 1>&6
1940 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1943 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1947 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1948 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1949 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'
1950 ac_cpp='$CPP '"$xe_cppflags"
1951 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1952 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1955 cat > conftest.$ac_ext << EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1962 if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1963 ac_cv_prog_cc_works=yes
1964 # If we can't run a trivial program, we are probably using a cross compiler.
1965 if (./conftest; exit) 2>/dev/null; then
1966 ac_cv_prog_cc_cross=no
1968 ac_cv_prog_cc_cross=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 ac_cv_prog_cc_works=no
1977 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1978 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1979 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'
1980 ac_cpp='$CPP '"$xe_cppflags"
1981 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1982 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1986 if test $ac_cv_prog_cc_works = no; then
1987 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1992 cross_compiling=$ac_cv_prog_cc_cross
1994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether we are using GNU C" >&5
1997 cat > conftest.c <<EOF
2002 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2008 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2010 if test $ac_cv_prog_gcc = yes; then
2016 ac_test_CFLAGS="${CFLAGS+set}"
2017 ac_save_CFLAGS="$CFLAGS"
2019 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether ${CC-cc} accepts -g" >&5
2022 echo 'void f(){}' > conftest.c
2023 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2031 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2032 if test "$ac_test_CFLAGS" = set; then
2033 CFLAGS="$ac_save_CFLAGS"
2034 elif test $ac_cv_prog_cc_g = yes; then
2035 if test "$GCC" = yes; then
2041 if test "$GCC" = yes; then
2048 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2050 # Extract the first word of "gcc", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2060 for ac_dir in $ac_dummy; do
2061 test -z "$ac_dir" && ac_dir=.
2062 if test -f $ac_dir/$ac_word; then
2070 if test -n "$CC"; then
2071 echo "$ac_t""$CC" 1>&6
2073 echo "$ac_t""no" 1>&6
2076 if test -z "$CC"; then
2077 # Extract the first word of "cc", so it can be a program name with args.
2078 set dummy cc; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2092 ac_prog_rejected=yes
2100 if test $ac_prog_rejected = yes; then
2101 # We found a bogon in the path, so make sure we never use it.
2102 set dummy $ac_cv_prog_CC
2104 if test $# -gt 0; then
2105 # We chose a different compiler from the bogus one.
2106 # However, it has the same basename, so the bogon will be chosen
2107 # first if we set CC to just the basename; use the full file name.
2109 set dummy "$ac_dir/$ac_word" "$@"
2116 if test -n "$CC"; then
2117 echo "$ac_t""$CC" 1>&6
2119 echo "$ac_t""no" 1>&6
2122 if test -z "$CC"; then
2123 case "`uname -s`" in
2125 # Extract the first word of "cl", so it can be a program name with args.
2126 set dummy cl; ac_word=$2
2127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2128 echo "configure:2129: checking for $ac_word" >&5
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/$ac_word; then
2145 if test -n "$CC"; then
2146 echo "$ac_t""$CC" 1>&6
2148 echo "$ac_t""no" 1>&6
2153 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2160 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2161 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2162 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'
2163 ac_cpp='$CPP '"$xe_cppflags"
2164 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2165 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2168 cat > conftest.$ac_ext << EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 ac_cv_prog_cc_works=yes
2177 # If we can't run a trivial program, we are probably using a cross compiler.
2178 if (./conftest; exit) 2>/dev/null; then
2179 ac_cv_prog_cc_cross=no
2181 ac_cv_prog_cc_cross=yes
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 ac_cv_prog_cc_works=no
2190 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2191 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2192 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'
2193 ac_cpp='$CPP '"$xe_cppflags"
2194 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2195 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2198 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2199 if test $ac_cv_prog_cc_works = no; then
2200 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2202 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2204 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2205 cross_compiling=$ac_cv_prog_cc_cross
2207 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether we are using GNU C" >&5
2210 cat > conftest.c <<EOF
2215 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2221 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2223 if test $ac_cv_prog_gcc = yes; then
2229 ac_test_CFLAGS="${CFLAGS+set}"
2230 ac_save_CFLAGS="$CFLAGS"
2232 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether ${CC-cc} accepts -g" >&5
2235 echo 'void f(){}' > conftest.c
2236 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2244 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2245 if test "$ac_test_CFLAGS" = set; then
2246 CFLAGS="$ac_save_CFLAGS"
2247 elif test $ac_cv_prog_cc_g = yes; then
2248 if test "$GCC" = yes; then
2254 if test "$GCC" = yes; then
2262 CFLAGS="$xe_save_CFLAGS"
2265 test -n "$CPP" -a -d "$CPP" && CPP=
2267 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2270 echo "configure:2271: checking how to run the C preprocessor" >&5
2271 # On Suns, sometimes $CPP names a directory.
2272 if test -n "$CPP" && test -d "$CPP"; then
2275 if test -z "$CPP"; then
2277 # This must be in double quotes, not single quotes, because CPP may get
2278 # substituted into the Makefile and "${CC-cc}" will confuse make.
2280 # On the NeXT, cc -E runs the code through the compiler's parser,
2281 # not just through cpp.
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 CPP="${CC-cc} -E -traditional-cpp"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308 if test -z "$ac_err"; then
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2315 CPP="${CC-cc} -nologo -E"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2339 ac_cv_prog_CPP="$CPP"
2340 CPP="$ac_cv_prog_CPP"
2342 ac_cv_prog_CPP="$CPP"
2344 echo "$ac_t""$CPP" 1>&6
2348 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2349 echo "configure:2350: checking for AIX" >&5
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2359 egrep "yes" >/dev/null 2>&1; then
2361 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2362 Defining _ALL_SOURCE
2364 cat >> confdefs.h <<\EOF
2365 #define _ALL_SOURCE 1
2371 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2378 echo "configure:2379: checking for GNU libc" >&5
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <features.h>
2385 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2386 #error Not a GNU libc system :-(
2387 ******* ======= ******** &&&&&&&&
2392 if { (eval echo configure:2393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2402 echo "$ac_t""$have_glibc" 1>&6
2403 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2404 Defining _GNU_SOURCE
2406 cat >> confdefs.h <<\EOF
2407 #define _GNU_SOURCE 1
2414 { test "$extra_verbose" = "yes" && cat << \EOF
2415 Defining __EXTENSIONS__
2417 cat >> confdefs.h <<\EOF
2418 #define __EXTENSIONS__ 1
2422 if test "$os_release" -ge 55; then
2423 { test "$extra_verbose" = "yes" && cat << \EOF
2424 Defining _XOPEN_SOURCE = 500
2426 cat >> confdefs.h <<\EOF
2427 #define _XOPEN_SOURCE 500
2431 { test "$extra_verbose" = "yes" && cat << \EOF
2432 Defining _XOPEN_SOURCE_EXTENDED
2434 cat >> confdefs.h <<\EOF
2435 #define _XOPEN_SOURCE_EXTENDED 1
2441 { test "$extra_verbose" = "yes" && cat << \EOF
2442 Defining _POSIX_C_SOURCE = 199506L
2444 cat >> confdefs.h <<\EOF
2445 #define _POSIX_C_SOURCE 199506L
2449 { test "$extra_verbose" = "yes" && cat << \EOF
2450 Defining _XOPEN_SOURCE = 500
2452 cat >> confdefs.h <<\EOF
2453 #define _XOPEN_SOURCE 500
2457 { test "$extra_verbose" = "yes" && cat << \EOF
2458 Defining _XOPEN_SOURCE_EXTENDED
2460 cat >> confdefs.h <<\EOF
2461 #define _XOPEN_SOURCE_EXTENDED 1
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2472 #if defined __SUNPRO_C
2474 #elif defined __DECC
2476 #elif defined __USLC__ && defined __SCO_VERSION__
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 case "$conftest_rc" in
2492 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2493 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2494 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2502 echo "Extracting information from the machine- and system-dependent headers..."
2504 tempcname="conftest.c"
2508 cat > $tempcname < confdefs.h
2509 cat >> $tempcname <<EOF
2511 #define C_SWITCH_SITE
2512 #define C_SWITCH_X_SITE
2513 #define LD_SWITCH_SITE
2514 #define LD_SWITCH_X_SITE
2515 #define LD_SWITCH_X_SITE_AUX
2516 #define OS_RELEASE $os_release
2518 #ifdef config_opsysfile
2519 #include "$srcdir/src/$opsysfile"
2522 #ifdef config_machfile
2523 #include "$srcdir/src/$machfile"
2526 #ifndef LIBS_MACHINE
2527 #define LIBS_MACHINE
2529 configure___ libs_machine=LIBS_MACHINE
2534 configure___ libs_system=LIBS_SYSTEM
2536 #ifndef LIBS_TERMCAP
2537 #define LIBS_TERMCAP
2539 configure___ libs_termcap=LIBS_TERMCAP
2541 #ifndef LIB_STANDARD
2542 #define LIB_STANDARD
2544 configure___ libs_standard=LIB_STANDARD
2547 #ifndef OBJECTS_MACHINE
2548 #define OBJECTS_MACHINE
2550 configure___ objects_machine=OBJECTS_MACHINE
2552 #ifndef OBJECTS_SYSTEM
2553 #define OBJECTS_SYSTEM
2555 configure___ objects_system=OBJECTS_SYSTEM
2558 #ifndef C_SWITCH_MACHINE
2559 #define C_SWITCH_MACHINE
2561 configure___ c_switch_machine=C_SWITCH_MACHINE
2563 #ifndef C_SWITCH_SYSTEM
2564 #define C_SWITCH_SYSTEM
2566 configure___ c_switch_system=C_SWITCH_SYSTEM
2569 #ifndef LD_SWITCH_MACHINE
2570 #define LD_SWITCH_MACHINE
2572 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2574 #ifndef LD_SWITCH_SYSTEM
2575 #define LD_SWITCH_SYSTEM
2577 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2581 #define UNEXEC "unexec.o"
2583 configure___ unexec=UNEXEC
2586 #ifndef LD_SWITCH_SHARED
2587 #define LD_SWITCH_SHARED "-c"
2589 configure___ ld_switch_shared=LD_SWITCH_SHARED
2592 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2593 configure___ ordinary_ld=ORDINARY_LD
2595 #ifdef ORDINARY_LINK
2596 #define LD ORDINARY_LD
2597 #else /* no ORDINARY LINK */
2598 #ifdef COFF_ENCAPSULATE
2599 #define LD "\$(CC) -nostdlib"
2600 #else /* not COFF_ENCAPSULATE */
2603 #else /* ! defined (LINKER) */
2605 #endif /* ! defined (LINKER) */
2606 #endif /* ! defined (COFF_ENCAPSULATE) */
2607 #endif /* not ORDINARY_LINK */
2613 configure___ lib_gcc=LIB_GCC
2615 #ifndef LD_TEXT_START_ADDR
2616 #define LD_TEXT_START_ADDR
2618 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2621 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2623 #ifdef COFF_ENCAPSULATE
2624 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2625 #else /* ! defined (COFF_ENCAPSULATE) */
2626 #define START_FILES "pre-crt0.o /lib/crt0.o"
2627 #endif /* ! defined (COFF_ENCAPSULATE) */
2628 #else /* ! defined (NO_REMAP) */
2629 #define START_FILES "ecrt0.o"
2630 #endif /* ! defined (NO_REMAP) */
2631 #endif /* no ORDINARY_LINK */
2635 configure___ start_files=START_FILES
2637 #ifdef ORDINARY_LINK
2638 configure___ ordinary_link=yes
2640 configure___ ordinary_link=no
2643 #ifdef SYSTEM_MALLOC
2644 configure___ system_malloc=yes
2646 configure___ system_malloc=no
2650 configure___ have_terminfo=yes
2652 configure___ have_terminfo=no
2655 #ifdef MAIL_USE_FLOCK
2656 configure___ mail_use_flock=yes
2658 configure___ mail_use_flock=no
2661 #ifdef MAIL_USE_LOCKF
2662 configure___ mail_use_lockf=yes
2664 configure___ mail_use_lockf=no
2667 #ifdef MAIL_USE_LOCKING
2668 configure___ mail_use_locking=yes
2670 configure___ mail_use_locking=no
2673 #ifdef HAVE_WIN32_PROCESSES
2674 configure___ win32_processes=yes
2676 configure___ win32_processes=no
2681 CPP=`eval "echo $CPP $CPPFLAGS"`
2682 eval `$CPP -Isrc $tempcname \
2683 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2687 if test "$pdump" = "yes"; then
2696 test "$extra_verbose" = "yes" && \
2697 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 ""
2699 case "$opsys" in mingw* | cygwin*)
2700 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2701 cygwin_include=`eval "dirname $cygwin_include"` ;
2702 cygwin_include="-I$cygwin_include/../include" ;
2703 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2704 case "$opsys" in mingw*)
2705 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2710 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2713 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2715 if test "$__USLC__" = yes; then
2716 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2717 echo "configure:2718: checking for whether the -Kalloca compiler flag is needed" >&5
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 void *x = alloca(4);
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2735 xe_save_c_switch_system="$c_switch_system"
2736 c_switch_system="$c_switch_system -Kalloca"
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2742 void *x = alloca(4);
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2753 c_switch_system="$xe_save_c_switch_system"
2756 echo "$ac_t""$need_kalloca" 1>&6
2757 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
2760 if test "$cflags_specified" = "no"; then
2761 if test "$GCC" = "yes"; then
2762 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2763 CFLAGS="$CFLAGS -Wsign-compare"
2764 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2765 elif test "$__SUNPRO_C" = "yes"; then
2767 sol2 ) CFLAGS="-v -xO4" ;;
2768 sunos4* ) CFLAGS="-xO2";;
2770 elif test "$__DECC" = "yes"; then
2772 elif test "$CC" = "xlc"; then
2773 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2778 if test "$GCC" = "yes"; then
2779 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2780 echo "configure:2781: checking for buggy gcc versions" >&5
2781 GCC_VERSION=`$CC --version`
2782 case `uname -s`:`uname -m`:$GCC_VERSION in
2783 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2787 *-fno-schedule-insns*) ;;
2789 echo "$ac_t""yes" 1>&6
2790 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2791 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2792 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2798 Linux:alpha:egcs-2.91.*)
2799 echo "$ac_t""yes" 1>&6
2800 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2801 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2802 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2807 case "$GCC_VERSION" in
2810 *-fno-strength-reduce*) ;;
2812 echo "$ac_t""yes" 1>&6
2813 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2814 echo "configure: warning: -fno-strength-reduce." 1>&2
2815 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2821 *-fno-caller-saves*) ;;
2823 echo "$ac_t""yes" 1>&6
2824 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2825 echo "configure: warning: -fno-caller-saves." 1>&2
2826 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2833 echo "$ac_t""no" 1>&6
2837 if test "$GCC" = "yes"; then
2838 set x $ld_switch_system; shift; ld_switch_system=""
2839 while test -n "$1"; do
2841 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2842 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2844 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2850 if test "$GCC" = "yes"; then
2851 set x $ld_switch_machine; shift; ld_switch_machine=""
2852 while test -n "$1"; do
2854 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2855 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2857 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2863 if test "$GCC" = "yes"; then
2864 set x $LDFLAGS; shift; LDFLAGS=""
2865 while test -n "$1"; do
2867 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2868 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2870 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2876 if test "$GCC" = "yes"; then
2877 set x $ld_call_shared; shift; ld_call_shared=""
2878 while test -n "$1"; do
2880 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2881 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2883 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2889 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2890 echo " xemacs will be linked with \"$objects_machine\""
2892 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2893 echo " xemacs will be linked with \"$objects_system\""
2895 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2896 echo " xemacs will be linked with \"$unexec\""
2898 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2899 echo " xemacs will be linked with \"dumper.o\""
2902 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2903 echo "configure:2904: checking for dynodump" >&5
2904 if test "$unexec" != "unexsol2.o"; then
2905 echo "$ac_t""no" 1>&6
2907 echo "$ac_t""yes" 1>&6
2908 { test "$extra_verbose" = "yes" && cat << \EOF
2911 cat >> confdefs.h <<\EOF
2916 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2917 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2919 sparc ) dynodump_arch=sparc ;;
2920 *86* ) dynodump_arch=i386 ;;
2921 powerpc ) dynodump_arch=ppc ;;
2923 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
2927 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2929 if test "$unexec" = "unexaix.o"; then
2930 if test "$dynamic" = "no"; then
2931 start_flags="-Wl,-bnso,-bnodelcsect"
2932 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2933 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2934 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2936 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2937 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2940 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2941 echo "configure:2942: checking for terminateAndUnload in -lC" >&5
2942 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2944 xe_check_libs=" -lC "
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 /* Override any gcc2 internal prototype to avoid an error. */
2949 /* We use char because int might match the return type of a gcc2
2950 builtin and then its argument prototype would still apply. */
2951 char terminateAndUnload();
2954 terminateAndUnload()
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2959 eval "ac_cv_lib_$ac_lib_var=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_lib_$ac_lib_var=no"
2969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2970 echo "$ac_t""yes" 1>&6
2971 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2973 echo "$ac_t""no" 1>&6
2978 elif test -n "$ld_text_start_addr"; then
2979 start_flags="-T $ld_text_start_addr -e __start"
2985 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2986 test -z "$linker" && linker='$(CC) -nostdlib'
2987 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2989 test "$GCC" != "yes" && lib_gcc=
2995 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2996 if test -n "$site_libraries"; then
2997 for arg in $site_libraries; do
3000 * ) test -d "$arg" || \
3001 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3004 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3008 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3009 if test -n "$site_includes"; then
3010 for arg in $site_includes; do
3013 * ) test -d "$arg" || \
3014 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3017 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3021 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3022 if test -n "$site_prefixes"; then
3023 for dir in $site_prefixes; do
3024 lib_dir="${dir}/lib"
3025 inc_dir="${dir}/include"
3026 if test ! -d "$dir"; then
3027 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3028 elif test ! -d "$lib_dir"; then
3029 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3031 if test -d "$inc_dir"; then
3032 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
3034 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
3040 for dir in "/usr/ccs/lib"; do
3041 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
3044 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3045 if test -n "$site_runtime_libraries"; then
3046 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3054 if test -n "$add_runtime_path"; then :;
3055 elif test "$dynamic" = "no"; then add_runtime_path=no
3056 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3057 else case "$opsys" in
3058 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3059 * ) add_runtime_path=no ;;
3063 if test "$add_runtime_path" = "yes"; then
3064 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3065 echo "configure:3066: checking "for runtime libraries flag"" >&5
3067 sol2 ) dash_r="-R" ;;
3068 decosf* | linux* | irix*) dash_r="-rpath " ;;
3071 for try_dash_r in "-R" "-R " "-rpath "; do
3072 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3074 if test "$GCC" = "yes"; then
3075 set x $xe_check_libs; shift; xe_check_libs=""
3076 while test -n "$1"; do
3078 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3079 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3081 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3096 dash_r="$try_dash_r"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3103 test -n "$dash_r" && break
3106 if test -n "$dash_r";
3107 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3108 else echo "$ac_t""NONE" 1>&6
3112 xe_add_unique_runpath_dir='
3114 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3116 if test "$xe_add_p" = "yes"; then
3117 test -n "$runpath" && runpath="${runpath}:"
3118 runpath="${runpath}${xe_runpath_dir}"
3119 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3125 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3126 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3127 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3129 runpath="" runpath_dirs=""
3130 if test -n "$LD_RUN_PATH"; then
3131 runpath="$LD_RUN_PATH"
3132 elif test "$GCC" = "yes"; then
3133 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3134 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3135 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3136 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3137 case "$arg" in P,* | -L* | -R* )
3138 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3140 xe_runpath_dir="$dir"
3141 test "$xe_runpath_dir" != "/lib" -a \
3142 "$xe_runpath_dir" != "/usr/lib" -a \
3143 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3144 eval "$xe_add_unique_runpath_dir"
3149 ld_switch_run="$ld_switch_run_save"
3152 for arg in $ld_switch_site $ld_switch_x_site; do
3153 case "$arg" in -L*) {
3154 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3155 test "$xe_runpath_dir" != "/lib" -a \
3156 "$xe_runpath_dir" != "/usr/lib" -a \
3157 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3158 eval "$xe_add_unique_runpath_dir"
3161 if test "$opsys $need_motif" = "sol2 yes"; then
3162 xe_runpath_dir="/opt/SUNWdt/lib";
3163 eval "$xe_add_unique_runpath_dir";
3166 if test -n "$runpath"; then
3167 ld_switch_run="${dash_r}${runpath}"
3169 if test "$GCC" = "yes"; then
3170 set x $ld_switch_run; shift; ld_switch_run=""
3171 while test -n "$1"; do
3173 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3174 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3176 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3181 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3188 if test "$with_dlmalloc" != "no"; then
3193 after_morecore_hook_exists=yes
3194 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3195 echo "configure:3196: checking for malloc_set_state" >&5
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char malloc_set_state(); below. */
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3206 char malloc_set_state();
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 eval "ac_cv_func_malloc_set_state=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 eval "ac_cv_func_malloc_set_state=no"
3232 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3233 echo "$ac_t""yes" 1>&6
3236 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether __after_morecore_hook exists" >&5
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 extern void (* __after_morecore_hook)();
3247 __after_morecore_hook = 0
3250 if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3252 echo "$ac_t""yes" 1>&6
3254 echo "configure: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3257 echo "$ac_t""no" 1>&6
3258 after_morecore_hook_exists=no
3261 if test "$system_malloc" = "yes" ; then
3264 - The GNU allocators don't work with this system configuration."
3265 elif test "$with_system_malloc" = "yes" ; then
3268 - User chose not to use GNU allocators."
3269 elif test "$with_debug_malloc" = "yes" ; then
3272 - User chose to use Debugging Malloc."
3275 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3277 - Using Doug Lea's new malloc from the GNU C Library."
3278 { test "$extra_verbose" = "yes" && cat << \EOF
3279 Defining DOUG_LEA_MALLOC
3281 cat >> confdefs.h <<\EOF
3282 #define DOUG_LEA_MALLOC 1
3286 if test "$after_morecore_hook_exists" = "no" ; then
3288 - Using Doug Lea's new malloc from the Linux C Library."
3289 { test "$extra_verbose" = "yes" && cat << \EOF
3290 Defining _NO_MALLOC_WARNING_
3292 cat >> confdefs.h <<\EOF
3293 #define _NO_MALLOC_WARNING_ 1
3303 # Extract the first word of "ranlib", so it can be a program name with args.
3304 set dummy ranlib; ac_word=$2
3305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3306 echo "configure:3307: checking for $ac_word" >&5
3308 if test -n "$RANLIB"; then
3309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 for ac_dir in $ac_dummy; do
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f $ac_dir/$ac_word; then
3316 ac_cv_prog_RANLIB="ranlib"
3321 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3323 RANLIB="$ac_cv_prog_RANLIB"
3324 if test -n "$RANLIB"; then
3325 echo "$ac_t""$RANLIB" 1>&6
3327 echo "$ac_t""no" 1>&6
3331 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3332 if test -f $ac_dir/install-sh; then
3334 ac_install_sh="$ac_aux_dir/install-sh -c"
3336 elif test -f $ac_dir/install.sh; then
3338 ac_install_sh="$ac_aux_dir/install.sh -c"
3342 if test -z "$ac_aux_dir"; then
3343 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3345 ac_config_guess=$ac_aux_dir/config.guess
3346 ac_config_sub=$ac_aux_dir/config.sub
3347 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3349 # Find a good install program. We prefer a C program (faster),
3350 # so one script is as good as another. But avoid the broken or
3351 # incompatible versions:
3352 # SysV /etc/install, /usr/sbin/install
3353 # SunOS /usr/etc/install
3354 # IRIX /sbin/install
3356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3359 # ./install, which can be erroneously created by make from ./install.sh.
3360 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3361 echo "configure:3362: checking for a BSD compatible install" >&5
3362 if test -z "$INSTALL"; then
3364 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3365 for ac_dir in $PATH; do
3366 # Account for people who put trailing slashes in PATH elements.
3368 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3370 # OSF1 and SCO ODT 3.0 have their own names for install.
3371 # Don't use installbsd from OSF since it installs stuff as root
3373 for ac_prog in ginstall scoinst install; do
3374 if test -f $ac_dir/$ac_prog; then
3375 if test $ac_prog = install &&
3376 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3377 # AIX install. It has an incompatible calling convention.
3380 ac_cv_path_install="$ac_dir/$ac_prog -c"
3390 if test "${ac_cv_path_install+set}" = set; then
3391 INSTALL="$ac_cv_path_install"
3393 # As a last resort, use the slow shell script. We don't cache a
3394 # path for INSTALL within a source directory, because that will
3395 # break other packages using the cache if that directory is
3396 # removed, or if the path is relative.
3397 INSTALL="$ac_install_sh"
3400 echo "$ac_t""$INSTALL" 1>&6
3402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3403 # It thinks the first close brace ends the variable substitution.
3404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3410 for ac_prog in 'bison -y' byacc
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3415 echo "configure:3416: checking for $ac_word" >&5
3417 if test -n "$YACC"; then
3418 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3422 for ac_dir in $ac_dummy; do
3423 test -z "$ac_dir" && ac_dir=.
3424 if test -f $ac_dir/$ac_word; then
3425 ac_cv_prog_YACC="$ac_prog"
3431 YACC="$ac_cv_prog_YACC"
3432 if test -n "$YACC"; then
3433 echo "$ac_t""$YACC" 1>&6
3435 echo "$ac_t""no" 1>&6
3438 test -n "$YACC" && break
3440 test -n "$YACC" || YACC="yacc"
3443 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
3445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_hdr" >&5
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3455 { (eval echo configure:3456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3457 if test -z "$ac_err"; then
3459 eval "ac_cv_header_$ac_safe=yes"
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3465 eval "ac_cv_header_$ac_safe=no"
3468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3471 { test "$extra_verbose" = "yes" && cat << EOF
3474 cat >> confdefs.h <<EOF
3475 #define $ac_tr_hdr 1
3480 echo "$ac_t""no" 1>&6
3484 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3485 echo "configure:3486: checking for sys/wait.h that is POSIX.1 compatible" >&5
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3491 #include <sys/wait.h>
3493 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3496 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3501 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 ac_cv_header_sys_wait_h=yes
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 ac_cv_header_sys_wait_h=no
3515 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3516 if test $ac_cv_header_sys_wait_h = yes; then
3517 { test "$extra_verbose" = "yes" && cat << \EOF
3518 Defining HAVE_SYS_WAIT_H
3520 cat >> confdefs.h <<\EOF
3521 #define HAVE_SYS_WAIT_H 1
3527 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3528 echo "configure:3529: checking for ANSI C header files" >&5
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3539 { (eval echo configure:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3541 if test -z "$ac_err"; then
3543 ac_cv_header_stdc=yes
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 ac_cv_header_stdc=no
3553 if test $ac_cv_header_stdc = yes; then
3554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 egrep "memchr" >/dev/null 2>&1; then
3565 ac_cv_header_stdc=no
3571 if test $ac_cv_header_stdc = yes; then
3572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 egrep "free" >/dev/null 2>&1; then
3583 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3598 int main () { int i; for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3616 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3617 if test $ac_cv_header_stdc = yes; then
3618 { test "$extra_verbose" = "yes" && cat << \EOF
3619 Defining STDC_HEADERS
3621 cat >> confdefs.h <<\EOF
3622 #define STDC_HEADERS 1
3628 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3629 echo "configure:3630: checking whether time.h and sys/time.h may both be included" >&5
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3635 #include <sys/time.h>
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 ac_cv_header_time=yes
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 ac_cv_header_time=no
3652 echo "$ac_t""$ac_cv_header_time" 1>&6
3653 if test $ac_cv_header_time = yes; then
3654 { test "$extra_verbose" = "yes" && cat << \EOF
3655 Defining TIME_WITH_SYS_TIME
3657 cat >> confdefs.h <<\EOF
3658 #define TIME_WITH_SYS_TIME 1
3664 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3672 /* NetBSD declares sys_siglist in unistd.h. */
3673 #ifdef HAVE_UNISTD_H
3677 char *msg = *(sys_siglist + 1);
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 ac_cv_decl_sys_siglist=yes
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 ac_cv_decl_sys_siglist=no
3691 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3692 if test $ac_cv_decl_sys_siglist = yes; then
3693 { test "$extra_verbose" = "yes" && cat << \EOF
3694 Defining SYS_SIGLIST_DECLARED
3696 cat >> confdefs.h <<\EOF
3697 #define SYS_SIGLIST_DECLARED 1
3705 echo $ac_n "checking for utime""... $ac_c" 1>&6
3706 echo "configure:3707: checking for utime" >&5
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <sys/types.h>
3713 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 echo "$ac_t""yes" 1>&6
3719 { test "$extra_verbose" = "yes" && cat << \EOF
3722 cat >> confdefs.h <<\EOF
3723 #define HAVE_UTIME 1
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 echo "$ac_t""no" 1>&6
3732 for ac_func in utimes
3734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3735 echo "configure:3736: checking for $ac_func" >&5
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3750 /* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3763 eval "ac_cv_func_$ac_func=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3768 eval "ac_cv_func_$ac_func=no"
3772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3773 echo "$ac_t""yes" 1>&6
3774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3775 { test "$extra_verbose" = "yes" && cat << EOF
3776 Defining $ac_tr_func
3778 cat >> confdefs.h <<EOF
3779 #define $ac_tr_func 1
3784 echo "$ac_t""no" 1>&6
3792 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3793 echo "configure:3794: checking return type of signal handlers" >&5
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3804 extern "C" void (*signal (int, void (*)(int)))(int);
3806 void (*signal ()) ();
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 ac_cv_type_signal=void
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3820 ac_cv_type_signal=int
3824 echo "$ac_t""$ac_cv_type_signal" 1>&6
3825 { test "$extra_verbose" = "yes" && cat << EOF
3826 Defining RETSIGTYPE = $ac_cv_type_signal
3828 cat >> confdefs.h <<EOF
3829 #define RETSIGTYPE $ac_cv_type_signal
3834 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3835 echo "configure:3836: checking for size_t" >&5
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <sys/types.h>
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3849 ac_cv_type_size_t=yes
3852 ac_cv_type_size_t=no
3856 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3857 if test $ac_cv_type_size_t = no; then
3858 { test "$extra_verbose" = "yes" && cat << \EOF
3859 Defining size_t = unsigned
3861 cat >> confdefs.h <<\EOF
3862 #define size_t unsigned
3868 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3869 echo "configure:3870: checking for pid_t" >&5
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <sys/types.h>
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3883 ac_cv_type_pid_t=yes
3890 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3891 if test $ac_cv_type_pid_t = no; then
3892 { test "$extra_verbose" = "yes" && cat << \EOF
3893 Defining pid_t = int
3895 cat >> confdefs.h <<\EOF
3902 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3903 echo "configure:3904: checking for uid_t in sys/types.h" >&5
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <sys/types.h>
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 egrep "uid_t" >/dev/null 2>&1; then
3913 ac_cv_type_uid_t=yes
3921 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3922 if test $ac_cv_type_uid_t = no; then
3923 { test "$extra_verbose" = "yes" && cat << \EOF
3924 Defining uid_t = int
3926 cat >> confdefs.h <<\EOF
3931 { test "$extra_verbose" = "yes" && cat << \EOF
3932 Defining gid_t = int
3934 cat >> confdefs.h <<\EOF
3941 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3942 echo "configure:3943: checking for mode_t" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <sys/types.h>
3953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3956 ac_cv_type_mode_t=yes
3959 ac_cv_type_mode_t=no
3963 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3964 if test $ac_cv_type_mode_t = no; then
3965 { test "$extra_verbose" = "yes" && cat << \EOF
3966 Defining mode_t = int
3968 cat >> confdefs.h <<\EOF
3975 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3976 echo "configure:3977: checking for off_t" >&5
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <sys/types.h>
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3990 ac_cv_type_off_t=yes
3997 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3998 if test $ac_cv_type_off_t = no; then
3999 { test "$extra_verbose" = "yes" && cat << \EOF
4000 Defining off_t = long
4002 cat >> confdefs.h <<\EOF
4009 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4010 echo "configure:4011: checking for ssize_t" >&5
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/types.h>
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4024 ac_cv_type_ssize_t=yes
4027 ac_cv_type_ssize_t=no
4031 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4032 if test $ac_cv_type_ssize_t = no; then
4033 { test "$extra_verbose" = "yes" && cat << \EOF
4034 Defining ssize_t = int
4036 cat >> confdefs.h <<\EOF
4044 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4045 echo "configure:4046: checking for socklen_t" >&5
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <sys/socket.h>
4056 if { (eval echo configure:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 echo "$ac_t""yes" 1>&6
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 #include <sys/socket.h>
4068 int accept (int, struct sockaddr *, size_t *);
4074 if { (eval echo configure:4075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4077 echo "$ac_t""size_t" 1>&6
4078 { test "$extra_verbose" = "yes" && cat << \EOF
4079 Defining socklen_t = size_t
4081 cat >> confdefs.h <<\EOF
4082 #define socklen_t size_t
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4091 echo "$ac_t""int" 1>&6
4092 { test "$extra_verbose" = "yes" && cat << \EOF
4093 Defining socklen_t = int
4095 cat >> confdefs.h <<\EOF
4096 #define socklen_t int
4105 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4106 echo "configure:4107: checking for struct timeval" >&5
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 #ifdef TIME_WITH_SYS_TIME
4111 #include <sys/time.h>
4114 #ifdef HAVE_SYS_TIME_H
4115 #include <sys/time.h>
4121 static struct timeval x; x.tv_sec = x.tv_usec;
4124 if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 echo "$ac_t""yes" 1>&6
4128 { test "$extra_verbose" = "yes" && cat << \EOF
4129 Defining HAVE_TIMEVAL
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_TIMEVAL 1
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4146 echo "configure:4147: checking whether struct tm is in sys/time.h or time.h" >&5
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4154 struct tm *tp; tp->tm_sec;
4157 if { (eval echo configure:4158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4159 ac_cv_struct_tm=time.h
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 ac_cv_struct_tm=sys/time.h
4168 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4169 if test $ac_cv_struct_tm = sys/time.h; then
4170 { test "$extra_verbose" = "yes" && cat << \EOF
4171 Defining TM_IN_SYS_TIME
4173 cat >> confdefs.h <<\EOF
4174 #define TM_IN_SYS_TIME 1
4180 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4181 echo "configure:4182: checking for tm_zone in struct tm" >&5
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 #include <sys/types.h>
4187 #include <$ac_cv_struct_tm>
4189 struct tm tm; tm.tm_zone;
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 ac_cv_struct_tm_zone=yes
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4199 ac_cv_struct_tm_zone=no
4203 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4204 if test "$ac_cv_struct_tm_zone" = yes; then
4205 { test "$extra_verbose" = "yes" && cat << \EOF
4206 Defining HAVE_TM_ZONE
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_TM_ZONE 1
4214 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4215 echo "configure:4216: checking for tzname" >&5
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4221 #ifndef tzname /* For SGI. */
4222 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4230 ac_cv_var_tzname=yes
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4239 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4240 if test $ac_cv_var_tzname = yes; then
4241 { test "$extra_verbose" = "yes" && cat << \EOF
4242 Defining HAVE_TZNAME
4244 cat >> confdefs.h <<\EOF
4245 #define HAVE_TZNAME 1
4253 echo $ac_n "checking for working const""... $ac_c" 1>&6
4254 echo "configure:4255: checking for working const" >&5
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4262 /* Ultrix mips cc rejects this. */
4263 typedef int charset[2]; const charset x;
4264 /* SunOS 4.1.1 cc rejects this. */
4265 char const *const *ccp;
4267 /* NEC SVR4.0.2 mips cc rejects this. */
4268 struct point {int x, y;};
4269 static struct point const zero = {0,0};
4270 /* AIX XL C 1.02.0.0 rejects this.
4271 It does not let you subtract one const X* pointer from another in an arm
4272 of an if-expression whose if-part is not a constant expression */
4273 const char *g = "string";
4274 ccp = &g + (g ? g-g : 0);
4275 /* HPUX 7.0 cc rejects these. */
4278 ccp = (char const *const *) p;
4279 { /* SCO 3.2v4 cc rejects this. */
4281 char const *s = 0 ? (char *) 0 : (char const *) 0;
4285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4287 const int *foo = &x[0];
4290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4291 typedef const int *iptr;
4295 { /* AIX XL C 1.02.0.0 rejects this saying
4296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4297 struct s { int j; const int *ap[3]; };
4298 struct s *b; b->j = 5;
4300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4306 if { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4317 echo "$ac_t""$ac_cv_c_const" 1>&6
4318 if test $ac_cv_c_const = no; then
4319 { test "$extra_verbose" = "yes" && cat << \EOF
4322 cat >> confdefs.h <<\EOF
4330 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4331 echo "configure:4332: checking whether ${MAKE-make} sets \${MAKE}" >&5
4332 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4334 cat > conftestmake <<\EOF
4336 @echo 'ac_maketemp="${MAKE}"'
4338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4339 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4340 if test -n "$ac_maketemp"; then
4341 eval ac_cv_prog_make_${ac_make}_set=yes
4343 eval ac_cv_prog_make_${ac_make}_set=no
4346 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4350 echo "$ac_t""no" 1>&6
4351 SET_MAKE="MAKE=${MAKE-make}"
4355 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4356 echo "configure:4357: checking whether byte ordering is bigendian" >&5
4358 ac_cv_c_bigendian=unknown
4359 # See if sys/param.h defines the BYTE_ORDER macro.
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <sys/types.h>
4364 #include <sys/param.h>
4367 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4372 if { (eval echo configure:4373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4374 # It does; now see whether it defined to BIG_ENDIAN or not.
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4382 #if BYTE_ORDER != BIG_ENDIAN
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4389 ac_cv_c_bigendian=yes
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 ac_cv_c_bigendian=no
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4402 if test $ac_cv_c_bigendian = unknown; then
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4407 /* Are we little or big endian? From Harbison&Steele. */
4411 char c[sizeof (long)];
4414 exit (u.c[sizeof (long) - 1] == 1);
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4419 ac_cv_c_bigendian=no
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 ac_cv_c_bigendian=yes
4430 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4431 if test $ac_cv_c_bigendian = yes; then
4432 { test "$extra_verbose" = "yes" && cat << \EOF
4433 Defining WORDS_BIGENDIAN
4435 cat >> confdefs.h <<\EOF
4436 #define WORDS_BIGENDIAN 1
4443 echo $ac_n "checking size of short""... $ac_c" 1>&6
4444 echo "configure:4445: checking size of short" >&5
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4450 #include <sys/types.h>
4453 FILE *f=fopen("conftestval", "w");
4455 fprintf(f, "%d\n", sizeof(short));
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4461 ac_cv_sizeof_short=`cat conftestval`
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 ac_cv_sizeof_short=0
4470 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4471 { test "$extra_verbose" = "yes" && cat << EOF
4472 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4474 cat >> confdefs.h <<EOF
4475 #define SIZEOF_SHORT $ac_cv_sizeof_short
4480 if test "$ac_cv_sizeof_short" = 0; then
4482 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4483 echo "*** PANIC *** Please examine config.log for compilation errors."
4486 echo $ac_n "checking size of int""... $ac_c" 1>&6
4487 echo "configure:4488: checking size of int" >&5
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4493 #include <sys/types.h>
4496 FILE *f=fopen("conftestval", "w");
4498 fprintf(f, "%d\n", sizeof(int));
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4504 ac_cv_sizeof_int=`cat conftestval`
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4513 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4514 { test "$extra_verbose" = "yes" && cat << EOF
4515 Defining SIZEOF_INT = $ac_cv_sizeof_int
4517 cat >> confdefs.h <<EOF
4518 #define SIZEOF_INT $ac_cv_sizeof_int
4523 echo $ac_n "checking size of long""... $ac_c" 1>&6
4524 echo "configure:4525: checking size of long" >&5
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4530 #include <sys/types.h>
4533 FILE *f=fopen("conftestval", "w");
4535 fprintf(f, "%d\n", sizeof(long));
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4541 ac_cv_sizeof_long=`cat conftestval`
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4550 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4551 { test "$extra_verbose" = "yes" && cat << EOF
4552 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4554 cat >> confdefs.h <<EOF
4555 #define SIZEOF_LONG $ac_cv_sizeof_long
4560 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4561 echo "configure:4562: checking size of long long" >&5
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4567 #include <sys/types.h>
4570 FILE *f=fopen("conftestval", "w");
4572 fprintf(f, "%d\n", sizeof(long long));
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4578 ac_cv_sizeof_long_long=`cat conftestval`
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 ac_cv_sizeof_long_long=0
4587 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4588 { test "$extra_verbose" = "yes" && cat << EOF
4589 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4591 cat >> confdefs.h <<EOF
4592 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4597 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4598 echo "configure:4599: checking size of void *" >&5
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4604 #include <sys/types.h>
4607 FILE *f=fopen("conftestval", "w");
4609 fprintf(f, "%d\n", sizeof(void *));
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4615 ac_cv_sizeof_void_p=`cat conftestval`
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 ac_cv_sizeof_void_p=0
4624 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4625 { test "$extra_verbose" = "yes" && cat << EOF
4626 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4628 cat >> confdefs.h <<EOF
4629 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4635 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4636 echo "configure:4637: checking for long file names" >&5
4638 ac_cv_sys_long_file_names=yes
4639 # Test for long file names in all the places we know might matter:
4640 # . the current directory, where building will happen
4641 # $prefix/lib where we will be installing things
4642 # $exec_prefix/lib likewise
4643 # eval it to expand exec_prefix.
4644 # $TMPDIR if set, where it might want to write temporary files
4645 # if $TMPDIR is not set:
4646 # /tmp where it might want to write temporary files
4649 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4650 ac_tmpdirs="$TMPDIR"
4652 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4654 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4655 test -d $ac_dir || continue
4656 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4657 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4658 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4659 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4660 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4661 ac_cv_sys_long_file_names=no
4662 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4665 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4668 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4669 if test $ac_cv_sys_long_file_names = yes; then
4670 { test "$extra_verbose" = "yes" && cat << \EOF
4671 Defining HAVE_LONG_FILE_NAMES
4673 cat >> confdefs.h <<\EOF
4674 #define HAVE_LONG_FILE_NAMES 1
4681 echo $ac_n "checking for sin""... $ac_c" 1>&6
4682 echo "configure:4683: checking for sin" >&5
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* System header to define __stub macros and hopefully few prototypes,
4688 which can conflict with char sin(); below. */
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 /* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4697 /* The GNU C library defines this for functions which it implements
4698 to always fail with ENOSYS. Some functions are actually named
4699 something starting with __ and the normal name is an alias. */
4700 #if defined (__stub_sin) || defined (__stub___sin)
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4710 eval "ac_cv_func_sin=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 eval "ac_cv_func_sin=no"
4719 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4723 echo "$ac_t""no" 1>&6
4725 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4726 echo "configure:4727: checking for sin in -lm" >&5
4727 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4729 xe_check_libs=" -lm "
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 eval "ac_cv_lib_$ac_lib_var=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 eval "ac_cv_lib_$ac_lib_var=no"
4754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4758 { test "$extra_verbose" = "yes" && cat << EOF
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_lib 1
4766 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4769 echo "$ac_t""no" 1>&6
4776 { test "$extra_verbose" = "yes" && cat << \EOF
4777 Defining LISP_FLOAT_TYPE
4779 cat >> confdefs.h <<\EOF
4780 #define LISP_FLOAT_TYPE 1
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4795 { test "$extra_verbose" = "yes" && cat << \EOF
4796 Defining HAVE_INVERSE_HYPERBOLIC
4798 cat >> confdefs.h <<\EOF
4799 #define HAVE_INVERSE_HYPERBOLIC 1
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4809 echo "checking type of mail spool file locking" 1>&6
4810 echo "configure:4811: checking type of mail spool file locking" >&5
4811 for ac_func in lockf flock
4813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4814 echo "configure:4815: checking for $ac_func" >&5
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char $ac_func(); below. */
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4829 /* The GNU C library defines this for functions which it implements
4830 to always fail with ENOSYS. Some functions are actually named
4831 something starting with __ and the normal name is an alias. */
4832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_func_$ac_func=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_func_$ac_func=no"
4851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4854 { test "$extra_verbose" = "yes" && cat << EOF
4855 Defining $ac_tr_func
4857 cat >> confdefs.h <<EOF
4858 #define $ac_tr_func 1
4863 echo "$ac_t""no" 1>&6
4867 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4868 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4869 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4870 if test -z "$mail_locking"; then
4871 case "$opsys" in cygwin* | mingw*)
4876 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4877 Defining MAIL_LOCK_LOCKF
4879 cat >> confdefs.h <<\EOF
4880 #define MAIL_LOCK_LOCKF 1
4884 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4885 Defining MAIL_LOCK_FLOCK
4887 cat >> confdefs.h <<\EOF
4888 #define MAIL_LOCK_FLOCK 1
4892 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4893 Defining MAIL_LOCK_LOCKING
4895 cat >> confdefs.h <<\EOF
4896 #define MAIL_LOCK_LOCKING 1
4900 elif test "$mail_locking" = "pop"; then
4903 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4904 Defining MAIL_LOCK_DOT
4906 cat >> confdefs.h <<\EOF
4907 #define MAIL_LOCK_DOT 1
4912 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4913 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4914 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4915 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4916 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4917 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4919 case "$opsys" in decosf*)
4921 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4922 echo "configure:4923: checking for cma_open in -lpthreads" >&5
4923 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4925 xe_check_libs=" -lpthreads "
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4945 eval "ac_cv_lib_$ac_lib_var=no"
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4953 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4954 { test "$extra_verbose" = "yes" && cat << EOF
4957 cat >> confdefs.h <<EOF
4958 #define $ac_tr_lib 1
4962 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4965 echo "$ac_t""no" 1>&6
4969 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4970 c_switch_site="$c_switch_site -threads" ;;
4973 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4974 echo "configure:4975: checking whether the -xildoff compiler flag is required" >&5
4975 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4976 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4977 then echo "$ac_t""no" 1>&6;
4978 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
4980 else echo "$ac_t""no" 1>&6
4983 if test "$opsys" = "sol2"; then
4984 if test "$os_release" -ge 56; then
4985 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4986 echo "configure:4987: checking for \"-z ignore\" linker flag" >&5
4987 case "`ld -h 2>&1`" in
4988 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4989 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4990 *) echo "$ac_t""no" 1>&6 ;;
4996 echo "checking "for specified window system"" 1>&6
4997 echo "configure:4998: checking "for specified window system"" >&5
5003 if test "$with_gnome" != "no"; then
5004 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5005 echo "configure:5006: checking for GNOME configuration script" >&5
5006 for possible in gnome-config
5008 possible_version=`${possible} --version 2> /dev/null`
5009 if test "x${possible_version}" != "x"; then
5010 GNOME_CONFIG="${possible}"
5016 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5019 if test "${GNOME_CONFIG}" != "no"; then
5020 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5021 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5022 { test "$extra_verbose" = "yes" && cat << \EOF
5025 cat >> confdefs.h <<\EOF
5026 #define HAVE_GNOME 1
5030 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5031 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5034 if test "$with_gtk" != "no";then
5035 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5036 echo "configure:5037: checking for GTK configuration script" >&5
5037 for possible in gtk12-config gtk14-config gtk-config
5039 possible_version=`${possible} --version 2> /dev/null`
5040 if test "x${possible_version}" != "x"; then
5041 GTK_CONFIG="${possible}"
5043 case "${possible_version}" in
5044 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5045 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5050 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5053 echo "$ac_t""${GTK_CONFIG}" 1>&6
5056 if test "${GTK_CONFIG}" != "no"; then
5057 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5058 echo "configure:5059: checking gtk version" >&5
5059 GTK_VERSION=`${GTK_CONFIG} --version`
5060 echo "$ac_t""${GTK_VERSION}" 1>&6
5062 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5063 echo "configure:5064: checking gtk libs" >&5
5064 GTK_LIBS=`${GTK_CONFIG} --libs`
5065 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5066 echo "$ac_t""${GTK_LIBS}" 1>&6
5068 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5069 echo "configure:5070: checking gtk cflags" >&5
5070 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5071 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5072 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5075 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5076 echo "configure:5077: checking for main in -lgdk_imlib" >&5
5077 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5079 xe_check_libs=" -lgdk_imlib "
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090 eval "ac_cv_lib_$ac_lib_var=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 eval "ac_cv_lib_$ac_lib_var=no"
5100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5101 echo "$ac_t""yes" 1>&6
5102 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5104 echo "$ac_t""no" 1>&6
5109 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5110 echo "configure:5111: checking for Imlib_init in -lImlib" >&5
5111 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5113 xe_check_libs=" -lImlib "
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5128 eval "ac_cv_lib_$ac_lib_var=yes"
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 eval "ac_cv_lib_$ac_lib_var=no"
5138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5139 echo "$ac_t""yes" 1>&6
5140 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5142 echo "$ac_t""no" 1>&6
5146 for ac_func in gdk_imlib_init
5148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5149 echo "configure:5150: checking for $ac_func" >&5
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_func_$ac_func=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_func_$ac_func=no"
5186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5189 { test "$extra_verbose" = "yes" && cat << EOF
5190 Defining $ac_tr_func
5192 cat >> confdefs.h <<EOF
5193 #define $ac_tr_func 1
5198 echo "$ac_t""no" 1>&6
5203 { test "$extra_verbose" = "yes" && cat << \EOF
5206 cat >> confdefs.h <<\EOF
5211 { test "$extra_verbose" = "yes" && cat << \EOF
5214 cat >> confdefs.h <<\EOF
5225 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5226 test "${with_toolbars}" != no && with_toolbars=gtk
5227 test "${with_menubars}" != "no" && with_menubars=gtk
5228 test "${with_dialogs}" != "no" && with_dialogs=gtk
5229 test "${with_widgets}" != "no" && with_widgets=gtk
5231 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5232 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5234 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5235 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5237 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5238 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5240 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5241 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5244 OLD_CFLAGS="${CFLAGS}"
5245 OLD_LDFLAGS="${LDFLAGS}"
5246 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5247 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5248 for ac_hdr in glade/glade.h glade.h
5250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_hdr" >&5
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5260 { (eval echo configure:5261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5262 if test -z "$ac_err"; then
5264 eval "ac_cv_header_$ac_safe=yes"
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 eval "ac_cv_header_$ac_safe=no"
5273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5276 { test "$extra_verbose" = "yes" && cat << EOF
5279 cat >> confdefs.h <<EOF
5280 #define $ac_tr_hdr 1
5285 echo "$ac_t""no" 1>&6
5290 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5291 echo "configure:5292: checking for main in -lxml" >&5
5292 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5294 xe_check_libs=" -lxml "
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 eval "ac_cv_lib_$ac_lib_var=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 eval "ac_cv_lib_$ac_lib_var=no"
5315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5316 echo "$ac_t""yes" 1>&6
5317 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5319 echo "$ac_t""no" 1>&6
5324 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5325 echo "configure:5326: checking for main in -lglade" >&5
5326 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5328 xe_check_libs=" -lglade "
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5350 echo "$ac_t""yes" 1>&6
5351 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5353 echo "$ac_t""no" 1>&6
5358 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5359 echo "configure:5360: checking for main in -lglade-gnome" >&5
5360 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5362 xe_check_libs=" -lglade-gnome "
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5371 if { (eval echo configure:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5373 eval "ac_cv_lib_$ac_lib_var=yes"
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5378 eval "ac_cv_lib_$ac_lib_var=no"
5383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5384 echo "$ac_t""yes" 1>&6
5385 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5387 echo "$ac_t""no" 1>&6
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 #include <glade/glade-xml.h>
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5399 echo "$ac_t""yes" 1>&6
5400 { test "$extra_verbose" = "yes" && cat << \EOF
5401 Defining LIBGLADE_XML_TXTDOMAIN = 1
5403 cat >> confdefs.h <<\EOF
5404 #define LIBGLADE_XML_TXTDOMAIN 1
5410 echo "$ac_t""no" 1>&6
5414 CFLAGS="${OLD_CFLAGS}"
5415 LDFLAGS="${OLD_LDFLAGS}"
5419 if test "$with_x11" != "no"; then
5420 test "$x_includes $x_libraries" != "NONE NONE" && \
5421 window_system=x11 with_x11=yes
5424 if test "$x_includes $x_libraries" = "NONE NONE" \
5425 -a -n "$OPENWINHOME" \
5426 -a "$OPENWINHOME" != "/usr/openwin" \
5427 -a -d "$OPENWINHOME"; then
5428 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5429 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5430 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5433 if test "$x_includes" = "NONE"; then
5434 for dir in "/usr/X11" "/usr/X11R6"; do
5435 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5439 if test "$x_libraries" = "NONE"; then
5440 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5441 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5445 # If we find X, set shell vars x_includes and x_libraries to the
5446 # paths, otherwise set no_x=yes.
5447 # Uses ac_ vars as temps to allow command line to override cache and checks.
5448 # --without-x overrides everything else, but does not touch the cache.
5449 echo $ac_n "checking for X""... $ac_c" 1>&6
5450 echo "configure:5451: checking for X" >&5
5452 # Check whether --with-x or --without-x was given.
5453 if test "${with_x+set}" = set; then
5458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5459 if test "x$with_x" = xno; then
5460 # The user explicitly disabled X.
5463 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5464 # Both variables are already set.
5468 # One or both of the vars are not set, and there is no cached value.
5469 ac_x_includes=NO ac_x_libraries=NO
5471 if mkdir conftestdir; then
5473 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5474 cat > Imakefile <<'EOF'
5476 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5478 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5480 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5481 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5482 for ac_extension in a so sl; do
5483 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5484 test -f $ac_im_libdir/libX11.$ac_extension; then
5485 ac_im_usrlibdir=$ac_im_libdir; break
5488 # Screen out bogus values from the imake configuration. They are
5489 # bogus both because they are the default anyway, and because
5490 # using them would break gcc on systems where it needs fixed includes.
5491 case "$ac_im_incroot" in
5493 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5495 case "$ac_im_usrlibdir" in
5497 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5504 if test "$ac_x_includes" = NO; then
5505 # Guess where to find include files, by looking for this one X11 .h file.
5506 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5508 # First, try using that file with no special directory specified.
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <$x_direct_test_include>
5514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5515 { (eval echo configure:5516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5517 if test -z "$ac_err"; then
5519 # We can compile using X headers with no special include directory.
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5526 # Look for the header file in a standard set of common directories.
5527 # Check X11 before X11Rn because it is often a symlink to the current release.
5530 /usr/X11R6/include \
5531 /usr/X11R5/include \
5532 /usr/X11R4/include \
5535 /usr/include/X11R6 \
5536 /usr/include/X11R5 \
5537 /usr/include/X11R4 \
5539 /usr/local/X11/include \
5540 /usr/local/X11R6/include \
5541 /usr/local/X11R5/include \
5542 /usr/local/X11R4/include \
5544 /usr/local/include/X11 \
5545 /usr/local/include/X11R6 \
5546 /usr/local/include/X11R5 \
5547 /usr/local/include/X11R4 \
5551 /usr/XFree86/include/X11 \
5554 /usr/local/include \
5555 /usr/unsupported/include \
5556 /usr/athena/include \
5557 /usr/local/x11r5/include \
5558 /usr/lpp/Xamples/include \
5560 /usr/openwin/include \
5561 /usr/openwin/share/include \
5564 if test -r "$ac_dir/$x_direct_test_include"; then
5565 ac_x_includes=$ac_dir
5571 fi # $ac_x_includes = NO
5573 if test "$ac_x_libraries" = NO; then
5574 # Check for the libraries.
5576 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5577 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5579 # See if we find them without any special options.
5580 # Don't add to $LIBS permanently.
5581 ac_save_LIBS="$LIBS"
5582 LIBS="-l$x_direct_test_library $LIBS"
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5588 ${x_direct_test_function}()
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 LIBS="$ac_save_LIBS"
5594 # We can link X programs with no special library path.
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 LIBS="$ac_save_LIBS"
5601 # First see if replacing the include by lib works.
5602 # Check X11 before X11Rn because it is often a symlink to the current release.
5603 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5614 /usr/local/X11/lib \
5615 /usr/local/X11R6/lib \
5616 /usr/local/X11R5/lib \
5617 /usr/local/X11R4/lib \
5619 /usr/local/lib/X11 \
5620 /usr/local/lib/X11R6 \
5621 /usr/local/lib/X11R5 \
5622 /usr/local/lib/X11R4 \
5626 /usr/XFree86/lib/X11 \
5630 /usr/unsupported/lib \
5632 /usr/local/x11r5/lib \
5633 /usr/lpp/Xamples/lib \
5637 /usr/openwin/share/lib \
5640 for ac_extension in a so sl; do
5641 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5642 ac_x_libraries=$ac_dir
5649 fi # $ac_x_libraries = NO
5651 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5652 # Didn't find X anywhere. Cache the known absence of X.
5653 ac_cv_have_x="have_x=no"
5655 # Record where we found X for the cache.
5656 ac_cv_have_x="have_x=yes \
5657 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5660 eval "$ac_cv_have_x"
5663 if test "$have_x" != yes; then
5664 echo "$ac_t""$have_x" 1>&6
5667 # If each of the values was on the command line, it overrides each guess.
5668 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5669 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5670 # Update the cache value to reflect the command line values.
5671 ac_cv_have_x="have_x=yes \
5672 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5673 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5676 if test "$no_x" = yes; then
5677 # Not all programs may use this symbol, but it does not hurt to define it.
5678 { test "$extra_verbose" = "yes" && cat << \EOF
5679 Defining X_DISPLAY_MISSING
5681 cat >> confdefs.h <<\EOF
5682 #define X_DISPLAY_MISSING 1
5686 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5688 if test -n "$x_includes"; then
5689 X_CFLAGS="$X_CFLAGS -I$x_includes"
5692 # It would also be nice to do this for all -L options, not just this one.
5693 if test -n "$x_libraries"; then
5694 X_LIBS="$X_LIBS -L$x_libraries"
5695 # For Solaris; some versions of Sun CC require a space after -R and
5696 # others require no space. Words are not sufficient . . . .
5697 case "`(uname -sr) 2>/dev/null`" in
5699 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5700 echo "configure:5701: checking whether -R must be followed by a space" >&5
5701 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714 echo "configure: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5720 if test $ac_R_nospace = yes; then
5721 echo "$ac_t""no" 1>&6
5722 X_LIBS="$X_LIBS -R$x_libraries"
5724 LIBS="$ac_xsave_LIBS -R $x_libraries"
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5733 if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5743 if test $ac_R_space = yes; then
5744 echo "$ac_t""yes" 1>&6
5745 X_LIBS="$X_LIBS -R $x_libraries"
5747 echo "$ac_t""neither works" 1>&6
5750 LIBS="$ac_xsave_LIBS"
5754 # Check for system-dependent libraries X programs must link with.
5755 # Do this before checking for the system-independent R6 libraries
5756 # (-lICE), since we may need -lsocket or whatever for X linking.
5758 if test "$ISC" = yes; then
5759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5761 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5762 # libraries were built with DECnet support. And karl@cs.umb.edu says
5763 # the Alpha needs dnet_stub (dnet does not exist).
5764 if test "$with_dnet" = "no" ; then
5765 ac_cv_lib_dnet_dnet_ntoa=no
5768 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5769 echo "configure:5770: checking for dnet_ntoa in -ldnet" >&5
5770 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5772 xe_check_libs=" -ldnet "
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 eval "ac_cv_lib_$ac_lib_var=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 eval "ac_cv_lib_$ac_lib_var=no"
5797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5798 echo "$ac_t""yes" 1>&6
5799 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5801 echo "$ac_t""no" 1>&6
5806 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5808 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5809 echo "configure:5810: checking for dnet_ntoa in -ldnet_stub" >&5
5810 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5812 xe_check_libs=" -ldnet_stub "
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5838 echo "$ac_t""yes" 1>&6
5839 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5841 echo "$ac_t""no" 1>&6
5847 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5848 # to get the SysV transport functions.
5849 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5851 # The nsl library prevents programs from opening the X display
5852 # on Irix 5.2, according to dickey@clark.net.
5853 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5854 echo "configure:5855: checking for gethostbyname" >&5
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char gethostbyname(); below. */
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5865 char gethostbyname();
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5882 eval "ac_cv_func_gethostbyname=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 eval "ac_cv_func_gethostbyname=no"
5891 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5895 echo "$ac_t""no" 1>&6
5898 if test $ac_cv_func_gethostbyname = no; then
5900 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5901 echo "configure:5902: checking for gethostbyname in -lnsl" >&5
5902 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5904 xe_check_libs=" -lnsl "
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5911 char gethostbyname();
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5919 eval "ac_cv_lib_$ac_lib_var=yes"
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5924 eval "ac_cv_lib_$ac_lib_var=no"
5929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5930 echo "$ac_t""yes" 1>&6
5931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5933 echo "$ac_t""no" 1>&6
5939 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5940 # socket/setsockopt and other routines are undefined under SCO ODT
5941 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5942 # on later versions), says simon@lia.di.epfl.ch: it contains
5943 # gethostby* variants that don't use the nameserver (or something).
5944 # -lsocket must be given before -lnsl if both are needed.
5945 # We assume that if connect needs -lnsl, so does gethostbyname.
5946 echo $ac_n "checking for connect""... $ac_c" 1>&6
5947 echo "configure:5948: checking for connect" >&5
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char connect(); below. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 /* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5962 /* The GNU C library defines this for functions which it implements
5963 to always fail with ENOSYS. Some functions are actually named
5964 something starting with __ and the normal name is an alias. */
5965 #if defined (__stub_connect) || defined (__stub___connect)
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 eval "ac_cv_func_connect=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_func_connect=no"
5984 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5985 echo "$ac_t""yes" 1>&6
5988 echo "$ac_t""no" 1>&6
5991 if test $ac_cv_func_connect = no; then
5993 xe_msg_checking="for connect in -lsocket"
5994 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5995 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5996 echo "configure:5997: checking "$xe_msg_checking"" >&5
5997 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5999 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* Override any gcc2 internal prototype to avoid an error. */
6004 /* We use char because int might match the return type of a gcc2
6005 builtin and then its argument prototype would still apply. */
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6014 eval "ac_cv_lib_$ac_lib_var=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6019 eval "ac_cv_lib_$ac_lib_var=no"
6024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6025 echo "$ac_t""yes" 1>&6
6026 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6028 echo "$ac_t""no" 1>&6
6034 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6035 echo $ac_n "checking for remove""... $ac_c" 1>&6
6036 echo "configure:6037: checking for remove" >&5
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char remove(); below. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_remove) || defined (__stub___remove)
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 eval "ac_cv_func_remove=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_func_remove=no"
6073 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6074 echo "$ac_t""yes" 1>&6
6077 echo "$ac_t""no" 1>&6
6080 if test $ac_cv_func_remove = no; then
6082 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6083 echo "configure:6084: checking for remove in -lposix" >&5
6084 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6086 xe_check_libs=" -lposix "
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6101 eval "ac_cv_lib_$ac_lib_var=yes"
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6106 eval "ac_cv_lib_$ac_lib_var=no"
6111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6112 echo "$ac_t""yes" 1>&6
6113 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6115 echo "$ac_t""no" 1>&6
6121 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6122 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6123 echo "configure:6124: checking for shmat" >&5
6125 cat > conftest.$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6128 /* System header to define __stub macros and hopefully few prototypes,
6129 which can conflict with char shmat(); below. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6138 /* The GNU C library defines this for functions which it implements
6139 to always fail with ENOSYS. Some functions are actually named
6140 something starting with __ and the normal name is an alias. */
6141 #if defined (__stub_shmat) || defined (__stub___shmat)
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 eval "ac_cv_func_shmat=yes"
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 eval "ac_cv_func_shmat=no"
6160 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6164 echo "$ac_t""no" 1>&6
6167 if test $ac_cv_func_shmat = no; then
6169 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6170 echo "configure:6171: checking for shmat in -lipc" >&5
6171 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6173 xe_check_libs=" -lipc "
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_lib_$ac_lib_var=no"
6198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6199 echo "$ac_t""yes" 1>&6
6200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6202 echo "$ac_t""no" 1>&6
6209 # Check for libraries that X11R6 Xt/Xaw programs need.
6210 ac_save_LDFLAGS="$LDFLAGS"
6211 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6212 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6213 # check for ICE first), but we must link in the order -lSM -lICE or
6214 # we get undefined symbols. So assume we have SM if we have ICE.
6215 # These have to be linked with before -lX11, unlike the other
6216 # libraries we check for below, so use a different variable.
6217 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6219 xe_msg_checking="for IceConnectionNumber in -lICE"
6220 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6221 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6222 echo "configure:6223: checking "$xe_msg_checking"" >&5
6223 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6225 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char IceConnectionNumber();
6235 IceConnectionNumber()
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 eval "ac_cv_lib_$ac_lib_var=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_lib_$ac_lib_var=no"
6250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6251 echo "$ac_t""yes" 1>&6
6252 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6254 echo "$ac_t""no" 1>&6
6258 LDFLAGS="$ac_save_LDFLAGS"
6261 # Autoconf claims to find X library and include dirs for us.
6262 if test "$no_x" = "yes"
6263 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6264 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6269 if test "$with_x11" = "yes"; then
6270 { test "$extra_verbose" = "yes" && cat << \EOF
6271 Defining HAVE_X_WINDOWS
6273 cat >> confdefs.h <<\EOF
6274 #define HAVE_X_WINDOWS 1
6278 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6279 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6281 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6282 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6283 if test -d "$lib_dir" -a -d "$inc_dir"; then
6284 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6285 x_libraries="$lib_dir $x_libraries"
6286 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6288 case "$x_includes" in "$inc_dir"* ) ;; *)
6289 x_includes="$inc_dir $x_includes"
6290 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6295 for rel in "X11R6" "X11R5" "X11R4"; do
6296 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6297 if test -d "$lib_dir" -a -d "$inc_dir"; then
6298 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6299 x_libraries="$x_libraries $lib_dir"
6300 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6302 case "$x_includes" in "$inc_dir"* ) ;; *)
6303 x_includes="$x_includes $inc_dir"
6304 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6310 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 ;;
6313 ld_switch_x_site="$X_LIBS"
6316 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6317 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6318 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6320 runpath="" runpath_dirs=""
6321 if test -n "$LD_RUN_PATH"; then
6322 runpath="$LD_RUN_PATH"
6323 elif test "$GCC" = "yes"; then
6324 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6325 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6326 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6327 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6328 case "$arg" in P,* | -L* | -R* )
6329 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6331 xe_runpath_dir="$dir"
6332 test "$xe_runpath_dir" != "/lib" -a \
6333 "$xe_runpath_dir" != "/usr/lib" -a \
6334 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6335 eval "$xe_add_unique_runpath_dir"
6340 ld_switch_run="$ld_switch_run_save"
6343 for arg in $ld_switch_site $ld_switch_x_site; do
6344 case "$arg" in -L*) {
6345 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6346 test "$xe_runpath_dir" != "/lib" -a \
6347 "$xe_runpath_dir" != "/usr/lib" -a \
6348 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6349 eval "$xe_add_unique_runpath_dir"
6352 if test "$opsys $need_motif" = "sol2 yes"; then
6353 xe_runpath_dir="/opt/SUNWdt/lib";
6354 eval "$xe_add_unique_runpath_dir";
6357 if test -n "$runpath"; then
6358 ld_switch_run="${dash_r}${runpath}"
6360 if test "$GCC" = "yes"; then
6361 set x $ld_switch_run; shift; ld_switch_run=""
6362 while test -n "$1"; do
6364 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6365 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6367 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6372 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6377 if test "$extra_verbose" = "yes"; then
6378 echo; echo "X11 compilation variables:"
6379 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6384 if test "$x_includes" != NONE; then
6385 for i in $x_includes; do
6386 if test -d "$i/bitmaps"; then
6387 bitmapdirs="$i/bitmaps:$bitmapdirs"
6389 if test -d "$i/X11/bitmaps"; then
6390 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6393 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6395 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6396 Defining BITMAPDIR = "$bitmapdirs"
6398 cat >> confdefs.h <<EOF
6399 #define BITMAPDIR "$bitmapdirs"
6404 echo "checking for X defines extracted by xmkmf" 1>&6
6405 echo "configure:6406: checking for X defines extracted by xmkmf" >&5
6407 if mkdir conftestdir; then
6409 cat > Imakefile <<'EOF'
6411 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6413 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6415 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6419 for word in $xmkmf_defines; do
6423 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6425 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6428 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6429 if test "$val" = "1"
6430 then { test "$extra_verbose" = "yes" && cat << EOF
6433 cat >> confdefs.h <<EOF
6438 else { test "$extra_verbose" = "yes" && cat << EOF
6439 Defining $sym = $val
6441 cat >> confdefs.h <<EOF
6452 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6453 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6454 echo "configure:6455: checking for X11/Intrinsic.h" >&5
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 #include <X11/Intrinsic.h>
6461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6462 { (eval echo configure:6463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6464 if test -z "$ac_err"; then
6466 eval "ac_cv_header_$ac_safe=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 eval "ac_cv_header_$ac_safe=no"
6475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6479 echo "$ac_t""no" 1>&6
6480 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6485 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6486 echo "configure:6487: checking for XOpenDisplay in -lX11" >&5
6487 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6489 xe_check_libs=" -lX11 "
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6496 char XOpenDisplay();
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504 eval "ac_cv_lib_$ac_lib_var=yes"
6506 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6509 eval "ac_cv_lib_$ac_lib_var=no"
6514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6515 echo "$ac_t""yes" 1>&6
6518 echo "$ac_t""no" 1>&6
6522 if test "$have_lib_x11" != "yes"; then
6524 xe_msg_checking="for XGetFontProperty in -lX11"
6525 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6526 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6527 echo "configure:6528: checking "$xe_msg_checking"" >&5
6528 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6530 xe_check_libs=" -lX11 -b i486-linuxaout"
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char XGetFontProperty();
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6545 eval "ac_cv_lib_$ac_lib_var=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 eval "ac_cv_lib_$ac_lib_var=no"
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6556 echo "$ac_t""yes" 1>&6
6557 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6559 echo "$ac_t""no" 1>&6
6560 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6566 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6569 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6570 echo "configure:6571: checking for XShapeSelectInput in -lXext" >&5
6571 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6573 xe_check_libs=" -lXext "
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6580 char XShapeSelectInput();
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6588 eval "ac_cv_lib_$ac_lib_var=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_lib_$ac_lib_var=no"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6599 echo "$ac_t""yes" 1>&6
6600 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6602 echo "$ac_t""no" 1>&6
6608 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6609 echo "configure:6610: checking for XtOpenDisplay in -lXt" >&5
6610 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6612 xe_check_libs=" -lXt "
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char XtOpenDisplay();
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 eval "ac_cv_lib_$ac_lib_var=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_lib_$ac_lib_var=no"
6637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6638 echo "$ac_t""yes" 1>&6
6639 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6641 echo "$ac_t""no" 1>&6
6642 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6647 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6648 echo "configure:6649: checking the version of X11 being used" >&5
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 #include <X11/Intrinsic.h>
6653 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6657 ./conftest foobar; x11_release=$?
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6666 echo "$ac_t""R${x11_release}" 1>&6
6667 { test "$extra_verbose" = "yes" && cat << EOF
6668 Defining THIS_IS_X11R${x11_release}
6670 cat >> confdefs.h <<EOF
6671 #define THIS_IS_X11R${x11_release} 1
6676 if test "${x11_release}" = "4"; then
6677 case "$with_widgets" in
6678 "" | "no") with_widgets=no ;;
6679 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6683 for ac_func in XConvertCase
6685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_func" >&5
6688 cat > conftest.$ac_ext <<EOF
6689 #line 6690 "configure"
6690 #include "confdefs.h"
6691 /* System header to define __stub macros and hopefully few prototypes,
6692 which can conflict with char $ac_func(); below. */
6694 /* Override any gcc2 internal prototype to avoid an error. */
6695 /* We use char because int might match the return type of a gcc2
6696 builtin and then its argument prototype would still apply. */
6701 /* The GNU C library defines this for functions which it implements
6702 to always fail with ENOSYS. Some functions are actually named
6703 something starting with __ and the normal name is an alias. */
6704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 eval "ac_cv_func_$ac_func=yes"
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6719 eval "ac_cv_func_$ac_func=no"
6723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6726 { test "$extra_verbose" = "yes" && cat << EOF
6727 Defining $ac_tr_func
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_func 1
6735 echo "$ac_t""no" 1>&6
6740 for ac_hdr in X11/Xlocale.h
6742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6744 echo "configure:6745: checking for $ac_hdr" >&5
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6752 { (eval echo configure:6753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6754 if test -z "$ac_err"; then
6756 eval "ac_cv_header_$ac_safe=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_header_$ac_safe=no"
6765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6768 { test "$extra_verbose" = "yes" && cat << EOF
6771 cat >> confdefs.h <<EOF
6772 #define $ac_tr_hdr 1
6777 echo "$ac_t""no" 1>&6
6782 for ac_func in XRegisterIMInstantiateCallback
6784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6785 echo "configure:6786: checking for $ac_func" >&5
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func(); below. */
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6800 /* The GNU C library defines this for functions which it implements
6801 to always fail with ENOSYS. Some functions are actually named
6802 something starting with __ and the normal name is an alias. */
6803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 eval "ac_cv_func_$ac_func=yes"
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 eval "ac_cv_func_$ac_func=no"
6822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6825 { test "$extra_verbose" = "yes" && cat << EOF
6826 Defining $ac_tr_func
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_func 1
6834 echo "$ac_t""no" 1>&6
6838 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6839 echo "configure:6840: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6844 #define NeedFunctionPrototypes 1
6845 #include <X11/Xlib.h>
6846 extern Bool XRegisterIMInstantiateCallback(
6847 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6853 if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6855 echo "$ac_t""yes" 1>&6
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 echo "$ac_t""no" 1>&6
6861 { test "$extra_verbose" = "yes" && cat << \EOF
6862 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6864 cat >> confdefs.h <<\EOF
6865 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6872 test -z "$with_xmu" && {
6873 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6874 echo "configure:6875: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6875 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6877 xe_check_libs=" -lXmu "
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char XmuReadBitmapDataFromFile();
6887 XmuReadBitmapDataFromFile()
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_lib_$ac_lib_var=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_lib_$ac_lib_var=no"
6902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6903 echo "$ac_t""yes" 1>&6
6906 echo "$ac_t""no" 1>&6
6911 if test "$with_xmu" = "no"; then
6912 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6913 echo " xemacs will be linked with \"xmu.o\""
6916 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6917 { test "$extra_verbose" = "yes" && cat << \EOF
6920 cat >> confdefs.h <<\EOF
6928 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6929 echo "configure:6930: checking for main in -lXbsd" >&5
6930 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6932 xe_check_libs=" -lXbsd "
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6941 if { (eval echo configure:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 eval "ac_cv_lib_$ac_lib_var=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 eval "ac_cv_lib_$ac_lib_var=no"
6953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6954 echo "$ac_t""yes" 1>&6
6955 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6957 echo "$ac_t""no" 1>&6
6962 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6963 if test "$GCC" = "yes"; then
6964 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6965 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6968 "xlc" ) CC="xlc_r" ;;
6969 "xlC" ) CC="xlC_r" ;;
6976 if test "$with_msw" != "no"; then
6977 echo "checking for MS-Windows" 1>&6
6978 echo "configure:6979: checking for MS-Windows" >&5
6980 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6981 echo "configure:6982: checking for main in -lgdi32" >&5
6982 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6984 xe_check_libs=" -lgdi32 "
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6995 eval "ac_cv_lib_$ac_lib_var=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 eval "ac_cv_lib_$ac_lib_var=no"
7005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7006 echo "$ac_t""yes" 1>&6
7009 echo "$ac_t""no" 1>&6
7013 if test "$with_msw" = "yes"; then
7014 { test "$extra_verbose" = "yes" && cat << \EOF
7015 Defining HAVE_MS_WINDOWS
7017 cat >> confdefs.h <<\EOF
7018 #define HAVE_MS_WINDOWS 1
7023 if test "$with_netinstall" = "yes"; then
7024 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7025 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7026 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7029 install_pp="$blddir/lib-src/installexe.sh"
7030 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
7031 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7032 if test "$window_system" != x11; then
7034 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7035 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7036 echo " xemacs will be linked with \"scrollbar-msw.o\""
7038 test "$with_menubars" != "no" && with_menubars=msw \
7039 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7040 echo " xemacs will be linked with \"menubar-msw.o\""
7042 test "$with_toolbars" != "no" && with_toolbars=msw \
7043 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7044 echo " xemacs will be linked with \"toolbar-msw.o\""
7046 test "$with_dialogs" != "no" && with_dialogs=msw \
7047 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7048 echo " xemacs will be linked with \"dialog-msw.o\""
7050 test "$with_widgets" != "no" && with_widgets=msw
7052 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7053 echo " xemacs will be linked with \"scrollbar-msw.o\""
7055 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7056 echo " xemacs will be linked with \"menubar-msw.o\""
7058 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7059 echo " xemacs will be linked with \"toolbar-msw.o\""
7061 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7062 echo " xemacs will be linked with \"dialog-msw.o\""
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7069 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7073 { test "$extra_verbose" = "yes" && cat << \EOF
7074 Defining HAVE_MSG_SELECT
7076 cat >> confdefs.h <<\EOF
7077 #define HAVE_MSG_SELECT 1
7083 echo "configure: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7087 with_file_coding=yes
7088 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
7089 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\""
7096 test -z "$window_system" && window_system="none"
7098 if test "$window_system" = "none"; then
7099 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7101 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7102 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7104 eval "with_${feature}=no"
7107 test -z "$with_toolbars" && with_toolbars=yes
7110 if test "$with_msw" != "yes"; then
7111 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7113 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7114 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7116 eval "with_${feature}=no"
7122 if test "$with_x11" != "yes"; then
7123 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7125 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7126 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7128 eval "with_${feature}=no"
7132 if test "$with_x11" = "yes"; then
7133 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7134 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7135 echo "configure:7136: checking for X11/extensions/shape.h" >&5
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 #include <X11/extensions/shape.h>
7142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7143 { (eval echo configure:7144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7145 if test -z "$ac_err"; then
7147 eval "ac_cv_header_$ac_safe=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 eval "ac_cv_header_$ac_safe=no"
7156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7159 { test "$extra_verbose" = "yes" && cat << \EOF
7160 Defining HAVE_BALLOON_HELP
7162 cat >> confdefs.h <<\EOF
7163 #define HAVE_BALLOON_HELP 1
7167 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7168 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7171 echo "$ac_t""no" 1>&6
7178 case "$window_system" in
7179 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7180 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7183 test "$with_gnome" = "yes" && echo " Using GNOME."
7184 test "$with_gnome" = "no" && echo " Using GTK."
7186 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7189 case "$x_libraries" in *X11R4* )
7190 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7191 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7194 echo "checking for WM_COMMAND option" 1>&6
7195 echo "configure:7196: checking for WM_COMMAND option" >&5;
7196 if test "$with_wmcommand" != "no"; then
7197 { test "$extra_verbose" = "yes" && cat << \EOF
7198 Defining HAVE_WMCOMMAND
7200 cat >> confdefs.h <<\EOF
7201 #define HAVE_WMCOMMAND 1
7207 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7208 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7209 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7210 echo "configure:7211: checking for X11/Xauth.h" >&5
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <X11/Xauth.h>
7217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7218 { (eval echo configure:7219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7220 if test -z "$ac_err"; then
7222 eval "ac_cv_header_$ac_safe=yes"
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 eval "ac_cv_header_$ac_safe=no"
7231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7235 echo "$ac_t""no" 1>&6
7239 test -z "$with_xauth" && {
7240 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7241 echo "configure:7242: checking for XauGetAuthByAddr in -lXau" >&5
7242 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7244 xe_check_libs=" -lXau "
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char XauGetAuthByAddr();
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7259 eval "ac_cv_lib_$ac_lib_var=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 eval "ac_cv_lib_$ac_lib_var=no"
7269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7270 echo "$ac_t""yes" 1>&6
7273 echo "$ac_t""no" 1>&6
7278 test -z "$with_xauth" && with_xauth=yes
7279 if test "$with_xauth" = "yes"; then
7280 { test "$extra_verbose" = "yes" && cat << \EOF
7283 cat >> confdefs.h <<\EOF
7284 #define HAVE_XAUTH 1
7290 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
7298 if test "$with_tooltalk" != "no" ; then
7299 for dir in "" "Tt/" "desktop/" ; do
7300 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7301 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7302 echo "configure:7303: checking for ${dir}tt_c.h" >&5
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 #include <${dir}tt_c.h>
7309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7310 { (eval echo configure:7311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7312 if test -z "$ac_err"; then
7314 eval "ac_cv_header_$ac_safe=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 eval "ac_cv_header_$ac_safe=no"
7323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 tt_c_h_file="${dir}tt_c.h"; break
7327 echo "$ac_t""no" 1>&6
7331 if test -z "$tt_c_h_file"; then
7332 if test "$with_tooltalk" = "yes"; then
7333 (echo "$progname: Usage error:"
7334 echo " " "Unable to find required tooltalk header files."
7335 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7340 if test "$with_tooltalk" != "no" ; then
7341 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7343 xe_msg_checking="for tt_message_create in -ltt"
7344 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7345 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7346 echo "configure:7347: checking "$xe_msg_checking"" >&5
7347 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7349 xe_check_libs=" -ltt $extra_libs"
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7356 char tt_message_create();
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 eval "ac_cv_lib_$ac_lib_var=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_lib_$ac_lib_var=no"
7374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7375 echo "$ac_t""yes" 1>&6
7376 tt_libs="-ltt $extra_libs"; break
7378 echo "$ac_t""no" 1>&6
7384 if test -z "$tt_libs"; then
7385 if test "$with_tooltalk" = "yes"; then
7386 (echo "$progname: Usage error:"
7387 echo " " "Unable to find required tooltalk libraries."
7388 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7393 test -z "$with_tooltalk" && with_tooltalk=yes
7394 if test "$with_tooltalk" = "yes"; then
7395 { test "$extra_verbose" = "yes" && cat << \EOF
7398 cat >> confdefs.h <<\EOF
7403 { test "$extra_verbose" = "yes" && cat << EOF
7404 Defining TT_C_H_FILE = "$tt_c_h_file"
7406 cat >> confdefs.h <<EOF
7407 #define TT_C_H_FILE "$tt_c_h_file"
7411 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7412 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7413 echo " xemacs will be linked with \"tooltalk.o\""
7417 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7418 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7419 echo "configure:7420: checking for Dt/Dt.h" >&5
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7427 { (eval echo configure:7428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7429 if test -z "$ac_err"; then
7431 eval "ac_cv_header_$ac_safe=yes"
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 eval "ac_cv_header_$ac_safe=no"
7440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7444 echo "$ac_t""no" 1>&6
7448 test -z "$with_cde" && {
7449 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7450 echo "configure:7451: checking for DtDndDragStart in -lDtSvc" >&5
7451 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7453 xe_check_libs=" -lDtSvc "
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char DtDndDragStart();
7466 if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 eval "ac_cv_lib_$ac_lib_var=yes"
7470 echo "configure: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7473 eval "ac_cv_lib_$ac_lib_var=no"
7478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7479 echo "$ac_t""yes" 1>&6
7482 echo "$ac_t""no" 1>&6
7487 test -z "$with_cde" && with_cde=yes
7488 if test "$with_dragndrop" = no; then
7489 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7492 if test "$with_cde" = "yes" ; then
7493 { test "$extra_verbose" = "yes" && cat << \EOF
7496 cat >> confdefs.h <<\EOF
7501 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7502 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7503 with_tooltalk=yes # CDE requires Tooltalk
7504 need_motif=yes # CDE requires Motif
7507 test "$window_system" != "x11" && with_offix=no
7508 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7509 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7512 if test "$with_dragndrop" = no; then
7513 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7516 if test "$with_cde" = yes; then
7517 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7520 test -z "$with_offix" && with_offix=no
7521 if test "$with_offix" = "yes"; then
7522 { test "$extra_verbose" = "yes" && cat << \EOF
7523 Defining HAVE_OFFIX_DND
7525 cat >> confdefs.h <<\EOF
7526 #define HAVE_OFFIX_DND 1
7530 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7531 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7533 if test "$with_gtk" = "yes"; then
7534 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7537 if test "$with_dragndrop" != "no" ; then
7538 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7539 echo "configure:7540: checking if drag and drop API is needed" >&5
7540 if test -n "$dragndrop_proto" ; then
7542 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7543 { test "$extra_verbose" = "yes" && cat << \EOF
7544 Defining HAVE_DRAGNDROP
7546 cat >> confdefs.h <<\EOF
7547 #define HAVE_DRAGNDROP 1
7551 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7554 echo "$ac_t""no" 1>&6
7558 echo "checking for LDAP" 1>&6
7559 echo "configure:7560: checking for LDAP" >&5
7560 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7561 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7562 echo "configure:7563: checking for ldap.h" >&5
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7570 { (eval echo configure:7571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7572 if test -z "$ac_err"; then
7574 eval "ac_cv_header_$ac_safe=yes"
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7580 eval "ac_cv_header_$ac_safe=no"
7583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7584 echo "$ac_t""yes" 1>&6
7587 echo "$ac_t""no" 1>&6
7591 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7592 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7593 echo "configure:7594: checking for lber.h" >&5
7595 cat > conftest.$ac_ext <<EOF
7596 #line 7597 "configure"
7597 #include "confdefs.h"
7600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7601 { (eval echo configure:7602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7603 if test -z "$ac_err"; then
7605 eval "ac_cv_header_$ac_safe=yes"
7608 echo "configure: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7611 eval "ac_cv_header_$ac_safe=no"
7614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7618 echo "$ac_t""no" 1>&6
7622 if test "$with_ldap" != "no"; then
7624 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7625 echo "configure:7626: checking for ldap_search in -lldap" >&5
7626 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7628 xe_check_libs=" -lldap "
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 eval "ac_cv_lib_$ac_lib_var=no"
7653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7654 echo "$ac_t""yes" 1>&6
7655 with_ldap_nolber=yes
7657 echo "$ac_t""no" 1>&6
7662 test "$with_ldap_nolber" = "no" && {
7663 xe_msg_checking="for ldap_open in -lldap"
7664 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7665 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7666 echo "configure:7667: checking "$xe_msg_checking"" >&5
7667 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7669 xe_check_libs=" -lldap -llber"
7670 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7684 eval "ac_cv_lib_$ac_lib_var=yes"
7686 echo "configure: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7689 eval "ac_cv_lib_$ac_lib_var=no"
7694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7695 echo "$ac_t""yes" 1>&6
7698 echo "$ac_t""no" 1>&6
7703 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7704 xe_msg_checking="for ldap_open in -lldap"
7705 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7706 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7707 echo "configure:7708: checking "$xe_msg_checking"" >&5
7708 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7710 xe_check_libs=" -lldap -llber -lkrb"
7711 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7714 /* Override any gcc2 internal prototype to avoid an error. */
7715 /* We use char because int might match the return type of a gcc2
7716 builtin and then its argument prototype would still apply. */
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 eval "ac_cv_lib_$ac_lib_var=yes"
7727 echo "configure: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7730 eval "ac_cv_lib_$ac_lib_var=no"
7735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7736 echo "$ac_t""yes" 1>&6
7739 echo "$ac_t""no" 1>&6
7744 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7745 xe_msg_checking="for ldap_open in -lldap"
7746 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7747 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7748 echo "configure:7749: checking "$xe_msg_checking"" >&5
7749 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7751 xe_check_libs=" -lldap -llber -lkrb -ldes"
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 eval "ac_cv_lib_$ac_lib_var=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_lib_$ac_lib_var=no"
7776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7777 echo "$ac_t""yes" 1>&6
7778 with_ldap_krbdes=yes
7780 echo "$ac_t""no" 1>&6
7785 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
7787 if test "$with_ldap" = "yes"; then
7788 { test "$extra_verbose" = "yes" && cat << \EOF
7791 cat >> confdefs.h <<\EOF
7796 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7797 echo " xemacs will be linked with \"eldap.o\""
7799 if test "$with_ldap_nolber" = "yes" ; then
7800 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7802 if test "$with_ldap_krb" = "yes" ; then
7803 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7805 if test "$with_ldap_krbdes" = "yes" ; then
7806 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7807 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7809 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7810 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7812 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7815 echo "configure:7816: checking for $ac_func" >&5
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7830 /* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 eval "ac_cv_func_$ac_func=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7848 eval "ac_cv_func_$ac_func=no"
7852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7853 echo "$ac_t""yes" 1>&6
7854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7855 { test "$extra_verbose" = "yes" && cat << EOF
7856 Defining $ac_tr_func
7858 cat >> confdefs.h <<EOF
7859 #define $ac_tr_func 1
7864 echo "$ac_t""no" 1>&6
7870 if test "$with_postgresql" != "no"; then
7871 echo "checking for PostgreSQL" 1>&6
7872 echo "configure:7873: checking for PostgreSQL" >&5
7874 for header_dir in "" "pgsql/" "postgresql/"; do
7875 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7876 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7877 echo "configure:7878: checking for ${header_dir}libpq-fe.h" >&5
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 #include <${header_dir}libpq-fe.h>
7884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7885 { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7887 if test -z "$ac_err"; then
7889 eval "ac_cv_header_$ac_safe=yes"
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7895 eval "ac_cv_header_$ac_safe=no"
7898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7902 echo "$ac_t""no" 1>&6
7907 test -n "$libpq_fe_h_file" && {
7908 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7909 echo "configure:7910: checking for PQconnectdb in -lpq" >&5
7910 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7912 xe_check_libs=" -lpq "
7913 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure"
7915 #include "confdefs.h"
7916 /* Override any gcc2 internal prototype to avoid an error. */
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7925 if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7927 eval "ac_cv_lib_$ac_lib_var=yes"
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7932 eval "ac_cv_lib_$ac_lib_var=no"
7937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7938 echo "$ac_t""yes" 1>&6
7941 echo "$ac_t""no" 1>&6
7946 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7948 { test "$extra_verbose" = "yes" && cat << \EOF
7949 Defining HAVE_POSTGRESQL
7951 cat >> confdefs.h <<\EOF
7952 #define HAVE_POSTGRESQL 1
7957 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7958 echo "configure:7959: checking for PQconnectStart in -lpq" >&5
7959 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7961 xe_check_libs=" -lpq "
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* Override any gcc2 internal prototype to avoid an error. */
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7968 char PQconnectStart();
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7976 eval "ac_cv_lib_$ac_lib_var=yes"
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 eval "ac_cv_lib_$ac_lib_var=no"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7987 echo "$ac_t""yes" 1>&6
7988 with_postgresqlv7=yes;
7989 { test "$extra_verbose" = "yes" && cat << \EOF
7990 Defining HAVE_POSTGRESQLV7
7992 cat >> confdefs.h <<\EOF
7993 #define HAVE_POSTGRESQLV7 1
7998 echo "$ac_t""no" 1>&6
8002 { test "$extra_verbose" = "yes" && cat << EOF
8003 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8005 cat >> confdefs.h <<EOF
8006 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8010 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8011 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8012 echo " xemacs will be linked with \"postgresql.o\""
8014 elif test "$with_postgresql" = "yes"; then
8015 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8020 if test "$window_system" != "none"; then
8021 echo "checking for graphics libraries" 1>&6
8022 echo "configure:8023: checking for graphics libraries" >&5
8025 if test -z "$with_xpm"; then
8026 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8027 echo "configure:8028: checking for Xpm - no older than 3.4f" >&5
8029 cat > conftest.$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8033 #include <X11/xpm.h>
8034 int main(int c, char **v) {
8036 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8037 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8041 ./conftest dummy_arg; xpm_status=$?;
8042 if test "$xpm_status" = "0"; then
8046 if test "$xpm_status" = "1"; then
8047 xpm_problem="Xpm library version and header file version don't match!"
8048 elif test "$xpm_status" = "2"; then
8049 xpm_problem="Xpm library version is too old!"
8051 xpm_problem="Internal xpm detection logic error!"
8054 *** WARNING *** $xpm_problem
8055 I'm not touching that with a 10-foot pole!
8056 If you really want to use the installed version of Xpm, rerun
8057 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8068 echo "$ac_t""$with_xpm" 1>&6
8070 if test "$with_xpm" = "yes"; then
8071 { test "$extra_verbose" = "yes" && cat << \EOF
8074 cat >> confdefs.h <<\EOF
8079 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8080 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8081 echo "configure:8082: checking for \"FOR_MSW\" xpm" >&5
8083 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8088 XpmCreatePixmapFromData()
8091 if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8095 echo "configure: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8102 echo "$ac_t""$xpm_for_msw" 1>&6
8103 if test "$xpm_for_msw" = "yes"; then
8104 { test "$extra_verbose" = "yes" && cat << \EOF
8107 cat >> confdefs.h <<\EOF
8115 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8116 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8117 echo "configure:8118: checking for compface.h" >&5
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 #include <compface.h>
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8129 eval "ac_cv_header_$ac_safe=yes"
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8135 eval "ac_cv_header_$ac_safe=no"
8138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8142 echo "$ac_t""no" 1>&6
8146 test -z "$with_xface" && {
8147 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8148 echo "configure:8149: checking for UnGenFace in -lcompface" >&5
8149 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8151 xe_check_libs=" -lcompface "
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 /* Override any gcc2 internal prototype to avoid an error. */
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 eval "ac_cv_lib_$ac_lib_var=yes"
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8171 eval "ac_cv_lib_$ac_lib_var=no"
8176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8177 echo "$ac_t""yes" 1>&6
8180 echo "$ac_t""no" 1>&6
8185 test -z "$with_xface" && with_xface=yes
8186 if test "$with_xface" = "yes"; then
8187 { test "$extra_verbose" = "yes" && cat << \EOF
8190 cat >> confdefs.h <<\EOF
8191 #define HAVE_XFACE 1
8195 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8198 if test "$with_gif" != "no"; then
8200 { test "$extra_verbose" = "yes" && cat << \EOF
8203 cat >> confdefs.h <<\EOF
8208 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8209 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8213 if test "$with_png $with_tiff" != "no no"; then
8215 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8216 echo "configure:8217: checking for inflate in -lc" >&5
8217 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8219 xe_check_libs=" -lc "
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_lib_$ac_lib_var=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_lib_$ac_lib_var=no"
8244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8245 echo "$ac_t""yes" 1>&6
8248 echo "$ac_t""no" 1>&6
8250 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8251 echo "configure:8252: checking for inflate in -lz" >&5
8252 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8254 xe_check_libs=" -lz "
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8280 echo "$ac_t""yes" 1>&6
8281 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8283 echo "$ac_t""no" 1>&6
8285 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8286 echo "configure:8287: checking for inflate in -lgz" >&5
8287 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8289 xe_check_libs=" -lgz "
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 eval "ac_cv_lib_$ac_lib_var=no"
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8315 echo "$ac_t""yes" 1>&6
8316 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8318 echo "$ac_t""no" 1>&6
8330 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8331 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8332 echo "configure:8333: checking for jpeglib.h" >&5
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8337 #include <jpeglib.h>
8339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8340 { (eval echo configure:8341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8342 if test -z "$ac_err"; then
8344 eval "ac_cv_header_$ac_safe=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8350 eval "ac_cv_header_$ac_safe=no"
8353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8357 echo "$ac_t""no" 1>&6
8361 test -z "$with_jpeg" && {
8362 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8363 echo "configure:8364: checking for jpeg_destroy_decompress in -ljpeg" >&5
8364 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8366 xe_check_libs=" -ljpeg "
8367 cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char jpeg_destroy_decompress();
8376 jpeg_destroy_decompress()
8379 if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8381 eval "ac_cv_lib_$ac_lib_var=yes"
8383 echo "configure: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8386 eval "ac_cv_lib_$ac_lib_var=no"
8391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8392 echo "$ac_t""yes" 1>&6
8395 echo "$ac_t""no" 1>&6
8400 test -z "$with_jpeg" && with_jpeg=yes
8401 if test "$with_jpeg" = "yes"; then
8402 { test "$extra_verbose" = "yes" && cat << \EOF
8405 cat >> confdefs.h <<\EOF
8410 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8414 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8415 echo "configure:8416: checking for pow" >&5
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 /* System header to define __stub macros and hopefully few prototypes,
8421 which can conflict with char pow(); below. */
8423 /* Override any gcc2 internal prototype to avoid an error. */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8430 /* The GNU C library defines this for functions which it implements
8431 to always fail with ENOSYS. Some functions are actually named
8432 something starting with __ and the normal name is an alias. */
8433 #if defined (__stub_pow) || defined (__stub___pow)
8441 if { (eval echo configure:8442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8443 eval "ac_cv_func_pow=yes"
8445 echo "configure: failed program was:" >&5
8446 cat conftest.$ac_ext >&5
8448 eval "ac_cv_func_pow=no"
8452 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8453 echo "$ac_t""yes" 1>&6
8456 echo "$ac_t""no" 1>&6
8460 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8461 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8462 echo "configure:8463: checking for png.h" >&5
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8470 { (eval echo configure:8471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8472 if test -z "$ac_err"; then
8474 eval "ac_cv_header_$ac_safe=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 eval "ac_cv_header_$ac_safe=no"
8483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8484 echo "$ac_t""yes" 1>&6
8487 echo "$ac_t""no" 1>&6
8491 test -z "$with_png" && {
8492 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8493 echo "configure:8494: checking for png_read_image in -lpng" >&5
8494 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8496 xe_check_libs=" -lpng "
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503 char png_read_image();
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_lib_$ac_lib_var=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_lib_$ac_lib_var=no"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8522 echo "$ac_t""yes" 1>&6
8525 echo "$ac_t""no" 1>&6
8530 if test -z "$with_png"; then
8531 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8532 echo "configure:8533: checking for workable png version information" >&5
8533 xe_check_libs="-lpng -lz"
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8538 int main(int c, char **v) {
8539 if (c == 1) return 0;
8540 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8541 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8545 ./conftest dummy_arg; png_status=$?;
8546 if test "$png_status" = "0"; then
8550 if test "$png_status" = "1"; then
8551 png_problem="PNG library version and header file don't match!"
8552 elif test "$png_status" = "2"; then
8553 png_problem="PNG library version too old (pre 1.0.2)!"
8556 *** WARNING *** $png_problem
8557 I'm not touching that with a 10-foot pole!
8558 If you really want to use the installed version of libPNG, rerun
8559 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8570 echo "$ac_t""$with_png" 1>&6
8572 if test "$with_png" = "yes"; then
8573 { test "$extra_verbose" = "yes" && cat << \EOF
8576 cat >> confdefs.h <<\EOF
8581 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8584 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8585 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8586 echo "configure:8587: checking for tiffio.h" >&5
8588 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8594 { (eval echo configure:8595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8596 if test -z "$ac_err"; then
8598 eval "ac_cv_header_$ac_safe=yes"
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 eval "ac_cv_header_$ac_safe=no"
8607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8608 echo "$ac_t""yes" 1>&6
8611 echo "$ac_t""no" 1>&6
8615 test -z "$with_tiff" && {
8616 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8617 echo "configure:8618: checking for TIFFClientOpen in -ltiff" >&5
8618 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8620 xe_check_libs=" -ltiff "
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char TIFFClientOpen();
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 eval "ac_cv_lib_$ac_lib_var=yes"
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 eval "ac_cv_lib_$ac_lib_var=no"
8645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8646 echo "$ac_t""yes" 1>&6
8649 echo "$ac_t""no" 1>&6
8654 test -z "$with_tiff" && with_tiff=yes
8655 if test "$with_tiff" = "yes"; then
8656 { test "$extra_verbose" = "yes" && cat << \EOF
8659 cat >> confdefs.h <<\EOF
8664 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8669 if test "$with_gtk" = "yes"; then
8670 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8671 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8672 echo "configure:8673: checking for compface.h" >&5
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <compface.h>
8679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8680 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8682 if test -z "$ac_err"; then
8684 eval "ac_cv_header_$ac_safe=yes"
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 eval "ac_cv_header_$ac_safe=no"
8693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8694 echo "$ac_t""yes" 1>&6
8697 echo "$ac_t""no" 1>&6
8701 test -z "$with_xface" && {
8702 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8703 echo "configure:8704: checking for UnGenFace in -lcompface" >&5
8704 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8706 xe_check_libs=" -lcompface "
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721 eval "ac_cv_lib_$ac_lib_var=yes"
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 eval "ac_cv_lib_$ac_lib_var=no"
8731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8732 echo "$ac_t""yes" 1>&6
8735 echo "$ac_t""no" 1>&6
8740 test -z "$with_xface" && with_xface=yes
8741 if test "$with_xface" = "yes"; then
8742 { test "$extra_verbose" = "yes" && cat << \EOF
8745 cat >> confdefs.h <<\EOF
8746 #define HAVE_XFACE 1
8750 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8756 if test "$with_x11" = "yes"; then
8758 echo "checking for X11 graphics libraries" 1>&6
8759 echo "configure:8760: checking for X11 graphics libraries" >&5
8761 echo "checking for the Athena widgets" 1>&6
8762 echo "configure:8763: checking for the Athena widgets" >&5
8764 case "$with_athena" in
8765 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8766 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8767 "next") athena_variant=neXtaw athena_3d=yes ;;
8768 "95") athena_variant=Xaw95 athena_3d=yes ;;
8769 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8770 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8773 if test "$athena_3d" = "no"; then
8775 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8776 echo "configure:8777: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8777 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8779 xe_check_libs=" -l$athena_variant "
8780 cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure"
8782 #include "confdefs.h"
8783 /* Override any gcc2 internal prototype to avoid an error. */
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8786 char XawScrollbarSetThumb();
8789 XawScrollbarSetThumb()
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794 eval "ac_cv_lib_$ac_lib_var=yes"
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 eval "ac_cv_lib_$ac_lib_var=no"
8804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8805 echo "$ac_t""yes" 1>&6
8807 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8808 echo "configure:8809: checking for threeDClassRec in -l$athena_variant" >&5
8809 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8811 xe_check_libs=" -l$athena_variant "
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 /* Override any gcc2 internal prototype to avoid an error. */
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8818 char threeDClassRec();
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8826 eval "ac_cv_lib_$ac_lib_var=yes"
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8831 eval "ac_cv_lib_$ac_lib_var=no"
8836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8837 echo "$ac_t""yes" 1>&6
8838 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8840 echo "$ac_t""no" 1>&6
8841 athena_lib=$athena_variant
8847 echo "$ac_t""no" 1>&6
8848 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8854 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8855 echo "configure:8856: checking for threeDClassRec in -l$athena_variant" >&5
8856 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8858 xe_check_libs=" -l$athena_variant "
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char threeDClassRec();
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8873 eval "ac_cv_lib_$ac_lib_var=yes"
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 eval "ac_cv_lib_$ac_lib_var=no"
8883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8884 echo "$ac_t""yes" 1>&6
8885 athena_lib=$athena_variant
8887 echo "$ac_t""no" 1>&6
8888 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8889 echo "configure:8890: checking for threeDClassRec in -lXaw" >&5
8890 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8892 xe_check_libs=" -lXaw "
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899 char threeDClassRec();
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 eval "ac_cv_lib_$ac_lib_var=yes"
8909 echo "configure: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8912 eval "ac_cv_lib_$ac_lib_var=no"
8917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8918 echo "$ac_t""yes" 1>&6
8920 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8923 echo "$ac_t""no" 1>&6
8924 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8933 if test "$athena_3d" = "no"; then
8934 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8935 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8936 echo "configure:8937: checking for X11/Xaw/ThreeD.h" >&5
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 #include <X11/Xaw/ThreeD.h>
8943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8944 { (eval echo configure:8945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8946 if test -z "$ac_err"; then
8948 eval "ac_cv_header_$ac_safe=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_header_$ac_safe=no"
8957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8958 echo "$ac_t""yes" 1>&6
8959 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8961 echo "$ac_t""no" 1>&6
8962 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8963 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8964 echo "configure:8965: checking for X11/Xaw/XawInit.h" >&5
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 #include <X11/Xaw/XawInit.h>
8971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8972 { (eval echo configure:8973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8974 if test -z "$ac_err"; then
8976 eval "ac_cv_header_$ac_safe=yes"
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8982 eval "ac_cv_header_$ac_safe=no"
8985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8986 echo "$ac_t""yes" 1>&6
8987 athena_h_path=X11/Xaw
8989 echo "$ac_t""no" 1>&6
8990 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8996 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8997 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8998 echo "configure:8999: checking for X11/$athena_variant/XawInit.h" >&5
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9003 #include <X11/$athena_variant/XawInit.h>
9005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9006 { (eval echo configure:9007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9008 if test -z "$ac_err"; then
9010 eval "ac_cv_header_$ac_safe=yes"
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9016 eval "ac_cv_header_$ac_safe=no"
9019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9022 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9023 echo "configure:9024: checking for X11/$athena_variant/ThreeD.h" >&5
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include <X11/$athena_variant/ThreeD.h>
9030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9031 { (eval echo configure:9032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9033 if test -z "$ac_err"; then
9035 eval "ac_cv_header_$ac_safe=yes"
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9041 eval "ac_cv_header_$ac_safe=no"
9044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9045 echo "$ac_t""yes" 1>&6
9046 athena_h_path=X11/$athena_variant
9048 echo "$ac_t""no" 1>&6
9052 echo "$ac_t""no" 1>&6
9056 if test -z "$athena_h_path"; then
9057 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9058 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9059 echo "configure:9060: checking for $athena_variant/XawInit.h" >&5
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <$athena_variant/XawInit.h>
9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9069 if test -z "$ac_err"; then
9071 eval "ac_cv_header_$ac_safe=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_header_$ac_safe=no"
9080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9081 echo "$ac_t""yes" 1>&6
9082 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9083 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9084 echo "configure:9085: checking for $athena_variant/ThreeD.h" >&5
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 #include <$athena_variant/ThreeD.h>
9091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9092 { (eval echo configure:9093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9094 if test -z "$ac_err"; then
9096 eval "ac_cv_header_$ac_safe=yes"
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9102 eval "ac_cv_header_$ac_safe=no"
9105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9106 echo "$ac_t""yes" 1>&6
9107 athena_h_path=$athena_variant
9109 echo "$ac_t""no" 1>&6
9113 echo "$ac_t""no" 1>&6
9118 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9119 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9120 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9121 echo "configure:9122: checking for X11/Xaw3d/XawInit.h" >&5
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 #include <X11/Xaw3d/XawInit.h>
9128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9129 { (eval echo configure:9130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9131 if test -z "$ac_err"; then
9133 eval "ac_cv_header_$ac_safe=yes"
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 eval "ac_cv_header_$ac_safe=no"
9142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9143 echo "$ac_t""yes" 1>&6
9144 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9145 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9146 echo "configure:9147: checking for X11/Xaw3d/ThreeD.h" >&5
9148 cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9151 #include <X11/Xaw3d/ThreeD.h>
9153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9154 { (eval echo configure:9155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9156 if test -z "$ac_err"; then
9158 eval "ac_cv_header_$ac_safe=yes"
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9164 eval "ac_cv_header_$ac_safe=no"
9167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9168 echo "$ac_t""yes" 1>&6
9170 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9171 athena_h_path=X11/Xaw3d
9174 echo "$ac_t""no" 1>&6
9178 echo "$ac_t""no" 1>&6
9183 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9184 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for Xaw3d/XawInit.h" >&5
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 #include <Xaw3d/XawInit.h>
9193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9196 if test -z "$ac_err"; then
9198 eval "ac_cv_header_$ac_safe=yes"
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9204 eval "ac_cv_header_$ac_safe=no"
9207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9210 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9211 echo "configure:9212: checking for Xaw3d/ThreeD.h" >&5
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #include <Xaw3d/ThreeD.h>
9218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9219 { (eval echo configure:9220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9221 if test -z "$ac_err"; then
9223 eval "ac_cv_header_$ac_safe=yes"
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9229 eval "ac_cv_header_$ac_safe=no"
9232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9233 echo "$ac_t""yes" 1>&6
9235 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9239 echo "$ac_t""no" 1>&6
9243 echo "$ac_t""no" 1>&6
9248 if test -z "$athena_h_path"; then
9249 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9250 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9251 echo "configure:9252: checking for X11/Xaw/ThreeD.h" >&5
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <X11/Xaw/ThreeD.h>
9258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9259 { (eval echo configure:9260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9261 if test -z "$ac_err"; then
9263 eval "ac_cv_header_$ac_safe=yes"
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9269 eval "ac_cv_header_$ac_safe=no"
9272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9273 echo "$ac_t""yes" 1>&6
9275 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9276 athena_h_path=X11/Xaw
9279 echo "$ac_t""no" 1>&6
9280 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9286 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9292 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9293 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9294 echo "configure:9295: checking for Xm/Xm.h" >&5
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9302 { (eval echo configure:9303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9304 if test -z "$ac_err"; then
9306 eval "ac_cv_header_$ac_safe=yes"
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9312 eval "ac_cv_header_$ac_safe=no"
9315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9318 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9319 echo "configure:9320: checking for XmStringFree in -lXm" >&5
9320 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9322 xe_check_libs=" -lXm "
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char XmStringFree();
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9337 eval "ac_cv_lib_$ac_lib_var=yes"
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9342 eval "ac_cv_lib_$ac_lib_var=no"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9348 echo "$ac_t""yes" 1>&6
9351 echo "$ac_t""no" 1>&6
9357 echo "$ac_t""no" 1>&6
9362 if test "$have_motif" = "yes"; then
9363 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9364 echo "configure:9365: checking for Lesstif" >&5
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9369 #ifdef LESSTIF_VERSION
9374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9375 egrep "yes" >/dev/null 2>&1; then
9384 echo "$ac_t""$have_lesstif" 1>&6
9389 case "$with_menubars" in "" | "yes" | "athena" )
9390 with_menubars="lucid" ;;
9392 case "$with_dialogs" in "" | "yes" | "lucid" )
9393 if test "$have_motif" = "yes"; then with_dialogs="motif"
9394 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9395 else with_dialogs=no
9398 case "$with_scrollbars" in "" | "yes" )
9399 with_scrollbars="lucid" ;;
9401 case "$with_widgets" in "" | "yes" | "lucid")
9402 if test "$have_motif" = "yes"; then with_widgets="motif"
9403 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9404 else with_widgets=no
9408 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9410 case "$all_widgets" in
9412 if test "$have_xaw" != "yes"; then
9413 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9416 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9418 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9420 { test "$extra_verbose" = "yes" && cat << EOF
9421 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9423 cat >> confdefs.h <<EOF
9424 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9428 { test "$extra_verbose" = "yes" && cat << EOF
9429 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9431 cat >> confdefs.h <<EOF
9432 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9436 { test "$extra_verbose" = "yes" && cat << EOF
9437 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9439 cat >> confdefs.h <<EOF
9440 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9444 { test "$extra_verbose" = "yes" && cat << EOF
9445 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9447 cat >> confdefs.h <<EOF
9448 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9452 { test "$extra_verbose" = "yes" && cat << EOF
9453 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9455 cat >> confdefs.h <<EOF
9456 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9460 { test "$extra_verbose" = "yes" && cat << EOF
9461 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9463 cat >> confdefs.h <<EOF
9464 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9468 { test "$extra_verbose" = "yes" && cat << EOF
9469 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9471 cat >> confdefs.h <<EOF
9472 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9476 { test "$extra_verbose" = "yes" && cat << EOF
9477 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9479 cat >> confdefs.h <<EOF
9480 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9484 { test "$extra_verbose" = "yes" && cat << EOF
9485 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9487 cat >> confdefs.h <<EOF
9488 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9492 { test "$extra_verbose" = "yes" && cat << EOF
9493 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9495 cat >> confdefs.h <<EOF
9496 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9501 { test "$extra_verbose" = "yes" && cat << \EOF
9502 Defining LWLIB_USES_ATHENA
9504 cat >> confdefs.h <<\EOF
9505 #define LWLIB_USES_ATHENA 1
9509 { test "$extra_verbose" = "yes" && cat << \EOF
9510 Defining NEED_ATHENA
9512 cat >> confdefs.h <<\EOF
9513 #define NEED_ATHENA 1
9519 if test "$athena_3d" = "yes"; then
9520 { test "$extra_verbose" = "yes" && cat << \EOF
9521 Defining HAVE_ATHENA_3D
9523 cat >> confdefs.h <<\EOF
9524 #define HAVE_ATHENA_3D 1
9532 case "$all_widgets" in *motif* )
9533 { test "$extra_verbose" = "yes" && cat << \EOF
9534 Defining LWLIB_USES_MOTIF
9536 cat >> confdefs.h <<\EOF
9537 #define LWLIB_USES_MOTIF 1
9541 { test "$extra_verbose" = "yes" && cat << \EOF
9544 cat >> confdefs.h <<\EOF
9545 #define NEED_MOTIF 1
9549 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9553 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9554 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9555 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9556 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9557 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9558 case "$with_widgets" in athena* )
9559 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;;
9561 case "$all_widgets" in *lucid* )
9562 { test "$extra_verbose" = "yes" && cat << \EOF
9565 cat >> confdefs.h <<\EOF
9566 #define NEED_LUCID 1
9570 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9575 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9576 Defining LWLIB_SCROLLBARS_ATHENA
9578 cat >> confdefs.h <<\EOF
9579 #define LWLIB_SCROLLBARS_ATHENA 1
9583 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9584 Defining LWLIB_DIALOGS_ATHENA
9586 cat >> confdefs.h <<\EOF
9587 #define LWLIB_DIALOGS_ATHENA 1
9592 if test "$athena_3d" = "yes"; then
9593 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9594 Defining LWLIB_SCROLLBARS_ATHENA3D
9596 cat >> confdefs.h <<\EOF
9597 #define LWLIB_SCROLLBARS_ATHENA3D 1
9601 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9602 Defining LWLIB_DIALOGS_ATHENA3D
9604 cat >> confdefs.h <<\EOF
9605 #define LWLIB_DIALOGS_ATHENA3D 1
9611 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9612 Defining LWLIB_WIDGETS_ATHENA
9614 cat >> confdefs.h <<\EOF
9615 #define LWLIB_WIDGETS_ATHENA 1
9619 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9620 { test "$extra_verbose" = "yes" && cat << \EOF
9621 Defining LWLIB_TABS_LUCID
9623 cat >> confdefs.h <<\EOF
9624 #define LWLIB_TABS_LUCID 1
9629 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9630 Defining HAVE_MENUBARS
9632 cat >> confdefs.h <<\EOF
9633 #define HAVE_MENUBARS 1
9637 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9638 Defining HAVE_SCROLLBARS
9640 cat >> confdefs.h <<\EOF
9641 #define HAVE_SCROLLBARS 1
9645 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9646 Defining HAVE_DIALOGS
9648 cat >> confdefs.h <<\EOF
9649 #define HAVE_DIALOGS 1
9653 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9654 Defining HAVE_TOOLBARS
9656 cat >> confdefs.h <<\EOF
9657 #define HAVE_TOOLBARS 1
9661 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9662 Defining HAVE_WIDGETS
9664 cat >> confdefs.h <<\EOF
9665 #define HAVE_WIDGETS 1
9670 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9671 Defining LWLIB_MENUBARS_LUCID
9673 cat >> confdefs.h <<\EOF
9674 #define LWLIB_MENUBARS_LUCID 1
9678 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9679 Defining LWLIB_SCROLLBARS_LUCID
9681 cat >> confdefs.h <<\EOF
9682 #define LWLIB_SCROLLBARS_LUCID 1
9687 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9688 Defining LWLIB_MENUBARS_MOTIF
9690 cat >> confdefs.h <<\EOF
9691 #define LWLIB_MENUBARS_MOTIF 1
9695 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9696 Defining LWLIB_SCROLLBARS_MOTIF
9698 cat >> confdefs.h <<\EOF
9699 #define LWLIB_SCROLLBARS_MOTIF 1
9703 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9704 Defining LWLIB_DIALOGS_MOTIF
9706 cat >> confdefs.h <<\EOF
9707 #define LWLIB_DIALOGS_MOTIF 1
9711 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9712 Defining LWLIB_WIDGETS_MOTIF
9714 cat >> confdefs.h <<\EOF
9715 #define LWLIB_WIDGETS_MOTIF 1
9720 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9721 echo " xemacs will be linked with \"menubar.o\""
9723 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9724 echo " xemacs will be linked with \"scrollbar.o\""
9726 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9727 echo " xemacs will be linked with \"dialog.o\""
9729 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9730 echo " xemacs will be linked with \"toolbar.o\""
9733 if test "$with_gtk" = "yes"; then
9734 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9735 echo " xemacs will be linked with \"menubar-gtk.o\""
9737 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9738 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9740 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9741 echo " xemacs will be linked with \"dialog-gtk.o\""
9743 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9744 echo " xemacs will be linked with \"toolbar-gtk.o\""
9746 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9747 echo " xemacs will be linked with \"gui-gtk.o\""
9751 if test "$with_x11" = "yes"; then
9752 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9753 echo " xemacs will be linked with \"menubar-x.o\""
9755 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9756 echo " xemacs will be linked with \"scrollbar-x.o\""
9758 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9759 echo " xemacs will be linked with \"dialog-x.o\""
9761 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9762 echo " xemacs will be linked with \"toolbar-x.o\""
9764 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9765 echo " xemacs will be linked with \"gui-x.o\""
9770 test -z "$with_mule" && with_mule=no
9771 test -z "$with_file_coding" && with_file_coding=no
9774 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9775 { test "$extra_verbose" = "yes" && cat << \EOF
9776 Defining FILE_CODING
9778 cat >> confdefs.h <<\EOF
9779 #define FILE_CODING 1
9783 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9784 echo " xemacs will be linked with \"file-coding.o\""
9788 if test "$with_mule" = "yes" ; then
9789 echo "checking for Mule-related features" 1>&6
9790 echo "configure:9791: checking for Mule-related features" >&5
9791 { test "$extra_verbose" = "yes" && cat << \EOF
9794 cat >> confdefs.h <<\EOF
9799 { test "$extra_verbose" = "yes" && cat << \EOF
9800 Defining FILE_CODING
9802 cat >> confdefs.h <<\EOF
9803 #define FILE_CODING 1
9807 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o" && if test "$extra_verbose" = "yes"; then
9808 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o\""
9810 if test "$with_utf_2000" = "yes" && test "$with_text_coding" = "yes"; then
9811 { test "$extra_verbose" = "yes" && cat << \EOF
9812 Defining TEXT_CODING
9814 cat >> confdefs.h <<\EOF
9815 #define TEXT_CODING 1
9819 extra_objs="$extra_objs text-coding.o" && if test "$extra_verbose" = "yes"; then
9820 echo " xemacs will be linked with \"text-coding.o\""
9823 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9824 echo " xemacs will be linked with \"file-coding.o\""
9827 for ac_hdr in libintl.h
9829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9831 echo "configure:9832: checking for $ac_hdr" >&5
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9839 { (eval echo configure:9840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9841 if test -z "$ac_err"; then
9843 eval "ac_cv_header_$ac_safe=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 eval "ac_cv_header_$ac_safe=no"
9852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9853 echo "$ac_t""yes" 1>&6
9854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9855 { test "$extra_verbose" = "yes" && cat << EOF
9858 cat >> confdefs.h <<EOF
9859 #define $ac_tr_hdr 1
9864 echo "$ac_t""no" 1>&6
9869 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9870 echo "configure:9871: checking for strerror in -lintl" >&5
9871 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9873 xe_check_libs=" -lintl "
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 /* Override any gcc2 internal prototype to avoid an error. */
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9886 if { (eval echo configure:9887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9888 eval "ac_cv_lib_$ac_lib_var=yes"
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9893 eval "ac_cv_lib_$ac_lib_var=no"
9898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9899 echo "$ac_t""yes" 1>&6
9900 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9902 { test "$extra_verbose" = "yes" && cat << EOF
9905 cat >> confdefs.h <<EOF
9906 #define $ac_tr_lib 1
9910 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9913 echo "$ac_t""no" 1>&6
9918 if test "$with_utf_2000" = "yes" ; then
9919 { test "$extra_verbose" = "yes" && cat << \EOF
9920 Defining CHAR_IS_UCS4
9922 cat >> confdefs.h <<\EOF
9923 #define CHAR_IS_UCS4 1
9927 { test "$extra_verbose" = "yes" && cat << \EOF
9930 cat >> confdefs.h <<\EOF
9937 echo "checking for Mule input methods" 1>&6
9938 echo "configure:9939: checking for Mule input methods" >&5
9939 case "$with_xim" in "" | "yes" )
9940 echo "checking for XIM" 1>&6
9941 echo "configure:9942: checking for XIM" >&5
9943 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9944 echo "configure:9945: checking for XOpenIM in -lX11" >&5
9945 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9947 xe_check_libs=" -lX11 "
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 eval "ac_cv_lib_$ac_lib_var=yes"
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 eval "ac_cv_lib_$ac_lib_var=no"
9972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9973 echo "$ac_t""yes" 1>&6
9976 echo "$ac_t""no" 1>&6
9981 if test "$have_motif $have_lesstif" = "yes no"; then
9983 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9984 echo "configure:9985: checking for XmImMbLookupString in -lXm" >&5
9985 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9987 xe_check_libs=" -lXm "
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994 char XmImMbLookupString();
9997 XmImMbLookupString()
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 eval "ac_cv_lib_$ac_lib_var=yes"
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 eval "ac_cv_lib_$ac_lib_var=no"
10012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10013 echo "$ac_t""yes" 1>&6
10016 echo "$ac_t""no" 1>&6
10022 if test "$with_xim" != "no"; then
10023 { test "$extra_verbose" = "yes" && cat << \EOF
10026 cat >> confdefs.h <<\EOF
10031 if test "$with_xim" = "xlib"; then
10032 { test "$extra_verbose" = "yes" && cat << \EOF
10035 cat >> confdefs.h <<\EOF
10040 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10041 echo " xemacs will be linked with \"input-method-xlib.o\""
10044 if test "$with_xim" = "motif"; then
10045 { test "$extra_verbose" = "yes" && cat << \EOF
10048 cat >> confdefs.h <<\EOF
10049 #define XIM_MOTIF 1
10054 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10055 echo " xemacs will be linked with \"input-method-motif.o\""
10058 if test "$with_xim" = "motif"; then
10063 if test "$with_xfs" = "yes" ; then
10064 echo "checking for XFontSet" 1>&6
10065 echo "configure:10066: checking for XFontSet" >&5
10067 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10068 echo "configure:10069: checking for XmbDrawString in -lX11" >&5
10069 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10071 xe_check_libs=" -lX11 "
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 /* Override any gcc2 internal prototype to avoid an error. */
10076 /* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10078 char XmbDrawString();
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 eval "ac_cv_lib_$ac_lib_var=yes"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 eval "ac_cv_lib_$ac_lib_var=no"
10096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10097 echo "$ac_t""yes" 1>&6
10100 echo "$ac_t""no" 1>&6
10105 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10106 { test "$extra_verbose" = "yes" && cat << \EOF
10107 Defining USE_XFONTSET
10109 cat >> confdefs.h <<\EOF
10110 #define USE_XFONTSET 1
10114 if test "$with_xim" = "no" ; then
10115 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10116 echo " xemacs will be linked with \"input-method-xlib.o\""
10121 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10122 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10123 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10124 echo "configure:10125: checking for wnn/jllib.h" >&5
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10128 "configure"
10128 #include "confdefs.h"
10129 #include <wnn/jllib.h>
10131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10132 { (eval echo configure:10133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10134 if test -z "$ac_err"; then
10136 eval "ac_cv_header_$ac_safe=yes"
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10142 eval "ac_cv_header_$ac_safe=no"
10145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10146 echo "$ac_t""yes" 1>&6
10149 echo "$ac_t""no" 1>&6
10153 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10154 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10155 echo "configure:10156: checking for wnn/commonhd.h" >&5
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 #include <wnn/commonhd.h>
10162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10163 { (eval echo configure:10164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10165 if test -z "$ac_err"; then
10167 eval "ac_cv_header_$ac_safe=yes"
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10173 eval "ac_cv_header_$ac_safe=no"
10176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
10180 echo "$ac_t""no" 1>&6
10184 if test "$with_wnn" != "no"; then
10185 for ac_func in crypt
10187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10188 echo "configure:10189: checking for $ac_func" >&5
10190 cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure"
10192 #include "confdefs.h"
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func(); below. */
10195 #include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error. */
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10214 if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10216 eval "ac_cv_func_$ac_func=yes"
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10221 eval "ac_cv_func_$ac_func=no"
10225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10226 echo "$ac_t""yes" 1>&6
10227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10228 { test "$extra_verbose" = "yes" && cat << EOF
10229 Defining $ac_tr_func
10231 cat >> confdefs.h <<EOF
10232 #define $ac_tr_func 1
10237 echo "$ac_t""no" 1>&6
10241 test "$ac_cv_func_crypt" != "yes" && {
10242 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10243 echo "configure:10244: checking for crypt in -lcrypt" >&5
10244 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10246 xe_check_libs=" -lcrypt "
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 /* Override any gcc2 internal prototype to avoid an error. */
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 eval "ac_cv_lib_$ac_lib_var=yes"
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 eval "ac_cv_lib_$ac_lib_var=no"
10271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10275 { test "$extra_verbose" = "yes" && cat << EOF
10276 Defining $ac_tr_lib
10278 cat >> confdefs.h <<EOF
10279 #define $ac_tr_lib 1
10283 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10286 echo "$ac_t""no" 1>&6
10291 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10293 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10294 echo "configure:10295: checking for jl_dic_list_e in -lwnn" >&5
10295 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10297 xe_check_libs=" -lwnn "
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10304 char jl_dic_list_e();
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312 eval "ac_cv_lib_$ac_lib_var=yes"
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 eval "ac_cv_lib_$ac_lib_var=no"
10322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10323 echo "$ac_t""yes" 1>&6
10326 echo "$ac_t""no" 1>&6
10327 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10328 echo "configure:10329: checking for jl_dic_list_e in -lwnn4" >&5
10329 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10331 xe_check_libs=" -lwnn4 "
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10335 /* Override any gcc2 internal prototype to avoid an error. */
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338 char jl_dic_list_e();
10344 if { (eval echo configure:10345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10346 eval "ac_cv_lib_$ac_lib_var=yes"
10348 echo "configure: failed program was:" >&5
10349 cat conftest.$ac_ext >&5
10351 eval "ac_cv_lib_$ac_lib_var=no"
10356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10357 echo "$ac_t""yes" 1>&6
10360 echo "$ac_t""no" 1>&6
10361 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10362 echo "configure:10363: checking for jl_dic_list_e in -lwnn6" >&5
10363 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10365 xe_check_libs=" -lwnn6 "
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10369 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char jl_dic_list_e();
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10380 eval "ac_cv_lib_$ac_lib_var=yes"
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 eval "ac_cv_lib_$ac_lib_var=no"
10390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10391 echo "$ac_t""yes" 1>&6
10394 echo "$ac_t""no" 1>&6
10395 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10396 echo "configure:10397: checking for dic_list_e in -lwnn6_fromsrc" >&5
10397 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10399 xe_check_libs=" -lwnn6_fromsrc "
10400 cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure"
10402 #include "confdefs.h"
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10414 eval "ac_cv_lib_$ac_lib_var=yes"
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10419 eval "ac_cv_lib_$ac_lib_var=no"
10424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10425 echo "$ac_t""yes" 1>&6
10426 libwnn=wnn6_fromsrc
10428 echo "$ac_t""no" 1>&6
10443 test -z "$with_wnn" && with_wnn=yes
10444 if test "$with_wnn" = "yes"; then
10445 { test "$extra_verbose" = "yes" && cat << \EOF
10448 cat >> confdefs.h <<\EOF
10453 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10454 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10455 echo " xemacs will be linked with \"mule-wnnfns.o\""
10457 if test "$with_wnn6" != "no"; then
10459 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10460 echo "configure:10461: checking for jl_fi_dic_list in -l$libwnn" >&5
10461 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10463 xe_check_libs=" -l$libwnn "
10464 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10467 /* Override any gcc2 internal prototype to avoid an error. */
10468 /* We use char because int might match the return type of a gcc2
10469 builtin and then its argument prototype would still apply. */
10470 char jl_fi_dic_list();
10476 if { (eval echo configure:10477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10478 eval "ac_cv_lib_$ac_lib_var=yes"
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10483 eval "ac_cv_lib_$ac_lib_var=no"
10488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10489 echo "$ac_t""yes" 1>&6
10492 echo "$ac_t""no" 1>&6
10496 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10499 cat >> confdefs.h <<\EOF
10507 canna_includes_found=no
10508 if test "$with_canna" != "no"; then
10509 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10510 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10511 echo "configure:10512: checking for canna/jrkanji.h" >&5
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516 #include <canna/jrkanji.h>
10518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10519 { (eval echo configure:10520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10521 if test -z "$ac_err"; then
10523 eval "ac_cv_header_$ac_safe=yes"
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 eval "ac_cv_header_$ac_safe=no"
10532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10534 canna_includes_found=yes
10536 echo "$ac_t""no" 1>&6
10540 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10541 -d "/usr/local/canna/include"; then
10542 save_c_switch_site="$c_switch_site"
10543 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10544 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10545 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10546 echo "configure:10547: checking for canna/jrkanji.h" >&5
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10551 #include <canna/jrkanji.h>
10553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10554 { (eval echo configure:10555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10556 if test -z "$ac_err"; then
10558 eval "ac_cv_header_$ac_safe=yes"
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10564 eval "ac_cv_header_$ac_safe=no"
10567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10569 canna_includes_found=yes
10571 echo "$ac_t""no" 1>&6
10574 if test "$canna_includes_found" != "yes"; then
10575 c_switch_site="$save_c_switch_site"
10580 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10581 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10582 echo "configure:10583: checking for canna/RK.h" >&5
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 #include <canna/RK.h>
10589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10590 { (eval echo configure:10591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10592 if test -z "$ac_err"; then
10594 eval "ac_cv_header_$ac_safe=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_header_$ac_safe=no"
10603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10604 echo "$ac_t""yes" 1>&6
10607 echo "$ac_t""no" 1>&6
10611 test -z "$with_canna" && {
10612 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10613 echo "configure:10614: checking for RkBgnBun in -lRKC" >&5
10614 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10616 xe_check_libs=" -lRKC "
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 /* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 eval "ac_cv_lib_$ac_lib_var=yes"
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 eval "ac_cv_lib_$ac_lib_var=no"
10641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10642 echo "$ac_t""yes" 1>&6
10645 echo "$ac_t""no" 1>&6
10650 test -z "$with_canna" && {
10651 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10652 echo "configure:10653: checking for jrKanjiControl in -lcanna" >&5
10653 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10655 xe_check_libs=" -lcanna "
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char jrKanjiControl();
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 eval "ac_cv_lib_$ac_lib_var=yes"
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 eval "ac_cv_lib_$ac_lib_var=no"
10680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10681 echo "$ac_t""yes" 1>&6
10684 echo "$ac_t""no" 1>&6
10689 test -z "$with_canna" && with_canna=yes
10690 if test "$with_canna" = "yes"; then
10691 { test "$extra_verbose" = "yes" && cat << \EOF
10692 Defining HAVE_CANNA
10694 cat >> confdefs.h <<\EOF
10695 #define HAVE_CANNA 1
10699 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10700 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10701 echo " xemacs will be linked with \"mule-canna.o\""
10705 else for feature in xim canna wnn; do
10706 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10707 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10709 eval "with_${feature}=no"
10713 if test "$need_motif" = "yes" ; then
10714 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10716 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10717 echo "configure:10718: checking for layout_object_getvalue in -li18n" >&5
10718 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10720 xe_check_libs=" -li18n "
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 /* Override any gcc2 internal prototype to avoid an error. */
10725 /* We use char because int might match the return type of a gcc2
10726 builtin and then its argument prototype would still apply. */
10727 char layout_object_getvalue();
10730 layout_object_getvalue()
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 eval "ac_cv_lib_$ac_lib_var=yes"
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10740 eval "ac_cv_lib_$ac_lib_var=no"
10745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10746 echo "$ac_t""yes" 1>&6
10747 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10749 echo "$ac_t""no" 1>&6
10754 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10755 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10756 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10758 runpath="" runpath_dirs=""
10759 if test -n "$LD_RUN_PATH"; then
10760 runpath="$LD_RUN_PATH"
10761 elif test "$GCC" = "yes"; then
10762 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10763 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10764 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10765 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10766 case "$arg" in P,* | -L* | -R* )
10767 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10769 xe_runpath_dir="$dir"
10770 test "$xe_runpath_dir" != "/lib" -a \
10771 "$xe_runpath_dir" != "/usr/lib" -a \
10772 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10773 eval "$xe_add_unique_runpath_dir"
10778 ld_switch_run="$ld_switch_run_save"
10781 for arg in $ld_switch_site $ld_switch_x_site; do
10782 case "$arg" in -L*) {
10783 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10784 test "$xe_runpath_dir" != "/lib" -a \
10785 "$xe_runpath_dir" != "/usr/lib" -a \
10786 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10787 eval "$xe_add_unique_runpath_dir"
10790 if test "$opsys $need_motif" = "sol2 yes"; then
10791 xe_runpath_dir="/opt/SUNWdt/lib";
10792 eval "$xe_add_unique_runpath_dir";
10795 if test -n "$runpath"; then
10796 ld_switch_run="${dash_r}${runpath}"
10798 if test "$GCC" = "yes"; then
10799 set x $ld_switch_run; shift; ld_switch_run=""
10800 while test -n "$1"; do
10802 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10803 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10805 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10810 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10816 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
10818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10819 echo "configure:10820: checking for $ac_func" >&5
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 /* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func(); below. */
10826 #include <assert.h>
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847 eval "ac_cv_func_$ac_func=yes"
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 eval "ac_cv_func_$ac_func=no"
10856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10857 echo "$ac_t""yes" 1>&6
10858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10859 { test "$extra_verbose" = "yes" && cat << EOF
10860 Defining $ac_tr_func
10862 cat >> confdefs.h <<EOF
10863 #define $ac_tr_func 1
10868 echo "$ac_t""no" 1>&6
10874 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10877 echo "configure:10878: checking for $ac_func" >&5
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10882 /* System header to define __stub macros and hopefully few prototypes,
10883 which can conflict with char $ac_func(); below. */
10884 #include <assert.h>
10885 /* Override any gcc2 internal prototype to avoid an error. */
10886 /* We use char because int might match the return type of a gcc2
10887 builtin and then its argument prototype would still apply. */
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10903 if { (eval echo configure:10904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10905 eval "ac_cv_func_$ac_func=yes"
10907 echo "configure: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10910 eval "ac_cv_func_$ac_func=no"
10914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10917 { test "$extra_verbose" = "yes" && cat << EOF
10918 Defining $ac_tr_func
10920 cat >> confdefs.h <<EOF
10921 #define $ac_tr_func 1
10926 echo "$ac_t""no" 1>&6
10931 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10932 echo "configure:10933: checking for openpty" >&5
10934 cat > conftest.$ac_ext <<EOF
10935 #line 10936 "configure"
10936 #include "confdefs.h"
10937 /* System header to define __stub macros and hopefully few prototypes,
10938 which can conflict with char openpty(); below. */
10939 #include <assert.h>
10940 /* Override any gcc2 internal prototype to avoid an error. */
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10947 /* The GNU C library defines this for functions which it implements
10948 to always fail with ENOSYS. Some functions are actually named
10949 something starting with __ and the normal name is an alias. */
10950 #if defined (__stub_openpty) || defined (__stub___openpty)
10958 if { (eval echo configure:10959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10960 eval "ac_cv_func_openpty=yes"
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10965 eval "ac_cv_func_openpty=no"
10969 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10970 echo "$ac_t""yes" 1>&6
10973 echo "$ac_t""no" 1>&6
10976 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10977 echo "configure:10978: checking for openpty in -lutil" >&5
10978 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10980 xe_check_libs=" -lutil "
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10993 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10995 eval "ac_cv_lib_$ac_lib_var=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 eval "ac_cv_lib_$ac_lib_var=no"
11005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11006 echo "$ac_t""yes" 1>&6
11007 have_openpty=yes need_libutil=yes
11009 echo "$ac_t""no" 1>&6
11015 if test "$have_openpty" = "yes"; then
11016 { test "$extra_verbose" = "yes" && cat << \EOF
11017 Defining HAVE_OPENPTY
11019 cat >> confdefs.h <<\EOF
11020 #define HAVE_OPENPTY 1
11024 for ac_hdr in pty.h libutil.h util.h
11026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11028 echo "configure:11029: checking for $ac_hdr" >&5
11030 cat > conftest.$ac_ext <<EOF
11031 #line 11032 "configure"
11032 #include "confdefs.h"
11035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11036 { (eval echo configure:11037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11038 if test -z "$ac_err"; then
11040 eval "ac_cv_header_$ac_safe=yes"
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11046 eval "ac_cv_header_$ac_safe=no"
11049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11052 { test "$extra_verbose" = "yes" && cat << EOF
11053 Defining $ac_tr_hdr
11055 cat >> confdefs.h <<EOF
11056 #define $ac_tr_hdr 1
11061 echo "$ac_t""no" 1>&6
11065 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11068 for ac_hdr in stropts.h
11070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11072 echo "configure:11073: checking for $ac_hdr" >&5
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11080 { (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082 if test -z "$ac_err"; then
11084 eval "ac_cv_header_$ac_safe=yes"
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 eval "ac_cv_header_$ac_safe=no"
11093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11094 echo "$ac_t""yes" 1>&6
11095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11096 { test "$extra_verbose" = "yes" && cat << EOF
11097 Defining $ac_tr_hdr
11099 cat >> confdefs.h <<EOF
11100 #define $ac_tr_hdr 1
11105 echo "$ac_t""no" 1>&6
11109 if test "$ac_cv_header_stropts_h" = "yes"; then
11110 for ac_func in isastream
11112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11113 echo "configure:11114: checking for $ac_func" >&5
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 /* System header to define __stub macros and hopefully few prototypes,
11119 which can conflict with char $ac_func(); below. */
11120 #include <assert.h>
11121 /* Override any gcc2 internal prototype to avoid an error. */
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11141 eval "ac_cv_func_$ac_func=yes"
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 eval "ac_cv_func_$ac_func=no"
11150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11151 echo "$ac_t""yes" 1>&6
11152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11153 { test "$extra_verbose" = "yes" && cat << EOF
11154 Defining $ac_tr_func
11156 cat >> confdefs.h <<EOF
11157 #define $ac_tr_func 1
11162 echo "$ac_t""no" 1>&6
11166 for ac_hdr in strtio.h
11168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11170 echo "configure:11171: checking for $ac_hdr" >&5
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11178 { (eval echo configure:11179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11180 if test -z "$ac_err"; then
11182 eval "ac_cv_header_$ac_safe=yes"
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11188 eval "ac_cv_header_$ac_safe=no"
11191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11192 echo "$ac_t""yes" 1>&6
11193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11194 { test "$extra_verbose" = "yes" && cat << EOF
11195 Defining $ac_tr_hdr
11197 cat >> confdefs.h <<EOF
11198 #define $ac_tr_hdr 1
11203 echo "$ac_t""no" 1>&6
11208 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11209 echo " xemacs will be linked with \"realpath.o\""
11212 for ac_func in getloadavg
11214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11215 echo "configure:11216: checking for $ac_func" >&5
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func(); below. */
11222 #include <assert.h>
11223 /* Override any gcc2 internal prototype to avoid an error. */
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11230 /* The GNU C library defines this for functions which it implements
11231 to always fail with ENOSYS. Some functions are actually named
11232 something starting with __ and the normal name is an alias. */
11233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11241 if { (eval echo configure:11242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11243 eval "ac_cv_func_$ac_func=yes"
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 eval "ac_cv_func_$ac_func=no"
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255 { test "$extra_verbose" = "yes" && cat << EOF
11256 Defining $ac_tr_func
11258 cat >> confdefs.h <<EOF
11259 #define $ac_tr_func 1
11264 echo "$ac_t""no" 1>&6
11269 if test "$ac_cv_func_getloadavg" = "yes"; then
11270 for ac_hdr in sys/loadavg.h
11272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11274 echo "configure:11275: checking for $ac_hdr" >&5
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11282 { (eval echo configure:11283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11284 if test -z "$ac_err"; then
11286 eval "ac_cv_header_$ac_safe=yes"
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11292 eval "ac_cv_header_$ac_safe=no"
11295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11296 echo "$ac_t""yes" 1>&6
11297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11298 { test "$extra_verbose" = "yes" && cat << EOF
11299 Defining $ac_tr_hdr
11301 cat >> confdefs.h <<EOF
11302 #define $ac_tr_hdr 1
11307 echo "$ac_t""no" 1>&6
11312 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11313 echo " xemacs will be linked with \"getloadavg.o\""
11317 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11318 echo "configure:11319: checking for kstat_open in -lkstat" >&5
11319 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11321 xe_check_libs=" -lkstat "
11322 cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure"
11324 #include "confdefs.h"
11325 /* Override any gcc2 internal prototype to avoid an error. */
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11336 eval "ac_cv_lib_$ac_lib_var=yes"
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11341 eval "ac_cv_lib_$ac_lib_var=no"
11346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11350 { test "$extra_verbose" = "yes" && cat << EOF
11351 Defining $ac_tr_lib
11353 cat >> confdefs.h <<EOF
11354 #define $ac_tr_lib 1
11358 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11361 echo "$ac_t""no" 1>&6
11365 for ac_hdr in kstat.h
11367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11369 echo "configure:11370: checking for $ac_hdr" >&5
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11377 { (eval echo configure:11378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11379 if test -z "$ac_err"; then
11381 eval "ac_cv_header_$ac_safe=yes"
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11387 eval "ac_cv_header_$ac_safe=no"
11390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11391 echo "$ac_t""yes" 1>&6
11392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11393 { test "$extra_verbose" = "yes" && cat << EOF
11394 Defining $ac_tr_hdr
11396 cat >> confdefs.h <<EOF
11397 #define $ac_tr_hdr 1
11402 echo "$ac_t""no" 1>&6
11408 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11409 echo "configure:11410: checking for kvm_read in -lkvm" >&5
11410 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11412 xe_check_libs=" -lkvm "
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11425 if { (eval echo configure:11426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11427 eval "ac_cv_lib_$ac_lib_var=yes"
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11432 eval "ac_cv_lib_$ac_lib_var=no"
11437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11438 echo "$ac_t""yes" 1>&6
11439 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11441 { test "$extra_verbose" = "yes" && cat << EOF
11442 Defining $ac_tr_lib
11444 cat >> confdefs.h <<EOF
11445 #define $ac_tr_lib 1
11449 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11452 echo "$ac_t""no" 1>&6
11458 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11459 echo "configure:11460: checking whether netdb declares h_errno" >&5
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470 echo "$ac_t""yes" 1>&6
11471 { test "$extra_verbose" = "yes" && cat << \EOF
11472 Defining HAVE_H_ERRNO
11474 cat >> confdefs.h <<\EOF
11475 #define HAVE_H_ERRNO 1
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 echo "$ac_t""no" 1>&6
11487 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11488 echo "configure:11489: checking for sigsetjmp" >&5
11489 cat > conftest.$ac_ext <<EOF
11490 #line 11491 "configure"
11491 #include "confdefs.h"
11492 #include <setjmp.h>
11494 sigjmp_buf bar; sigsetjmp (bar, 0);
11497 if { (eval echo configure:11498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11499 echo "$ac_t""yes" 1>&6
11500 { test "$extra_verbose" = "yes" && cat << \EOF
11501 Defining HAVE_SIGSETJMP
11503 cat >> confdefs.h <<\EOF
11504 #define HAVE_SIGSETJMP 1
11509 echo "configure: failed program was:" >&5
11510 cat conftest.$ac_ext >&5
11512 echo "$ac_t""no" 1>&6
11516 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11517 echo "configure:11518: checking whether localtime caches TZ" >&5
11519 if test "$ac_cv_func_tzset" = "yes"; then
11520 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11525 # include <stdlib.h>
11527 extern char **environ;
11531 for (to = from = environ; (*to = *from); from++)
11532 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11535 char TZ_GMT0[] = "TZ=GMT0";
11536 char TZ_PST8[] = "TZ=PST8";
11539 time_t now = time ((time_t *) 0);
11540 int hour_GMT0, hour_unset;
11541 if (putenv (TZ_GMT0) != 0)
11543 hour_GMT0 = localtime (&now)->tm_hour;
11545 hour_unset = localtime (&now)->tm_hour;
11546 if (putenv (TZ_PST8) != 0)
11548 if (localtime (&now)->tm_hour == hour_GMT0)
11551 if (localtime (&now)->tm_hour != hour_unset)
11556 if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11558 emacs_cv_localtime_cache=no
11561 echo "configure: failed program was:" >&5
11562 cat conftest.$ac_ext >&5
11564 emacs_cv_localtime_cache=yes
11568 # If we lack tzset, report that localtime does not cache TZ,
11569 # since we can't invalidate the cache if we don't have tzset.
11570 emacs_cv_localtime_cache=no
11572 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11573 if test $emacs_cv_localtime_cache = yes; then
11574 { test "$extra_verbose" = "yes" && cat << \EOF
11575 Defining LOCALTIME_CACHE
11577 cat >> confdefs.h <<\EOF
11578 #define LOCALTIME_CACHE 1
11584 if test "$HAVE_TIMEVAL" = "yes"; then
11585 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11586 echo "configure:11587: checking whether gettimeofday accepts one or two arguments" >&5
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11591 #ifdef TIME_WITH_SYS_TIME
11592 #include <sys/time.h>
11595 #ifdef HAVE_SYS_TIME_H
11596 #include <sys/time.h>
11604 struct timeval time;
11605 gettimeofday (&time, 0);
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11611 echo "$ac_t""two" 1>&6
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11616 echo "$ac_t""one" 1>&6
11617 { test "$extra_verbose" = "yes" && cat << \EOF
11618 Defining GETTIMEOFDAY_ONE_ARGUMENT
11620 cat >> confdefs.h <<\EOF
11621 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11630 echo $ac_n "checking for inline""... $ac_c" 1>&6
11631 echo "configure:11632: checking for inline" >&5
11634 for ac_kw in inline __inline__ __inline; do
11635 cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11643 if { (eval echo configure:11644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11645 ac_cv_c_inline=$ac_kw; break
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11654 echo "$ac_t""$ac_cv_c_inline" 1>&6
11655 case "$ac_cv_c_inline" in
11657 no) { test "$extra_verbose" = "yes" && cat << \EOF
11660 cat >> confdefs.h <<\EOF
11665 *) { test "$extra_verbose" = "yes" && cat << EOF
11666 Defining inline = $ac_cv_c_inline
11668 cat >> confdefs.h <<EOF
11669 #define inline $ac_cv_c_inline
11675 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11676 echo " xemacs will be linked with \"inline.o\""
11680 if test "$__DECC" != "yes"; then
11681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11682 # for constant arguments. Useless!
11683 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11684 echo "configure:11685: checking for working alloca.h" >&5
11686 cat > conftest.$ac_ext <<EOF
11687 #line 11688 "configure"
11688 #include "confdefs.h"
11689 #include <alloca.h>
11691 char *p = alloca(2 * sizeof(int));
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696 ac_cv_header_alloca_h=yes
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11701 ac_cv_header_alloca_h=no
11705 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11706 if test $ac_cv_header_alloca_h = yes; then
11707 { test "$extra_verbose" = "yes" && cat << \EOF
11708 Defining HAVE_ALLOCA_H
11710 cat >> confdefs.h <<\EOF
11711 #define HAVE_ALLOCA_H 1
11717 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11718 echo "configure:11719: checking for alloca" >&5
11720 cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11725 # define alloca __builtin_alloca
11728 # include <malloc.h>
11729 # define alloca _alloca
11732 # include <alloca.h>
11737 # ifndef alloca /* predefined by HP cc +Olibcalls */
11746 char *p = (char *) alloca(1);
11749 if { (eval echo configure:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 ac_cv_func_alloca_works=yes
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11756 ac_cv_func_alloca_works=no
11760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11761 if test $ac_cv_func_alloca_works = yes; then
11762 { test "$extra_verbose" = "yes" && cat << \EOF
11763 Defining HAVE_ALLOCA
11765 cat >> confdefs.h <<\EOF
11766 #define HAVE_ALLOCA 1
11772 if test $ac_cv_func_alloca_works = no; then
11773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11774 # that cause trouble. Some versions do not even contain alloca or
11775 # contain a buggy version. If you still want to use their alloca,
11776 # use ar to extract alloca.o from them instead of compiling alloca.c.
11777 ALLOCA=alloca.${ac_objext}
11778 { test "$extra_verbose" = "yes" && cat << \EOF
11781 cat >> confdefs.h <<\EOF
11787 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11788 echo "configure:11789: checking whether alloca needs Cray hooks" >&5
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 #if defined(CRAY) && ! defined(CRAY2)
11800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11801 egrep "webecray" >/dev/null 2>&1; then
11811 echo "$ac_t""$ac_cv_os_cray" 1>&6
11812 if test $ac_cv_os_cray = yes; then
11813 for ac_func in _getb67 GETB67 getb67; do
11814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11815 echo "configure:11816: checking for $ac_func" >&5
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 /* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func(); below. */
11822 #include <assert.h>
11823 /* Override any gcc2 internal prototype to avoid an error. */
11824 /* We use char because int might match the return type of a gcc2
11825 builtin and then its argument prototype would still apply. */
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11841 if { (eval echo configure:11842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11843 eval "ac_cv_func_$ac_func=yes"
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11848 eval "ac_cv_func_$ac_func=no"
11852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11853 echo "$ac_t""yes" 1>&6
11854 { test "$extra_verbose" = "yes" && cat << EOF
11855 Defining CRAY_STACKSEG_END = $ac_func
11857 cat >> confdefs.h <<EOF
11858 #define CRAY_STACKSEG_END $ac_func
11864 echo "$ac_t""no" 1>&6
11870 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11871 echo "configure:11872: checking stack direction for C alloca" >&5
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 find_stack_direction ()
11878 static char *addr = 0;
11883 return find_stack_direction ();
11886 return (&dummy > addr) ? 1 : -1;
11890 exit (find_stack_direction() < 0);
11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11895 ac_cv_c_stack_direction=1
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11901 ac_cv_c_stack_direction=-1
11905 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11906 { test "$extra_verbose" = "yes" && cat << EOF
11907 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11909 cat >> confdefs.h <<EOF
11910 #define STACK_DIRECTION $ac_cv_c_stack_direction
11916 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11917 echo " xemacs will be linked with \"$ALLOCA\""
11921 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11922 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11923 echo "configure:11924: checking for vfork.h" >&5
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11931 { (eval echo configure:11932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11933 if test -z "$ac_err"; then
11935 eval "ac_cv_header_$ac_safe=yes"
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11941 eval "ac_cv_header_$ac_safe=no"
11944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11945 echo "$ac_t""yes" 1>&6
11946 { test "$extra_verbose" = "yes" && cat << \EOF
11947 Defining HAVE_VFORK_H
11949 cat >> confdefs.h <<\EOF
11950 #define HAVE_VFORK_H 1
11955 echo "$ac_t""no" 1>&6
11958 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11959 echo "configure:11960: checking for working vfork" >&5
11961 cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 /* Thanks to Paul Eggert for this test. */
11966 #include <sys/types.h>
11967 #include <sys/stat.h>
11968 #ifdef HAVE_UNISTD_H
11969 #include <unistd.h>
11971 #ifdef HAVE_VFORK_H
11974 /* On some sparc systems, changes by the child to local and incoming
11975 argument registers are propagated back to the parent.
11976 The compiler is told about this with #include <vfork.h>,
11977 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11978 Test for this by using a static variable whose address
11979 is put into a register that is clobbered by the vfork. */
11982 sparc_address_test (int arg)
11984 sparc_address_test (arg) int arg;
11987 static pid_t child;
12002 pid_t parent = getpid ();
12005 sparc_address_test ();
12010 /* Here is another test for sparc vfork register problems.
12011 This test uses lots of local variables, at least
12012 as many local variables as main has allocated so far
12013 including compiler temporaries. 4 locals are enough for
12014 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12015 A buggy compiler should reuse the register of parent
12016 for one of the local variables, since it will think that
12017 parent can't possibly be used any more in this routine.
12018 Assigning to the local variable will thus munge parent
12019 in the parent process. */
12021 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12022 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12023 /* Convince the compiler that p..p7 are live; otherwise, it might
12024 use the same hardware register for all 8 local variables. */
12025 if (p != p1 || p != p2 || p != p3 || p != p4
12026 || p != p5 || p != p6 || p != p7)
12029 /* On some systems (e.g. IRIX 3.3),
12030 vfork doesn't separate parent from child file descriptors.
12031 If the child closes a descriptor before it execs or exits,
12032 this munges the parent's descriptor as well.
12033 Test for this by closing stdout in the child. */
12034 _exit(close(fileno(stdout)) != 0);
12039 while (wait(&status) != child)
12042 /* Was there some problem with vforking? */
12045 /* Did the child fail? (This shouldn't happen.) */
12048 /* Did the vfork/compiler bug occur? */
12049 || parent != getpid()
12051 /* Did the file descriptor bug occur? */
12052 || fstat(fileno(stdout), &st) != 0
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12059 ac_cv_func_vfork_works=yes
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12065 ac_cv_func_vfork_works=no
12069 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12070 if test $ac_cv_func_vfork_works = no; then
12071 { test "$extra_verbose" = "yes" && cat << \EOF
12072 Defining vfork = fork
12074 cat >> confdefs.h <<\EOF
12082 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12083 echo "configure:12084: checking for working strcoll" >&5
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 #include <string.h>
12091 exit (strcoll ("abc", "def") >= 0 ||
12092 strcoll ("ABC", "DEF") >= 0 ||
12093 strcoll ("123", "456") >= 0);
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12098 ac_cv_func_strcoll_works=yes
12101 echo "configure: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12104 ac_cv_func_strcoll_works=no
12108 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12109 if test $ac_cv_func_strcoll_works = yes; then
12110 { test "$extra_verbose" = "yes" && cat << \EOF
12111 Defining HAVE_STRCOLL
12113 cat >> confdefs.h <<\EOF
12114 #define HAVE_STRCOLL 1
12121 for ac_func in getpgrp
12123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12124 echo "configure:12125: checking for $ac_func" >&5
12126 cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func(); below. */
12131 #include <assert.h>
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 eval "ac_cv_func_$ac_func=yes"
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12157 eval "ac_cv_func_$ac_func=no"
12161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12162 echo "$ac_t""yes" 1>&6
12163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12164 { test "$extra_verbose" = "yes" && cat << EOF
12165 Defining $ac_tr_func
12167 cat >> confdefs.h <<EOF
12168 #define $ac_tr_func 1
12173 echo "$ac_t""no" 1>&6
12177 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12178 echo "configure:12179: checking whether getpgrp takes no argument" >&5
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12185 * If this system has a BSD-style getpgrp(),
12186 * which takes a pid argument, exit unsuccessfully.
12188 * Snarfed from Chet Ramey's bash pgrp.c test program
12191 #include <sys/types.h>
12194 int pg1, pg2, pg3, pg4;
12195 int ng, np, s, child;
12202 pg3 = getpgrp(pid);
12206 * If all of these values are the same, it's pretty sure that
12207 * we're on a system that ignores getpgrp's first argument.
12209 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12215 else if (child == 0) {
12218 * If this is Sys V, this will not work; pgrp will be
12219 * set to np because setpgrp just changes a pgrp to be
12220 * the same as the pid.
12223 ng = getpgrp(0); /* Same result for Sys V and BSD */
12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12238 ac_cv_func_getpgrp_void=yes
12241 echo "configure: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12244 ac_cv_func_getpgrp_void=no
12249 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12250 if test $ac_cv_func_getpgrp_void = yes; then
12251 { test "$extra_verbose" = "yes" && cat << \EOF
12252 Defining GETPGRP_VOID
12254 cat >> confdefs.h <<\EOF
12255 #define GETPGRP_VOID 1
12262 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12263 echo "configure:12264: checking for working mmap" >&5
12264 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12269 #include <unistd.h>
12271 #include <sys/mman.h>
12273 #ifndef MAP_VARIABLE
12274 #define MAP_VARIABLE 0
12278 #define MAP_FAILED -1
12281 int main (int argc, char *argv[])
12285 #ifndef MAP_ANONYMOUS
12286 fd = open ("/dev/zero", O_RDWR);
12289 #define MAP_ANONYMOUS 0
12291 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12292 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12293 fd, 0) != (void *) MAP_FAILED)
12295 perror ("conftest: mmap failed");
12299 if { (eval echo configure:12300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12304 echo "configure: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12309 rm -fr conftest* ;;
12311 echo "$ac_t""$have_mmap" 1>&6
12312 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12315 cat >> confdefs.h <<\EOF
12316 #define HAVE_MMAP 1
12321 case "$opsys" in cygwin*)
12322 test "$rel_alloc" = "default" && rel_alloc=no ;;
12324 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12325 if test "$rel_alloc $have_mmap" = "default yes"; then
12326 if test "$doug_lea_malloc" = "yes"; then
12327 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12328 echo "configure:12329: checking for M_MMAP_THRESHOLD" >&5
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332 #include <malloc.h>
12335 #ifndef M_MMAP_THRESHOLD
12336 #error No M_MMAP_THRESHOLD :-(
12337 !@+$%^&*_)(_ - unlikely to compile...
12342 if { (eval echo configure:12343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12344 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12349 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12356 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12359 cat >> confdefs.h <<\EOF
12360 #define REL_ALLOC 1
12365 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12366 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12367 echo "configure:12368: checking for termios.h" >&5
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <termios.h>
12374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12379 eval "ac_cv_header_$ac_safe=yes"
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12385 eval "ac_cv_header_$ac_safe=no"
12388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12389 echo "$ac_t""yes" 1>&6
12390 { test "$extra_verbose" = "yes" && cat << \EOF
12391 Defining HAVE_TERMIOS
12393 cat >> confdefs.h <<\EOF
12394 #define HAVE_TERMIOS 1
12398 { test "$extra_verbose" = "yes" && cat << \EOF
12399 Defining SIGNALS_VIA_CHARACTERS
12401 cat >> confdefs.h <<\EOF
12402 #define SIGNALS_VIA_CHARACTERS 1
12406 { test "$extra_verbose" = "yes" && cat << \EOF
12409 cat >> confdefs.h <<\EOF
12410 #define NO_TERMIO 1
12415 echo "$ac_t""no" 1>&6
12416 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12417 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12418 echo "configure:12419: checking for termio.h" >&5
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 #include <termio.h>
12425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12426 { (eval echo configure:12427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12428 if test -z "$ac_err"; then
12430 eval "ac_cv_header_$ac_safe=yes"
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12436 eval "ac_cv_header_$ac_safe=no"
12439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 { test "$extra_verbose" = "yes" && cat << \EOF
12442 Defining HAVE_TERMIO
12444 cat >> confdefs.h <<\EOF
12445 #define HAVE_TERMIO 1
12450 echo "$ac_t""no" 1>&6
12457 echo $ac_n "checking for socket""... $ac_c" 1>&6
12458 echo "configure:12459: checking for socket" >&5
12460 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12463 /* System header to define __stub macros and hopefully few prototypes,
12464 which can conflict with char socket(); below. */
12465 #include <assert.h>
12466 /* Override any gcc2 internal prototype to avoid an error. */
12467 /* We use char because int might match the return type of a gcc2
12468 builtin and then its argument prototype would still apply. */
12473 /* The GNU C library defines this for functions which it implements
12474 to always fail with ENOSYS. Some functions are actually named
12475 something starting with __ and the normal name is an alias. */
12476 #if defined (__stub_socket) || defined (__stub___socket)
12484 if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12486 eval "ac_cv_func_socket=yes"
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12491 eval "ac_cv_func_socket=no"
12495 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12498 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12499 echo "configure:12500: checking for netinet/in.h" >&5
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 #include <netinet/in.h>
12506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12507 { (eval echo configure:12508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12509 if test -z "$ac_err"; then
12511 eval "ac_cv_header_$ac_safe=yes"
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12517 eval "ac_cv_header_$ac_safe=no"
12520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12521 echo "$ac_t""yes" 1>&6
12522 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12523 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12524 echo "configure:12525: checking for arpa/inet.h" >&5
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 #include <arpa/inet.h>
12531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12532 { (eval echo configure:12533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12534 if test -z "$ac_err"; then
12536 eval "ac_cv_header_$ac_safe=yes"
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12542 eval "ac_cv_header_$ac_safe=no"
12545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12548 { test "$extra_verbose" = "yes" && cat << \EOF
12549 Defining HAVE_SOCKETS
12551 cat >> confdefs.h <<\EOF
12552 #define HAVE_SOCKETS 1
12556 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12557 echo "configure:12558: checking "for sun_len member in struct sockaddr_un"" >&5
12558 cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12562 #include <sys/types.h>
12563 #include <sys/socket.h>
12564 #include <sys/un.h>
12567 static struct sockaddr_un x; x.sun_len = 1;
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12572 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12573 Defining HAVE_SOCKADDR_SUN_LEN
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_SOCKADDR_SUN_LEN 1
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12584 echo "$ac_t""no" 1>&6
12587 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12588 echo "configure:12589: checking "for ip_mreq struct in netinet/in.h"" >&5
12589 cat > conftest.$ac_ext <<EOF
12590 #line 12591 "configure"
12591 #include "confdefs.h"
12593 #include <sys/types.h>
12594 #include <netinet/in.h>
12597 static struct ip_mreq x;
12600 if { (eval echo configure:12601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12602 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12603 Defining HAVE_MULTICAST
12605 cat >> confdefs.h <<\EOF
12606 #define HAVE_MULTICAST 1
12611 echo "configure: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12614 echo "$ac_t""no" 1>&6
12618 echo "$ac_t""no" 1>&6
12622 echo "$ac_t""no" 1>&6
12626 echo "$ac_t""no" 1>&6
12630 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12631 echo "configure:12632: checking for msgget" >&5
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char msgget(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_msgget) || defined (__stub___msgget)
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12659 eval "ac_cv_func_msgget=yes"
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12664 eval "ac_cv_func_msgget=no"
12668 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12669 echo "$ac_t""yes" 1>&6
12670 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12671 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12672 echo "configure:12673: checking for sys/ipc.h" >&5
12674 cat > conftest.$ac_ext <<EOF
12675 #line 12676 "configure"
12676 #include "confdefs.h"
12677 #include <sys/ipc.h>
12679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12680 { (eval echo configure:12681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12682 if test -z "$ac_err"; then
12684 eval "ac_cv_header_$ac_safe=yes"
12687 echo "configure: failed program was:" >&5
12688 cat conftest.$ac_ext >&5
12690 eval "ac_cv_header_$ac_safe=no"
12693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12694 echo "$ac_t""yes" 1>&6
12695 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12696 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12697 echo "configure:12698: checking for sys/msg.h" >&5
12699 cat > conftest.$ac_ext <<EOF
12700 #line 12701 "configure"
12701 #include "confdefs.h"
12702 #include <sys/msg.h>
12704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12705 { (eval echo configure:12706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12707 if test -z "$ac_err"; then
12709 eval "ac_cv_header_$ac_safe=yes"
12712 echo "configure: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 eval "ac_cv_header_$ac_safe=no"
12718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12719 echo "$ac_t""yes" 1>&6
12720 { test "$extra_verbose" = "yes" && cat << \EOF
12721 Defining HAVE_SYSVIPC
12723 cat >> confdefs.h <<\EOF
12724 #define HAVE_SYSVIPC 1
12729 echo "$ac_t""no" 1>&6
12733 echo "$ac_t""no" 1>&6
12737 echo "$ac_t""no" 1>&6
12741 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12742 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12743 echo "configure:12744: checking for dirent.h" >&5
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 #include <dirent.h>
12750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12751 { (eval echo configure:12752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12753 if test -z "$ac_err"; then
12755 eval "ac_cv_header_$ac_safe=yes"
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 eval "ac_cv_header_$ac_safe=no"
12764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12765 echo "$ac_t""yes" 1>&6
12766 { test "$extra_verbose" = "yes" && cat << \EOF
12767 Defining SYSV_SYSTEM_DIR
12769 cat >> confdefs.h <<\EOF
12770 #define SYSV_SYSTEM_DIR 1
12775 echo "$ac_t""no" 1>&6
12776 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12777 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12778 echo "configure:12779: checking for sys/dir.h" >&5
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include <sys/dir.h>
12785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12786 { (eval echo configure:12787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12788 if test -z "$ac_err"; then
12790 eval "ac_cv_header_$ac_safe=yes"
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 eval "ac_cv_header_$ac_safe=no"
12799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12800 echo "$ac_t""yes" 1>&6
12803 echo "$ac_t""no" 1>&6
12804 { test "$extra_verbose" = "yes" && cat << \EOF
12805 Defining NONSYSTEM_DIR_LIBRARY
12807 cat >> confdefs.h <<\EOF
12808 #define NONSYSTEM_DIR_LIBRARY 1
12817 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12818 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12819 echo "configure:12820: checking for nlist.h" >&5
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12827 { (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12829 if test -z "$ac_err"; then
12831 eval "ac_cv_header_$ac_safe=yes"
12834 echo "configure: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12837 eval "ac_cv_header_$ac_safe=no"
12840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12841 echo "$ac_t""yes" 1>&6
12842 { test "$extra_verbose" = "yes" && cat << \EOF
12843 Defining NLIST_STRUCT
12845 cat >> confdefs.h <<\EOF
12846 #define NLIST_STRUCT 1
12851 echo "$ac_t""no" 1>&6
12856 echo "checking "for sound support"" 1>&6
12857 echo "configure:12858: checking "for sound support"" >&5
12858 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12860 if test "$with_native_sound" != "no"; then
12861 if test -n "$native_sound_lib"; then
12862 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12863 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12864 echo "configure:12865: checking for multimedia/audio_device.h" >&5
12866 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12869 #include <multimedia/audio_device.h>
12871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12872 { (eval echo configure:12873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12874 if test -z "$ac_err"; then
12876 eval "ac_cv_header_$ac_safe=yes"
12879 echo "configure: failed program was:" >&5
12880 cat conftest.$ac_ext >&5
12882 eval "ac_cv_header_$ac_safe=no"
12885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12886 echo "$ac_t""yes" 1>&6
12887 sound_found=yes sound_cflags=""
12888 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12889 echo " xemacs will be linked with \"sunplay.o\""
12892 echo "$ac_t""no" 1>&6
12897 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12899 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12900 echo " xemacs will be linked with \"sunplay.o\""
12902 if test -d "/usr/demo/SOUND/include"
12903 then sound_cflags="-I/usr/demo/SOUND/include"
12904 else sound_cflags="-I/usr/demo/SOUND"
12906 if test -z "$native_sound_lib" ; then
12907 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12908 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12909 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12914 if test -z "$sound_found"; then
12915 case "$canonical" in
12917 if test -z "$native_sound_lib"; then
12919 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12920 echo "configure:12921: checking for ALopenport in -laudio" >&5
12921 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12923 xe_check_libs=" -laudio "
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* Override any gcc2 internal prototype to avoid an error. */
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12938 eval "ac_cv_lib_$ac_lib_var=yes"
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12943 eval "ac_cv_lib_$ac_lib_var=no"
12948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12949 echo "$ac_t""yes" 1>&6
12950 native_sound_lib="-laudio"
12952 echo "$ac_t""no" 1>&6
12957 if test -n "$native_sound_lib"; then
12958 sound_found=yes sound_cflags=""
12959 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12960 echo " xemacs will be linked with \"sgiplay.o\""
12964 if test -z "$native_sound_lib"; then
12966 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12967 echo "configure:12968: checking for AOpenAudio in -lAlib" >&5
12968 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12970 xe_check_libs=" -lAlib "
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 /* Override any gcc2 internal prototype to avoid an error. */
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12985 eval "ac_cv_lib_$ac_lib_var=yes"
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12990 eval "ac_cv_lib_$ac_lib_var=no"
12995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12996 echo "$ac_t""yes" 1>&6
12997 native_sound_lib="-lAlib"
12999 echo "$ac_t""no" 1>&6
13004 if test -n "$native_sound_lib"; then
13006 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13007 echo " xemacs will be linked with \"hpplay.o\""
13009 if test "$GCC" = "yes" # Kludge city
13010 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13011 else sound_cflags="+e -I/usr/audio/examples"
13017 if test -z "$sound_found"; then
13018 for dir in "machine" "sys" "linux"; do
13019 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13020 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13021 echo "configure:13022: checking for ${dir}/soundcard.h" >&5
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 #include <${dir}/soundcard.h>
13028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13029 { (eval echo configure:13030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13031 if test -z "$ac_err"; then
13033 eval "ac_cv_header_$ac_safe=yes"
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13039 eval "ac_cv_header_$ac_safe=no"
13042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13043 echo "$ac_t""yes" 1>&6
13046 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13047 echo " xemacs will be linked with \"linuxplay.o\""
13049 { test "$extra_verbose" = "yes" && cat << EOF
13050 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13052 cat >> confdefs.h <<EOF
13053 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13059 echo "$ac_t""no" 1>&6
13065 if test -z "$sound_found"; then
13066 if test "$with_msw" = "yes"; then
13072 test "$sound_found" = "yes" && with_native_sound=yes
13075 if test "$with_native_sound" = "yes"; then
13076 { test "$extra_verbose" = "yes" && cat << \EOF
13077 Defining HAVE_NATIVE_SOUND
13079 cat >> confdefs.h <<\EOF
13080 #define HAVE_NATIVE_SOUND 1
13084 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13087 if test "$with_nas_sound" != "no"; then
13088 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13089 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13090 echo "configure:13091: checking for audio/audiolib.h" >&5
13092 cat > conftest.$ac_ext <<EOF
13093 #line 13094 "configure"
13094 #include "confdefs.h"
13095 #include <audio/audiolib.h>
13097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13098 { (eval echo configure:13099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13100 if test -z "$ac_err"; then
13102 eval "ac_cv_header_$ac_safe=yes"
13105 echo "configure: failed program was:" >&5
13106 cat conftest.$ac_ext >&5
13108 eval "ac_cv_header_$ac_safe=no"
13111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13112 echo "$ac_t""yes" 1>&6
13115 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13116 echo "configure:13117: checking for AuOpenServer in -laudio" >&5
13117 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13119 xe_check_libs=" -laudio "
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13126 char AuOpenServer();
13132 if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13134 eval "ac_cv_lib_$ac_lib_var=yes"
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13139 eval "ac_cv_lib_$ac_lib_var=no"
13144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13145 echo "$ac_t""yes" 1>&6
13148 echo "$ac_t""no" 1>&6
13153 echo "$ac_t""no" 1>&6
13156 if test "$have_nas_sound" = "yes"; then
13158 { test "$extra_verbose" = "yes" && cat << \EOF
13159 Defining HAVE_NAS_SOUND
13161 cat >> confdefs.h <<\EOF
13162 #define HAVE_NAS_SOUND 1
13166 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13167 echo " xemacs will be linked with \"nas.o\""
13169 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13170 cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 #include <audio/Xtutil.h>
13175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13176 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13180 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13181 Defining NAS_NO_ERROR_JUMP
13183 cat >> confdefs.h <<\EOF
13184 #define NAS_NO_ERROR_JUMP 1
13192 test "$with_nas_sound" = "yes" && \
13193 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13198 if test "$with_esd_sound" != "no"; then
13199 # Extract the first word of "esd-config", so it can be a program name with args.
13200 set dummy esd-config; ac_word=$2
13201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13202 echo "configure:13203: checking for $ac_word" >&5
13204 if test -n "$have_esd_config"; then
13205 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13209 for ac_dir in $ac_dummy; do
13210 test -z "$ac_dir" && ac_dir=.
13211 if test -f $ac_dir/$ac_word; then
13212 ac_cv_prog_have_esd_config="yes"
13217 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13219 have_esd_config="$ac_cv_prog_have_esd_config"
13220 if test -n "$have_esd_config"; then
13221 echo "$ac_t""$have_esd_config" 1>&6
13223 echo "$ac_t""no" 1>&6
13226 if test "$have_esd_config" = "yes"; then
13227 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13228 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
13229 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13230 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13231 echo "configure:13232: checking for esd_play_stream" >&5
13233 cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 /* System header to define __stub macros and hopefully few prototypes,
13237 which can conflict with char esd_play_stream(); below. */
13238 #include <assert.h>
13239 /* Override any gcc2 internal prototype to avoid an error. */
13240 /* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242 char esd_play_stream();
13246 /* The GNU C library defines this for functions which it implements
13247 to always fail with ENOSYS. Some functions are actually named
13248 something starting with __ and the normal name is an alias. */
13249 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259 eval "ac_cv_func_esd_play_stream=yes"
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13264 eval "ac_cv_func_esd_play_stream=no"
13268 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13269 echo "$ac_t""yes" 1>&6
13272 echo "$ac_t""no" 1>&6
13273 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13278 if test "$have_esd_sound" = "yes"; then
13281 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13282 echo " xemacs will be linked with \"esd.o\""
13284 { test "$extra_verbose" = "yes" && cat << \EOF
13285 Defining HAVE_ESD_SOUND
13287 cat >> confdefs.h <<\EOF
13288 #define HAVE_ESD_SOUND 1
13293 test "$with_esd_sound" = "yes" && \
13294 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13299 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13300 echo " xemacs will be linked with \"miscplay.o\""
13304 test -z "$with_tty" && with_tty=yes
13306 if test "$with_tty" = "yes" ; then
13307 echo "checking for TTY-related features" 1>&6
13308 echo "configure:13309: checking for TTY-related features" >&5
13309 { test "$extra_verbose" = "yes" && cat << \EOF
13312 cat >> confdefs.h <<\EOF
13317 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
13318 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\""
13321 if test -z "$with_ncurses"; then
13323 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13324 echo "configure:13325: checking for tgetent in -lncurses" >&5
13325 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13327 xe_check_libs=" -lncurses "
13328 cat > conftest.$ac_ext <<EOF
13329 #line 13330 "configure"
13330 #include "confdefs.h"
13331 /* Override any gcc2 internal prototype to avoid an error. */
13332 /* We use char because int might match the return type of a gcc2
13333 builtin and then its argument prototype would still apply. */
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13342 eval "ac_cv_lib_$ac_lib_var=yes"
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13347 eval "ac_cv_lib_$ac_lib_var=no"
13352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13353 echo "$ac_t""yes" 1>&6
13356 echo "$ac_t""no" 1>&6
13362 if test "$with_ncurses" = "yes"; then
13363 { test "$extra_verbose" = "yes" && cat << \EOF
13364 Defining HAVE_NCURSES
13366 cat >> confdefs.h <<\EOF
13367 #define HAVE_NCURSES 1
13371 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13372 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13373 echo "configure:13374: checking for ncurses/curses.h" >&5
13375 cat > conftest.$ac_ext <<EOF
13376 #line 13377 "configure"
13377 #include "confdefs.h"
13378 #include <ncurses/curses.h>
13380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13381 { (eval echo configure:13382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13383 if test -z "$ac_err"; then
13385 eval "ac_cv_header_$ac_safe=yes"
13388 echo "configure: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13391 eval "ac_cv_header_$ac_safe=no"
13394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 curses_h_file=ncurses/curses.h
13398 echo "$ac_t""no" 1>&6
13401 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13402 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13403 echo "configure:13404: checking for ncurses/term.h" >&5
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 #include <ncurses/term.h>
13410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13411 { (eval echo configure:13412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13413 if test -z "$ac_err"; then
13415 eval "ac_cv_header_$ac_safe=yes"
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 eval "ac_cv_header_$ac_safe=no"
13424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13425 echo "$ac_t""yes" 1>&6
13426 term_h_file=ncurses/term.h
13428 echo "$ac_t""no" 1>&6
13431 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13432 echo " xemacs will be linked with \"terminfo.o\""
13434 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13436 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13437 save_c_switch_site="$c_switch_site"
13438 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13439 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13440 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13441 echo "configure:13442: checking for ncurses/curses.h" >&5
13443 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure"
13445 #include "confdefs.h"
13446 #include <ncurses/curses.h>
13448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13449 { (eval echo configure:13450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13451 if test -z "$ac_err"; then
13453 eval "ac_cv_header_$ac_safe=yes"
13456 echo "configure: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13459 eval "ac_cv_header_$ac_safe=no"
13462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13463 echo "$ac_t""yes" 1>&6
13464 curses_h_file=ncurses/curses.h
13466 echo "$ac_t""no" 1>&6
13469 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13470 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13471 else c_switch_site="$save_c_switch_site"
13474 else if test "$have_terminfo" = "yes"; then
13475 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13476 echo " xemacs will be linked with \"terminfo.o\""
13478 if test -n "$libs_termcap"; then
13479 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13481 for lib in curses termlib termcap; do
13483 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13484 echo "configure:13485: checking for tgetent in -l$lib" >&5
13485 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13487 xe_check_libs=" -l$lib "
13488 cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13491 /* Override any gcc2 internal prototype to avoid an error. */
13492 /* We use char because int might match the return type of a gcc2
13493 builtin and then its argument prototype would still apply. */
13500 if { (eval echo configure:13501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13502 eval "ac_cv_lib_$ac_lib_var=yes"
13504 echo "configure: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13507 eval "ac_cv_lib_$ac_lib_var=no"
13512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13513 echo "$ac_t""yes" 1>&6
13514 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13516 echo "$ac_t""no" 1>&6
13522 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13523 echo " xemacs will be linked with \"tparam.o\""
13525 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13526 if test -n "$libs_termcap"; then
13527 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13530 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13531 echo "configure:13532: checking for tgetent in -lcurses" >&5
13532 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13534 xe_check_libs=" -lcurses "
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 /* Override any gcc2 internal prototype to avoid an error. */
13539 /* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13547 if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13549 eval "ac_cv_lib_$ac_lib_var=yes"
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13554 eval "ac_cv_lib_$ac_lib_var=no"
13559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13560 echo "$ac_t""yes" 1>&6
13561 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13563 echo "$ac_t""no" 1>&6
13564 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13565 echo "configure:13566: checking for tgetent in -ltermcap" >&5
13566 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13568 xe_check_libs=" -ltermcap "
13569 cat > conftest.$ac_ext <<EOF
13570 #line 13571 "configure"
13571 #include "confdefs.h"
13572 /* Override any gcc2 internal prototype to avoid an error. */
13573 /* We use char because int might match the return type of a gcc2
13574 builtin and then its argument prototype would still apply. */
13581 if { (eval echo configure:13582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13583 eval "ac_cv_lib_$ac_lib_var=yes"
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13588 eval "ac_cv_lib_$ac_lib_var=no"
13593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13594 echo "$ac_t""yes" 1>&6
13595 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13597 echo "$ac_t""no" 1>&6
13598 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13599 echo " xemacs will be linked with \"termcap.o\""
13610 { test "$extra_verbose" = "yes" && cat << EOF
13611 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13613 cat >> confdefs.h <<EOF
13614 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13618 { test "$extra_verbose" = "yes" && cat << EOF
13619 Defining TERM_H_FILE = "${term_h_file-term.h}"
13621 cat >> confdefs.h <<EOF
13622 #define TERM_H_FILE "${term_h_file-term.h}"
13627 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13628 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13629 echo "configure:13630: checking for gpm.h" >&5
13631 cat > conftest.$ac_ext <<EOF
13632 #line 13633 "configure"
13633 #include "confdefs.h"
13636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13637 { (eval echo configure:13638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13639 if test -z "$ac_err"; then
13641 eval "ac_cv_header_$ac_safe=yes"
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 eval "ac_cv_header_$ac_safe=no"
13650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13651 echo "$ac_t""yes" 1>&6
13654 echo "$ac_t""no" 1>&6
13658 test -z "$with_gpm" && {
13659 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13660 echo "configure:13661: checking for Gpm_Open in -lgpm" >&5
13661 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13663 xe_check_libs=" -lgpm "
13664 cat > conftest.$ac_ext <<EOF
13665 #line 13666 "configure"
13666 #include "confdefs.h"
13667 /* Override any gcc2 internal prototype to avoid an error. */
13668 /* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13676 if { (eval echo configure:13677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13678 eval "ac_cv_lib_$ac_lib_var=yes"
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13683 eval "ac_cv_lib_$ac_lib_var=no"
13688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13689 echo "$ac_t""yes" 1>&6
13692 echo "$ac_t""no" 1>&6
13697 if test "$with_gpm" = "yes"; then
13698 { test "$extra_verbose" = "yes" && cat << \EOF
13701 cat >> confdefs.h <<\EOF
13706 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13707 echo " xemacs will be linked with \"gpmevent.o\""
13709 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13712 else for feature in ncurses gpm; do
13713 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13714 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13716 eval "with_${feature}=no"
13719 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13720 echo " xemacs will be linked with \"event-unixoid.o\""
13724 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13725 != "no no no" && echo "checking for database support" 1>&6
13726 echo "configure:13727: checking for database support" >&5
13728 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13729 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13730 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13731 echo "configure:13732: checking for ndbm.h" >&5
13733 cat > conftest.$ac_ext <<EOF
13734 #line 13735 "configure"
13735 #include "confdefs.h"
13738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13739 { (eval echo configure:13740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13741 if test -z "$ac_err"; then
13743 eval "ac_cv_header_$ac_safe=yes"
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 eval "ac_cv_header_$ac_safe=no"
13752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13753 echo "$ac_t""yes" 1>&6
13756 echo "$ac_t""no" 1>&6
13758 test "$with_database_gdbm" = "yes" -o \
13759 "$with_database_dbm" = "yes" && \
13760 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13761 with_database_gdbm=no with_database_dbm=no
13766 if test "$with_database_gdbm" != "no"; then
13768 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13769 echo "configure:13770: checking for dbm_open in -lgdbm" >&5
13770 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13772 xe_check_libs=" -lgdbm "
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 /* Override any gcc2 internal prototype to avoid an error. */
13777 /* We use char because int might match the return type of a gcc2
13778 builtin and then its argument prototype would still apply. */
13785 if { (eval echo configure:13786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 eval "ac_cv_lib_$ac_lib_var=yes"
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 eval "ac_cv_lib_$ac_lib_var=no"
13797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13798 echo "$ac_t""yes" 1>&6
13799 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13801 echo "$ac_t""no" 1>&6
13802 if test "$with_database_gdbm" = "yes"; then
13803 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13805 with_database_gdbm=no
13811 if test "$with_database_dbm" != "no"; then
13812 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13813 echo "configure:13814: checking for dbm_open" >&5
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 /* System header to define __stub macros and hopefully few prototypes,
13819 which can conflict with char dbm_open(); below. */
13820 #include <assert.h>
13821 /* Override any gcc2 internal prototype to avoid an error. */
13822 /* We use char because int might match the return type of a gcc2
13823 builtin and then its argument prototype would still apply. */
13828 /* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13839 if { (eval echo configure:13840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841 eval "ac_cv_func_dbm_open=yes"
13843 echo "configure: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13846 eval "ac_cv_func_dbm_open=no"
13850 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13852 with_database_dbm=yes libdbm=
13854 echo "$ac_t""no" 1>&6
13857 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13858 echo "configure:13859: checking for dbm_open in -ldbm" >&5
13859 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13861 xe_check_libs=" -ldbm "
13862 cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* Override any gcc2 internal prototype to avoid an error. */
13866 /* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13874 if { (eval echo configure:13875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13876 eval "ac_cv_lib_$ac_lib_var=yes"
13878 echo "configure: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13881 eval "ac_cv_lib_$ac_lib_var=no"
13886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13887 echo "$ac_t""yes" 1>&6
13888 with_database_dbm=yes libdbm=-ldbm
13890 echo "$ac_t""no" 1>&6
13891 test "$with_database_dbm" = "yes" && \
13892 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13893 with_database_dbm=no
13901 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13902 test "$with_database_gdbm" = "yes" -o \
13903 "$with_database_dbm" = "yes" && \
13904 { test "$extra_verbose" = "yes" && cat << \EOF
13907 cat >> confdefs.h <<\EOF
13913 if test "$with_database_berkdb" != "no"; then
13914 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13915 echo "configure:13916: checking for Berkeley db.h" >&5
13916 for header in "db/db.h" "db.h"; do
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13921 #include <stdlib.h>
13922 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13923 #ifdef HAVE_INTTYPES_H
13924 #define __BIT_TYPES_DEFINED__
13925 #include <inttypes.h>
13926 typedef uint8_t u_int8_t;
13927 typedef uint16_t u_int16_t;
13928 typedef uint32_t u_int32_t;
13929 #ifdef WE_DONT_NEED_QUADS
13930 typedef uint64_t u_int64_t;
13940 if { (eval echo configure:13941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13942 db_h_file="$header"; break
13944 echo "configure: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13949 if test -z "$db_h_file"
13950 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13951 else echo "$ac_t""$db_h_file" 1>&6
13954 if test "$with_database_berkdb" != "no"; then
13955 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13956 echo "configure:13957: checking for Berkeley DB version" >&5
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 #include <$db_h_file>
13961 #if DB_VERSION_MAJOR > 1
13966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13967 egrep "yes" >/dev/null 2>&1; then
13969 cat > conftest.$ac_ext <<EOF
13970 #line 13971 "configure"
13971 #include "confdefs.h"
13972 #include <$db_h_file>
13973 #if DB_VERSION_MAJOR > 2
13978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13979 egrep "yes" >/dev/null 2>&1; then
13981 echo "$ac_t""3" 1>&6; dbfunc=db_create
13985 echo "$ac_t""2" 1>&6; dbfunc=db_open
13992 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13996 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13997 echo "configure:13998: checking for $dbfunc" >&5
13999 cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $dbfunc(); below. */
14004 #include <assert.h>
14005 /* Override any gcc2 internal prototype to avoid an error. */
14006 /* We use char because int might match the return type of a gcc2
14007 builtin and then its argument prototype would still apply. */
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14023 if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14025 eval "ac_cv_func_$dbfunc=yes"
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14030 eval "ac_cv_func_$dbfunc=no"
14034 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14035 echo "$ac_t""yes" 1>&6
14036 with_database_berkdb=yes need_libdb=no
14038 echo "$ac_t""no" 1>&6
14041 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14042 echo "configure:14043: checking for $dbfunc in -ldb" >&5
14043 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14045 xe_check_libs=" -ldb "
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 /* Override any gcc2 internal prototype to avoid an error. */
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14060 eval "ac_cv_lib_$ac_lib_var=yes"
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14065 eval "ac_cv_lib_$ac_lib_var=no"
14070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14071 echo "$ac_t""yes" 1>&6
14072 with_database_berkdb=yes need_libdb=yes
14074 echo "$ac_t""no" 1>&6
14082 if test "$with_database_berkdb" = "yes"; then
14083 { test "$extra_verbose" = "yes" && cat << EOF
14084 Defining DB_H_FILE = "$db_h_file"
14086 cat >> confdefs.h <<EOF
14087 #define DB_H_FILE "$db_h_file"
14091 { test "$extra_verbose" = "yes" && cat << \EOF
14092 Defining HAVE_BERKELEY_DB
14094 cat >> confdefs.h <<\EOF
14095 #define HAVE_BERKELEY_DB 1
14099 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14100 else with_database_berkdb=no
14104 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14105 != "no no no"; then
14106 { test "$extra_verbose" = "yes" && cat << \EOF
14107 Defining HAVE_DATABASE
14109 cat >> confdefs.h <<\EOF
14110 #define HAVE_DATABASE 1
14114 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14115 echo " xemacs will be linked with \"database.o\""
14117 if test "$with_utf_2000" = "yes"; then
14118 { test "$extra_verbose" = "yes" && cat << \EOF
14119 Defining HAVE_CHISE_CLIENT
14121 cat >> confdefs.h <<\EOF
14122 #define HAVE_CHISE_CLIENT 1
14129 if test "$with_socks" = "yes"; then
14131 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14132 echo "configure:14133: checking for SOCKSinit in -lsocks" >&5
14133 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14135 xe_check_libs=" -lsocks "
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14150 eval "ac_cv_lib_$ac_lib_var=yes"
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14155 eval "ac_cv_lib_$ac_lib_var=no"
14160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14161 echo "$ac_t""yes" 1>&6
14162 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14164 { test "$extra_verbose" = "yes" && cat << EOF
14165 Defining $ac_tr_lib
14167 cat >> confdefs.h <<EOF
14168 #define $ac_tr_lib 1
14172 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14175 echo "$ac_t""no" 1>&6
14179 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14180 Defining HAVE_SOCKS
14182 cat >> confdefs.h <<\EOF
14183 #define HAVE_SOCKS 1
14189 if test "$usage_tracking" = "yes"; then
14190 { test "$extra_verbose" = "yes" && cat << \EOF
14191 Defining USAGE_TRACKING
14193 cat >> confdefs.h <<\EOF
14194 #define USAGE_TRACKING 1
14198 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14201 if test "$with_modules" != "no"; then
14202 echo "checking for module support" 1>&6
14203 echo "configure:14204: checking for module support" >&5
14205 if test "$with_msw" = "yes"; then
14208 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14209 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14210 echo "configure:14211: checking for dlfcn.h" >&5
14212 cat > conftest.$ac_ext <<EOF
14213 #line 14214 "configure"
14214 #include "confdefs.h"
14217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14218 { (eval echo configure:14219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14220 if test -z "$ac_err"; then
14222 eval "ac_cv_header_$ac_safe=yes"
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14228 eval "ac_cv_header_$ac_safe=no"
14231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14232 echo "$ac_t""yes" 1>&6
14234 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14235 echo "configure:14236: checking for dlopen in -lc" >&5
14236 cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14244 if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14252 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14253 echo "configure:14254: checking for dlopen in -ldl" >&5
14254 ac_save_LIBS="$LIBS"
14256 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14268 echo "configure: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14271 LIBS="$ac_save_LIBS"
14278 echo "$ac_t""no" 1>&6
14281 if test -n "$have_dl"; then
14282 { test "$extra_verbose" = "yes" && cat << \EOF
14283 Defining HAVE_DLOPEN
14285 cat >> confdefs.h <<\EOF
14286 #define HAVE_DLOPEN 1
14292 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14293 echo "configure:14294: checking for shl_load in -ldld" >&5
14294 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14296 xe_check_libs=" -ldld "
14297 cat > conftest.$ac_ext <<EOF
14298 #line 14299 "configure"
14299 #include "confdefs.h"
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 /* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14309 if { (eval echo configure:14310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14311 eval "ac_cv_lib_$ac_lib_var=yes"
14313 echo "configure: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14316 eval "ac_cv_lib_$ac_lib_var=no"
14321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14322 echo "$ac_t""yes" 1>&6
14323 libdl=dld have_dl=yes;
14324 { test "$extra_verbose" = "yes" && cat << \EOF
14325 Defining HAVE_SHL_LOAD
14327 cat >> confdefs.h <<\EOF
14328 #define HAVE_SHL_LOAD 1
14333 echo "$ac_t""no" 1>&6
14335 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14336 echo "configure:14337: checking for dld_init in -ldld" >&5
14337 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14339 xe_check_libs=" -ldld "
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14343 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14352 if { (eval echo configure:14353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14354 eval "ac_cv_lib_$ac_lib_var=yes"
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 eval "ac_cv_lib_$ac_lib_var=no"
14364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14365 echo "$ac_t""yes" 1>&6
14366 libdl=dld have_dl=yes;
14367 { test "$extra_verbose" = "yes" && cat << \EOF
14368 Defining HAVE_DLD_INIT
14370 cat >> confdefs.h <<\EOF
14371 #define HAVE_DLD_INIT 1
14376 echo "$ac_t""no" 1>&6
14385 if test -n "$have_dl"; then
14392 ld_dynamic_link_flags=
14394 xealias=$internal_configuration
14396 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14397 echo "configure:14398: checking how to build dynamic libraries for ${xehost}" >&5
14398 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14401 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14404 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14405 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14406 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14408 case "$xehost_os" in
14410 # AIX sometimes has problems with the GCC collect2 program. For some
14411 # reason, if we set the COLLECT_NAMES environment variable, the problems
14412 # vanish in a puff of smoke.
14413 if test "${COLLECT_NAMES+set}" != set; then
14415 export COLLECT_NAMES
14420 # Now see if the compiler is really GCC.
14421 if test "$GCC" = "yes"; then
14424 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14425 echo "configure:14426: checking checking whether we are using GNU C" >&5
14426 cat > conftest.$ac_ext <<EOF
14427 #line 14428 "configure"
14428 #include "confdefs.h"
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436 egrep "yes" >/dev/null 2>&1; then
14445 echo "$ac_t""${XEGCC}" 1>&6
14448 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14449 echo "configure:14450: checking how to produce PIC code" >&5
14452 can_build_shared=yes
14453 if test "$XEGCC" = yes; then
14456 case "$xehost_os" in
14457 aix[3-9]* | irix[5-9]* | osf[3-9])
14458 # PIC is the default for these OSes.
14462 # We can build DLLs from non-PIC.
14465 # FIXME: we need at least 68020 code to build shared libraries, but
14466 # adding the `-m68020' flag to GCC prevents building anything better,
14468 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14470 *cygwin* | *mingw* )
14471 # PIC is the default
14478 # PORTME Check for PIC flags for the system compiler.
14479 case "$xehost_os" in
14480 hpux9* | hpux1[0-9]*)
14481 # Is there a better link_static_flag that works with the bundled CC?
14488 # PIC (with -KPIC) is the default.
14492 # We can build DLLs from non-PIC.
14496 # All OSF/1 code is PIC.
14501 # All AIX code is PIC.
14506 dll_cflags='-belf -Kpic'
14540 can_build_shared=no
14545 if test -n "$dll_cflags"; then
14546 echo "$ac_t""${dll_cflags}" 1>&6
14548 # Check to make sure the dll_cflags actually works.
14549 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14550 echo "configure:14551: checking if PIC flag ${dll_cflags} really works" >&5
14551 save_CFLAGS="$CFLAGS"
14552 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14553 cat > conftest.$ac_ext <<EOF
14554 #line 14555 "configure"
14555 #include "confdefs.h"
14561 if { (eval echo configure:14562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14564 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14565 # reports no error. So, we need to grep stderr for (Bundled).
14566 if grep '(Bundled)' config.log >/dev/null; then
14567 echo "$ac_t""no" 1>&6
14568 can_build_shared=no
14571 echo "$ac_t""yes" 1>&6
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14577 echo "$ac_t""no" 1>&6
14578 can_build_shared=no
14582 CFLAGS="$save_CFLAGS"
14584 echo "$ac_t""none" 1>&6
14587 if test "$can_build_shared" = "yes"; then
14591 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14592 echo "configure:14593: checking if C compiler can produce shared libraries" >&5
14593 if test "$XEGCC" = yes; then
14596 else # Not using GCC
14597 case "$xehost_os" in
14599 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14600 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14603 freebsd2* | netbsd* | openbsd*)
14605 xcldf="${wl}-Bshareable"
14614 xcldf="${wl}-b ${wl}+s"
14617 irix[5-9]* | osf[3-9]*)
14618 xcldf="${wl}-shared"
14622 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14628 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14629 xldf="-assert pure-text -Bstatic"
14632 fi # End if if we are using gcc
14634 if test -n "$xcldf"; then
14635 save_LDFLAGS=$LDFLAGS
14637 save_xe_libs=$xe_libs
14638 LDFLAGS="$xcldf $LDFLAGS"
14641 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14642 cat > conftest.$ac_ext <<EOF
14643 #line 14644 "configure"
14644 #include "confdefs.h"
14650 if { (eval echo configure:14651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14654 echo "configure: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14660 LDFLAGS=$save_LDFLAGS
14662 xe_libs=$save_xe_libs
14663 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14667 echo "$ac_t""${cc_produces_so}" 1>&6
14670 if test -z "$LTLD"; then
14672 if test "$XEGCC" = yes; then
14673 # Check if gcc -print-prog-name=ld gives a path.
14674 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14675 echo "configure:14676: checking for ld used by GCC" >&5
14676 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14678 # Accept absolute paths.
14680 if test -z "$LTLD"; then
14682 *gcc-lib*) LTLD="$CC"
14690 # If it fails, then pretend we aren't using GCC.
14694 # If it is relative, then search for the first ld in PATH.
14695 with_gnu_ld=unknown
14699 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14700 echo "configure:14701: checking for GNU ld" >&5
14703 if test -z "$LTLD"; then
14704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14705 for ac_dir in $PATH; do
14706 test -z "$ac_dir" && ac_dir=.
14707 if test -f "$ac_dir/$ac_prog"; then
14708 LTLD="$ac_dir/$ac_prog"
14709 # Check to see if the program is GNU ld. I'd rather use --version,
14710 # but apparently some GNU ld's only accept -v.
14711 # Break only if it was the GNU/non-GNU ld that we prefer.
14712 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14722 if test -n "$LTLD"; then
14723 echo "$ac_t""${LTLD}" 1>&6
14725 echo "$ac_t""no" 1>&6
14728 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14729 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14734 ld_dynamic_link_flags=
14736 # Check to see if it really is or isn't GNU ld.
14737 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14738 echo "configure:14739: checking if the linker is GNU ld" >&5
14739 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14740 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14745 echo "$ac_t""${xe_gnu_ld}" 1>&6
14747 case "$xehost_os" in
14748 amigaos* | sunos4*)
14749 # On these operating systems, we should treat GNU ld like the system ld.
14750 gnu_ld_acts_native=yes
14753 gnu_ld_acts_native=no
14757 if test "$cc_produces_so" = "yes"; then
14760 can_build_shared=yes
14763 # OK - only NOW do we futz about with ld.
14764 # See if the linker supports building shared libraries.
14765 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14766 echo "configure:14767: checking whether the linker supports shared libraries" >&5
14768 dll_ldflags=$LDFLAGS
14770 can_build_shared=yes
14771 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14772 # See if GNU ld supports shared libraries.
14773 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14775 dll_ldflags="-shared"
14781 # PORTME fill in a description of your system's linker (not GNU ld)
14782 case "$xehost_os" in
14792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14793 # support. Future versions do this automatically, but an explicit c++rt0.o
14794 # doesn't break anything, and helps significantly (at the cost of a little
14799 dll_post="/usr/lib/c++rt0.o"
14802 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14805 dll_ldflags="-Bshareable"
14808 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14810 dll_ldflags="-shared"
14824 # Tested with NetBSD 1.2 ld
14839 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14840 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14843 *gcc*) dll_ldflags="-shared"
14846 *) dll_ldflags="-G"
14852 if test "$XEGCC" = yes; then
14872 can_build_shared=no
14876 echo "$ac_t""${ld_shlibs}" 1>&6
14877 if test "$ld_shlibs" = "no"; then
14878 can_build_shared=no
14880 fi # End of if cc_produces_so = no
14883 if test "$xe_gnu_ld" = yes; then
14884 if test "$ld_shlibs" = yes; then
14885 ld_dynamic_link_flags="${wl}-export-dynamic"
14889 if test -z "$ld_dynamic_link_flags"; then
14890 case "$xehost_os" in
14892 ld_dynamic_link_flags=
14896 ld_dynamic_link_flags=
14900 ld_dynamic_link_flags=
14904 ld_dynamic_link_flags=
14908 ld_dynamic_link_flags="${wl}-E"
14912 ld_dynamic_link_flags=
14916 ld_dynamic_link_flags=
14920 ld_dynamic_link_flags=
14924 ld_dynamic_link_flags=
14927 solaris2* | solaris7*)
14928 ld_dynamic_link_flags=
14931 sco3.2v5* | unixware* | sysv5* | sysv4*)
14932 ld_dynamic_link_flags="${wl}-Bexport"
14936 ld_dynamic_link_flags=
14940 ld_dynamic_link_flags=
14944 ld_dynamic_link_flags=
14948 fi # End of if -z ld_dynamic_link_flags
14949 fi # End of if test "$can_build_shared" = "yes"
14960 if test "$can_build_shared" = "yes"; then
14961 { test "$extra_verbose" = "yes" && cat << \EOF
14962 Defining HAVE_SHLIB
14964 cat >> confdefs.h <<\EOF
14965 #define HAVE_SHLIB 1
14969 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14970 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14972 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14973 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14974 for ac_func in dlerror _dlerror
14976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14977 echo "configure:14978: checking for $ac_func" >&5
14979 cat > conftest.$ac_ext <<EOF
14980 #line 14981 "configure"
14981 #include "confdefs.h"
14982 /* System header to define __stub macros and hopefully few prototypes,
14983 which can conflict with char $ac_func(); below. */
14984 #include <assert.h>
14985 /* Override any gcc2 internal prototype to avoid an error. */
14986 /* We use char because int might match the return type of a gcc2
14987 builtin and then its argument prototype would still apply. */
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003 if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15005 eval "ac_cv_func_$ac_func=yes"
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15010 eval "ac_cv_func_$ac_func=no"
15014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15015 echo "$ac_t""yes" 1>&6
15016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15017 { test "$extra_verbose" = "yes" && cat << EOF
15018 Defining $ac_tr_func
15020 cat >> confdefs.h <<EOF
15021 #define $ac_tr_func 1
15026 echo "$ac_t""no" 1>&6
15032 if test "$with_modules" = "yes"; then
15033 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15035 echo "configure: warning: "Module support cannot be provided."" 1>&2
15041 cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 int main(int c,char *v[]){return 0;}
15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15051 echo "configure: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15056 echo "*** PANIC *** The C compiler can no longer build working executables."
15057 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15058 echo "*** PANIC *** The most likely reason for this problem is that configure"
15059 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15060 echo "*** PANIC *** found at run time."
15061 echo "*** PANIC ***"
15062 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15063 echo "*** PANIC *** On other systems, try telling configure where to find the"
15064 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15065 echo "*** PANIC ***"
15066 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15067 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15068 echo "*** PANIC *** on your system. Don't do that."
15073 if test "$win32_processes" = "yes"; then
15074 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15075 echo " xemacs will be linked with \"process-nt.o\""
15078 { test "$extra_verbose" = "yes" && cat << \EOF
15079 Defining HAVE_UNIX_PROCESSES
15081 cat >> confdefs.h <<\EOF
15082 #define HAVE_UNIX_PROCESSES 1
15086 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15087 echo " xemacs will be linked with \"process-unix.o\""
15094 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15099 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15104 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
15105 c_switch_general="$T"
15109 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
15110 c_switch_window_system="$T"
15114 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15119 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
15120 ld_switch_general="$T"
15124 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15125 ld_switch_window_system="$T"
15129 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15134 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15135 ld_libs_general="$T"
15139 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
15140 ld_libs_window_system="$T"
15144 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15149 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15150 internal_makefile_list="Makefile.in"
15151 SUBDIR_MAKEFILES=''
15152 test -d lock || mkdir lock
15153 for dir in $MAKE_SUBDIR; do
15154 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15155 test -d "$d" || mkdir "$d"; cd "$d"
15157 * ) test -d "$dir" || mkdir "$dir" ;;
15161 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15162 SUBDIR_MAKEFILES="$T"
15166 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15167 internal_makefile_list="$T"
15174 for dir in src/s src/m; do
15175 if test ! -d "$dir" ; then
15176 echo Making symbolic link to "$srcdir/$dir"
15177 ${LN_S} "$srcdir/$dir" "$dir"
15181 if test "$extra_verbose" = "yes"; then
15183 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
15188 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15189 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15190 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15193 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15194 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15195 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15198 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15199 test "$extra_verbose" = "yes" && echo "creating TAGS"
15201 $srcdir/TAGS,include" > "TAGS"
15204 if test "$__SUNPRO_C" = "yes"; then
15205 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15206 ( echo "# For use with Sun WorkShop's Source browser."
15207 echo "# See sbquery(1) and sbinit(4) for more information"
15208 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15236 *\$* ) eval "PREFIX=$PREFIX" ;;
15244 EXEC_PREFIX=$exec_prefix
15246 case "$EXEC_PREFIX" in
15247 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15258 *\$* ) eval "INFODIR=$INFODIR" ;;
15268 case "$INFOPATH" in
15269 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15277 PACKAGE_PATH=$package_path
15279 case "$PACKAGE_PATH" in
15280 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15291 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15299 MODULEDIR=$moduledir
15301 case "$MODULEDIR" in
15302 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15310 SITELISPDIR=$sitelispdir
15312 case "$SITELISPDIR" in
15313 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15321 SITEMODULEDIR=$sitemoduledir
15323 case "$SITEMODULEDIR" in
15324 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15335 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15346 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15354 ARCHLIBDIR=$archlibdir
15356 case "$ARCHLIBDIR" in
15357 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15381 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15389 : ${XEMACS_CC:=$CC}
15392 if test "$with_prefix" = "yes"; then
15393 { test "$extra_verbose" = "yes" && cat << \EOF
15394 Defining PREFIX_USER_DEFINED
15396 cat >> confdefs.h <<\EOF
15397 #define PREFIX_USER_DEFINED 1
15403 if test "$with_site_lisp" = "no"; then
15404 { test "$extra_verbose" = "yes" && cat << \EOF
15405 Defining INHIBIT_SITE_LISP
15407 cat >> confdefs.h <<\EOF
15408 #define INHIBIT_SITE_LISP 1
15413 if test "$with_site_modules" = "no"; then
15414 { test "$extra_verbose" = "yes" && cat << \EOF
15415 Defining INHIBIT_SITE_MODULES
15417 cat >> confdefs.h <<\EOF
15418 #define INHIBIT_SITE_MODULES 1
15426 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15427 ac_configure_args="$T"
15429 { test "$extra_verbose" = "yes" && cat << EOF
15430 Defining EMACS_CONFIGURATION = "$configuration"
15432 cat >> confdefs.h <<EOF
15433 #define EMACS_CONFIGURATION "$configuration"
15437 { test "$extra_verbose" = "yes" && cat << EOF
15438 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15440 cat >> confdefs.h <<EOF
15441 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15448 { test "$extra_verbose" = "yes" && cat << EOF
15449 Defining LD_SWITCH_X_SITE = $null_string
15451 cat >> confdefs.h <<EOF
15452 #define LD_SWITCH_X_SITE $null_string
15456 { test "$extra_verbose" = "yes" && cat << EOF
15457 Defining LD_SWITCH_X_SITE_AUX = $null_string
15459 cat >> confdefs.h <<EOF
15460 #define LD_SWITCH_X_SITE_AUX $null_string
15464 { test "$extra_verbose" = "yes" && cat << EOF
15465 Defining C_SWITCH_X_SITE = $null_string
15467 cat >> confdefs.h <<EOF
15468 #define C_SWITCH_X_SITE $null_string
15472 { test "$extra_verbose" = "yes" && cat << EOF
15473 Defining LD_SWITCH_SITE = $null_string
15475 cat >> confdefs.h <<EOF
15476 #define LD_SWITCH_SITE $null_string
15480 { test "$extra_verbose" = "yes" && cat << EOF
15481 Defining C_SWITCH_SITE = $null_string
15483 cat >> confdefs.h <<EOF
15484 #define C_SWITCH_SITE $null_string
15490 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15491 Defining GNU_MALLOC
15493 cat >> confdefs.h <<\EOF
15494 #define GNU_MALLOC 1
15498 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15499 Defining USE_SYSTEM_MALLOC
15501 cat >> confdefs.h <<\EOF
15502 #define USE_SYSTEM_MALLOC 1
15506 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15507 Defining USE_DEBUG_MALLOC
15509 cat >> confdefs.h <<\EOF
15510 #define USE_DEBUG_MALLOC 1
15514 { test "$extra_verbose" = "yes" && cat << \EOF
15515 Defining USE_SYSTEM_MALLOC
15517 cat >> confdefs.h <<\EOF
15518 #define USE_SYSTEM_MALLOC 1
15523 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15526 cat >> confdefs.h <<\EOF
15531 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15534 cat >> confdefs.h <<\EOF
15539 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15540 Defining EXTERNAL_WIDGET
15542 cat >> confdefs.h <<\EOF
15543 #define EXTERNAL_WIDGET 1
15547 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15548 Defining QUICK_BUILD
15550 cat >> confdefs.h <<\EOF
15551 #define QUICK_BUILD 1
15555 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15558 cat >> confdefs.h <<\EOF
15563 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15566 cat >> confdefs.h <<\EOF
15571 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15572 Defining MAIL_USE_POP
15574 cat >> confdefs.h <<\EOF
15575 #define MAIL_USE_POP 1
15579 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15582 cat >> confdefs.h <<\EOF
15587 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15590 cat >> confdefs.h <<\EOF
15595 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15596 Defining USE_UNION_TYPE
15598 cat >> confdefs.h <<\EOF
15599 #define USE_UNION_TYPE 1
15603 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15606 cat >> confdefs.h <<\EOF
15614 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15616 echo "uname -a: `uname -a`"
15619 echo "$0 $quoted_arguments"
15622 if test ! -z ${emacs_beta_version} ; then
15623 if test -z "${emacs_is_beta}" ; then
15624 xemacs_betaname=".${emacs_beta_version}"
15626 xemacs_betaname="-b${emacs_beta_version}"
15635 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15638 Compilation / Installation:"
15639 echo " Source code location: $srcdir"
15640 echo " Installation prefix: $prefix"
15641 if test -n "$site_includes"; then
15642 echo " Additional header files: $site_includes"
15644 if test -n "$site_libraries"; then
15645 echo " Additional libraries: $site_libraries"
15647 if test -n "$site_prefixes"; then
15648 echo " Additional prefixes: $site_prefixes"
15650 if test -n "$runpath"; then
15651 echo " Runtime library search path: $runpath"
15654 if test -n "$opsysfile"
15655 then echo " Operating system description file: \`$opsysfile'"
15656 else echo " Not using any operating system description file"
15658 if test -n "$machfile"
15659 then echo " Machine description file: \`$machfile'"
15660 else echo " Not using any machine description file"
15663 echo " Compiler: $CC $CFLAGS"
15664 echo " Relocating allocator for buffers: $rel_alloc"
15665 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15669 if test "$with_msw" = "yes"; then
15670 echo " Compiling in support for the Microsoft window system."
15672 if test "$with_x11" = "yes"; then
15673 echo " Compiling in support for the X window system:"
15674 echo " - X Windows headers location: $x_includes"
15675 echo " - X Windows libraries location: $x_libraries"
15676 if test "$with_xauth" != yes; then
15677 echo " - Xau (X authority) not available."
15679 if test "$with_xmu" != yes; then
15680 echo " - Xmu library not available; substituting equivalent routines."
15682 if test "$with_wmcommand" != no; then
15683 echo " - Handling WM_COMMAND properly."
15686 if test "$need_athena" = "yes"; then
15687 echo " Compiling in support for the Athena widget set:"
15688 echo " - Athena headers location: $athena_h_path"
15689 echo " - Athena library to link: $athena_lib"
15691 case "$with_menubars" in
15692 gtk ) echo " Using GTK menubars." ;;
15693 lucid ) echo " Using Lucid menubars." ;;
15694 motif ) echo " Using Motif menubars."
15695 echo " *WARNING* The Motif menubar implementation is currently buggy."
15696 echo " We recommend using the Lucid menubar instead."
15697 echo " Re-run configure with --with-menubars='lucid'." ;;
15698 msw ) echo " Using MS-Windows menubars." ;;
15700 case "$with_scrollbars" in
15701 gtk ) echo " Using GTK scrollbars." ;;
15702 lucid ) echo " Using Lucid scrollbars." ;;
15703 motif ) echo " Using Motif scrollbars." ;;
15704 athena ) echo " Using Athena scrollbars." ;;
15705 msw ) echo " Using MS-Windows scrollbars." ;;
15707 case "$with_dialogs" in
15708 gtk ) echo " Using GTK dialog boxes." ;;
15709 motif ) echo " Using Motif dialog boxes."
15710 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15711 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15712 echo " We recommend using the Athena dialog boxes instead."
15713 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15714 echo " Read the PROBLEMS file for more information."
15716 athena ) echo " Using Athena dialog boxes." ;;
15717 msw ) echo " Using MS-Windows dialog boxes." ;;
15719 case "$with_widgets" in
15720 gtk ) echo " Using GTK native widgets." ;;
15721 motif ) echo " Using Motif native widgets." ;;
15722 athena ) echo " Using Athena native widgets." ;;
15723 msw ) echo " Using MS-Windows native widgets." ;;
15725 if test "$with_dragndrop" = yes; then
15726 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15727 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15732 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15733 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15737 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15738 if test "$with_xpm" = yes; then
15739 echo " Compiling in support for XPM images."
15740 elif test "$with_x11" = yes; then
15741 echo " WARNING: -----------------------------------------------------------"
15742 echo " WARNING: Compiling without XPM image support."
15743 if test "$xpm_problem" != ""; then
15744 echo " Reason: $xpm_problem"
15746 echo " WARNING: You should strongly consider installing XPM."
15747 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15748 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15749 echo " WARNING: -----------------------------------------------------------"
15751 if test "$with_png" = yes; then
15752 echo " Compiling in support for PNG images."
15753 elif test "$window_system" != "none"; then
15754 echo " WARNING: -----------------------------------------------------------"
15755 echo " WARNING: Compiling without PNG image support."
15756 if test "$png_problem" != ""; then
15757 echo " Reason: $png_problem"
15759 echo " WARNING: You should strongly consider installing the PNG libraries."
15760 echo " WARNING: Otherwise certain images and glyphs may not display."
15761 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15762 echo " WARNING: -----------------------------------------------------------"
15764 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15765 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15766 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15770 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15771 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15772 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15773 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15777 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15778 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15779 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15780 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15781 if test "$with_postgresql" = yes; then
15782 echo " Compiling in support for PostgreSQL."
15783 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15784 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15788 Internationalization:"
15789 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15790 test "$with_utf_2000" = yes && echo " Using UTF-2000 (UTF-8) buffer/string representation."
15791 test "$with_text_coding" = yes && echo " Compiling in support for text coding."
15792 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15793 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15794 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15795 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15796 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15797 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15798 if test "$with_wnn" = yes; then
15799 echo " Compiling in support for the WNN input method on Mule."
15800 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15802 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15806 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15807 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15808 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15809 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15813 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15814 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15815 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15816 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15817 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15818 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15819 test "$pdump" = yes && echo " Using the new portable dumper."
15820 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15821 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15822 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15823 != "no no no no no no"; then
15824 echo " WARNING: ---------------------------------------------------------"
15825 echo " WARNING: Compiling in support for runtime error checking."
15826 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15827 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15828 echo " WARNING: ---------------------------------------------------------"
15831 ) | tee -a Installation
15835 # Remove any trailing slashes in these variables.
15836 test -n "$prefix" &&
15837 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15838 test -n "$exec_prefix" &&
15839 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15842 for file in $internal_makefile_list; do
15843 test "$file" = src/Makefile.in && \
15844 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15845 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15847 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15848 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
15852 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15855 # Let make expand exec_prefix.
15856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15858 # Any assignment to VPATH causes Sun make to only execute
15859 # the first set of double-colon rules, so remove it if not needed.
15860 # If there is a colon in the path, we need to keep it.
15861 if test "x$srcdir" = x.; then
15862 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15865 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15867 DEFS=-DHAVE_CONFIG_H
15869 # Without the "./", some shells look in PATH for config.status.
15870 : ${CONFIG_STATUS=./config.status}
15872 echo creating $CONFIG_STATUS
15873 rm -f $CONFIG_STATUS
15874 cat > $CONFIG_STATUS <<EOF
15876 # Generated automatically by configure.
15877 # Run this file to recreate the current configuration.
15878 # This directory was configured as follows,
15879 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15881 # $0 $ac_configure_args
15883 # Compiler output produced by configure, useful for debugging
15884 # configure, is in ./config.log if it exists.
15886 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15889 case "\$ac_option" in
15890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15891 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15892 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15893 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15894 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15896 -help | --help | --hel | --he | --h)
15897 echo "\$ac_cs_usage"; exit 0 ;;
15898 *) echo "\$ac_cs_usage"; exit 1 ;;
15902 ac_given_srcdir=$srcdir
15903 ac_given_INSTALL="$INSTALL"
15905 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15907 cat >> $CONFIG_STATUS <<EOF
15909 # Protect against being on the right side of a sed subst in config.status.
15910 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15911 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15915 s%@CFLAGS@%$CFLAGS%g
15916 s%@CPPFLAGS@%$CPPFLAGS%g
15917 s%@CXXFLAGS@%$CXXFLAGS%g
15918 s%@FFLAGS@%$FFLAGS%g
15920 s%@LDFLAGS@%$LDFLAGS%g
15922 s%@exec_prefix@%$exec_prefix%g
15923 s%@prefix@%$prefix%g
15924 s%@program_transform_name@%$program_transform_name%g
15925 s%@bindir@%$bindir%g
15926 s%@sbindir@%$sbindir%g
15927 s%@libexecdir@%$libexecdir%g
15928 s%@datadir@%$datadir%g
15929 s%@sysconfdir@%$sysconfdir%g
15930 s%@sharedstatedir@%$sharedstatedir%g
15931 s%@localstatedir@%$localstatedir%g
15932 s%@libdir@%$libdir%g
15933 s%@includedir@%$includedir%g
15934 s%@oldincludedir@%$oldincludedir%g
15935 s%@infodir@%$infodir%g
15936 s%@mandir@%$mandir%g
15938 s%@blddir@%$blddir%g
15941 s%@start_flags@%$start_flags%g
15942 s%@ld_switch_shared@%$ld_switch_shared%g
15943 s%@start_files@%$start_files%g
15945 s%@lib_gcc@%$lib_gcc%g
15946 s%@RANLIB@%$RANLIB%g
15947 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15948 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15949 s%@INSTALL_DATA@%$INSTALL_DATA%g
15951 s%@SET_MAKE@%$SET_MAKE%g
15952 s%@GTK_CONFIG@%$GTK_CONFIG%g
15953 s%@X_CFLAGS@%$X_CFLAGS%g
15954 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15955 s%@X_LIBS@%$X_LIBS%g
15956 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15957 s%@install_pp@%$install_pp%g
15958 s%@libs_xauth@%$libs_xauth%g
15959 s%@dnd_objs@%$dnd_objs%g
15960 s%@lwlib_objs@%$lwlib_objs%g
15961 s%@ALLOCA@%$ALLOCA%g
15962 s%@have_esd_config@%$have_esd_config%g
15963 s%@dll_ld@%$dll_ld%g
15964 s%@dll_cflags@%$dll_cflags%g
15965 s%@dll_ldflags@%$dll_ldflags%g
15966 s%@dll_post@%$dll_post%g
15967 s%@dll_ldo@%$dll_ldo%g
15968 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15969 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15970 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15971 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15972 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15973 s%@PROGNAME@%$PROGNAME%g
15974 s%@version@%$version%g
15975 s%@configuration@%$configuration%g
15976 s%@canonical@%$canonical%g
15977 s%@inststaticdir@%$inststaticdir%g
15978 s%@instvardir@%$instvardir%g
15979 s%@srcdir@%$srcdir%g
15980 s%@pkgdir@%$pkgdir%g
15981 s%@statedir@%$statedir%g
15982 s%@extra_includes@%$extra_includes%g
15983 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15984 s%@PREFIX@%$PREFIX%g
15985 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15986 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15987 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15988 s%@INFODIR@%$INFODIR%g
15989 s%@infopath@%$infopath%g
15990 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15991 s%@INFOPATH@%$INFOPATH%g
15992 s%@package_path@%$package_path%g
15993 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15994 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15995 s%@lispdir@%$lispdir%g
15996 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15997 s%@LISPDIR@%$LISPDIR%g
15998 s%@moduledir@%$moduledir%g
15999 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16000 s%@MODULEDIR@%$MODULEDIR%g
16001 s%@sitelispdir@%$sitelispdir%g
16002 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16003 s%@SITELISPDIR@%$SITELISPDIR%g
16004 s%@sitemoduledir@%$sitemoduledir%g
16005 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16006 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16007 s%@etcdir@%$etcdir%g
16008 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16009 s%@ETCDIR@%$ETCDIR%g
16010 s%@docdir@%$docdir%g
16011 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16012 s%@DOCDIR@%$DOCDIR%g
16013 s%@archlibdir@%$archlibdir%g
16014 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16015 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16016 s%@bitmapdir@%$bitmapdir%g
16017 s%@extra_objs@%$extra_objs%g
16018 s%@machfile@%$machfile%g
16019 s%@opsysfile@%$opsysfile%g
16020 s%@c_switch_general@%$c_switch_general%g
16021 s%@c_switch_window_system@%$c_switch_window_system%g
16022 s%@c_switch_all@%$c_switch_all%g
16023 s%@ld_switch_general@%$ld_switch_general%g
16024 s%@ld_switch_window_system@%$ld_switch_window_system%g
16025 s%@ld_switch_all@%$ld_switch_all%g
16026 s%@ld_libs_general@%$ld_libs_general%g
16027 s%@ld_libs_window_system@%$ld_libs_window_system%g
16028 s%@ld_libs_all@%$ld_libs_all%g
16029 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16030 s%@native_sound_lib@%$native_sound_lib%g
16031 s%@sound_cflags@%$sound_cflags%g
16032 s%@dynodump_arch@%$dynodump_arch%g
16033 s%@XEMACS_CC@%$XEMACS_CC%g
16034 s%@internal_makefile_list@%$internal_makefile_list%g
16039 cat >> $CONFIG_STATUS <<\EOF
16041 # Split the substitutions into bite-sized pieces for seds with
16042 # small command number limits, like on Digital OSF/1 and HP-UX.
16043 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16044 ac_file=1 # Number of current file.
16045 ac_beg=1 # First line for current file.
16046 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16049 while $ac_more_lines; do
16050 if test $ac_beg -gt 1; then
16051 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16053 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16055 if test ! -s conftest.s$ac_file; then
16056 ac_more_lines=false
16057 rm -f conftest.s$ac_file
16059 if test -z "$ac_sed_cmds"; then
16060 ac_sed_cmds="sed -f conftest.s$ac_file"
16062 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16064 ac_file=`expr $ac_file + 1`
16066 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16069 if test -z "$ac_sed_cmds"; then
16074 cat >> $CONFIG_STATUS <<EOF
16076 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16078 cat >> $CONFIG_STATUS <<\EOF
16079 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16082 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16083 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16084 *) ac_file_in="${ac_file}.in" ;;
16087 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16089 # Remove last slash and all that follows it. Not all systems have dirname.
16090 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16091 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16092 # The file is in a subdirectory.
16093 test ! -d "$ac_dir" && mkdir "$ac_dir"
16094 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16095 # A "../" for each directory in $ac_dir_suffix.
16096 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16098 ac_dir_suffix= ac_dots=
16101 case "$ac_given_srcdir" in
16103 if test -z "$ac_dots"; then top_srcdir=.
16104 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16105 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16106 *) # Relative path.
16107 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16108 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16111 case "$ac_given_INSTALL" in
16112 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16113 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16116 echo creating "$ac_file"
16118 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16120 *Makefile*) ac_comsub="1i\\
16121 # $configure_input" ;;
16125 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16127 s%@configure_input@%$configure_input%g
16128 s%@srcdir@%$srcdir%g
16129 s%@top_srcdir@%$top_srcdir%g
16130 s%@INSTALL@%$INSTALL%g
16131 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16135 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16136 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16138 # ac_d sets the value in "#define NAME VALUE" lines.
16139 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16140 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16143 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16144 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16145 ac_uB='\([ ]\)%\1#\2define\3'
16148 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16149 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16150 ac_eB='$%\1#\2define\3'
16154 if test "${CONFIG_HEADERS+set}" != set; then
16156 cat >> $CONFIG_STATUS <<EOF
16157 CONFIG_HEADERS="src/config.h lwlib/config.h"
16159 cat >> $CONFIG_STATUS <<\EOF
16161 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16164 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16165 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16166 *) ac_file_in="${ac_file}.in" ;;
16169 echo creating $ac_file
16171 rm -f conftest.frag conftest.in conftest.out
16172 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16173 cat $ac_file_inputs > conftest.in
16177 # Transform confdefs.h into a sed script conftest.vals that substitutes
16178 # the proper values into config.h.in to produce config.h. And first:
16179 # Protect against being on the right side of a sed subst in config.status.
16180 # Protect against being in an unquoted here document in config.status.
16181 rm -f conftest.vals
16182 cat > conftest.hdr <<\EOF
16185 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16189 sed -n -f conftest.hdr confdefs.h > conftest.vals
16192 # This sed command replaces #undef with comments. This is necessary, for
16193 # example, in the case of _POSIX_SOURCE, which is predefined and required
16194 # on some systems where configure will not decide to define it.
16195 cat >> conftest.vals <<\EOF
16196 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16199 # Break up conftest.vals because some shells have a limit on
16200 # the size of here documents, and old seds have small limits too.
16202 rm -f conftest.tail
16205 ac_lines=`grep -c . conftest.vals`
16206 # grep -c gives empty output for an empty file on some AIX systems.
16207 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16208 # Write a limited-size here document to conftest.frag.
16209 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16210 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16212 sed -f conftest.frag conftest.in > conftest.out
16214 mv conftest.out conftest.in
16215 ' >> $CONFIG_STATUS
16216 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16217 rm -f conftest.vals
16218 mv conftest.tail conftest.vals
16220 rm -f conftest.vals
16222 cat >> $CONFIG_STATUS <<\EOF
16223 rm -f conftest.frag conftest.h
16224 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16225 cat conftest.in >> conftest.h
16227 if cmp -s $ac_file conftest.h 2>/dev/null; then
16228 echo "$ac_file is unchanged"
16231 # Remove last slash and all that follows it. Not all systems have dirname.
16232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16234 # The file is in a subdirectory.
16235 test ! -d "$ac_dir" && mkdir "$ac_dir"
16238 mv conftest.h $ac_file
16243 cat >> $CONFIG_STATUS <<EOF
16245 top_srcdir="$srcdir"
16246 MAKE_SUBDIR="$MAKE_SUBDIR"
16249 cat >> $CONFIG_STATUS <<\EOF
16250 for dir in . $MAKE_SUBDIR; do
16255 sed -e '/^# Generated/d' \
16256 -e 's%/\*\*/#.*%%' \
16271 echo creating $dir/Makefile
16272 $CPP -I. -I${top_srcdir}/src junk.c \
16273 | sed -e 's/^\#.*//' \
16274 -e 's/^[ ][ ]*$//'\
16282 chmod 444 Makefile.new
16283 mv -f Makefile.new Makefile
16285 echo creating $dir/GNUmakefile
16286 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16287 | sed -e 's/^\#.*//' \
16288 -e 's/^[ ][ ]*$//'\
16296 chmod 444 Makefile.new
16297 mv -f Makefile.new GNUmakefile
16303 sed < config.status >> lib-src/config.values \
16304 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16305 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16306 -e 's/^\([^ ]*\) $/\1 ""/' \
16312 chmod +x $CONFIG_STATUS
16313 rm -fr confdefs* $ac_clean_files
16314 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1