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 | \
362 memory_usage_stats | \
363 with_clash_detection | \
367 y | ye | yes ) val=yes ;;
369 * ) (echo "$progname: Usage error:"
370 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
371 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
373 eval "$opt=\"$val\"" ;;
391 site_runtime_libraries )
392 if test "$valomitted" = "yes" ; then
393 if test "$#" = 0 ; then
394 (echo "$progname: Usage error:"
395 echo " " "The \`--$optname' option requires a value."
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
405 with_debug_malloc | use_debug_malloc | \
406 with_system_malloc | use_system_malloc )
408 y | ye | yes ) val=yes ;;
410 d | de | def | defa | defau | defaul | default ) val=default ;;
411 * ) (echo "$progname: Usage error:"
412 echo " " "The \`--$optname' option requires one of these values:
413 \`yes', \`no', or \`default'."
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
421 with_database_berkdb=no
423 with_database_gdbm=no
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
428 d | db | dbm ) with_database_dbm=yes ;;
429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
430 * ) (echo "$progname: Usage error:"
431 echo " " "The \`--$optname' option value
432 must be either \`no' or a comma-separated list
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
437 if test "$with_database_dbm" = "yes" -a \
438 "$with_database_gdbm" = "yes"; then
439 (echo "$progname: Usage error:"
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
441 with the \`--$optname' option."
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
449 n | no | non | none ) new_sdefault=no ;;
450 a | al | all | both ) new_sdefault=yes ;;
452 native ) with_native_sound=yes ;;
453 nonative ) with_native_sound=no ;;
455 nas ) with_nas_sound=yes ;;
456 nonas ) with_nas_sound=no ;;
458 esd ) with_esd_sound=yes ;;
459 noesd ) with_esd_sound=no ;;
461 * ) bogus_sound=yes ;;
463 if test "$bogus_sound" -o \
464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
466 (echo "$progname: Usage error:"
467 echo " " "Valid types for the \`--$optname' option are:
469 The default is to autodetect all sound support."
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
471 elif test -n "$new_sdefault" ; then
472 with_native_sound=$new_sdefault
473 with_nas_sound=$new_sdefault
474 with_esd_sound=$new_sdefault
475 new_sdefault= # reset this
483 xa | xaw ) val=xaw ;;
484 3 | 3d | xaw3d ) val=3d ;;
485 ne | nex | next | naxtaw) val=next ;;
486 9 | 95 | xaw95 ) val=95 ;;
487 xp | xpm | xawxpm ) val=xpm ;;
488 * ) (echo "$progname: Usage error:"
489 echo " " "The \`--$optname' option must have one of these values:
490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
498 y | ye | yes ) val=yes ;;
499 n | no | non | none ) val=no ;;
500 x | xl | xli | xlib ) val=xlib ;;
501 m | mo | mot | moti | motif ) val=motif ;;
502 * ) (echo "$progname: Usage error:"
503 echo " " "The \`--$optname' option must have one of these values:
504 \`motif', \`xlib', \`yes', or \`no'."
505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
514 file | dot ) val=file ;;
515 locking ) val=locking ;;
516 * ) (echo "$progname: Usage error:"
517 echo " " "The \`--$optname' option must have one of these values:
518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
528 n | no | non | none ) new_default=no ;;
529 a | al | all ) new_default=yes ;;
531 extents ) error_check_extents=yes ;;
532 noextents ) error_check_extents=no ;;
534 typecheck ) error_check_typecheck=yes ;;
535 notypecheck ) error_check_typecheck=no ;;
537 bufpos ) error_check_bufpos=yes ;;
538 nobufpos ) error_check_bufpos=no ;;
540 gc ) error_check_gc=yes ;;
541 nogc ) error_check_gc=no ;;
543 malloc ) error_check_malloc=yes ;;
544 nomalloc ) error_check_malloc=no ;;
546 byte_code ) error_check_byte_code=yes ;;
547 nobyte_code ) error_check_byte_code=no ;;
549 glyphs ) error_check_glyphs=yes ;;
550 noglyphs ) error_check_glyphs=no ;;
552 * ) bogus_error_check=yes ;;
554 if test "$bogus_error_check" -o \
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
556 if test "$error_check_default" = yes ; then
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
561 (echo "$progname: Usage error:"
562 echo " " "Valid types for the \`--$optname' option are:
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
565 elif test -n "$new_default" ; then
566 error_check_extents=$new_default
567 error_check_typecheck=$new_default
568 error_check_bufpos=$new_default
569 error_check_gc=$new_default
570 error_check_malloc=$new_default
571 error_check_byte_code=$new_default
572 error_check_glyphs=$new_default
573 new_default= # reset this
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
582 archlibdir | docdir | package_path )
583 if test "$valomitted" = "yes"; then
584 if test "$#" = 0; then
585 (echo "$progname: Usage error:"
586 echo " " "The \`--$optname' option requires a value."
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining LISPDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define LISPDIR_USER_DEFINED 1
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining SITELISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define SITELISPDIR_USER_DEFINED 1
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining MODULEDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define MODULEDIR_USER_DEFINED 1
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining ETCDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define ETCDIR_USER_DEFINED 1
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining INFODIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define INFODIR_USER_DEFINED 1
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFOPATH_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFOPATH_USER_DEFINED 1
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining PACKAGE_PATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define PACKAGE_PATH_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining INFODIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define INFODIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining LISPDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define LISPDIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining MODULEDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define MODULEDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining ETCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define ETCDIR_USER_DEFINED 1
691 { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining DOCDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define DOCDIR_USER_DEFINED 1
699 { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining ARCHLIBDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define ARCHLIBDIR_USER_DEFINED 1
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining DOCDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define DOCDIR_USER_DEFINED 1
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
716 Defining ARCHLIBDIR_USER_DEFINED
718 cat >> confdefs.h <<\EOF
719 #define ARCHLIBDIR_USER_DEFINED 1
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
731 "with_scrollbars" | \
735 l | lu | luc | luci | lucid ) val=lucid ;;
736 m | mo | mot | moti | motif ) val=motif ;;
737 a | at | ath | athe | athen | athena ) val=athena ;;
738 n | no | non | none ) val=no ;;
739 y | ye | yes ) val=yes ;;
740 g | gt | gtk ) val=gtk ;;
741 m | ms | msw ) val=msw ;;
742 * ) (echo "$progname: Usage error:"
743 echo " " "The \`--$optname' option must have one of these values:
744 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
750 "use_minimal_tagbits" | \
751 "use_indexed_lrecord_implementation" | \
753 "const_is_losing" | \
755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
758 * ) (echo "$progname: Usage error:"
759 echo " " "Unrecognized option: $arg"
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
765 *-*-*) configuration="$arg" ;;
767 *) (echo "$progname: Usage error:"
768 echo " " "Unrecognized argument: $arg"
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
775 test -n "$cpp" && CPP="$cpp"
776 test -n "$cppflags" && CPPFLAGS="$cppflags"
777 test -n "$libs" && LIBS="$libs"
778 test -n "$ldflags" && LDFLAGS="$ldflags"
780 eval set x "$quoted_arguments"; shift
782 test "$extra_verbose" = "yes" && verbose=yes
784 test -n "$with_x" && with_x11="$with_x"
786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
787 test "$with_system_malloc" = "default" && with_system_malloc=yes
792 if test "$with_cde $with_tooltalk" = "yes no"; then
793 (echo "$progname: Usage error:"
794 echo " " "--with-cde requires --with-tooltalk"
795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 elif test "$with_tooltalk" = "no" ; then with_cde=no
797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
805 if test -f "$dir/src/lisp.h" -a \
806 -f "$dir/lisp/version.el" ; then
811 if test -z "$srcdir" ; then
812 (echo "$progname: Usage error:"
813 echo " " "Neither the current directory nor its parent seem to
814 contain the XEmacs sources. If you do not want to build XEmacs in its
815 source tree, you should run \`$progname' in the directory in which
816 you wish to build XEmacs, using the \`--srcdir' option to say where the
817 sources may be found."
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
823 if test ! -f "$srcdir/src/lisp.h" -o \
824 ! -f "$srcdir/lisp/version.el" ; then
825 (echo "$progname: Usage error:"
826 echo " " "The directory specified with the \`--srcdir' option,
827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
828 either run the \`$progname' script at the top of the XEmacs source
829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
835 if test -z "$configuration"; then
836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
837 if test -z "$configuration"; then
838 (echo "$progname: Usage error:"
839 echo " " "XEmacs has not been ported to this host type.
840 Try explicitly specifying the CONFIGURATION when rerunning configure."
841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
846 echo "configure:847: checking whether ln -s works" >&5
849 if ln -s X conftestdata 2>/dev/null
852 ac_cv_prog_LN_S="ln -s"
856 LN_S="$ac_cv_prog_LN_S"
857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
858 echo "$ac_t""yes" 1>&6
860 echo "$ac_t""no" 1>&6
864 for dir in lisp etc man info tests; do
865 if test ! -d "$dir" ; then
866 echo Making symbolic link to "$srcdir/$dir"
867 ${LN_S} "$srcdir/$dir" "$dir"
872 absolute_pwd="`pwd`";
873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
875 else blddir="$absolute_pwd"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 blddir=`echo "$blddir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
885 . ) srcdir="$blddir" ;;
886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
888 srcdir=`echo "$srcdir" | \
889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 if test `pwd` != `sh -c cd $srcdir && pwd` \
894 && test -f "$srcdir/src/config.h"; then
895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
896 echo " as a build directory right now; it has been configured in its own"
897 echo " right. To configure in another directory as well, you MUST"
898 echo " use GNU make. If you do not have GNU make, then you must"
899 echo " now do \`make distclean' in $srcdir,"
900 echo " and then run $progname again.") >&2
901 extrasub='/^VPATH[ ]*=/c\
907 vpath %.in $(srcdir)'
910 . "$srcdir/version.sh" || exit 1;
911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
912 : "${extra_verbose=$beta}"
913 version="${emacs_major_version}.${emacs_minor_version}"
914 { test "$extra_verbose" = "yes" && cat << EOF
915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
917 cat >> confdefs.h <<EOF
918 #define EMACS_MAJOR_VERSION $emacs_major_version
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MINOR_VERSION $emacs_minor_version
930 if test -n "$emacs_beta_version" ; then
931 if test "$beta" = "yes"; then
932 version="${version}-b${emacs_beta_version}"
933 { test "$extra_verbose" = "yes" && cat << EOF
934 Defining EMACS_BETA_VERSION = $emacs_beta_version
936 cat >> confdefs.h <<EOF
937 #define EMACS_BETA_VERSION $emacs_beta_version
942 version="${version}.${emacs_beta_version}"
943 { test "$extra_verbose" = "yes" && cat << EOF
944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
946 cat >> confdefs.h <<EOF
947 #define EMACS_PATCH_LEVEL $emacs_beta_version
953 { test "$extra_verbose" = "yes" && cat << EOF
954 Defining XEMACS_CODENAME = "$xemacs_codename"
956 cat >> confdefs.h <<EOF
957 #define XEMACS_CODENAME "$xemacs_codename"
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining EMACS_VERSION = "$version"
964 cat >> confdefs.h <<EOF
965 #define EMACS_VERSION "$version"
970 if test "$with_infodock" = "yes"; then
971 if test ! -f ../../ID-INSTALL; then
972 echo "Cannot build InfoDock without InfoDock sources"
977 if test "$with_infodock" = "yes"; then
978 { test "$extra_verbose" = "yes" && cat << EOF
979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
981 cat >> confdefs.h <<EOF
982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_BUILD_VERSION $infodock_build_version
1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1009 { test "$extra_verbose" = "yes" && cat << EOF
1010 Defining EMACS_PROGNAME = "$PROGNAME"
1012 cat >> confdefs.h <<EOF
1013 #define EMACS_PROGNAME "$PROGNAME"
1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1020 Defining ERROR_CHECK_EXTENTS
1022 cat >> confdefs.h <<\EOF
1023 #define ERROR_CHECK_EXTENTS 1
1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_TYPECHECK
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_TYPECHECK 1
1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_BUFPOS
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_BUFPOS 1
1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_GC
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_GC 1
1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_MALLOC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_MALLOC 1
1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_BYTE_CODE
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_BYTE_CODE 1
1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_GLYPHS
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_GLYPHS 1
1075 if test "${debug:=$beta}" = "yes"; then
1076 use_assertions=yes memory_usage_stats=yes
1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1078 echo " xemacs will be linked with \"debug.o\""
1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1081 echo " xemacs will be linked with \"tests.o\""
1083 { test "$extra_verbose" = "yes" && cat << \EOF
1084 Defining DEBUG_XEMACS
1086 cat >> confdefs.h <<\EOF
1087 #define DEBUG_XEMACS 1
1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1093 Defining USE_ASSERTIONS
1095 cat >> confdefs.h <<\EOF
1096 #define USE_ASSERTIONS 1
1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining MEMORY_USAGE_STATS
1103 cat >> confdefs.h <<\EOF
1104 #define MEMORY_USAGE_STATS 1
1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1111 echo "configure:1112: checking "host system type"" >&5
1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1116 echo "$ac_t""$configuration" 1>&6
1124 case "$canonical" in
1125 sparc-*-* ) machine=sparc ;;
1126 alpha*-*-* ) machine=alpha ;;
1127 vax-*-* ) machine=vax ;;
1128 mips-dec-* ) machine=pmax ;;
1129 mips-sgi-irix6* ) machine=iris6d ;;
1130 mips-sgi-* ) machine=iris4d ;;
1131 mips*-linux ) machine=mips ;;
1132 romp-ibm-* ) machine=ibmrt ;;
1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1135 powerpc*-* ) machine=powerpc ;;
1136 hppa-*-* ) machine=hp800 ;;
1137 m88k-dg-* ) machine=aviion ;;
1138 m68*-sony-* ) machine=news ;;
1139 mips-sony-* ) machine=news-risc ;;
1140 clipper-* ) machine=clipper ;;
1141 arm* ) machine=arm ;;
1142 ns32k-* ) machine=ns32000 ;;
1145 case "$canonical" in
1146 *-*-linux* ) opsys=linux ;;
1147 *-*-netbsd* ) opsys=netbsd ;;
1148 *-*-openbsd* ) opsys=openbsd ;;
1149 *-*-nextstep* ) opsys=nextstep ;;
1150 *-*-vms ) opsys=vms ;;
1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1155 *-dec-osf3* ) opsys=decosf3-1 ;;
1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
1162 *-*-aix3.1* ) opsys=aix3-1 ;;
1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1164 *-*-aix3* ) opsys=aix3-2 ;;
1165 *-*-aix4.0* ) opsys=aix4 ;;
1166 *-*-aix4.1* ) opsys=aix4-1 ;;
1167 *-*-aix4* ) opsys=aix4-2 ;;
1169 *-gnu* ) opsys=gnu ;;
1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
1174 *-*-aos* ) opsys=bsd4-3 ;;
1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1181 if test -z "$NON_GNU_CPP" ; then
1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1191 case "$canonical" in
1194 case "$canonical" in
1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1197 machine=hp9000s300 ;;
1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1204 case "${canonical}" in
1205 i386-*-openbsd*) machine=intel386 ;;
1206 m68k-*-openbsd*) machine=hp9000s300 ;;
1207 mipsel-*-openbsd*) machine=pmax ;;
1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1234 *-convex-bsd* | *-convex-convexos* )
1235 machine=convex opsys=bsd4-3
1236 NON_GNU_CPP="cc -E -P"
1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1244 m88k-dg-dgux* ) opsys=dgux ;;
1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1247 m88k-motorola-sysv4* )
1248 machine=delta88k opsys=usg5-4-2
1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1262 case "`uname -r`" in
1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1266 NON_GNU_CPP="/lib/cpp"
1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1276 case "$canonical" in
1277 m68* ) machine=hp9000s300 ;;
1278 hppa* ) machine=hp800 ;;
1281 case "$canonical" in
1282 *-hp-hpux7* ) opsys=hpux ;;
1283 *-hp-hpux8* ) opsys=hpux8 ;;
1284 *-hp-hpux9* ) opsys=hpux9 ;;
1285 *-hp-hpux10* ) opsys=hpux10 ;;
1286 *-hp-hpux11* ) opsys=hpux11 ;;
1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1291 echo " xemacs will be linked with \"strcat.o\""
1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1332 mips-mips-usg* ) machine=mips4 ;;
1335 NON_GNU_CC="cc -systype bsd43"
1336 NON_GNU_CPP="cc -systype bsd43 -E"
1337 case "$canonical" in
1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1339 mips-mips-riscos5* ) opsys=riscos5 ;;
1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1363 mips-siemens-sysv* | mips-sni-sysv*)
1364 machine=mips-siemens opsys=usg5-4
1365 NON_GNU_CC=/usr/ccs/bin/cc
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
1371 NON_GNU_CC=/usr/ccs/bin/cc
1372 NON_GNU_CPP=/usr/ccs/lib/cpp
1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1383 mips-sgi-irix* ) opsys=irix5-0 ;;
1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1386 *-sony-news* ) opsys=newsos5 ;;
1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1391 case "$canonical" in
1392 m68*-sunos1* ) machine=sun1 ;;
1393 m68*-sunos2* ) machine=sun2 ;;
1394 m68* ) machine=sun3 ;;
1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1396 i*86-*-* ) machine=intel386 ;;
1397 rs6000* ) machine=rs6000 ;;
1400 case "$canonical" in *-sunos5*)
1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1404 case "$canonical" in
1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1413 case "$canonical" in
1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1417 { test "$extra_verbose" = "yes" && cat << EOF
1418 Defining OS_RELEASE = $os_release
1420 cat >> confdefs.h <<EOF
1421 #define OS_RELEASE $os_release
1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1427 *-sunos4.0* ) opsys=sunos4-0 ;;
1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1432 *-mach* ) opsys=mach-bsd4-3 ;;
1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1458 case "$canonical" in
1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1461 *-mach* ) opsys=mach-bsd4-3 ;;
1465 ns16k-whitechapel-* ) machine=mg1 ;;
1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1471 case "$canonical" in
1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1473 *-isc2.2* ) opsys=isc2-2 ;;
1474 *-isc4.0* ) opsys=isc4-0 ;;
1475 *-isc4.* ) opsys=isc4-1
1476 GCC_TEST_OPTIONS=-posix
1477 NON_GCC_TEST_OPTIONS=-Xp
1479 *-isc* ) opsys=isc3-0 ;;
1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1481 *-esix* ) opsys=esix ;;
1482 *-mach* ) opsys=mach-bsd4-3 ;;
1483 *-xenix* ) opsys=xenix ;;
1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1486 *-bsdi4* ) opsys=bsdos4 ;;
1487 *-bsdi3* ) opsys=bsdos3 ;;
1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1489 *-bsdi2* ) opsys=bsdos2 ;;
1490 *-sco3.2v5* ) opsys=sco5 ;;
1491 *-sysv5* ) opsys=sco7 ;;
1492 *-386bsd* ) opsys=386bsd ;;
1493 *-freebsd* ) opsys=freebsd ;;
1494 *-nextstep* ) opsys=nextstep ;;
1495 *-pc-cygwin* ) opsys=cygwin32 ;;
1496 *-pc-mingw* ) opsys=mingw32 ;
1497 test -z "$with_tty" && with_tty="no";;
1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1507 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1509 if test -r "${srcdir}/src/m/${machine}.h"; then
1510 machfile="m/${machine}.h"
1511 { test "$extra_verbose" = "yes" && cat << EOF
1512 Defining config_machfile = "$machfile"
1514 cat >> confdefs.h <<EOF
1515 #define config_machfile "$machfile"
1520 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1521 echo "Using configure-time autodetection only."
1524 if test -r "${srcdir}/src/s/${opsys}.h"; then
1525 opsysfile="s/${opsys}.h"
1526 { test "$extra_verbose" = "yes" && cat << EOF
1527 Defining config_opsysfile = "$opsysfile"
1529 cat >> confdefs.h <<EOF
1530 #define config_opsysfile "$opsysfile"
1535 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1536 echo "Using configure-time autodetection only."
1540 if test -z "$dynamic"; then
1542 hpux* | sunos4* ) dynamic=no ;;
1546 if test "$dynamic" = "yes"; then
1548 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1549 decosf* ) ld_call_shared="-call_shared" ;;
1551 else case "$opsys" in
1553 echo "Static linking is not supported on Solaris 2."
1554 echo "Rerun configure without specifying --dynamic=no."
1556 linux ) ld_call_shared="-Bstatic" ;;
1557 decosf* ) ld_call_shared="-non_shared" ;;
1561 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1563 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1564 { test "$extra_verbose" = "yes" && cat << EOF
1565 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1567 cat >> confdefs.h <<EOF
1568 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1574 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1575 if test "$with_workshop $with_tooltalk" = "yes no"; then
1576 (echo "$progname: Usage error:"
1577 echo " " "--with-workshop requires --with-tooltalk"
1578 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1579 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1580 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1583 if test "$with_workshop" = "yes"; then
1584 { test "$extra_verbose" = "yes" && cat << \EOF
1587 cat >> confdefs.h <<\EOF
1592 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1593 echo " xemacs will be linked with \"sunpro.o\""
1597 if test "$with_clash_detection" != "no"; then
1598 { test "$extra_verbose" = "yes" && cat << \EOF
1599 Defining CLASH_DETECTION
1601 cat >> confdefs.h <<\EOF
1602 #define CLASH_DETECTION 1
1606 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1607 echo " xemacs will be linked with \"filelock.o\""
1611 test -n "$compiler" && CC="$compiler"
1612 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1615 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1616 if test "${CFLAGS-unset}" != unset
1617 then cflags_specified=yes;
1618 else cflags_specified=no;
1621 xe_save_CFLAGS="$CFLAGS"
1623 # Extract the first word of "gcc", so it can be a program name with args.
1624 set dummy gcc; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1633 for ac_dir in $ac_dummy; do
1634 test -z "$ac_dir" && ac_dir=.
1635 if test -f $ac_dir/$ac_word; then
1643 if test -n "$CC"; then
1644 echo "$ac_t""$CC" 1>&6
1646 echo "$ac_t""no" 1>&6
1649 if test -z "$CC"; then
1650 # Extract the first word of "cc", so it can be a program name with args.
1651 set dummy cc; ac_word=$2
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_word" >&5
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1661 for ac_dir in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir=.
1663 if test -f $ac_dir/$ac_word; then
1664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1665 ac_prog_rejected=yes
1673 if test $ac_prog_rejected = yes; then
1674 # We found a bogon in the path, so make sure we never use it.
1675 set dummy $ac_cv_prog_CC
1677 if test $# -gt 0; then
1678 # We chose a different compiler from the bogus one.
1679 # However, it has the same basename, so the bogon will be chosen
1680 # first if we set CC to just the basename; use the full file name.
1682 set dummy "$ac_dir/$ac_word" "$@"
1689 if test -n "$CC"; then
1690 echo "$ac_t""$CC" 1>&6
1692 echo "$ac_t""no" 1>&6
1695 if test -z "$CC"; then
1696 case "`uname -s`" in
1698 # Extract the first word of "cl", so it can be a program name with args.
1699 set dummy cl; ac_word=$2
1700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_word" >&5
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1708 for ac_dir in $ac_dummy; do
1709 test -z "$ac_dir" && ac_dir=.
1710 if test -f $ac_dir/$ac_word; then
1718 if test -n "$CC"; then
1719 echo "$ac_t""$CC" 1>&6
1721 echo "$ac_t""no" 1>&6
1726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1733 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1734 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1735 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'
1736 ac_cpp='$CPP '"$xe_cppflags"
1737 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1738 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1741 cat > conftest.$ac_ext << EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 ac_cv_prog_cc_works=yes
1750 # If we can't run a trivial program, we are probably using a cross compiler.
1751 if (./conftest; exit) 2>/dev/null; then
1752 ac_cv_prog_cc_cross=no
1754 ac_cv_prog_cc_cross=yes
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 ac_cv_prog_cc_works=no
1763 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1764 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1765 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'
1766 ac_cpp='$CPP '"$xe_cppflags"
1767 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1768 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1772 if test $ac_cv_prog_cc_works = no; then
1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1778 cross_compiling=$ac_cv_prog_cc_cross
1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether we are using GNU C" >&5
1783 cat > conftest.c <<EOF
1788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1796 if test $ac_cv_prog_gcc = yes; then
1802 ac_test_CFLAGS="${CFLAGS+set}"
1803 ac_save_CFLAGS="$CFLAGS"
1805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether ${CC-cc} accepts -g" >&5
1808 echo 'void f(){}' > conftest.c
1809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1817 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1818 if test "$ac_test_CFLAGS" = set; then
1819 CFLAGS="$ac_save_CFLAGS"
1820 elif test $ac_cv_prog_cc_g = yes; then
1821 if test "$GCC" = yes; then
1827 if test "$GCC" = yes; then
1834 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1836 # Extract the first word of "gcc", so it can be a program name with args.
1837 set dummy gcc; ac_word=$2
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839 echo "configure:1840: checking for $ac_word" >&5
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1846 for ac_dir in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir=.
1848 if test -f $ac_dir/$ac_word; then
1856 if test -n "$CC"; then
1857 echo "$ac_t""$CC" 1>&6
1859 echo "$ac_t""no" 1>&6
1862 if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1868 if test -n "$CC"; then
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1878 ac_prog_rejected=yes
1886 if test $ac_prog_rejected = yes; then
1887 # We found a bogon in the path, so make sure we never use it.
1888 set dummy $ac_cv_prog_CC
1890 if test $# -gt 0; then
1891 # We chose a different compiler from the bogus one.
1892 # However, it has the same basename, so the bogon will be chosen
1893 # first if we set CC to just the basename; use the full file name.
1895 set dummy "$ac_dir/$ac_word" "$@"
1902 if test -n "$CC"; then
1903 echo "$ac_t""$CC" 1>&6
1905 echo "$ac_t""no" 1>&6
1908 if test -z "$CC"; then
1909 case "`uname -s`" in
1911 # Extract the first word of "cl", so it can be a program name with args.
1912 set dummy cl; ac_word=$2
1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1914 echo "configure:1915: checking for $ac_word" >&5
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1931 if test -n "$CC"; then
1932 echo "$ac_t""$CC" 1>&6
1934 echo "$ac_t""no" 1>&6
1939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1946 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1947 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1948 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'
1949 ac_cpp='$CPP '"$xe_cppflags"
1950 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1951 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1954 cat > conftest.$ac_ext << EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1962 ac_cv_prog_cc_works=yes
1963 # If we can't run a trivial program, we are probably using a cross compiler.
1964 if (./conftest; exit) 2>/dev/null; then
1965 ac_cv_prog_cc_cross=no
1967 ac_cv_prog_cc_cross=yes
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 ac_cv_prog_cc_works=no
1976 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1977 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1978 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'
1979 ac_cpp='$CPP '"$xe_cppflags"
1980 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1981 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1985 if test $ac_cv_prog_cc_works = no; then
1986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1991 cross_compiling=$ac_cv_prog_cc_cross
1993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether we are using GNU C" >&5
1996 cat > conftest.c <<EOF
2001 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2007 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2009 if test $ac_cv_prog_gcc = yes; then
2015 ac_test_CFLAGS="${CFLAGS+set}"
2016 ac_save_CFLAGS="$CFLAGS"
2018 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2019 echo "configure:2020: checking whether ${CC-cc} accepts -g" >&5
2021 echo 'void f(){}' > conftest.c
2022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS="$ac_save_CFLAGS"
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2040 if test "$GCC" = yes; then
2047 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2049 # Extract the first word of "gcc", so it can be a program name with args.
2050 set dummy gcc; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2059 for ac_dir in $ac_dummy; do
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/$ac_word; then
2069 if test -n "$CC"; then
2070 echo "$ac_t""$CC" 1>&6
2072 echo "$ac_t""no" 1>&6
2075 if test -z "$CC"; then
2076 # Extract the first word of "cc", so it can be a program name with args.
2077 set dummy cc; ac_word=$2
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_word" >&5
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2090 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2091 ac_prog_rejected=yes
2099 if test $ac_prog_rejected = yes; then
2100 # We found a bogon in the path, so make sure we never use it.
2101 set dummy $ac_cv_prog_CC
2103 if test $# -gt 0; then
2104 # We chose a different compiler from the bogus one.
2105 # However, it has the same basename, so the bogon will be chosen
2106 # first if we set CC to just the basename; use the full file name.
2108 set dummy "$ac_dir/$ac_word" "$@"
2115 if test -n "$CC"; then
2116 echo "$ac_t""$CC" 1>&6
2118 echo "$ac_t""no" 1>&6
2121 if test -z "$CC"; then
2122 case "`uname -s`" in
2124 # Extract the first word of "cl", so it can be a program name with args.
2125 set dummy cl; ac_word=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2144 if test -n "$CC"; then
2145 echo "$ac_t""$CC" 1>&6
2147 echo "$ac_t""no" 1>&6
2152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2159 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2160 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2161 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'
2162 ac_cpp='$CPP '"$xe_cppflags"
2163 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2164 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2167 cat > conftest.$ac_ext << EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175 ac_cv_prog_cc_works=yes
2176 # If we can't run a trivial program, we are probably using a cross compiler.
2177 if (./conftest; exit) 2>/dev/null; then
2178 ac_cv_prog_cc_cross=no
2180 ac_cv_prog_cc_cross=yes
2183 echo "configure: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2185 ac_cv_prog_cc_works=no
2189 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2190 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2191 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'
2192 ac_cpp='$CPP '"$xe_cppflags"
2193 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2194 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2198 if test $ac_cv_prog_cc_works = no; then
2199 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2204 cross_compiling=$ac_cv_prog_cc_cross
2206 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether we are using GNU C" >&5
2209 cat > conftest.c <<EOF
2214 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2222 if test $ac_cv_prog_gcc = yes; then
2228 ac_test_CFLAGS="${CFLAGS+set}"
2229 ac_save_CFLAGS="$CFLAGS"
2231 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether ${CC-cc} accepts -g" >&5
2234 echo 'void f(){}' > conftest.c
2235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2244 if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS="$ac_save_CFLAGS"
2246 elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2253 if test "$GCC" = yes; then
2261 CFLAGS="$xe_save_CFLAGS"
2264 test -n "$CPP" -a -d "$CPP" && CPP=
2266 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2269 echo "configure:2270: checking how to run the C preprocessor" >&5
2270 # On Suns, sometimes $CPP names a directory.
2271 if test -n "$CPP" && test -d "$CPP"; then
2274 if test -z "$CPP"; then
2276 # This must be in double quotes, not single quotes, because CPP may get
2277 # substituted into the Makefile and "${CC-cc}" will confuse make.
2279 # On the NeXT, cc -E runs the code through the compiler's parser,
2280 # not just through cpp.
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2290 if test -z "$ac_err"; then
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2297 CPP="${CC-cc} -E -traditional-cpp"
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2305 { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2307 if test -z "$ac_err"; then
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 CPP="${CC-cc} -nologo -E"
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2324 if test -z "$ac_err"; then
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2338 ac_cv_prog_CPP="$CPP"
2339 CPP="$ac_cv_prog_CPP"
2341 ac_cv_prog_CPP="$CPP"
2343 echo "$ac_t""$CPP" 1>&6
2347 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2348 echo "configure:2349: checking for AIX" >&5
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2358 egrep "yes" >/dev/null 2>&1; then
2360 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2361 Defining _ALL_SOURCE
2363 cat >> confdefs.h <<\EOF
2364 #define _ALL_SOURCE 1
2370 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2377 echo "configure:2378: checking for GNU libc" >&5
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 #include <features.h>
2384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2385 #error Not a GNU libc system :-(
2386 ******* ======= ******** &&&&&&&&
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2401 echo "$ac_t""$have_glibc" 1>&6
2402 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2403 Defining _GNU_SOURCE
2405 cat >> confdefs.h <<\EOF
2406 #define _GNU_SOURCE 1
2413 { test "$extra_verbose" = "yes" && cat << \EOF
2414 Defining __EXTENSIONS__
2416 cat >> confdefs.h <<\EOF
2417 #define __EXTENSIONS__ 1
2421 if test "$os_release" -ge 55; then
2422 { test "$extra_verbose" = "yes" && cat << \EOF
2423 Defining _XOPEN_SOURCE = 500
2425 cat >> confdefs.h <<\EOF
2426 #define _XOPEN_SOURCE 500
2430 { test "$extra_verbose" = "yes" && cat << \EOF
2431 Defining _XOPEN_SOURCE_EXTENDED
2433 cat >> confdefs.h <<\EOF
2434 #define _XOPEN_SOURCE_EXTENDED 1
2440 { test "$extra_verbose" = "yes" && cat << \EOF
2441 Defining _POSIX_C_SOURCE = 199506L
2443 cat >> confdefs.h <<\EOF
2444 #define _POSIX_C_SOURCE 199506L
2448 { test "$extra_verbose" = "yes" && cat << \EOF
2449 Defining _XOPEN_SOURCE = 500
2451 cat >> confdefs.h <<\EOF
2452 #define _XOPEN_SOURCE 500
2456 { test "$extra_verbose" = "yes" && cat << \EOF
2457 Defining _XOPEN_SOURCE_EXTENDED
2459 cat >> confdefs.h <<\EOF
2460 #define _XOPEN_SOURCE_EXTENDED 1
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2471 #if defined __SUNPRO_C
2473 #elif defined __DECC
2475 #elif defined __USLC__ && defined __SCO_VERSION__
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 case "$conftest_rc" in
2491 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2492 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2493 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2501 echo "Extracting information from the machine- and system-dependent headers..."
2503 tempcname="conftest.c"
2507 cat > $tempcname < confdefs.h
2508 cat >> $tempcname <<EOF
2510 #define C_SWITCH_SITE
2511 #define C_SWITCH_X_SITE
2512 #define LD_SWITCH_SITE
2513 #define LD_SWITCH_X_SITE
2514 #define LD_SWITCH_X_SITE_AUX
2515 #define OS_RELEASE $os_release
2517 #ifdef config_opsysfile
2518 #include "$srcdir/src/$opsysfile"
2521 #ifdef config_machfile
2522 #include "$srcdir/src/$machfile"
2525 #ifndef LIBS_MACHINE
2526 #define LIBS_MACHINE
2528 configure___ libs_machine=LIBS_MACHINE
2533 configure___ libs_system=LIBS_SYSTEM
2535 #ifndef LIBS_TERMCAP
2536 #define LIBS_TERMCAP
2538 configure___ libs_termcap=LIBS_TERMCAP
2540 #ifndef LIB_STANDARD
2541 #define LIB_STANDARD
2543 configure___ libs_standard=LIB_STANDARD
2546 #ifndef OBJECTS_MACHINE
2547 #define OBJECTS_MACHINE
2549 configure___ objects_machine=OBJECTS_MACHINE
2551 #ifndef OBJECTS_SYSTEM
2552 #define OBJECTS_SYSTEM
2554 configure___ objects_system=OBJECTS_SYSTEM
2557 #ifndef C_SWITCH_MACHINE
2558 #define C_SWITCH_MACHINE
2560 configure___ c_switch_machine=C_SWITCH_MACHINE
2562 #ifndef C_SWITCH_SYSTEM
2563 #define C_SWITCH_SYSTEM
2565 configure___ c_switch_system=C_SWITCH_SYSTEM
2568 #ifndef LD_SWITCH_MACHINE
2569 #define LD_SWITCH_MACHINE
2571 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2573 #ifndef LD_SWITCH_SYSTEM
2574 #define LD_SWITCH_SYSTEM
2576 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2580 #define UNEXEC "unexec.o"
2582 configure___ unexec=UNEXEC
2585 #ifndef LD_SWITCH_SHARED
2586 #define LD_SWITCH_SHARED "-c"
2588 configure___ ld_switch_shared=LD_SWITCH_SHARED
2591 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2592 configure___ ordinary_ld=ORDINARY_LD
2594 #ifdef ORDINARY_LINK
2595 #define LD ORDINARY_LD
2596 #else /* no ORDINARY LINK */
2597 #ifdef COFF_ENCAPSULATE
2598 #define LD "\$(CC) -nostdlib"
2599 #else /* not COFF_ENCAPSULATE */
2602 #else /* ! defined (LINKER) */
2604 #endif /* ! defined (LINKER) */
2605 #endif /* ! defined (COFF_ENCAPSULATE) */
2606 #endif /* not ORDINARY_LINK */
2612 configure___ lib_gcc=LIB_GCC
2614 #ifndef LD_TEXT_START_ADDR
2615 #define LD_TEXT_START_ADDR
2617 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2620 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2622 #ifdef COFF_ENCAPSULATE
2623 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2624 #else /* ! defined (COFF_ENCAPSULATE) */
2625 #define START_FILES "pre-crt0.o /lib/crt0.o"
2626 #endif /* ! defined (COFF_ENCAPSULATE) */
2627 #else /* ! defined (NO_REMAP) */
2628 #define START_FILES "ecrt0.o"
2629 #endif /* ! defined (NO_REMAP) */
2630 #endif /* no ORDINARY_LINK */
2634 configure___ start_files=START_FILES
2636 #ifdef ORDINARY_LINK
2637 configure___ ordinary_link=yes
2639 configure___ ordinary_link=no
2642 #ifdef SYSTEM_MALLOC
2643 configure___ system_malloc=yes
2645 configure___ system_malloc=no
2649 configure___ have_terminfo=yes
2651 configure___ have_terminfo=no
2654 #ifdef MAIL_USE_FLOCK
2655 configure___ mail_use_flock=yes
2657 configure___ mail_use_flock=no
2660 #ifdef MAIL_USE_LOCKF
2661 configure___ mail_use_lockf=yes
2663 configure___ mail_use_lockf=no
2666 #ifdef MAIL_USE_LOCKING
2667 configure___ mail_use_locking=yes
2669 configure___ mail_use_locking=no
2672 #ifdef HAVE_WIN32_PROCESSES
2673 configure___ win32_processes=yes
2675 configure___ win32_processes=no
2680 CPP=`eval "echo $CPP $CPPFLAGS"`
2681 eval `$CPP -Isrc $tempcname \
2682 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2686 if test "$pdump" = "yes"; then
2695 test "$extra_verbose" = "yes" && \
2696 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 ""
2698 case "$opsys" in mingw* | cygwin*)
2699 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2700 cygwin_include=`eval "dirname $cygwin_include"` ;
2701 cygwin_include="-I$cygwin_include/../include" ;
2702 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2703 case "$opsys" in mingw*)
2704 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2709 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2712 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2714 if test "$__USLC__" = yes; then
2715 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2716 echo "configure:2717: checking for whether the -Kalloca compiler flag is needed" >&5
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 void *x = alloca(4);
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2734 xe_save_c_switch_system="$c_switch_system"
2735 c_switch_system="$c_switch_system -Kalloca"
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2741 void *x = alloca(4);
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2752 c_switch_system="$xe_save_c_switch_system"
2755 echo "$ac_t""$need_kalloca" 1>&6
2756 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
2759 if test "$cflags_specified" = "no"; then
2760 if test "$GCC" = "yes"; then
2761 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2762 CFLAGS="$CFLAGS -Wsign-compare"
2763 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2764 elif test "$__SUNPRO_C" = "yes"; then
2766 sol2 ) CFLAGS="-v -xO4" ;;
2767 sunos4* ) CFLAGS="-xO2";;
2769 elif test "$__DECC" = "yes"; then
2771 elif test "$CC" = "xlc"; then
2772 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2777 if test "$GCC" = "yes"; then
2778 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2779 echo "configure:2780: checking for buggy gcc versions" >&5
2780 GCC_VERSION=`$CC --version`
2781 case `uname -s`:`uname -m`:$GCC_VERSION in
2782 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2786 *-fno-schedule-insns*) ;;
2788 echo "$ac_t""yes" 1>&6
2789 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2790 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2791 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2797 Linux:alpha:egcs-2.91.*)
2798 echo "$ac_t""yes" 1>&6
2799 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2800 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2801 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2806 case "$GCC_VERSION" in
2809 *-fno-strength-reduce*) ;;
2811 echo "$ac_t""yes" 1>&6
2812 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2813 echo "configure: warning: -fno-strength-reduce." 1>&2
2814 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2820 *-fno-caller-saves*) ;;
2822 echo "$ac_t""yes" 1>&6
2823 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2824 echo "configure: warning: -fno-caller-saves." 1>&2
2825 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2832 echo "$ac_t""no" 1>&6
2836 if test "$GCC" = "yes"; then
2837 set x $ld_switch_system; shift; ld_switch_system=""
2838 while test -n "$1"; do
2840 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2841 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2843 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2849 if test "$GCC" = "yes"; then
2850 set x $ld_switch_machine; shift; ld_switch_machine=""
2851 while test -n "$1"; do
2853 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2854 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2856 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2862 if test "$GCC" = "yes"; then
2863 set x $LDFLAGS; shift; LDFLAGS=""
2864 while test -n "$1"; do
2866 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2867 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2869 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2875 if test "$GCC" = "yes"; then
2876 set x $ld_call_shared; shift; ld_call_shared=""
2877 while test -n "$1"; do
2879 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2880 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2882 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2888 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"$objects_machine\""
2891 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2892 echo " xemacs will be linked with \"$objects_system\""
2894 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2895 echo " xemacs will be linked with \"$unexec\""
2897 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2898 echo " xemacs will be linked with \"dumper.o\""
2901 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2902 echo "configure:2903: checking for dynodump" >&5
2903 if test "$unexec" != "unexsol2.o"; then
2904 echo "$ac_t""no" 1>&6
2906 echo "$ac_t""yes" 1>&6
2907 { test "$extra_verbose" = "yes" && cat << \EOF
2910 cat >> confdefs.h <<\EOF
2915 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2916 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2918 sparc ) dynodump_arch=sparc ;;
2919 *86* ) dynodump_arch=i386 ;;
2920 powerpc ) dynodump_arch=ppc ;;
2922 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
2926 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2928 if test "$unexec" = "unexaix.o"; then
2929 if test "$dynamic" = "no"; then
2930 start_flags="-Wl,-bnso,-bnodelcsect"
2931 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2932 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2933 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2935 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2936 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2939 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2940 echo "configure:2941: checking for terminateAndUnload in -lC" >&5
2941 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2943 xe_check_libs=" -lC "
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950 char terminateAndUnload();
2953 terminateAndUnload()
2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 eval "ac_cv_lib_$ac_lib_var=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "ac_cv_lib_$ac_lib_var=no"
2968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2969 echo "$ac_t""yes" 1>&6
2970 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2972 echo "$ac_t""no" 1>&6
2977 elif test -n "$ld_text_start_addr"; then
2978 start_flags="-T $ld_text_start_addr -e __start"
2984 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2985 test -z "$linker" && linker='$(CC) -nostdlib'
2986 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2988 test "$GCC" != "yes" && lib_gcc=
2994 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2995 if test -n "$site_libraries"; then
2996 for arg in $site_libraries; do
2999 * ) test -d "$arg" || \
3000 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3003 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3007 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3008 if test -n "$site_includes"; then
3009 for arg in $site_includes; do
3012 * ) test -d "$arg" || \
3013 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3016 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3020 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3021 if test -n "$site_prefixes"; then
3022 for dir in $site_prefixes; do
3023 lib_dir="${dir}/lib"
3024 inc_dir="${dir}/include"
3025 if test ! -d "$dir"; then
3026 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3027 elif test ! -d "$lib_dir"; then
3028 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3030 if test -d "$inc_dir"; then
3031 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
3033 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
3039 for dir in "/usr/ccs/lib"; do
3040 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
3043 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3044 if test -n "$site_runtime_libraries"; then
3045 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3053 if test -n "$add_runtime_path"; then :;
3054 elif test "$dynamic" = "no"; then add_runtime_path=no
3055 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3056 else case "$opsys" in
3057 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3058 * ) add_runtime_path=no ;;
3062 if test "$add_runtime_path" = "yes"; then
3063 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3064 echo "configure:3065: checking "for runtime libraries flag"" >&5
3066 sol2 ) dash_r="-R" ;;
3067 decosf* | linux* | irix*) dash_r="-rpath " ;;
3070 for try_dash_r in "-R" "-R " "-rpath "; do
3071 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3073 if test "$GCC" = "yes"; then
3074 set x $xe_check_libs; shift; xe_check_libs=""
3075 while test -n "$1"; do
3077 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3078 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3080 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 dash_r="$try_dash_r"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3102 test -n "$dash_r" && break
3105 if test -n "$dash_r";
3106 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3107 else echo "$ac_t""NONE" 1>&6
3111 xe_add_unique_runpath_dir='
3113 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3115 if test "$xe_add_p" = "yes"; then
3116 test -n "$runpath" && runpath="${runpath}:"
3117 runpath="${runpath}${xe_runpath_dir}"
3118 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3124 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3125 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3126 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3128 runpath="" runpath_dirs=""
3129 if test -n "$LD_RUN_PATH"; then
3130 runpath="$LD_RUN_PATH"
3131 elif test "$GCC" = "yes"; then
3132 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3133 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3134 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3135 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3136 case "$arg" in P,* | -L* | -R* )
3137 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3139 xe_runpath_dir="$dir"
3140 test "$xe_runpath_dir" != "/lib" -a \
3141 "$xe_runpath_dir" != "/usr/lib" -a \
3142 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3143 eval "$xe_add_unique_runpath_dir"
3148 ld_switch_run="$ld_switch_run_save"
3151 for arg in $ld_switch_site $ld_switch_x_site; do
3152 case "$arg" in -L*) {
3153 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3154 test "$xe_runpath_dir" != "/lib" -a \
3155 "$xe_runpath_dir" != "/usr/lib" -a \
3156 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3157 eval "$xe_add_unique_runpath_dir"
3160 if test "$opsys $need_motif" = "sol2 yes"; then
3161 xe_runpath_dir="/opt/SUNWdt/lib";
3162 eval "$xe_add_unique_runpath_dir";
3165 if test -n "$runpath"; then
3166 ld_switch_run="${dash_r}${runpath}"
3168 if test "$GCC" = "yes"; then
3169 set x $ld_switch_run; shift; ld_switch_run=""
3170 while test -n "$1"; do
3172 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3173 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3175 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3180 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3187 if test "$with_dlmalloc" != "no"; then
3192 after_morecore_hook_exists=yes
3193 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3194 echo "configure:3195: checking for malloc_set_state" >&5
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 /* System header to define __stub macros and hopefully few prototypes,
3200 which can conflict with char malloc_set_state(); below. */
3202 /* Override any gcc2 internal prototype to avoid an error. */
3203 /* We use char because int might match the return type of a gcc2
3204 builtin and then its argument prototype would still apply. */
3205 char malloc_set_state();
3209 /* The GNU C library defines this for functions which it implements
3210 to always fail with ENOSYS. Some functions are actually named
3211 something starting with __ and the normal name is an alias. */
3212 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 eval "ac_cv_func_malloc_set_state=yes"
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 eval "ac_cv_func_malloc_set_state=no"
3231 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3240 echo "configure:3241: checking whether __after_morecore_hook exists" >&5
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 extern void (* __after_morecore_hook)();
3246 __after_morecore_hook = 0
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3251 echo "$ac_t""yes" 1>&6
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 echo "$ac_t""no" 1>&6
3257 after_morecore_hook_exists=no
3260 if test "$system_malloc" = "yes" ; then
3263 - The GNU allocators don't work with this system configuration."
3264 elif test "$with_system_malloc" = "yes" ; then
3267 - User chose not to use GNU allocators."
3268 elif test "$with_debug_malloc" = "yes" ; then
3271 - User chose to use Debugging Malloc."
3274 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3276 - Using Doug Lea's new malloc from the GNU C Library."
3277 { test "$extra_verbose" = "yes" && cat << \EOF
3278 Defining DOUG_LEA_MALLOC
3280 cat >> confdefs.h <<\EOF
3281 #define DOUG_LEA_MALLOC 1
3285 if test "$after_morecore_hook_exists" = "no" ; then
3287 - Using Doug Lea's new malloc from the Linux C Library."
3288 { test "$extra_verbose" = "yes" && cat << \EOF
3289 Defining _NO_MALLOC_WARNING_
3291 cat >> confdefs.h <<\EOF
3292 #define _NO_MALLOC_WARNING_ 1
3302 # Extract the first word of "ranlib", so it can be a program name with args.
3303 set dummy ranlib; ac_word=$2
3304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_word" >&5
3307 if test -n "$RANLIB"; then
3308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3312 for ac_dir in $ac_dummy; do
3313 test -z "$ac_dir" && ac_dir=.
3314 if test -f $ac_dir/$ac_word; then
3315 ac_cv_prog_RANLIB="ranlib"
3320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3322 RANLIB="$ac_cv_prog_RANLIB"
3323 if test -n "$RANLIB"; then
3324 echo "$ac_t""$RANLIB" 1>&6
3326 echo "$ac_t""no" 1>&6
3330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3331 if test -f $ac_dir/install-sh; then
3333 ac_install_sh="$ac_aux_dir/install-sh -c"
3335 elif test -f $ac_dir/install.sh; then
3337 ac_install_sh="$ac_aux_dir/install.sh -c"
3341 if test -z "$ac_aux_dir"; then
3342 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3344 ac_config_guess=$ac_aux_dir/config.guess
3345 ac_config_sub=$ac_aux_dir/config.sub
3346 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3348 # Find a good install program. We prefer a C program (faster),
3349 # so one script is as good as another. But avoid the broken or
3350 # incompatible versions:
3351 # SysV /etc/install, /usr/sbin/install
3352 # SunOS /usr/etc/install
3353 # IRIX /sbin/install
3355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3358 # ./install, which can be erroneously created by make from ./install.sh.
3359 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3360 echo "configure:3361: checking for a BSD compatible install" >&5
3361 if test -z "$INSTALL"; then
3363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3364 for ac_dir in $PATH; do
3365 # Account for people who put trailing slashes in PATH elements.
3367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3369 # OSF1 and SCO ODT 3.0 have their own names for install.
3370 # Don't use installbsd from OSF since it installs stuff as root
3372 for ac_prog in ginstall scoinst install; do
3373 if test -f $ac_dir/$ac_prog; then
3374 if test $ac_prog = install &&
3375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3376 # AIX install. It has an incompatible calling convention.
3379 ac_cv_path_install="$ac_dir/$ac_prog -c"
3389 if test "${ac_cv_path_install+set}" = set; then
3390 INSTALL="$ac_cv_path_install"
3392 # As a last resort, use the slow shell script. We don't cache a
3393 # path for INSTALL within a source directory, because that will
3394 # break other packages using the cache if that directory is
3395 # removed, or if the path is relative.
3396 INSTALL="$ac_install_sh"
3399 echo "$ac_t""$INSTALL" 1>&6
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3409 for ac_prog in 'bison -y' byacc
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3416 if test -n "$YACC"; then
3417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3421 for ac_dir in $ac_dummy; do
3422 test -z "$ac_dir" && ac_dir=.
3423 if test -f $ac_dir/$ac_word; then
3424 ac_cv_prog_YACC="$ac_prog"
3430 YACC="$ac_cv_prog_YACC"
3431 if test -n "$YACC"; then
3432 echo "$ac_t""$YACC" 1>&6
3434 echo "$ac_t""no" 1>&6
3437 test -n "$YACC" && break
3439 test -n "$YACC" || YACC="yacc"
3442 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
3444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_hdr" >&5
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3454 { (eval echo configure:3455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3456 if test -z "$ac_err"; then
3458 eval "ac_cv_header_$ac_safe=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_header_$ac_safe=no"
3467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3470 { test "$extra_verbose" = "yes" && cat << EOF
3473 cat >> confdefs.h <<EOF
3474 #define $ac_tr_hdr 1
3479 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3484 echo "configure:3485: checking for sys/wait.h that is POSIX.1 compatible" >&5
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3490 #include <sys/wait.h>
3492 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3495 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 ac_cv_header_sys_wait_h=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 ac_cv_header_sys_wait_h=no
3514 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3515 if test $ac_cv_header_sys_wait_h = yes; then
3516 { test "$extra_verbose" = "yes" && cat << \EOF
3517 Defining HAVE_SYS_WAIT_H
3519 cat >> confdefs.h <<\EOF
3520 #define HAVE_SYS_WAIT_H 1
3526 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3527 echo "configure:3528: checking for ANSI C header files" >&5
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3542 ac_cv_header_stdc=yes
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "memchr" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "free" >/dev/null 2>&1; then
3582 ac_cv_header_stdc=no
3588 if test $ac_cv_header_stdc = yes; then
3589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3594 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3595 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3597 int main () { int i; for (i = 0; i < 256; i++)
3598 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 ac_cv_header_stdc=no
3615 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3616 if test $ac_cv_header_stdc = yes; then
3617 { test "$extra_verbose" = "yes" && cat << \EOF
3618 Defining STDC_HEADERS
3620 cat >> confdefs.h <<\EOF
3621 #define STDC_HEADERS 1
3627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3628 echo "configure:3629: checking whether time.h and sys/time.h may both be included" >&5
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3634 #include <sys/time.h>
3640 if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3642 ac_cv_header_time=yes
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 ac_cv_header_time=no
3651 echo "$ac_t""$ac_cv_header_time" 1>&6
3652 if test $ac_cv_header_time = yes; then
3653 { test "$extra_verbose" = "yes" && cat << \EOF
3654 Defining TIME_WITH_SYS_TIME
3656 cat >> confdefs.h <<\EOF
3657 #define TIME_WITH_SYS_TIME 1
3663 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3664 echo "configure:3665: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <sys/types.h>
3671 /* NetBSD declares sys_siglist in unistd.h. */
3672 #ifdef HAVE_UNISTD_H
3676 char *msg = *(sys_siglist + 1);
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 ac_cv_decl_sys_siglist=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 ac_cv_decl_sys_siglist=no
3690 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3691 if test $ac_cv_decl_sys_siglist = yes; then
3692 { test "$extra_verbose" = "yes" && cat << \EOF
3693 Defining SYS_SIGLIST_DECLARED
3695 cat >> confdefs.h <<\EOF
3696 #define SYS_SIGLIST_DECLARED 1
3704 echo $ac_n "checking for utime""... $ac_c" 1>&6
3705 echo "configure:3706: checking for utime" >&5
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3712 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 echo "$ac_t""yes" 1>&6
3718 { test "$extra_verbose" = "yes" && cat << \EOF
3721 cat >> confdefs.h <<\EOF
3722 #define HAVE_UTIME 1
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3730 echo "$ac_t""no" 1>&6
3731 for ac_func in utimes
3733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3734 echo "configure:3735: checking for $ac_func" >&5
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 /* System header to define __stub macros and hopefully few prototypes,
3740 which can conflict with char $ac_func(); below. */
3742 /* Override any gcc2 internal prototype to avoid an error. */
3743 /* We use char because int might match the return type of a gcc2
3744 builtin and then its argument prototype would still apply. */
3749 /* The GNU C library defines this for functions which it implements
3750 to always fail with ENOSYS. Some functions are actually named
3751 something starting with __ and the normal name is an alias. */
3752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762 eval "ac_cv_func_$ac_func=yes"
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3767 eval "ac_cv_func_$ac_func=no"
3771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3772 echo "$ac_t""yes" 1>&6
3773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3774 { test "$extra_verbose" = "yes" && cat << EOF
3775 Defining $ac_tr_func
3777 cat >> confdefs.h <<EOF
3778 #define $ac_tr_func 1
3783 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3792 echo "configure:3793: checking return type of signal handlers" >&5
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #include <sys/types.h>
3803 extern "C" void (*signal (int, void (*)(int)))(int);
3805 void (*signal ()) ();
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 ac_cv_type_signal=void
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3819 ac_cv_type_signal=int
3823 echo "$ac_t""$ac_cv_type_signal" 1>&6
3824 { test "$extra_verbose" = "yes" && cat << EOF
3825 Defining RETSIGTYPE = $ac_cv_type_signal
3827 cat >> confdefs.h <<EOF
3828 #define RETSIGTYPE $ac_cv_type_signal
3833 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3834 echo "configure:3835: checking for size_t" >&5
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3848 ac_cv_type_size_t=yes
3851 ac_cv_type_size_t=no
3855 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3856 if test $ac_cv_type_size_t = no; then
3857 { test "$extra_verbose" = "yes" && cat << \EOF
3858 Defining size_t = unsigned
3860 cat >> confdefs.h <<\EOF
3861 #define size_t unsigned
3867 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3868 echo "configure:3869: checking for pid_t" >&5
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <sys/types.h>
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3882 ac_cv_type_pid_t=yes
3889 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3890 if test $ac_cv_type_pid_t = no; then
3891 { test "$extra_verbose" = "yes" && cat << \EOF
3892 Defining pid_t = int
3894 cat >> confdefs.h <<\EOF
3901 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3902 echo "configure:3903: checking for uid_t in sys/types.h" >&5
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 egrep "uid_t" >/dev/null 2>&1; then
3912 ac_cv_type_uid_t=yes
3920 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3921 if test $ac_cv_type_uid_t = no; then
3922 { test "$extra_verbose" = "yes" && cat << \EOF
3923 Defining uid_t = int
3925 cat >> confdefs.h <<\EOF
3930 { test "$extra_verbose" = "yes" && cat << \EOF
3931 Defining gid_t = int
3933 cat >> confdefs.h <<\EOF
3940 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3941 echo "configure:3942: checking for mode_t" >&5
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 #include <sys/types.h>
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3955 ac_cv_type_mode_t=yes
3958 ac_cv_type_mode_t=no
3962 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3963 if test $ac_cv_type_mode_t = no; then
3964 { test "$extra_verbose" = "yes" && cat << \EOF
3965 Defining mode_t = int
3967 cat >> confdefs.h <<\EOF
3974 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3975 echo "configure:3976: checking for off_t" >&5
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 #include <sys/types.h>
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3989 ac_cv_type_off_t=yes
3996 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3997 if test $ac_cv_type_off_t = no; then
3998 { test "$extra_verbose" = "yes" && cat << \EOF
3999 Defining off_t = long
4001 cat >> confdefs.h <<\EOF
4008 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4009 echo "configure:4010: checking for ssize_t" >&5
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <sys/types.h>
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4023 ac_cv_type_ssize_t=yes
4026 ac_cv_type_ssize_t=no
4030 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4031 if test $ac_cv_type_ssize_t = no; then
4032 { test "$extra_verbose" = "yes" && cat << \EOF
4033 Defining ssize_t = int
4035 cat >> confdefs.h <<\EOF
4043 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4044 echo "configure:4045: checking for socklen_t" >&5
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/socket.h>
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 echo "$ac_t""yes" 1>&6
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <sys/socket.h>
4067 int accept (int, struct sockaddr *, size_t *);
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 echo "$ac_t""size_t" 1>&6
4077 { test "$extra_verbose" = "yes" && cat << \EOF
4078 Defining socklen_t = size_t
4080 cat >> confdefs.h <<\EOF
4081 #define socklen_t size_t
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4090 echo "$ac_t""int" 1>&6
4091 { test "$extra_verbose" = "yes" && cat << \EOF
4092 Defining socklen_t = int
4094 cat >> confdefs.h <<\EOF
4095 #define socklen_t int
4104 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4105 echo "configure:4106: checking for struct timeval" >&5
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 #ifdef TIME_WITH_SYS_TIME
4110 #include <sys/time.h>
4113 #ifdef HAVE_SYS_TIME_H
4114 #include <sys/time.h>
4120 static struct timeval x; x.tv_sec = x.tv_usec;
4123 if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 echo "$ac_t""yes" 1>&6
4127 { test "$extra_verbose" = "yes" && cat << \EOF
4128 Defining HAVE_TIMEVAL
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_TIMEVAL 1
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 echo "$ac_t""no" 1>&6
4144 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4145 echo "configure:4146: checking whether struct tm is in sys/time.h or time.h" >&5
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 #include <sys/types.h>
4153 struct tm *tp; tp->tm_sec;
4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 ac_cv_struct_tm=time.h
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 ac_cv_struct_tm=sys/time.h
4167 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4168 if test $ac_cv_struct_tm = sys/time.h; then
4169 { test "$extra_verbose" = "yes" && cat << \EOF
4170 Defining TM_IN_SYS_TIME
4172 cat >> confdefs.h <<\EOF
4173 #define TM_IN_SYS_TIME 1
4179 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4180 echo "configure:4181: checking for tm_zone in struct tm" >&5
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <sys/types.h>
4186 #include <$ac_cv_struct_tm>
4188 struct tm tm; tm.tm_zone;
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 ac_cv_struct_tm_zone=yes
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 ac_cv_struct_tm_zone=no
4202 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4203 if test "$ac_cv_struct_tm_zone" = yes; then
4204 { test "$extra_verbose" = "yes" && cat << \EOF
4205 Defining HAVE_TM_ZONE
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_TM_ZONE 1
4213 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4214 echo "configure:4215: checking for tzname" >&5
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4220 #ifndef tzname /* For SGI. */
4221 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 ac_cv_var_tzname=yes
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4238 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4239 if test $ac_cv_var_tzname = yes; then
4240 { test "$extra_verbose" = "yes" && cat << \EOF
4241 Defining HAVE_TZNAME
4243 cat >> confdefs.h <<\EOF
4244 #define HAVE_TZNAME 1
4252 echo $ac_n "checking for working const""... $ac_c" 1>&6
4253 echo "configure:4254: checking for working const" >&5
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4261 /* Ultrix mips cc rejects this. */
4262 typedef int charset[2]; const charset x;
4263 /* SunOS 4.1.1 cc rejects this. */
4264 char const *const *ccp;
4266 /* NEC SVR4.0.2 mips cc rejects this. */
4267 struct point {int x, y;};
4268 static struct point const zero = {0,0};
4269 /* AIX XL C 1.02.0.0 rejects this.
4270 It does not let you subtract one const X* pointer from another in an arm
4271 of an if-expression whose if-part is not a constant expression */
4272 const char *g = "string";
4273 ccp = &g + (g ? g-g : 0);
4274 /* HPUX 7.0 cc rejects these. */
4277 ccp = (char const *const *) p;
4278 { /* SCO 3.2v4 cc rejects this. */
4280 char const *s = 0 ? (char *) 0 : (char const *) 0;
4284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4286 const int *foo = &x[0];
4289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4290 typedef const int *iptr;
4294 { /* AIX XL C 1.02.0.0 rejects this saying
4295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4296 struct s { int j; const int *ap[3]; };
4297 struct s *b; b->j = 5;
4299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4305 if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4316 echo "$ac_t""$ac_cv_c_const" 1>&6
4317 if test $ac_cv_c_const = no; then
4318 { test "$extra_verbose" = "yes" && cat << \EOF
4321 cat >> confdefs.h <<\EOF
4329 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4330 echo "configure:4331: checking whether ${MAKE-make} sets \${MAKE}" >&5
4331 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4333 cat > conftestmake <<\EOF
4335 @echo 'ac_maketemp="${MAKE}"'
4337 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4338 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4339 if test -n "$ac_maketemp"; then
4340 eval ac_cv_prog_make_${ac_make}_set=yes
4342 eval ac_cv_prog_make_${ac_make}_set=no
4345 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4349 echo "$ac_t""no" 1>&6
4350 SET_MAKE="MAKE=${MAKE-make}"
4354 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4355 echo "configure:4356: checking whether byte ordering is bigendian" >&5
4357 ac_cv_c_bigendian=unknown
4358 # See if sys/param.h defines the BYTE_ORDER macro.
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 #include <sys/types.h>
4363 #include <sys/param.h>
4366 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4371 if { (eval echo configure:4372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 #include <sys/types.h>
4378 #include <sys/param.h>
4381 #if BYTE_ORDER != BIG_ENDIAN
4386 if { (eval echo configure:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 ac_cv_c_bigendian=yes
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 ac_cv_c_bigendian=no
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4401 if test $ac_cv_c_bigendian = unknown; then
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4406 /* Are we little or big endian? From Harbison&Steele. */
4410 char c[sizeof (long)];
4413 exit (u.c[sizeof (long) - 1] == 1);
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4418 ac_cv_c_bigendian=no
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 ac_cv_c_bigendian=yes
4429 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4430 if test $ac_cv_c_bigendian = yes; then
4431 { test "$extra_verbose" = "yes" && cat << \EOF
4432 Defining WORDS_BIGENDIAN
4434 cat >> confdefs.h <<\EOF
4435 #define WORDS_BIGENDIAN 1
4442 echo $ac_n "checking size of short""... $ac_c" 1>&6
4443 echo "configure:4444: checking size of short" >&5
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4449 #include <sys/types.h>
4452 FILE *f=fopen("conftestval", "w");
4454 fprintf(f, "%d\n", sizeof(short));
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4460 ac_cv_sizeof_short=`cat conftestval`
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 ac_cv_sizeof_short=0
4469 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4470 { test "$extra_verbose" = "yes" && cat << EOF
4471 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4473 cat >> confdefs.h <<EOF
4474 #define SIZEOF_SHORT $ac_cv_sizeof_short
4479 if test "$ac_cv_sizeof_short" = 0; then
4481 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4482 echo "*** PANIC *** Please examine config.log for compilation errors."
4485 echo $ac_n "checking size of int""... $ac_c" 1>&6
4486 echo "configure:4487: checking size of int" >&5
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4492 #include <sys/types.h>
4495 FILE *f=fopen("conftestval", "w");
4497 fprintf(f, "%d\n", sizeof(int));
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4503 ac_cv_sizeof_int=`cat conftestval`
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4512 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4513 { test "$extra_verbose" = "yes" && cat << EOF
4514 Defining SIZEOF_INT = $ac_cv_sizeof_int
4516 cat >> confdefs.h <<EOF
4517 #define SIZEOF_INT $ac_cv_sizeof_int
4522 echo $ac_n "checking size of long""... $ac_c" 1>&6
4523 echo "configure:4524: checking size of long" >&5
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4529 #include <sys/types.h>
4532 FILE *f=fopen("conftestval", "w");
4534 fprintf(f, "%d\n", sizeof(long));
4538 if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4540 ac_cv_sizeof_long=`cat conftestval`
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4549 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4550 { test "$extra_verbose" = "yes" && cat << EOF
4551 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4553 cat >> confdefs.h <<EOF
4554 #define SIZEOF_LONG $ac_cv_sizeof_long
4559 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4560 echo "configure:4561: checking size of long long" >&5
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4566 #include <sys/types.h>
4569 FILE *f=fopen("conftestval", "w");
4571 fprintf(f, "%d\n", sizeof(long long));
4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4577 ac_cv_sizeof_long_long=`cat conftestval`
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 ac_cv_sizeof_long_long=0
4586 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4587 { test "$extra_verbose" = "yes" && cat << EOF
4588 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4590 cat >> confdefs.h <<EOF
4591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4596 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4597 echo "configure:4598: checking size of void *" >&5
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4603 #include <sys/types.h>
4606 FILE *f=fopen("conftestval", "w");
4608 fprintf(f, "%d\n", sizeof(void *));
4612 if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4614 ac_cv_sizeof_void_p=`cat conftestval`
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 ac_cv_sizeof_void_p=0
4623 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4624 { test "$extra_verbose" = "yes" && cat << EOF
4625 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4627 cat >> confdefs.h <<EOF
4628 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4634 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4635 echo "configure:4636: checking for long file names" >&5
4637 ac_cv_sys_long_file_names=yes
4638 # Test for long file names in all the places we know might matter:
4639 # . the current directory, where building will happen
4640 # $prefix/lib where we will be installing things
4641 # $exec_prefix/lib likewise
4642 # eval it to expand exec_prefix.
4643 # $TMPDIR if set, where it might want to write temporary files
4644 # if $TMPDIR is not set:
4645 # /tmp where it might want to write temporary files
4648 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4649 ac_tmpdirs="$TMPDIR"
4651 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4653 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4654 test -d $ac_dir || continue
4655 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4656 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4657 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4658 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4659 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4660 ac_cv_sys_long_file_names=no
4661 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4664 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4667 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4668 if test $ac_cv_sys_long_file_names = yes; then
4669 { test "$extra_verbose" = "yes" && cat << \EOF
4670 Defining HAVE_LONG_FILE_NAMES
4672 cat >> confdefs.h <<\EOF
4673 #define HAVE_LONG_FILE_NAMES 1
4680 echo $ac_n "checking for sin""... $ac_c" 1>&6
4681 echo "configure:4682: checking for sin" >&5
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char sin(); below. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_sin) || defined (__stub___sin)
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 eval "ac_cv_func_sin=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_func_sin=no"
4718 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4722 echo "$ac_t""no" 1>&6
4724 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4725 echo "configure:4726: checking for sin in -lm" >&5
4726 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4728 xe_check_libs=" -lm "
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 /* We use char because int might match the return type of a gcc2
4734 builtin and then its argument prototype would still apply. */
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 eval "ac_cv_lib_$ac_lib_var=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 eval "ac_cv_lib_$ac_lib_var=no"
4753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4754 echo "$ac_t""yes" 1>&6
4755 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4757 { test "$extra_verbose" = "yes" && cat << EOF
4760 cat >> confdefs.h <<EOF
4761 #define $ac_tr_lib 1
4765 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4768 echo "$ac_t""no" 1>&6
4775 { test "$extra_verbose" = "yes" && cat << \EOF
4776 Defining LISP_FLOAT_TYPE
4778 cat >> confdefs.h <<\EOF
4779 #define LISP_FLOAT_TYPE 1
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 { test "$extra_verbose" = "yes" && cat << \EOF
4795 Defining HAVE_INVERSE_HYPERBOLIC
4797 cat >> confdefs.h <<\EOF
4798 #define HAVE_INVERSE_HYPERBOLIC 1
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4808 echo "checking type of mail spool file locking" 1>&6
4809 echo "configure:4810: checking type of mail spool file locking" >&5
4810 for ac_func in lockf flock
4812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_func" >&5
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 /* System header to define __stub macros and hopefully few prototypes,
4819 which can conflict with char $ac_func(); below. */
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4828 /* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 eval "ac_cv_func_$ac_func=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_func_$ac_func=no"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 { test "$extra_verbose" = "yes" && cat << EOF
4854 Defining $ac_tr_func
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_func 1
4862 echo "$ac_t""no" 1>&6
4866 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4867 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4868 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4869 if test -z "$mail_locking"; then
4870 case "$opsys" in cygwin* | mingw*)
4875 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4876 Defining MAIL_LOCK_LOCKF
4878 cat >> confdefs.h <<\EOF
4879 #define MAIL_LOCK_LOCKF 1
4883 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4884 Defining MAIL_LOCK_FLOCK
4886 cat >> confdefs.h <<\EOF
4887 #define MAIL_LOCK_FLOCK 1
4891 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4892 Defining MAIL_LOCK_LOCKING
4894 cat >> confdefs.h <<\EOF
4895 #define MAIL_LOCK_LOCKING 1
4899 elif test "$mail_locking" = "pop"; then
4902 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4903 Defining MAIL_LOCK_DOT
4905 cat >> confdefs.h <<\EOF
4906 #define MAIL_LOCK_DOT 1
4911 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4912 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4913 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4914 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4915 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4916 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4918 case "$opsys" in decosf*)
4920 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4921 echo "configure:4922: checking for cma_open in -lpthreads" >&5
4922 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4924 xe_check_libs=" -lpthreads "
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 eval "ac_cv_lib_$ac_lib_var=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4944 eval "ac_cv_lib_$ac_lib_var=no"
4949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4953 { test "$extra_verbose" = "yes" && cat << EOF
4956 cat >> confdefs.h <<EOF
4957 #define $ac_tr_lib 1
4961 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4964 echo "$ac_t""no" 1>&6
4968 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4969 c_switch_site="$c_switch_site -threads" ;;
4972 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4973 echo "configure:4974: checking whether the -xildoff compiler flag is required" >&5
4974 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4975 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4976 then echo "$ac_t""no" 1>&6;
4977 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
4979 else echo "$ac_t""no" 1>&6
4982 if test "$opsys" = "sol2"; then
4983 if test "$os_release" -ge 56; then
4984 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4985 echo "configure:4986: checking for \"-z ignore\" linker flag" >&5
4986 case "`ld -h 2>&1`" in
4987 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4988 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4989 *) echo "$ac_t""no" 1>&6 ;;
4995 echo "checking "for specified window system"" 1>&6
4996 echo "configure:4997: checking "for specified window system"" >&5
5002 if test "$with_gnome" != "no"; then
5003 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5004 echo "configure:5005: checking for GNOME configuration script" >&5
5005 for possible in gnome-config
5007 possible_version=`${possible} --version 2> /dev/null`
5008 if test "x${possible_version}" != "x"; then
5009 GNOME_CONFIG="${possible}"
5015 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5018 if test "${GNOME_CONFIG}" != "no"; then
5019 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5020 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5021 { test "$extra_verbose" = "yes" && cat << \EOF
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_GNOME 1
5029 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5030 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5033 if test "$with_gtk" != "no";then
5034 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5035 echo "configure:5036: checking for GTK configuration script" >&5
5036 for possible in gtk12-config gtk14-config gtk-config
5038 possible_version=`${possible} --version 2> /dev/null`
5039 if test "x${possible_version}" != "x"; then
5040 GTK_CONFIG="${possible}"
5042 case "${possible_version}" in
5043 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5044 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5049 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5052 echo "$ac_t""${GTK_CONFIG}" 1>&6
5055 if test "${GTK_CONFIG}" != "no"; then
5056 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5057 echo "configure:5058: checking gtk version" >&5
5058 GTK_VERSION=`${GTK_CONFIG} --version`
5059 echo "$ac_t""${GTK_VERSION}" 1>&6
5061 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5062 echo "configure:5063: checking gtk libs" >&5
5063 GTK_LIBS=`${GTK_CONFIG} --libs`
5064 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5065 echo "$ac_t""${GTK_LIBS}" 1>&6
5067 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5068 echo "configure:5069: checking gtk cflags" >&5
5069 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5070 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5071 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5074 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5075 echo "configure:5076: checking for main in -lgdk_imlib" >&5
5076 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5078 xe_check_libs=" -lgdk_imlib "
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 eval "ac_cv_lib_$ac_lib_var=yes"
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 eval "ac_cv_lib_$ac_lib_var=no"
5099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5100 echo "$ac_t""yes" 1>&6
5101 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5103 echo "$ac_t""no" 1>&6
5108 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5109 echo "configure:5110: checking for Imlib_init in -lImlib" >&5
5110 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5112 xe_check_libs=" -lImlib "
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 eval "ac_cv_lib_$ac_lib_var=yes"
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 eval "ac_cv_lib_$ac_lib_var=no"
5137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5138 echo "$ac_t""yes" 1>&6
5139 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5141 echo "$ac_t""no" 1>&6
5145 for ac_func in gdk_imlib_init
5147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_func" >&5
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func(); below. */
5156 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 eval "ac_cv_func_$ac_func=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_func_$ac_func=no"
5185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 { test "$extra_verbose" = "yes" && cat << EOF
5189 Defining $ac_tr_func
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_func 1
5197 echo "$ac_t""no" 1>&6
5202 { test "$extra_verbose" = "yes" && cat << \EOF
5205 cat >> confdefs.h <<\EOF
5210 { test "$extra_verbose" = "yes" && cat << \EOF
5213 cat >> confdefs.h <<\EOF
5224 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5225 test "${with_toolbars}" != no && with_toolbars=gtk
5226 test "${with_menubars}" != "no" && with_menubars=gtk
5227 test "${with_dialogs}" != "no" && with_dialogs=gtk
5228 test "${with_widgets}" != "no" && with_widgets=gtk
5230 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5231 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5233 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5234 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5236 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5237 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5239 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5240 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5243 OLD_CFLAGS="${CFLAGS}"
5244 OLD_LDFLAGS="${LDFLAGS}"
5245 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5246 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5247 for ac_hdr in glade/glade.h glade.h
5249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5251 echo "configure:5252: checking for $ac_hdr" >&5
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5259 { (eval echo configure:5260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5261 if test -z "$ac_err"; then
5263 eval "ac_cv_header_$ac_safe=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_header_$ac_safe=no"
5272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5275 { test "$extra_verbose" = "yes" && cat << EOF
5278 cat >> confdefs.h <<EOF
5279 #define $ac_tr_hdr 1
5284 echo "$ac_t""no" 1>&6
5289 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5290 echo "configure:5291: checking for main in -lxml" >&5
5291 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5293 xe_check_libs=" -lxml "
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 eval "ac_cv_lib_$ac_lib_var=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 eval "ac_cv_lib_$ac_lib_var=no"
5314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5315 echo "$ac_t""yes" 1>&6
5316 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5318 echo "$ac_t""no" 1>&6
5323 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5324 echo "configure:5325: checking for main in -lglade" >&5
5325 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5327 xe_check_libs=" -lglade "
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 eval "ac_cv_lib_$ac_lib_var=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_lib_$ac_lib_var=no"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5349 echo "$ac_t""yes" 1>&6
5350 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5352 echo "$ac_t""no" 1>&6
5357 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5358 echo "configure:5359: checking for main in -lglade-gnome" >&5
5359 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5361 xe_check_libs=" -lglade-gnome "
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 eval "ac_cv_lib_$ac_lib_var=yes"
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 eval "ac_cv_lib_$ac_lib_var=no"
5382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5383 echo "$ac_t""yes" 1>&6
5384 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5386 echo "$ac_t""no" 1>&6
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <glade/glade-xml.h>
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5398 echo "$ac_t""yes" 1>&6
5399 { test "$extra_verbose" = "yes" && cat << \EOF
5400 Defining LIBGLADE_XML_TXTDOMAIN = 1
5402 cat >> confdefs.h <<\EOF
5403 #define LIBGLADE_XML_TXTDOMAIN 1
5409 echo "$ac_t""no" 1>&6
5413 CFLAGS="${OLD_CFLAGS}"
5414 LDFLAGS="${OLD_LDFLAGS}"
5418 if test "$with_x11" != "no"; then
5419 test "$x_includes $x_libraries" != "NONE NONE" && \
5420 window_system=x11 with_x11=yes
5423 if test "$x_includes $x_libraries" = "NONE NONE" \
5424 -a -n "$OPENWINHOME" \
5425 -a "$OPENWINHOME" != "/usr/openwin" \
5426 -a -d "$OPENWINHOME"; then
5427 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5428 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5429 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5432 if test "$x_includes" = "NONE"; then
5433 for dir in "/usr/X11" "/usr/X11R6"; do
5434 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5438 if test "$x_libraries" = "NONE"; then
5439 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5440 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5444 # If we find X, set shell vars x_includes and x_libraries to the
5445 # paths, otherwise set no_x=yes.
5446 # Uses ac_ vars as temps to allow command line to override cache and checks.
5447 # --without-x overrides everything else, but does not touch the cache.
5448 echo $ac_n "checking for X""... $ac_c" 1>&6
5449 echo "configure:5450: checking for X" >&5
5451 # Check whether --with-x or --without-x was given.
5452 if test "${with_x+set}" = set; then
5457 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5458 if test "x$with_x" = xno; then
5459 # The user explicitly disabled X.
5462 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5463 # Both variables are already set.
5467 # One or both of the vars are not set, and there is no cached value.
5468 ac_x_includes=NO ac_x_libraries=NO
5470 if mkdir conftestdir; then
5472 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5473 cat > Imakefile <<'EOF'
5475 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5477 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5479 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5480 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5481 for ac_extension in a so sl; do
5482 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5483 test -f $ac_im_libdir/libX11.$ac_extension; then
5484 ac_im_usrlibdir=$ac_im_libdir; break
5487 # Screen out bogus values from the imake configuration. They are
5488 # bogus both because they are the default anyway, and because
5489 # using them would break gcc on systems where it needs fixed includes.
5490 case "$ac_im_incroot" in
5492 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5494 case "$ac_im_usrlibdir" in
5496 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5503 if test "$ac_x_includes" = NO; then
5504 # Guess where to find include files, by looking for this one X11 .h file.
5505 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5507 # First, try using that file with no special directory specified.
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 #include <$x_direct_test_include>
5513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5514 { (eval echo configure:5515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5516 if test -z "$ac_err"; then
5518 # We can compile using X headers with no special include directory.
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 # Look for the header file in a standard set of common directories.
5526 # Check X11 before X11Rn because it is often a symlink to the current release.
5529 /usr/X11R6/include \
5530 /usr/X11R5/include \
5531 /usr/X11R4/include \
5534 /usr/include/X11R6 \
5535 /usr/include/X11R5 \
5536 /usr/include/X11R4 \
5538 /usr/local/X11/include \
5539 /usr/local/X11R6/include \
5540 /usr/local/X11R5/include \
5541 /usr/local/X11R4/include \
5543 /usr/local/include/X11 \
5544 /usr/local/include/X11R6 \
5545 /usr/local/include/X11R5 \
5546 /usr/local/include/X11R4 \
5550 /usr/XFree86/include/X11 \
5553 /usr/local/include \
5554 /usr/unsupported/include \
5555 /usr/athena/include \
5556 /usr/local/x11r5/include \
5557 /usr/lpp/Xamples/include \
5559 /usr/openwin/include \
5560 /usr/openwin/share/include \
5563 if test -r "$ac_dir/$x_direct_test_include"; then
5564 ac_x_includes=$ac_dir
5570 fi # $ac_x_includes = NO
5572 if test "$ac_x_libraries" = NO; then
5573 # Check for the libraries.
5575 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5576 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5578 # See if we find them without any special options.
5579 # Don't add to $LIBS permanently.
5580 ac_save_LIBS="$LIBS"
5581 LIBS="-l$x_direct_test_library $LIBS"
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5587 ${x_direct_test_function}()
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 LIBS="$ac_save_LIBS"
5593 # We can link X programs with no special library path.
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 LIBS="$ac_save_LIBS"
5600 # First see if replacing the include by lib works.
5601 # Check X11 before X11Rn because it is often a symlink to the current release.
5602 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5613 /usr/local/X11/lib \
5614 /usr/local/X11R6/lib \
5615 /usr/local/X11R5/lib \
5616 /usr/local/X11R4/lib \
5618 /usr/local/lib/X11 \
5619 /usr/local/lib/X11R6 \
5620 /usr/local/lib/X11R5 \
5621 /usr/local/lib/X11R4 \
5625 /usr/XFree86/lib/X11 \
5629 /usr/unsupported/lib \
5631 /usr/local/x11r5/lib \
5632 /usr/lpp/Xamples/lib \
5636 /usr/openwin/share/lib \
5639 for ac_extension in a so sl; do
5640 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5641 ac_x_libraries=$ac_dir
5648 fi # $ac_x_libraries = NO
5650 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5651 # Didn't find X anywhere. Cache the known absence of X.
5652 ac_cv_have_x="have_x=no"
5654 # Record where we found X for the cache.
5655 ac_cv_have_x="have_x=yes \
5656 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5659 eval "$ac_cv_have_x"
5662 if test "$have_x" != yes; then
5663 echo "$ac_t""$have_x" 1>&6
5666 # If each of the values was on the command line, it overrides each guess.
5667 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5668 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5669 # Update the cache value to reflect the command line values.
5670 ac_cv_have_x="have_x=yes \
5671 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5672 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5675 if test "$no_x" = yes; then
5676 # Not all programs may use this symbol, but it does not hurt to define it.
5677 { test "$extra_verbose" = "yes" && cat << \EOF
5678 Defining X_DISPLAY_MISSING
5680 cat >> confdefs.h <<\EOF
5681 #define X_DISPLAY_MISSING 1
5685 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5687 if test -n "$x_includes"; then
5688 X_CFLAGS="$X_CFLAGS -I$x_includes"
5691 # It would also be nice to do this for all -L options, not just this one.
5692 if test -n "$x_libraries"; then
5693 X_LIBS="$X_LIBS -L$x_libraries"
5694 # For Solaris; some versions of Sun CC require a space after -R and
5695 # others require no space. Words are not sufficient . . . .
5696 case "`(uname -sr) 2>/dev/null`" in
5698 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5699 echo "configure:5700: checking whether -R must be followed by a space" >&5
5700 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5719 if test $ac_R_nospace = yes; then
5720 echo "$ac_t""no" 1>&6
5721 X_LIBS="$X_LIBS -R$x_libraries"
5723 LIBS="$ac_xsave_LIBS -R $x_libraries"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5742 if test $ac_R_space = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 X_LIBS="$X_LIBS -R $x_libraries"
5746 echo "$ac_t""neither works" 1>&6
5749 LIBS="$ac_xsave_LIBS"
5753 # Check for system-dependent libraries X programs must link with.
5754 # Do this before checking for the system-independent R6 libraries
5755 # (-lICE), since we may need -lsocket or whatever for X linking.
5757 if test "$ISC" = yes; then
5758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5760 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5761 # libraries were built with DECnet support. And karl@cs.umb.edu says
5762 # the Alpha needs dnet_stub (dnet does not exist).
5763 if test "$with_dnet" = "no" ; then
5764 ac_cv_lib_dnet_dnet_ntoa=no
5767 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5768 echo "configure:5769: checking for dnet_ntoa in -ldnet" >&5
5769 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5771 xe_check_libs=" -ldnet "
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 eval "ac_cv_lib_$ac_lib_var=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 eval "ac_cv_lib_$ac_lib_var=no"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5797 echo "$ac_t""yes" 1>&6
5798 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5800 echo "$ac_t""no" 1>&6
5805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5807 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5808 echo "configure:5809: checking for dnet_ntoa in -ldnet_stub" >&5
5809 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5811 xe_check_libs=" -ldnet_stub "
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 eval "ac_cv_lib_$ac_lib_var=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_lib_$ac_lib_var=no"
5836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5837 echo "$ac_t""yes" 1>&6
5838 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5840 echo "$ac_t""no" 1>&6
5846 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5847 # to get the SysV transport functions.
5848 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5850 # The nsl library prevents programs from opening the X display
5851 # on Irix 5.2, according to dickey@clark.net.
5852 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5853 echo "configure:5854: checking for gethostbyname" >&5
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char gethostbyname(); below. */
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864 char gethostbyname();
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 eval "ac_cv_func_gethostbyname=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_func_gethostbyname=no"
5890 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5894 echo "$ac_t""no" 1>&6
5897 if test $ac_cv_func_gethostbyname = no; then
5899 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5900 echo "configure:5901: checking for gethostbyname in -lnsl" >&5
5901 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5903 xe_check_libs=" -lnsl "
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char gethostbyname();
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5929 echo "$ac_t""yes" 1>&6
5930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5932 echo "$ac_t""no" 1>&6
5938 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5939 # socket/setsockopt and other routines are undefined under SCO ODT
5940 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5941 # on later versions), says simon@lia.di.epfl.ch: it contains
5942 # gethostby* variants that don't use the nameserver (or something).
5943 # -lsocket must be given before -lnsl if both are needed.
5944 # We assume that if connect needs -lnsl, so does gethostbyname.
5945 echo $ac_n "checking for connect""... $ac_c" 1>&6
5946 echo "configure:5947: checking for connect" >&5
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char connect(); below. */
5954 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_connect) || defined (__stub___connect)
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5974 eval "ac_cv_func_connect=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 eval "ac_cv_func_connect=no"
5983 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5987 echo "$ac_t""no" 1>&6
5990 if test $ac_cv_func_connect = no; then
5992 xe_msg_checking="for connect in -lsocket"
5993 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5994 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5995 echo "configure:5996: checking "$xe_msg_checking"" >&5
5996 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5998 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 eval "ac_cv_lib_$ac_lib_var=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_lib_$ac_lib_var=no"
6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6024 echo "$ac_t""yes" 1>&6
6025 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6027 echo "$ac_t""no" 1>&6
6033 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6034 echo $ac_n "checking for remove""... $ac_c" 1>&6
6035 echo "configure:6036: checking for remove" >&5
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* System header to define __stub macros and hopefully few prototypes,
6041 which can conflict with char remove(); below. */
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6050 /* The GNU C library defines this for functions which it implements
6051 to always fail with ENOSYS. Some functions are actually named
6052 something starting with __ and the normal name is an alias. */
6053 #if defined (__stub_remove) || defined (__stub___remove)
6061 if { (eval echo configure:6062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6063 eval "ac_cv_func_remove=yes"
6065 echo "configure: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6068 eval "ac_cv_func_remove=no"
6072 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6076 echo "$ac_t""no" 1>&6
6079 if test $ac_cv_func_remove = no; then
6081 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6082 echo "configure:6083: checking for remove in -lposix" >&5
6083 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6085 xe_check_libs=" -lposix "
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 eval "ac_cv_lib_$ac_lib_var=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_lib_$ac_lib_var=no"
6110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6111 echo "$ac_t""yes" 1>&6
6112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6114 echo "$ac_t""no" 1>&6
6120 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6121 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6122 echo "configure:6123: checking for shmat" >&5
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char shmat(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_shmat) || defined (__stub___shmat)
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 eval "ac_cv_func_shmat=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 eval "ac_cv_func_shmat=no"
6159 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6163 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_func_shmat = no; then
6168 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6169 echo "configure:6170: checking for shmat in -lipc" >&5
6170 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6172 xe_check_libs=" -lipc "
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6187 eval "ac_cv_lib_$ac_lib_var=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 eval "ac_cv_lib_$ac_lib_var=no"
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6198 echo "$ac_t""yes" 1>&6
6199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6201 echo "$ac_t""no" 1>&6
6208 # Check for libraries that X11R6 Xt/Xaw programs need.
6209 ac_save_LDFLAGS="$LDFLAGS"
6210 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6212 # check for ICE first), but we must link in the order -lSM -lICE or
6213 # we get undefined symbols. So assume we have SM if we have ICE.
6214 # These have to be linked with before -lX11, unlike the other
6215 # libraries we check for below, so use a different variable.
6216 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6218 xe_msg_checking="for IceConnectionNumber in -lICE"
6219 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6220 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6221 echo "configure:6222: checking "$xe_msg_checking"" >&5
6222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6224 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6231 char IceConnectionNumber();
6234 IceConnectionNumber()
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 eval "ac_cv_lib_$ac_lib_var=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_lib_$ac_lib_var=no"
6249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6250 echo "$ac_t""yes" 1>&6
6251 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6253 echo "$ac_t""no" 1>&6
6257 LDFLAGS="$ac_save_LDFLAGS"
6260 # Autoconf claims to find X library and include dirs for us.
6261 if test "$no_x" = "yes"
6262 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6263 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6268 if test "$with_x11" = "yes"; then
6269 { test "$extra_verbose" = "yes" && cat << \EOF
6270 Defining HAVE_X_WINDOWS
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_X_WINDOWS 1
6277 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6278 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6280 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6281 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6282 if test -d "$lib_dir" -a -d "$inc_dir"; then
6283 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6284 x_libraries="$lib_dir $x_libraries"
6285 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6287 case "$x_includes" in "$inc_dir"* ) ;; *)
6288 x_includes="$inc_dir $x_includes"
6289 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6294 for rel in "X11R6" "X11R5" "X11R4"; do
6295 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6296 if test -d "$lib_dir" -a -d "$inc_dir"; then
6297 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6298 x_libraries="$x_libraries $lib_dir"
6299 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6301 case "$x_includes" in "$inc_dir"* ) ;; *)
6302 x_includes="$x_includes $inc_dir"
6303 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6309 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 ;;
6312 ld_switch_x_site="$X_LIBS"
6315 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6316 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6317 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6319 runpath="" runpath_dirs=""
6320 if test -n "$LD_RUN_PATH"; then
6321 runpath="$LD_RUN_PATH"
6322 elif test "$GCC" = "yes"; then
6323 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6324 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6325 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6326 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6327 case "$arg" in P,* | -L* | -R* )
6328 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6330 xe_runpath_dir="$dir"
6331 test "$xe_runpath_dir" != "/lib" -a \
6332 "$xe_runpath_dir" != "/usr/lib" -a \
6333 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6334 eval "$xe_add_unique_runpath_dir"
6339 ld_switch_run="$ld_switch_run_save"
6342 for arg in $ld_switch_site $ld_switch_x_site; do
6343 case "$arg" in -L*) {
6344 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6345 test "$xe_runpath_dir" != "/lib" -a \
6346 "$xe_runpath_dir" != "/usr/lib" -a \
6347 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6348 eval "$xe_add_unique_runpath_dir"
6351 if test "$opsys $need_motif" = "sol2 yes"; then
6352 xe_runpath_dir="/opt/SUNWdt/lib";
6353 eval "$xe_add_unique_runpath_dir";
6356 if test -n "$runpath"; then
6357 ld_switch_run="${dash_r}${runpath}"
6359 if test "$GCC" = "yes"; then
6360 set x $ld_switch_run; shift; ld_switch_run=""
6361 while test -n "$1"; do
6363 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6364 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6366 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6371 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6376 if test "$extra_verbose" = "yes"; then
6377 echo; echo "X11 compilation variables:"
6378 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6383 if test "$x_includes" != NONE; then
6384 for i in $x_includes; do
6385 if test -d "$i/bitmaps"; then
6386 bitmapdirs="$i/bitmaps:$bitmapdirs"
6388 if test -d "$i/X11/bitmaps"; then
6389 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6392 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6394 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6395 Defining BITMAPDIR = "$bitmapdirs"
6397 cat >> confdefs.h <<EOF
6398 #define BITMAPDIR "$bitmapdirs"
6403 echo "checking for X defines extracted by xmkmf" 1>&6
6404 echo "configure:6405: checking for X defines extracted by xmkmf" >&5
6406 if mkdir conftestdir; then
6408 cat > Imakefile <<'EOF'
6410 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6412 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6414 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6418 for word in $xmkmf_defines; do
6422 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6424 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6427 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6428 if test "$val" = "1"
6429 then { test "$extra_verbose" = "yes" && cat << EOF
6432 cat >> confdefs.h <<EOF
6437 else { test "$extra_verbose" = "yes" && cat << EOF
6438 Defining $sym = $val
6440 cat >> confdefs.h <<EOF
6451 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6452 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6453 echo "configure:6454: checking for X11/Intrinsic.h" >&5
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <X11/Intrinsic.h>
6460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure:6462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6465 eval "ac_cv_header_$ac_safe=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_header_$ac_safe=no"
6474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6478 echo "$ac_t""no" 1>&6
6479 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6484 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6485 echo "configure:6486: checking for XOpenDisplay in -lX11" >&5
6486 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6488 xe_check_libs=" -lX11 "
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6495 char XOpenDisplay();
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6503 eval "ac_cv_lib_$ac_lib_var=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 eval "ac_cv_lib_$ac_lib_var=no"
6513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6514 echo "$ac_t""yes" 1>&6
6517 echo "$ac_t""no" 1>&6
6521 if test "$have_lib_x11" != "yes"; then
6523 xe_msg_checking="for XGetFontProperty in -lX11"
6524 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6525 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6526 echo "configure:6527: checking "$xe_msg_checking"" >&5
6527 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6529 xe_check_libs=" -lX11 -b i486-linuxaout"
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6536 char XGetFontProperty();
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_lib_$ac_lib_var=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_lib_$ac_lib_var=no"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6555 echo "$ac_t""yes" 1>&6
6556 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6558 echo "$ac_t""no" 1>&6
6559 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6565 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6568 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6569 echo "configure:6570: checking for XShapeSelectInput in -lXext" >&5
6570 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6572 xe_check_libs=" -lXext "
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char XShapeSelectInput();
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6598 echo "$ac_t""yes" 1>&6
6599 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6601 echo "$ac_t""no" 1>&6
6607 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6608 echo "configure:6609: checking for XtOpenDisplay in -lXt" >&5
6609 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6611 xe_check_libs=" -lXt "
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char XtOpenDisplay();
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_lib_$ac_lib_var=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_lib_$ac_lib_var=no"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6637 echo "$ac_t""yes" 1>&6
6638 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6640 echo "$ac_t""no" 1>&6
6641 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6646 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6647 echo "configure:6648: checking the version of X11 being used" >&5
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 #include <X11/Intrinsic.h>
6652 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6656 ./conftest foobar; x11_release=$?
6659 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6665 echo "$ac_t""R${x11_release}" 1>&6
6666 { test "$extra_verbose" = "yes" && cat << EOF
6667 Defining THIS_IS_X11R${x11_release}
6669 cat >> confdefs.h <<EOF
6670 #define THIS_IS_X11R${x11_release} 1
6675 if test "${x11_release}" = "4"; then
6676 case "$with_widgets" in
6677 "" | "no") with_widgets=no ;;
6678 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6682 for ac_func in XConvertCase
6684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6685 echo "configure:6686: checking for $ac_func" >&5
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* System header to define __stub macros and hopefully few prototypes,
6691 which can conflict with char $ac_func(); below. */
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6700 /* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
6703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_func_$ac_func=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_func_$ac_func=no"
6722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6723 echo "$ac_t""yes" 1>&6
6724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6725 { test "$extra_verbose" = "yes" && cat << EOF
6726 Defining $ac_tr_func
6728 cat >> confdefs.h <<EOF
6729 #define $ac_tr_func 1
6734 echo "$ac_t""no" 1>&6
6739 for ac_hdr in X11/Xlocale.h
6741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6743 echo "configure:6744: checking for $ac_hdr" >&5
6745 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure"
6747 #include "confdefs.h"
6750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6751 { (eval echo configure:6752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6753 if test -z "$ac_err"; then
6755 eval "ac_cv_header_$ac_safe=yes"
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6761 eval "ac_cv_header_$ac_safe=no"
6764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6765 echo "$ac_t""yes" 1>&6
6766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6767 { test "$extra_verbose" = "yes" && cat << EOF
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_hdr 1
6776 echo "$ac_t""no" 1>&6
6781 for ac_func in XRegisterIMInstantiateCallback
6783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_func" >&5
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char $ac_func(); below. */
6792 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812 eval "ac_cv_func_$ac_func=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 eval "ac_cv_func_$ac_func=no"
6821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6824 { test "$extra_verbose" = "yes" && cat << EOF
6825 Defining $ac_tr_func
6827 cat >> confdefs.h <<EOF
6828 #define $ac_tr_func 1
6833 echo "$ac_t""no" 1>&6
6837 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6838 echo "configure:6839: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6839 cat > conftest.$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6843 #define NeedFunctionPrototypes 1
6844 #include <X11/Xlib.h>
6845 extern Bool XRegisterIMInstantiateCallback(
6846 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6854 echo "$ac_t""yes" 1>&6
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 echo "$ac_t""no" 1>&6
6860 { test "$extra_verbose" = "yes" && cat << \EOF
6861 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
6863 cat >> confdefs.h <<\EOF
6864 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
6871 test -z "$with_xmu" && {
6872 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6873 echo "configure:6874: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6874 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6876 xe_check_libs=" -lXmu "
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6880 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char XmuReadBitmapDataFromFile();
6886 XmuReadBitmapDataFromFile()
6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 eval "ac_cv_lib_$ac_lib_var=yes"
6893 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6896 eval "ac_cv_lib_$ac_lib_var=no"
6901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6902 echo "$ac_t""yes" 1>&6
6905 echo "$ac_t""no" 1>&6
6910 if test "$with_xmu" = "no"; then
6911 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6912 echo " xemacs will be linked with \"xmu.o\""
6915 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6916 { test "$extra_verbose" = "yes" && cat << \EOF
6919 cat >> confdefs.h <<\EOF
6927 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6928 echo "configure:6929: checking for main in -lXbsd" >&5
6929 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6931 xe_check_libs=" -lXbsd "
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_lib_$ac_lib_var=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_lib_$ac_lib_var=no"
6952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6953 echo "$ac_t""yes" 1>&6
6954 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6956 echo "$ac_t""no" 1>&6
6961 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6962 if test "$GCC" = "yes"; then
6963 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6964 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6967 "xlc" ) CC="xlc_r" ;;
6968 "xlC" ) CC="xlC_r" ;;
6975 if test "$with_msw" != "no"; then
6976 echo "checking for MS-Windows" 1>&6
6977 echo "configure:6978: checking for MS-Windows" >&5
6979 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6980 echo "configure:6981: checking for main in -lgdi32" >&5
6981 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6983 xe_check_libs=" -lgdi32 "
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6994 eval "ac_cv_lib_$ac_lib_var=yes"
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6999 eval "ac_cv_lib_$ac_lib_var=no"
7004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7005 echo "$ac_t""yes" 1>&6
7008 echo "$ac_t""no" 1>&6
7012 if test "$with_msw" = "yes"; then
7013 { test "$extra_verbose" = "yes" && cat << \EOF
7014 Defining HAVE_MS_WINDOWS
7016 cat >> confdefs.h <<\EOF
7017 #define HAVE_MS_WINDOWS 1
7022 if test "$with_netinstall" = "yes"; then
7023 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7024 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7025 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7028 install_pp="$blddir/lib-src/installexe.sh"
7029 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
7030 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7031 if test "$window_system" != x11; then
7033 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7034 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7035 echo " xemacs will be linked with \"scrollbar-msw.o\""
7037 test "$with_menubars" != "no" && with_menubars=msw \
7038 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7039 echo " xemacs will be linked with \"menubar-msw.o\""
7041 test "$with_toolbars" != "no" && with_toolbars=msw \
7042 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7043 echo " xemacs will be linked with \"toolbar-msw.o\""
7045 test "$with_dialogs" != "no" && with_dialogs=msw \
7046 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7047 echo " xemacs will be linked with \"dialog-msw.o\""
7049 test "$with_widgets" != "no" && with_widgets=msw
7051 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7052 echo " xemacs will be linked with \"scrollbar-msw.o\""
7054 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7055 echo " xemacs will be linked with \"menubar-msw.o\""
7057 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7058 echo " xemacs will be linked with \"toolbar-msw.o\""
7060 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7061 echo " xemacs will be linked with \"dialog-msw.o\""
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7068 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7072 { test "$extra_verbose" = "yes" && cat << \EOF
7073 Defining HAVE_MSG_SELECT
7075 cat >> confdefs.h <<\EOF
7076 #define HAVE_MSG_SELECT 1
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7086 with_file_coding=yes
7087 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
7088 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\""
7095 test -z "$window_system" && window_system="none"
7097 if test "$window_system" = "none"; then
7098 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7100 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7101 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7103 eval "with_${feature}=no"
7106 test -z "$with_toolbars" && with_toolbars=yes
7109 if test "$with_msw" != "yes"; then
7110 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7112 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7113 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7115 eval "with_${feature}=no"
7121 if test "$with_x11" != "yes"; then
7122 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7124 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7125 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7127 eval "with_${feature}=no"
7131 if test "$with_x11" = "yes"; then
7132 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7133 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7134 echo "configure:7135: checking for X11/extensions/shape.h" >&5
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 #include <X11/extensions/shape.h>
7141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7142 { (eval echo configure:7143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7144 if test -z "$ac_err"; then
7146 eval "ac_cv_header_$ac_safe=yes"
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 eval "ac_cv_header_$ac_safe=no"
7155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7156 echo "$ac_t""yes" 1>&6
7158 { test "$extra_verbose" = "yes" && cat << \EOF
7159 Defining HAVE_BALLOON_HELP
7161 cat >> confdefs.h <<\EOF
7162 #define HAVE_BALLOON_HELP 1
7166 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7167 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7170 echo "$ac_t""no" 1>&6
7177 case "$window_system" in
7178 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7179 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7182 test "$with_gnome" = "yes" && echo " Using GNOME."
7183 test "$with_gnome" = "no" && echo " Using GTK."
7185 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7188 case "$x_libraries" in *X11R4* )
7189 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7190 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7193 echo "checking for WM_COMMAND option" 1>&6
7194 echo "configure:7195: checking for WM_COMMAND option" >&5;
7195 if test "$with_wmcommand" != "no"; then
7196 { test "$extra_verbose" = "yes" && cat << \EOF
7197 Defining HAVE_WMCOMMAND
7199 cat >> confdefs.h <<\EOF
7200 #define HAVE_WMCOMMAND 1
7206 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7207 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7208 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7209 echo "configure:7210: checking for X11/Xauth.h" >&5
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 #include <X11/Xauth.h>
7216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7217 { (eval echo configure:7218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7219 if test -z "$ac_err"; then
7221 eval "ac_cv_header_$ac_safe=yes"
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7227 eval "ac_cv_header_$ac_safe=no"
7230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7234 echo "$ac_t""no" 1>&6
7238 test -z "$with_xauth" && {
7239 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7240 echo "configure:7241: checking for XauGetAuthByAddr in -lXau" >&5
7241 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7243 xe_check_libs=" -lXau "
7244 cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char XauGetAuthByAddr();
7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 eval "ac_cv_lib_$ac_lib_var=yes"
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 eval "ac_cv_lib_$ac_lib_var=no"
7268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7269 echo "$ac_t""yes" 1>&6
7272 echo "$ac_t""no" 1>&6
7277 test -z "$with_xauth" && with_xauth=yes
7278 if test "$with_xauth" = "yes"; then
7279 { test "$extra_verbose" = "yes" && cat << \EOF
7282 cat >> confdefs.h <<\EOF
7283 #define HAVE_XAUTH 1
7289 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
7297 if test "$with_tooltalk" != "no" ; then
7298 for dir in "" "Tt/" "desktop/" ; do
7299 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7300 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7301 echo "configure:7302: checking for ${dir}tt_c.h" >&5
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 #include <${dir}tt_c.h>
7308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7309 { (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7311 if test -z "$ac_err"; then
7313 eval "ac_cv_header_$ac_safe=yes"
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7319 eval "ac_cv_header_$ac_safe=no"
7322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7323 echo "$ac_t""yes" 1>&6
7324 tt_c_h_file="${dir}tt_c.h"; break
7326 echo "$ac_t""no" 1>&6
7330 if test -z "$tt_c_h_file"; then
7331 if test "$with_tooltalk" = "yes"; then
7332 (echo "$progname: Usage error:"
7333 echo " " "Unable to find required tooltalk header files."
7334 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7339 if test "$with_tooltalk" != "no" ; then
7340 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7342 xe_msg_checking="for tt_message_create in -ltt"
7343 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7344 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7345 echo "configure:7346: checking "$xe_msg_checking"" >&5
7346 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7348 xe_check_libs=" -ltt $extra_libs"
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 /* Override any gcc2 internal prototype to avoid an error. */
7353 /* We use char because int might match the return type of a gcc2
7354 builtin and then its argument prototype would still apply. */
7355 char tt_message_create();
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 eval "ac_cv_lib_$ac_lib_var=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_lib_$ac_lib_var=no"
7373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7374 echo "$ac_t""yes" 1>&6
7375 tt_libs="-ltt $extra_libs"; break
7377 echo "$ac_t""no" 1>&6
7383 if test -z "$tt_libs"; then
7384 if test "$with_tooltalk" = "yes"; then
7385 (echo "$progname: Usage error:"
7386 echo " " "Unable to find required tooltalk libraries."
7387 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7392 test -z "$with_tooltalk" && with_tooltalk=yes
7393 if test "$with_tooltalk" = "yes"; then
7394 { test "$extra_verbose" = "yes" && cat << \EOF
7397 cat >> confdefs.h <<\EOF
7402 { test "$extra_verbose" = "yes" && cat << EOF
7403 Defining TT_C_H_FILE = "$tt_c_h_file"
7405 cat >> confdefs.h <<EOF
7406 #define TT_C_H_FILE "$tt_c_h_file"
7410 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7411 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7412 echo " xemacs will be linked with \"tooltalk.o\""
7416 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7417 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7418 echo "configure:7419: checking for Dt/Dt.h" >&5
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7426 { (eval echo configure:7427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7428 if test -z "$ac_err"; then
7430 eval "ac_cv_header_$ac_safe=yes"
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7436 eval "ac_cv_header_$ac_safe=no"
7439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7443 echo "$ac_t""no" 1>&6
7447 test -z "$with_cde" && {
7448 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7449 echo "configure:7450: checking for DtDndDragStart in -lDtSvc" >&5
7450 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7452 xe_check_libs=" -lDtSvc "
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7459 char DtDndDragStart();
7465 if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7467 eval "ac_cv_lib_$ac_lib_var=yes"
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 eval "ac_cv_lib_$ac_lib_var=no"
7477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7478 echo "$ac_t""yes" 1>&6
7481 echo "$ac_t""no" 1>&6
7486 test -z "$with_cde" && with_cde=yes
7487 if test "$with_dragndrop" = no; then
7488 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7491 if test "$with_cde" = "yes" ; then
7492 { test "$extra_verbose" = "yes" && cat << \EOF
7495 cat >> confdefs.h <<\EOF
7500 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7501 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7502 with_tooltalk=yes # CDE requires Tooltalk
7503 need_motif=yes # CDE requires Motif
7506 test "$window_system" != "x11" && with_offix=no
7507 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7508 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7511 if test "$with_dragndrop" = no; then
7512 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7515 if test "$with_cde" = yes; then
7516 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7519 test -z "$with_offix" && with_offix=no
7520 if test "$with_offix" = "yes"; then
7521 { test "$extra_verbose" = "yes" && cat << \EOF
7522 Defining HAVE_OFFIX_DND
7524 cat >> confdefs.h <<\EOF
7525 #define HAVE_OFFIX_DND 1
7529 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7530 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7532 if test "$with_gtk" = "yes"; then
7533 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7536 if test "$with_dragndrop" != "no" ; then
7537 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7538 echo "configure:7539: checking if drag and drop API is needed" >&5
7539 if test -n "$dragndrop_proto" ; then
7541 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7542 { test "$extra_verbose" = "yes" && cat << \EOF
7543 Defining HAVE_DRAGNDROP
7545 cat >> confdefs.h <<\EOF
7546 #define HAVE_DRAGNDROP 1
7550 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7553 echo "$ac_t""no" 1>&6
7557 echo "checking for LDAP" 1>&6
7558 echo "configure:7559: checking for LDAP" >&5
7559 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7560 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7561 echo "configure:7562: checking for ldap.h" >&5
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7569 { (eval echo configure:7570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7571 if test -z "$ac_err"; then
7573 eval "ac_cv_header_$ac_safe=yes"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7579 eval "ac_cv_header_$ac_safe=no"
7582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7583 echo "$ac_t""yes" 1>&6
7586 echo "$ac_t""no" 1>&6
7590 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7591 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7592 echo "configure:7593: checking for lber.h" >&5
7594 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7600 { (eval echo configure:7601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7602 if test -z "$ac_err"; then
7604 eval "ac_cv_header_$ac_safe=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_header_$ac_safe=no"
7613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7617 echo "$ac_t""no" 1>&6
7621 if test "$with_ldap" != "no"; then
7623 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7624 echo "configure:7625: checking for ldap_search in -lldap" >&5
7625 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7627 xe_check_libs=" -lldap "
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7642 eval "ac_cv_lib_$ac_lib_var=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 eval "ac_cv_lib_$ac_lib_var=no"
7652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7653 echo "$ac_t""yes" 1>&6
7654 with_ldap_nolber=yes
7656 echo "$ac_t""no" 1>&6
7661 test "$with_ldap_nolber" = "no" && {
7662 xe_msg_checking="for ldap_open in -lldap"
7663 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7664 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7665 echo "configure:7666: checking "$xe_msg_checking"" >&5
7666 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7668 xe_check_libs=" -lldap -llber"
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* Override any gcc2 internal prototype to avoid an error. */
7673 /* We use char because int might match the return type of a gcc2
7674 builtin and then its argument prototype would still apply. */
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7683 eval "ac_cv_lib_$ac_lib_var=yes"
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7688 eval "ac_cv_lib_$ac_lib_var=no"
7693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7694 echo "$ac_t""yes" 1>&6
7697 echo "$ac_t""no" 1>&6
7702 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7703 xe_msg_checking="for ldap_open in -lldap"
7704 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7705 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7706 echo "configure:7707: checking "$xe_msg_checking"" >&5
7707 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7709 xe_check_libs=" -lldap -llber -lkrb"
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724 eval "ac_cv_lib_$ac_lib_var=yes"
7726 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7729 eval "ac_cv_lib_$ac_lib_var=no"
7734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7735 echo "$ac_t""yes" 1>&6
7738 echo "$ac_t""no" 1>&6
7743 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7744 xe_msg_checking="for ldap_open in -lldap"
7745 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7746 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7747 echo "configure:7748: checking "$xe_msg_checking"" >&5
7748 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7750 xe_check_libs=" -lldap -llber -lkrb -ldes"
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7765 eval "ac_cv_lib_$ac_lib_var=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7770 eval "ac_cv_lib_$ac_lib_var=no"
7775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7776 echo "$ac_t""yes" 1>&6
7777 with_ldap_krbdes=yes
7779 echo "$ac_t""no" 1>&6
7784 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
7786 if test "$with_ldap" = "yes"; then
7787 { test "$extra_verbose" = "yes" && cat << \EOF
7790 cat >> confdefs.h <<\EOF
7795 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7796 echo " xemacs will be linked with \"eldap.o\""
7798 if test "$with_ldap_nolber" = "yes" ; then
7799 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7801 if test "$with_ldap_krb" = "yes" ; then
7802 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7804 if test "$with_ldap_krbdes" = "yes" ; then
7805 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7806 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7808 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7809 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7811 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7814 echo "configure:7815: checking for $ac_func" >&5
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func(); below. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7829 /* The GNU C library defines this for functions which it implements
7830 to always fail with ENOSYS. Some functions are actually named
7831 something starting with __ and the normal name is an alias. */
7832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 eval "ac_cv_func_$ac_func=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_func_$ac_func=no"
7851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854 { test "$extra_verbose" = "yes" && cat << EOF
7855 Defining $ac_tr_func
7857 cat >> confdefs.h <<EOF
7858 #define $ac_tr_func 1
7863 echo "$ac_t""no" 1>&6
7869 if test "$with_postgresql" != "no"; then
7870 echo "checking for PostgreSQL" 1>&6
7871 echo "configure:7872: checking for PostgreSQL" >&5
7873 for header_dir in "" "pgsql/" "postgresql/"; do
7874 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7875 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7876 echo "configure:7877: checking for ${header_dir}libpq-fe.h" >&5
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 #include <${header_dir}libpq-fe.h>
7883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7884 { (eval echo configure:7885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7886 if test -z "$ac_err"; then
7888 eval "ac_cv_header_$ac_safe=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 eval "ac_cv_header_$ac_safe=no"
7897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7899 libpq_fe_h_file=${header_dir}libpq-fe.h; break
7901 echo "$ac_t""no" 1>&6
7906 test -n "$libpq_fe_h_file" && {
7907 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7908 echo "configure:7909: checking for PQconnectdb in -lpq" >&5
7909 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7911 xe_check_libs=" -lpq "
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7926 eval "ac_cv_lib_$ac_lib_var=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_lib_$ac_lib_var=no"
7936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7937 echo "$ac_t""yes" 1>&6
7940 echo "$ac_t""no" 1>&6
7945 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
7947 { test "$extra_verbose" = "yes" && cat << \EOF
7948 Defining HAVE_POSTGRESQL
7950 cat >> confdefs.h <<\EOF
7951 #define HAVE_POSTGRESQL 1
7956 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7957 echo "configure:7958: checking for PQconnectStart in -lpq" >&5
7958 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7960 xe_check_libs=" -lpq "
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char PQconnectStart();
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7975 eval "ac_cv_lib_$ac_lib_var=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_lib_$ac_lib_var=no"
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7986 echo "$ac_t""yes" 1>&6
7987 with_postgresqlv7=yes;
7988 { test "$extra_verbose" = "yes" && cat << \EOF
7989 Defining HAVE_POSTGRESQLV7
7991 cat >> confdefs.h <<\EOF
7992 #define HAVE_POSTGRESQLV7 1
7997 echo "$ac_t""no" 1>&6
8001 { test "$extra_verbose" = "yes" && cat << EOF
8002 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8004 cat >> confdefs.h <<EOF
8005 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8009 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8010 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8011 echo " xemacs will be linked with \"postgresql.o\""
8013 elif test "$with_postgresql" = "yes"; then
8014 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8019 if test "$window_system" != "none"; then
8020 echo "checking for graphics libraries" 1>&6
8021 echo "configure:8022: checking for graphics libraries" >&5
8024 if test -z "$with_xpm"; then
8025 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8026 echo "configure:8027: checking for Xpm - no older than 3.4f" >&5
8028 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure"
8030 #include "confdefs.h"
8032 #include <X11/xpm.h>
8033 int main(int c, char **v) {
8035 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8036 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8040 ./conftest dummy_arg; xpm_status=$?;
8041 if test "$xpm_status" = "0"; then
8045 if test "$xpm_status" = "1"; then
8046 xpm_problem="Xpm library version and header file version don't match!"
8047 elif test "$xpm_status" = "2"; then
8048 xpm_problem="Xpm library version is too old!"
8050 xpm_problem="Internal xpm detection logic error!"
8053 *** WARNING *** $xpm_problem
8054 I'm not touching that with a 10-foot pole!
8055 If you really want to use the installed version of Xpm, rerun
8056 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8067 echo "$ac_t""$with_xpm" 1>&6
8069 if test "$with_xpm" = "yes"; then
8070 { test "$extra_verbose" = "yes" && cat << \EOF
8073 cat >> confdefs.h <<\EOF
8078 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8079 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8080 echo "configure:8081: checking for \"FOR_MSW\" xpm" >&5
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8087 XpmCreatePixmapFromData()
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8101 echo "$ac_t""$xpm_for_msw" 1>&6
8102 if test "$xpm_for_msw" = "yes"; then
8103 { test "$extra_verbose" = "yes" && cat << \EOF
8106 cat >> confdefs.h <<\EOF
8114 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8115 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8116 echo "configure:8117: checking for compface.h" >&5
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 #include <compface.h>
8123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8124 { (eval echo configure:8125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8126 if test -z "$ac_err"; then
8128 eval "ac_cv_header_$ac_safe=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 eval "ac_cv_header_$ac_safe=no"
8137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8141 echo "$ac_t""no" 1>&6
8145 test -z "$with_xface" && {
8146 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8147 echo "configure:8148: checking for UnGenFace in -lcompface" >&5
8148 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8150 xe_check_libs=" -lcompface "
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8165 eval "ac_cv_lib_$ac_lib_var=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 eval "ac_cv_lib_$ac_lib_var=no"
8175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8176 echo "$ac_t""yes" 1>&6
8179 echo "$ac_t""no" 1>&6
8184 test -z "$with_xface" && with_xface=yes
8185 if test "$with_xface" = "yes"; then
8186 { test "$extra_verbose" = "yes" && cat << \EOF
8189 cat >> confdefs.h <<\EOF
8190 #define HAVE_XFACE 1
8194 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8197 if test "$with_gif" != "no"; then
8199 { test "$extra_verbose" = "yes" && cat << \EOF
8202 cat >> confdefs.h <<\EOF
8207 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8208 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8212 if test "$with_png $with_tiff" != "no no"; then
8214 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8215 echo "configure:8216: checking for inflate in -lc" >&5
8216 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8218 xe_check_libs=" -lc "
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8231 if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233 eval "ac_cv_lib_$ac_lib_var=yes"
8235 echo "configure: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8238 eval "ac_cv_lib_$ac_lib_var=no"
8243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8244 echo "$ac_t""yes" 1>&6
8247 echo "$ac_t""no" 1>&6
8249 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8250 echo "configure:8251: checking for inflate in -lz" >&5
8251 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8253 xe_check_libs=" -lz "
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_lib_$ac_lib_var=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_lib_$ac_lib_var=no"
8278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8279 echo "$ac_t""yes" 1>&6
8280 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8282 echo "$ac_t""no" 1>&6
8284 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8285 echo "configure:8286: checking for inflate in -lgz" >&5
8286 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8288 xe_check_libs=" -lgz "
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 eval "ac_cv_lib_$ac_lib_var=yes"
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 eval "ac_cv_lib_$ac_lib_var=no"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8314 echo "$ac_t""yes" 1>&6
8315 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8317 echo "$ac_t""no" 1>&6
8329 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8330 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8331 echo "configure:8332: checking for jpeglib.h" >&5
8333 cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8336 #include <jpeglib.h>
8338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8339 { (eval echo configure:8340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8341 if test -z "$ac_err"; then
8343 eval "ac_cv_header_$ac_safe=yes"
8346 echo "configure: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8349 eval "ac_cv_header_$ac_safe=no"
8352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8353 echo "$ac_t""yes" 1>&6
8356 echo "$ac_t""no" 1>&6
8360 test -z "$with_jpeg" && {
8361 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8362 echo "configure:8363: checking for jpeg_destroy_decompress in -ljpeg" >&5
8363 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8365 xe_check_libs=" -ljpeg "
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8372 char jpeg_destroy_decompress();
8375 jpeg_destroy_decompress()
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8380 eval "ac_cv_lib_$ac_lib_var=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_lib_$ac_lib_var=no"
8390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8391 echo "$ac_t""yes" 1>&6
8394 echo "$ac_t""no" 1>&6
8399 test -z "$with_jpeg" && with_jpeg=yes
8400 if test "$with_jpeg" = "yes"; then
8401 { test "$extra_verbose" = "yes" && cat << \EOF
8404 cat >> confdefs.h <<\EOF
8409 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8413 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8414 echo "configure:8415: checking for pow" >&5
8416 cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char pow(); below. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8429 /* The GNU C library defines this for functions which it implements
8430 to always fail with ENOSYS. Some functions are actually named
8431 something starting with __ and the normal name is an alias. */
8432 #if defined (__stub_pow) || defined (__stub___pow)
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8442 eval "ac_cv_func_pow=yes"
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 eval "ac_cv_func_pow=no"
8451 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8452 echo "$ac_t""yes" 1>&6
8455 echo "$ac_t""no" 1>&6
8459 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8460 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8461 echo "configure:8462: checking for png.h" >&5
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8469 { (eval echo configure:8470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8471 if test -z "$ac_err"; then
8473 eval "ac_cv_header_$ac_safe=yes"
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 eval "ac_cv_header_$ac_safe=no"
8482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8483 echo "$ac_t""yes" 1>&6
8486 echo "$ac_t""no" 1>&6
8490 test -z "$with_png" && {
8491 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8492 echo "configure:8493: checking for png_read_image in -lpng" >&5
8493 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8495 xe_check_libs=" -lpng "
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8502 char png_read_image();
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8510 eval "ac_cv_lib_$ac_lib_var=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 eval "ac_cv_lib_$ac_lib_var=no"
8520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8521 echo "$ac_t""yes" 1>&6
8524 echo "$ac_t""no" 1>&6
8529 if test -z "$with_png"; then
8530 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8531 echo "configure:8532: checking for workable png version information" >&5
8532 xe_check_libs="-lpng -lz"
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8537 int main(int c, char **v) {
8538 if (c == 1) return 0;
8539 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8540 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8542 if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8544 ./conftest dummy_arg; png_status=$?;
8545 if test "$png_status" = "0"; then
8549 if test "$png_status" = "1"; then
8550 png_problem="PNG library version and header file don't match!"
8551 elif test "$png_status" = "2"; then
8552 png_problem="PNG library version too old (pre 1.0.2)!"
8555 *** WARNING *** $png_problem
8556 I'm not touching that with a 10-foot pole!
8557 If you really want to use the installed version of libPNG, rerun
8558 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8569 echo "$ac_t""$with_png" 1>&6
8571 if test "$with_png" = "yes"; then
8572 { test "$extra_verbose" = "yes" && cat << \EOF
8575 cat >> confdefs.h <<\EOF
8580 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8583 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8584 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8585 echo "configure:8586: checking for tiffio.h" >&5
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8593 { (eval echo configure:8594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8595 if test -z "$ac_err"; then
8597 eval "ac_cv_header_$ac_safe=yes"
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8603 eval "ac_cv_header_$ac_safe=no"
8606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8610 echo "$ac_t""no" 1>&6
8614 test -z "$with_tiff" && {
8615 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8616 echo "configure:8617: checking for TIFFClientOpen in -ltiff" >&5
8617 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8619 xe_check_libs=" -ltiff "
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8623 /* Override any gcc2 internal prototype to avoid an error. */
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8626 char TIFFClientOpen();
8632 if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8634 eval "ac_cv_lib_$ac_lib_var=yes"
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 eval "ac_cv_lib_$ac_lib_var=no"
8644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8645 echo "$ac_t""yes" 1>&6
8648 echo "$ac_t""no" 1>&6
8653 test -z "$with_tiff" && with_tiff=yes
8654 if test "$with_tiff" = "yes"; then
8655 { test "$extra_verbose" = "yes" && cat << \EOF
8658 cat >> confdefs.h <<\EOF
8663 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8668 if test "$with_gtk" = "yes"; then
8669 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8670 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8671 echo "configure:8672: checking for compface.h" >&5
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 #include <compface.h>
8678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8679 { (eval echo configure:8680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8681 if test -z "$ac_err"; then
8683 eval "ac_cv_header_$ac_safe=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_header_$ac_safe=no"
8692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8696 echo "$ac_t""no" 1>&6
8700 test -z "$with_xface" && {
8701 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8702 echo "configure:8703: checking for UnGenFace in -lcompface" >&5
8703 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8705 xe_check_libs=" -lcompface "
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8709 /* Override any gcc2 internal prototype to avoid an error. */
8710 /* We use char because int might match the return type of a gcc2
8711 builtin and then its argument prototype would still apply. */
8718 if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720 eval "ac_cv_lib_$ac_lib_var=yes"
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8725 eval "ac_cv_lib_$ac_lib_var=no"
8730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8731 echo "$ac_t""yes" 1>&6
8734 echo "$ac_t""no" 1>&6
8739 test -z "$with_xface" && with_xface=yes
8740 if test "$with_xface" = "yes"; then
8741 { test "$extra_verbose" = "yes" && cat << \EOF
8744 cat >> confdefs.h <<\EOF
8745 #define HAVE_XFACE 1
8749 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8755 if test "$with_x11" = "yes"; then
8757 echo "checking for X11 graphics libraries" 1>&6
8758 echo "configure:8759: checking for X11 graphics libraries" >&5
8760 echo "checking for the Athena widgets" 1>&6
8761 echo "configure:8762: checking for the Athena widgets" >&5
8763 case "$with_athena" in
8764 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8765 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8766 "next") athena_variant=neXtaw athena_3d=yes ;;
8767 "95") athena_variant=Xaw95 athena_3d=yes ;;
8768 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8769 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8772 if test "$athena_3d" = "no"; then
8774 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8775 echo "configure:8776: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8776 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8778 xe_check_libs=" -l$athena_variant "
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785 char XawScrollbarSetThumb();
8788 XawScrollbarSetThumb()
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8793 eval "ac_cv_lib_$ac_lib_var=yes"
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 eval "ac_cv_lib_$ac_lib_var=no"
8803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8804 echo "$ac_t""yes" 1>&6
8806 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8807 echo "configure:8808: checking for threeDClassRec in -l$athena_variant" >&5
8808 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8810 xe_check_libs=" -l$athena_variant "
8811 cat > conftest.$ac_ext <<EOF
8812 #line 8813 "configure"
8813 #include "confdefs.h"
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8817 char threeDClassRec();
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8825 eval "ac_cv_lib_$ac_lib_var=yes"
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 eval "ac_cv_lib_$ac_lib_var=no"
8835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8836 echo "$ac_t""yes" 1>&6
8837 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
8839 echo "$ac_t""no" 1>&6
8840 athena_lib=$athena_variant
8846 echo "$ac_t""no" 1>&6
8847 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
8853 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8854 echo "configure:8855: checking for threeDClassRec in -l$athena_variant" >&5
8855 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8857 xe_check_libs=" -l$athena_variant "
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char threeDClassRec();
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8872 eval "ac_cv_lib_$ac_lib_var=yes"
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8877 eval "ac_cv_lib_$ac_lib_var=no"
8882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8883 echo "$ac_t""yes" 1>&6
8884 athena_lib=$athena_variant
8886 echo "$ac_t""no" 1>&6
8887 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8888 echo "configure:8889: checking for threeDClassRec in -lXaw" >&5
8889 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8891 xe_check_libs=" -lXaw "
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8895 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8898 char threeDClassRec();
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8906 eval "ac_cv_lib_$ac_lib_var=yes"
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8911 eval "ac_cv_lib_$ac_lib_var=no"
8916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8917 echo "$ac_t""yes" 1>&6
8919 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
8922 echo "$ac_t""no" 1>&6
8923 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
8932 if test "$athena_3d" = "no"; then
8933 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8934 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8935 echo "configure:8936: checking for X11/Xaw/ThreeD.h" >&5
8937 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8940 #include <X11/Xaw/ThreeD.h>
8942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8943 { (eval echo configure:8944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8945 if test -z "$ac_err"; then
8947 eval "ac_cv_header_$ac_safe=yes"
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 eval "ac_cv_header_$ac_safe=no"
8956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8957 echo "$ac_t""yes" 1>&6
8958 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8960 echo "$ac_t""no" 1>&6
8961 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8962 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8963 echo "configure:8964: checking for X11/Xaw/XawInit.h" >&5
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8968 #include <X11/Xaw/XawInit.h>
8970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8971 { (eval echo configure:8972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8973 if test -z "$ac_err"; then
8975 eval "ac_cv_header_$ac_safe=yes"
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8981 eval "ac_cv_header_$ac_safe=no"
8984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8985 echo "$ac_t""yes" 1>&6
8986 athena_h_path=X11/Xaw
8988 echo "$ac_t""no" 1>&6
8989 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8995 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8996 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8997 echo "configure:8998: checking for X11/$athena_variant/XawInit.h" >&5
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9002 #include <X11/$athena_variant/XawInit.h>
9004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9005 { (eval echo configure:9006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9007 if test -z "$ac_err"; then
9009 eval "ac_cv_header_$ac_safe=yes"
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9015 eval "ac_cv_header_$ac_safe=no"
9018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9019 echo "$ac_t""yes" 1>&6
9020 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9021 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9022 echo "configure:9023: checking for X11/$athena_variant/ThreeD.h" >&5
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <X11/$athena_variant/ThreeD.h>
9029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9030 { (eval echo configure:9031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9032 if test -z "$ac_err"; then
9034 eval "ac_cv_header_$ac_safe=yes"
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 eval "ac_cv_header_$ac_safe=no"
9043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9044 echo "$ac_t""yes" 1>&6
9045 athena_h_path=X11/$athena_variant
9047 echo "$ac_t""no" 1>&6
9051 echo "$ac_t""no" 1>&6
9055 if test -z "$athena_h_path"; then
9056 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9057 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9058 echo "configure:9059: checking for $athena_variant/XawInit.h" >&5
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 #include <$athena_variant/XawInit.h>
9065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9066 { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068 if test -z "$ac_err"; then
9070 eval "ac_cv_header_$ac_safe=yes"
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 eval "ac_cv_header_$ac_safe=no"
9079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9080 echo "$ac_t""yes" 1>&6
9081 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9082 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9083 echo "configure:9084: checking for $athena_variant/ThreeD.h" >&5
9085 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 #include <$athena_variant/ThreeD.h>
9090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9091 { (eval echo configure:9092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9093 if test -z "$ac_err"; then
9095 eval "ac_cv_header_$ac_safe=yes"
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9101 eval "ac_cv_header_$ac_safe=no"
9104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9105 echo "$ac_t""yes" 1>&6
9106 athena_h_path=$athena_variant
9108 echo "$ac_t""no" 1>&6
9112 echo "$ac_t""no" 1>&6
9117 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9118 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for X11/Xaw3d/XawInit.h" >&5
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9124 "configure"
9124 #include "confdefs.h"
9125 #include <X11/Xaw3d/XawInit.h>
9127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9128 { (eval echo configure:9129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9130 if test -z "$ac_err"; then
9132 eval "ac_cv_header_$ac_safe=yes"
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 eval "ac_cv_header_$ac_safe=no"
9141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9143 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9144 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9145 echo "configure:9146: checking for X11/Xaw3d/ThreeD.h" >&5
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 #include <X11/Xaw3d/ThreeD.h>
9152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9153 { (eval echo configure:9154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9155 if test -z "$ac_err"; then
9157 eval "ac_cv_header_$ac_safe=yes"
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 eval "ac_cv_header_$ac_safe=no"
9166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9167 echo "$ac_t""yes" 1>&6
9169 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9170 athena_h_path=X11/Xaw3d
9173 echo "$ac_t""no" 1>&6
9177 echo "$ac_t""no" 1>&6
9182 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9183 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9184 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9185 echo "configure:9186: checking for Xaw3d/XawInit.h" >&5
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9190 #include <Xaw3d/XawInit.h>
9192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9193 { (eval echo configure:9194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9195 if test -z "$ac_err"; then
9197 eval "ac_cv_header_$ac_safe=yes"
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9203 eval "ac_cv_header_$ac_safe=no"
9206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9207 echo "$ac_t""yes" 1>&6
9208 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9209 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9210 echo "configure:9211: checking for Xaw3d/ThreeD.h" >&5
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 #include <Xaw3d/ThreeD.h>
9217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9218 { (eval echo configure:9219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9220 if test -z "$ac_err"; then
9222 eval "ac_cv_header_$ac_safe=yes"
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9228 eval "ac_cv_header_$ac_safe=no"
9231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9232 echo "$ac_t""yes" 1>&6
9234 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9238 echo "$ac_t""no" 1>&6
9242 echo "$ac_t""no" 1>&6
9247 if test -z "$athena_h_path"; then
9248 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9249 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9250 echo "configure:9251: checking for X11/Xaw/ThreeD.h" >&5
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <X11/Xaw/ThreeD.h>
9257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9258 { (eval echo configure:9259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9260 if test -z "$ac_err"; then
9262 eval "ac_cv_header_$ac_safe=yes"
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9268 eval "ac_cv_header_$ac_safe=no"
9271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9272 echo "$ac_t""yes" 1>&6
9274 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9275 athena_h_path=X11/Xaw
9278 echo "$ac_t""no" 1>&6
9279 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9285 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9291 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9292 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9293 echo "configure:9294: checking for Xm/Xm.h" >&5
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then
9305 eval "ac_cv_header_$ac_safe=yes"
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 eval "ac_cv_header_$ac_safe=no"
9314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9317 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9318 echo "configure:9319: checking for XmStringFree in -lXm" >&5
9319 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9321 xe_check_libs=" -lXm "
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char XmStringFree();
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_lib_$ac_lib_var=no"
9346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9347 echo "$ac_t""yes" 1>&6
9350 echo "$ac_t""no" 1>&6
9356 echo "$ac_t""no" 1>&6
9361 if test "$have_motif" = "yes"; then
9362 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9363 echo "configure:9364: checking for Lesstif" >&5
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 #ifdef LESSTIF_VERSION
9373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9374 egrep "yes" >/dev/null 2>&1; then
9383 echo "$ac_t""$have_lesstif" 1>&6
9388 case "$with_menubars" in "" | "yes" | "athena" )
9389 with_menubars="lucid" ;;
9391 case "$with_dialogs" in "" | "yes" | "lucid" )
9392 if test "$have_motif" = "yes"; then with_dialogs="motif"
9393 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9394 else with_dialogs=no
9397 case "$with_scrollbars" in "" | "yes" )
9398 with_scrollbars="lucid" ;;
9400 case "$with_widgets" in "" | "yes" | "lucid")
9401 if test "$have_motif" = "yes"; then with_widgets="motif"
9402 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9403 else with_widgets=no
9407 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9409 case "$all_widgets" in
9411 if test "$have_xaw" != "yes"; then
9412 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9415 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9417 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9419 { test "$extra_verbose" = "yes" && cat << EOF
9420 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9422 cat >> confdefs.h <<EOF
9423 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9427 { test "$extra_verbose" = "yes" && cat << EOF
9428 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9430 cat >> confdefs.h <<EOF
9431 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9435 { test "$extra_verbose" = "yes" && cat << EOF
9436 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9438 cat >> confdefs.h <<EOF
9439 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9443 { test "$extra_verbose" = "yes" && cat << EOF
9444 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9446 cat >> confdefs.h <<EOF
9447 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9451 { test "$extra_verbose" = "yes" && cat << EOF
9452 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9454 cat >> confdefs.h <<EOF
9455 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9459 { test "$extra_verbose" = "yes" && cat << EOF
9460 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9462 cat >> confdefs.h <<EOF
9463 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9467 { test "$extra_verbose" = "yes" && cat << EOF
9468 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9470 cat >> confdefs.h <<EOF
9471 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9475 { test "$extra_verbose" = "yes" && cat << EOF
9476 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9478 cat >> confdefs.h <<EOF
9479 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9483 { test "$extra_verbose" = "yes" && cat << EOF
9484 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9486 cat >> confdefs.h <<EOF
9487 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9491 { test "$extra_verbose" = "yes" && cat << EOF
9492 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9494 cat >> confdefs.h <<EOF
9495 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9500 { test "$extra_verbose" = "yes" && cat << \EOF
9501 Defining LWLIB_USES_ATHENA
9503 cat >> confdefs.h <<\EOF
9504 #define LWLIB_USES_ATHENA 1
9508 { test "$extra_verbose" = "yes" && cat << \EOF
9509 Defining NEED_ATHENA
9511 cat >> confdefs.h <<\EOF
9512 #define NEED_ATHENA 1
9518 if test "$athena_3d" = "yes"; then
9519 { test "$extra_verbose" = "yes" && cat << \EOF
9520 Defining HAVE_ATHENA_3D
9522 cat >> confdefs.h <<\EOF
9523 #define HAVE_ATHENA_3D 1
9531 case "$all_widgets" in *motif* )
9532 { test "$extra_verbose" = "yes" && cat << \EOF
9533 Defining LWLIB_USES_MOTIF
9535 cat >> confdefs.h <<\EOF
9536 #define LWLIB_USES_MOTIF 1
9540 { test "$extra_verbose" = "yes" && cat << \EOF
9543 cat >> confdefs.h <<\EOF
9544 #define NEED_MOTIF 1
9548 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9552 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9553 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9554 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9555 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9556 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9557 case "$with_widgets" in athena* )
9558 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;;
9560 case "$all_widgets" in *lucid* )
9561 { test "$extra_verbose" = "yes" && cat << \EOF
9564 cat >> confdefs.h <<\EOF
9565 #define NEED_LUCID 1
9569 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9574 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9575 Defining LWLIB_SCROLLBARS_ATHENA
9577 cat >> confdefs.h <<\EOF
9578 #define LWLIB_SCROLLBARS_ATHENA 1
9582 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9583 Defining LWLIB_DIALOGS_ATHENA
9585 cat >> confdefs.h <<\EOF
9586 #define LWLIB_DIALOGS_ATHENA 1
9591 if test "$athena_3d" = "yes"; then
9592 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9593 Defining LWLIB_SCROLLBARS_ATHENA3D
9595 cat >> confdefs.h <<\EOF
9596 #define LWLIB_SCROLLBARS_ATHENA3D 1
9600 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9601 Defining LWLIB_DIALOGS_ATHENA3D
9603 cat >> confdefs.h <<\EOF
9604 #define LWLIB_DIALOGS_ATHENA3D 1
9610 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9611 Defining LWLIB_WIDGETS_ATHENA
9613 cat >> confdefs.h <<\EOF
9614 #define LWLIB_WIDGETS_ATHENA 1
9618 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9619 { test "$extra_verbose" = "yes" && cat << \EOF
9620 Defining LWLIB_TABS_LUCID
9622 cat >> confdefs.h <<\EOF
9623 #define LWLIB_TABS_LUCID 1
9628 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9629 Defining HAVE_MENUBARS
9631 cat >> confdefs.h <<\EOF
9632 #define HAVE_MENUBARS 1
9636 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9637 Defining HAVE_SCROLLBARS
9639 cat >> confdefs.h <<\EOF
9640 #define HAVE_SCROLLBARS 1
9644 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9645 Defining HAVE_DIALOGS
9647 cat >> confdefs.h <<\EOF
9648 #define HAVE_DIALOGS 1
9652 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9653 Defining HAVE_TOOLBARS
9655 cat >> confdefs.h <<\EOF
9656 #define HAVE_TOOLBARS 1
9660 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9661 Defining HAVE_WIDGETS
9663 cat >> confdefs.h <<\EOF
9664 #define HAVE_WIDGETS 1
9669 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9670 Defining LWLIB_MENUBARS_LUCID
9672 cat >> confdefs.h <<\EOF
9673 #define LWLIB_MENUBARS_LUCID 1
9677 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9678 Defining LWLIB_SCROLLBARS_LUCID
9680 cat >> confdefs.h <<\EOF
9681 #define LWLIB_SCROLLBARS_LUCID 1
9686 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9687 Defining LWLIB_MENUBARS_MOTIF
9689 cat >> confdefs.h <<\EOF
9690 #define LWLIB_MENUBARS_MOTIF 1
9694 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9695 Defining LWLIB_SCROLLBARS_MOTIF
9697 cat >> confdefs.h <<\EOF
9698 #define LWLIB_SCROLLBARS_MOTIF 1
9702 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9703 Defining LWLIB_DIALOGS_MOTIF
9705 cat >> confdefs.h <<\EOF
9706 #define LWLIB_DIALOGS_MOTIF 1
9710 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9711 Defining LWLIB_WIDGETS_MOTIF
9713 cat >> confdefs.h <<\EOF
9714 #define LWLIB_WIDGETS_MOTIF 1
9719 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9720 echo " xemacs will be linked with \"menubar.o\""
9722 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9723 echo " xemacs will be linked with \"scrollbar.o\""
9725 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9726 echo " xemacs will be linked with \"dialog.o\""
9728 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9729 echo " xemacs will be linked with \"toolbar.o\""
9732 if test "$with_gtk" = "yes"; then
9733 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9734 echo " xemacs will be linked with \"menubar-gtk.o\""
9736 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9737 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9739 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9740 echo " xemacs will be linked with \"dialog-gtk.o\""
9742 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9743 echo " xemacs will be linked with \"toolbar-gtk.o\""
9745 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9746 echo " xemacs will be linked with \"gui-gtk.o\""
9750 if test "$with_x11" = "yes"; then
9751 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9752 echo " xemacs will be linked with \"menubar-x.o\""
9754 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9755 echo " xemacs will be linked with \"scrollbar-x.o\""
9757 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9758 echo " xemacs will be linked with \"dialog-x.o\""
9760 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9761 echo " xemacs will be linked with \"toolbar-x.o\""
9763 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9764 echo " xemacs will be linked with \"gui-x.o\""
9769 test -z "$with_mule" && with_mule=no
9770 test -z "$with_file_coding" && with_file_coding=no
9773 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
9774 { test "$extra_verbose" = "yes" && cat << \EOF
9775 Defining FILE_CODING
9777 cat >> confdefs.h <<\EOF
9778 #define FILE_CODING 1
9782 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9783 echo " xemacs will be linked with \"file-coding.o\""
9787 if test "$with_mule" = "yes" ; then
9788 echo "checking for Mule-related features" 1>&6
9789 echo "configure:9790: checking for Mule-related features" >&5
9790 { test "$extra_verbose" = "yes" && cat << \EOF
9793 cat >> confdefs.h <<\EOF
9798 { test "$extra_verbose" = "yes" && cat << \EOF
9799 Defining FILE_CODING
9801 cat >> confdefs.h <<\EOF
9802 #define FILE_CODING 1
9806 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
9807 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
9810 for ac_hdr in libintl.h
9812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9814 echo "configure:9815: checking for $ac_hdr" >&5
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9822 { (eval echo configure:9823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9824 if test -z "$ac_err"; then
9826 eval "ac_cv_header_$ac_safe=yes"
9829 echo "configure: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9832 eval "ac_cv_header_$ac_safe=no"
9835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9838 { test "$extra_verbose" = "yes" && cat << EOF
9841 cat >> confdefs.h <<EOF
9842 #define $ac_tr_hdr 1
9847 echo "$ac_t""no" 1>&6
9852 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9853 echo "configure:9854: checking for strerror in -lintl" >&5
9854 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9856 xe_check_libs=" -lintl "
9857 cat > conftest.$ac_ext <<EOF
9858 #line 9859 "configure"
9859 #include "confdefs.h"
9860 /* Override any gcc2 internal prototype to avoid an error. */
9861 /* We use char because int might match the return type of a gcc2
9862 builtin and then its argument prototype would still apply. */
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9871 eval "ac_cv_lib_$ac_lib_var=yes"
9873 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9876 eval "ac_cv_lib_$ac_lib_var=no"
9881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9882 echo "$ac_t""yes" 1>&6
9883 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9885 { test "$extra_verbose" = "yes" && cat << EOF
9888 cat >> confdefs.h <<EOF
9889 #define $ac_tr_lib 1
9893 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
9896 echo "$ac_t""no" 1>&6
9901 echo "checking for Mule input methods" 1>&6
9902 echo "configure:9903: checking for Mule input methods" >&5
9903 case "$with_xim" in "" | "yes" )
9904 echo "checking for XIM" 1>&6
9905 echo "configure:9906: checking for XIM" >&5
9907 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9908 echo "configure:9909: checking for XOpenIM in -lX11" >&5
9909 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9911 xe_check_libs=" -lX11 "
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 /* Override any gcc2 internal prototype to avoid an error. */
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9924 if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9926 eval "ac_cv_lib_$ac_lib_var=yes"
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9931 eval "ac_cv_lib_$ac_lib_var=no"
9936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9937 echo "$ac_t""yes" 1>&6
9940 echo "$ac_t""no" 1>&6
9945 if test "$have_motif $have_lesstif" = "yes no"; then
9947 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9948 echo "configure:9949: checking for XmImMbLookupString in -lXm" >&5
9949 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9951 xe_check_libs=" -lXm "
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9958 char XmImMbLookupString();
9961 XmImMbLookupString()
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9966 eval "ac_cv_lib_$ac_lib_var=yes"
9968 echo "configure: failed program was:" >&5
9969 cat conftest.$ac_ext >&5
9971 eval "ac_cv_lib_$ac_lib_var=no"
9976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9977 echo "$ac_t""yes" 1>&6
9980 echo "$ac_t""no" 1>&6
9986 if test "$with_xim" != "no"; then
9987 { test "$extra_verbose" = "yes" && cat << \EOF
9990 cat >> confdefs.h <<\EOF
9995 if test "$with_xim" = "xlib"; then
9996 { test "$extra_verbose" = "yes" && cat << \EOF
9999 cat >> confdefs.h <<\EOF
10004 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10005 echo " xemacs will be linked with \"input-method-xlib.o\""
10008 if test "$with_xim" = "motif"; then
10009 { test "$extra_verbose" = "yes" && cat << \EOF
10012 cat >> confdefs.h <<\EOF
10013 #define XIM_MOTIF 1
10018 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10019 echo " xemacs will be linked with \"input-method-motif.o\""
10022 if test "$with_xim" = "motif"; then
10027 if test "$with_xfs" = "yes" ; then
10028 echo "checking for XFontSet" 1>&6
10029 echo "configure:10030: checking for XFontSet" >&5
10031 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10032 echo "configure:10033: checking for XmbDrawString in -lX11" >&5
10033 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10035 xe_check_libs=" -lX11 "
10036 cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 /* Override any gcc2 internal prototype to avoid an error. */
10040 /* We use char because int might match the return type of a gcc2
10041 builtin and then its argument prototype would still apply. */
10042 char XmbDrawString();
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10050 eval "ac_cv_lib_$ac_lib_var=yes"
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10055 eval "ac_cv_lib_$ac_lib_var=no"
10060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10061 echo "$ac_t""yes" 1>&6
10064 echo "$ac_t""no" 1>&6
10069 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10070 { test "$extra_verbose" = "yes" && cat << \EOF
10071 Defining USE_XFONTSET
10073 cat >> confdefs.h <<\EOF
10074 #define USE_XFONTSET 1
10078 if test "$with_xim" = "no" ; then
10079 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10080 echo " xemacs will be linked with \"input-method-xlib.o\""
10085 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10086 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10087 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10088 echo "configure:10089: checking for wnn/jllib.h" >&5
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 #include <wnn/jllib.h>
10095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10096 { (eval echo configure:10097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10098 if test -z "$ac_err"; then
10100 eval "ac_cv_header_$ac_safe=yes"
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10106 eval "ac_cv_header_$ac_safe=no"
10109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10110 echo "$ac_t""yes" 1>&6
10113 echo "$ac_t""no" 1>&6
10117 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10118 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10119 echo "configure:10120: checking for wnn/commonhd.h" >&5
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <wnn/commonhd.h>
10126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10127 { (eval echo configure:10128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10129 if test -z "$ac_err"; then
10131 eval "ac_cv_header_$ac_safe=yes"
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10137 eval "ac_cv_header_$ac_safe=no"
10140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10141 echo "$ac_t""yes" 1>&6
10144 echo "$ac_t""no" 1>&6
10148 if test "$with_wnn" != "no"; then
10149 for ac_func in crypt
10151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10152 echo "configure:10153: checking for $ac_func" >&5
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 /* System header to define __stub macros and hopefully few prototypes,
10158 which can conflict with char $ac_func(); below. */
10159 #include <assert.h>
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10167 /* The GNU C library defines this for functions which it implements
10168 to always fail with ENOSYS. Some functions are actually named
10169 something starting with __ and the normal name is an alias. */
10170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10180 eval "ac_cv_func_$ac_func=yes"
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 eval "ac_cv_func_$ac_func=no"
10189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10192 { test "$extra_verbose" = "yes" && cat << EOF
10193 Defining $ac_tr_func
10195 cat >> confdefs.h <<EOF
10196 #define $ac_tr_func 1
10201 echo "$ac_t""no" 1>&6
10205 test "$ac_cv_func_crypt" != "yes" && {
10206 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10207 echo "configure:10208: checking for crypt in -lcrypt" >&5
10208 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10210 xe_check_libs=" -lcrypt "
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 /* Override any gcc2 internal prototype to avoid an error. */
10215 /* We use char because int might match the return type of a gcc2
10216 builtin and then its argument prototype would still apply. */
10223 if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10225 eval "ac_cv_lib_$ac_lib_var=yes"
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10230 eval "ac_cv_lib_$ac_lib_var=no"
10235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10236 echo "$ac_t""yes" 1>&6
10237 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10238 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10239 { test "$extra_verbose" = "yes" && cat << EOF
10240 Defining $ac_tr_lib
10242 cat >> confdefs.h <<EOF
10243 #define $ac_tr_lib 1
10247 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10250 echo "$ac_t""no" 1>&6
10255 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10257 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10258 echo "configure:10259: checking for jl_dic_list_e in -lwnn" >&5
10259 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10261 xe_check_libs=" -lwnn "
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10265 /* Override any gcc2 internal prototype to avoid an error. */
10266 /* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
10268 char jl_dic_list_e();
10274 if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10276 eval "ac_cv_lib_$ac_lib_var=yes"
10278 echo "configure: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10281 eval "ac_cv_lib_$ac_lib_var=no"
10286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10287 echo "$ac_t""yes" 1>&6
10290 echo "$ac_t""no" 1>&6
10291 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10292 echo "configure:10293: checking for jl_dic_list_e in -lwnn4" >&5
10293 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10295 xe_check_libs=" -lwnn4 "
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char jl_dic_list_e();
10308 if { (eval echo configure:10309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10310 eval "ac_cv_lib_$ac_lib_var=yes"
10312 echo "configure: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10315 eval "ac_cv_lib_$ac_lib_var=no"
10320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10321 echo "$ac_t""yes" 1>&6
10324 echo "$ac_t""no" 1>&6
10325 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10326 echo "configure:10327: checking for jl_dic_list_e in -lwnn6" >&5
10327 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10329 xe_check_libs=" -lwnn6 "
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 /* Override any gcc2 internal prototype to avoid an error. */
10334 /* We use char because int might match the return type of a gcc2
10335 builtin and then its argument prototype would still apply. */
10336 char jl_dic_list_e();
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10344 eval "ac_cv_lib_$ac_lib_var=yes"
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 eval "ac_cv_lib_$ac_lib_var=no"
10354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10355 echo "$ac_t""yes" 1>&6
10358 echo "$ac_t""no" 1>&6
10359 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10360 echo "configure:10361: checking for dic_list_e in -lwnn6_fromsrc" >&5
10361 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10363 xe_check_libs=" -lwnn6_fromsrc "
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10367 /* Override any gcc2 internal prototype to avoid an error. */
10368 /* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10378 eval "ac_cv_lib_$ac_lib_var=yes"
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 eval "ac_cv_lib_$ac_lib_var=no"
10388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10389 echo "$ac_t""yes" 1>&6
10390 libwnn=wnn6_fromsrc
10392 echo "$ac_t""no" 1>&6
10407 test -z "$with_wnn" && with_wnn=yes
10408 if test "$with_wnn" = "yes"; then
10409 { test "$extra_verbose" = "yes" && cat << \EOF
10412 cat >> confdefs.h <<\EOF
10417 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10418 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10419 echo " xemacs will be linked with \"mule-wnnfns.o\""
10421 if test "$with_wnn6" != "no"; then
10423 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10424 echo "configure:10425: checking for jl_fi_dic_list in -l$libwnn" >&5
10425 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10427 xe_check_libs=" -l$libwnn "
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10431 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10434 char jl_fi_dic_list();
10440 if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10442 eval "ac_cv_lib_$ac_lib_var=yes"
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10447 eval "ac_cv_lib_$ac_lib_var=no"
10452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10453 echo "$ac_t""yes" 1>&6
10456 echo "$ac_t""no" 1>&6
10460 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10463 cat >> confdefs.h <<\EOF
10471 canna_includes_found=no
10472 if test "$with_canna" != "no"; then
10473 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10474 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10475 echo "configure:10476: checking for canna/jrkanji.h" >&5
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 #include <canna/jrkanji.h>
10482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10483 { (eval echo configure:10484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10485 if test -z "$ac_err"; then
10487 eval "ac_cv_header_$ac_safe=yes"
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10493 eval "ac_cv_header_$ac_safe=no"
10496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10497 echo "$ac_t""yes" 1>&6
10498 canna_includes_found=yes
10500 echo "$ac_t""no" 1>&6
10504 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10505 -d "/usr/local/canna/include"; then
10506 save_c_switch_site="$c_switch_site"
10507 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10508 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10509 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10510 echo "configure:10511: checking for canna/jrkanji.h" >&5
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10515 #include <canna/jrkanji.h>
10517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10518 { (eval echo configure:10519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10520 if test -z "$ac_err"; then
10522 eval "ac_cv_header_$ac_safe=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_header_$ac_safe=no"
10531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10533 canna_includes_found=yes
10535 echo "$ac_t""no" 1>&6
10538 if test "$canna_includes_found" != "yes"; then
10539 c_switch_site="$save_c_switch_site"
10544 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10545 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10546 echo "configure:10547: checking for canna/RK.h" >&5
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10551 #include <canna/RK.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
10571 echo "$ac_t""no" 1>&6
10575 test -z "$with_canna" && {
10576 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10577 echo "configure:10578: checking for RkBgnBun in -lRKC" >&5
10578 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10580 xe_check_libs=" -lRKC "
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10584 /* Override any gcc2 internal prototype to avoid an error. */
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 eval "ac_cv_lib_$ac_lib_var=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_lib_$ac_lib_var=no"
10605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10606 echo "$ac_t""yes" 1>&6
10609 echo "$ac_t""no" 1>&6
10614 test -z "$with_canna" && {
10615 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10616 echo "configure:10617: checking for jrKanjiControl in -lcanna" >&5
10617 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10619 xe_check_libs=" -lcanna "
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char jrKanjiControl();
10632 if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10634 eval "ac_cv_lib_$ac_lib_var=yes"
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10639 eval "ac_cv_lib_$ac_lib_var=no"
10644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10645 echo "$ac_t""yes" 1>&6
10648 echo "$ac_t""no" 1>&6
10653 test -z "$with_canna" && with_canna=yes
10654 if test "$with_canna" = "yes"; then
10655 { test "$extra_verbose" = "yes" && cat << \EOF
10656 Defining HAVE_CANNA
10658 cat >> confdefs.h <<\EOF
10659 #define HAVE_CANNA 1
10663 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10664 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10665 echo " xemacs will be linked with \"mule-canna.o\""
10669 else for feature in xim canna wnn; do
10670 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10671 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10673 eval "with_${feature}=no"
10677 if test "$need_motif" = "yes" ; then
10678 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10680 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10681 echo "configure:10682: checking for layout_object_getvalue in -li18n" >&5
10682 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10684 xe_check_libs=" -li18n "
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* Override any gcc2 internal prototype to avoid an error. */
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10691 char layout_object_getvalue();
10694 layout_object_getvalue()
10697 if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10699 eval "ac_cv_lib_$ac_lib_var=yes"
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10704 eval "ac_cv_lib_$ac_lib_var=no"
10709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10710 echo "$ac_t""yes" 1>&6
10711 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10713 echo "$ac_t""no" 1>&6
10718 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10719 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10720 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10722 runpath="" runpath_dirs=""
10723 if test -n "$LD_RUN_PATH"; then
10724 runpath="$LD_RUN_PATH"
10725 elif test "$GCC" = "yes"; then
10726 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10727 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10728 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10729 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10730 case "$arg" in P,* | -L* | -R* )
10731 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10733 xe_runpath_dir="$dir"
10734 test "$xe_runpath_dir" != "/lib" -a \
10735 "$xe_runpath_dir" != "/usr/lib" -a \
10736 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10737 eval "$xe_add_unique_runpath_dir"
10742 ld_switch_run="$ld_switch_run_save"
10745 for arg in $ld_switch_site $ld_switch_x_site; do
10746 case "$arg" in -L*) {
10747 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10748 test "$xe_runpath_dir" != "/lib" -a \
10749 "$xe_runpath_dir" != "/usr/lib" -a \
10750 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10751 eval "$xe_add_unique_runpath_dir"
10754 if test "$opsys $need_motif" = "sol2 yes"; then
10755 xe_runpath_dir="/opt/SUNWdt/lib";
10756 eval "$xe_add_unique_runpath_dir";
10759 if test -n "$runpath"; then
10760 ld_switch_run="${dash_r}${runpath}"
10762 if test "$GCC" = "yes"; then
10763 set x $ld_switch_run; shift; ld_switch_run=""
10764 while test -n "$1"; do
10766 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10767 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10769 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
10774 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
10780 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
10782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10783 echo "configure:10784: checking for $ac_func" >&5
10785 cat > conftest.$ac_ext <<EOF
10786 #line 10787 "configure"
10787 #include "confdefs.h"
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char $ac_func(); below. */
10790 #include <assert.h>
10791 /* Override any gcc2 internal prototype to avoid an error. */
10792 /* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10798 /* The GNU C library defines this for functions which it implements
10799 to always fail with ENOSYS. Some functions are actually named
10800 something starting with __ and the normal name is an alias. */
10801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10809 if { (eval echo configure:10810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10811 eval "ac_cv_func_$ac_func=yes"
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10816 eval "ac_cv_func_$ac_func=no"
10820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10821 echo "$ac_t""yes" 1>&6
10822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10823 { test "$extra_verbose" = "yes" && cat << EOF
10824 Defining $ac_tr_func
10826 cat >> confdefs.h <<EOF
10827 #define $ac_tr_func 1
10832 echo "$ac_t""no" 1>&6
10838 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10841 echo "configure:10842: checking for $ac_func" >&5
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char $ac_func(); below. */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10856 /* The GNU C library defines this for functions which it implements
10857 to always fail with ENOSYS. Some functions are actually named
10858 something starting with __ and the normal name is an alias. */
10859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10869 eval "ac_cv_func_$ac_func=yes"
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10874 eval "ac_cv_func_$ac_func=no"
10878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10879 echo "$ac_t""yes" 1>&6
10880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10881 { test "$extra_verbose" = "yes" && cat << EOF
10882 Defining $ac_tr_func
10884 cat >> confdefs.h <<EOF
10885 #define $ac_tr_func 1
10890 echo "$ac_t""no" 1>&6
10895 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10896 echo "configure:10897: checking for openpty" >&5
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 /* System header to define __stub macros and hopefully few prototypes,
10902 which can conflict with char openpty(); below. */
10903 #include <assert.h>
10904 /* Override any gcc2 internal prototype to avoid an error. */
10905 /* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10911 /* The GNU C library defines this for functions which it implements
10912 to always fail with ENOSYS. Some functions are actually named
10913 something starting with __ and the normal name is an alias. */
10914 #if defined (__stub_openpty) || defined (__stub___openpty)
10922 if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10924 eval "ac_cv_func_openpty=yes"
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 eval "ac_cv_func_openpty=no"
10933 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
10934 echo "$ac_t""yes" 1>&6
10937 echo "$ac_t""no" 1>&6
10940 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10941 echo "configure:10942: checking for openpty in -lutil" >&5
10942 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10944 xe_check_libs=" -lutil "
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_lib_$ac_lib_var=no"
10969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10970 echo "$ac_t""yes" 1>&6
10971 have_openpty=yes need_libutil=yes
10973 echo "$ac_t""no" 1>&6
10979 if test "$have_openpty" = "yes"; then
10980 { test "$extra_verbose" = "yes" && cat << \EOF
10981 Defining HAVE_OPENPTY
10983 cat >> confdefs.h <<\EOF
10984 #define HAVE_OPENPTY 1
10988 for ac_hdr in pty.h libutil.h util.h
10990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10992 echo "configure:10993: checking for $ac_hdr" >&5
10994 cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11000 { (eval echo configure:11001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11002 if test -z "$ac_err"; then
11004 eval "ac_cv_header_$ac_safe=yes"
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11010 eval "ac_cv_header_$ac_safe=no"
11013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11016 { test "$extra_verbose" = "yes" && cat << EOF
11017 Defining $ac_tr_hdr
11019 cat >> confdefs.h <<EOF
11020 #define $ac_tr_hdr 1
11025 echo "$ac_t""no" 1>&6
11029 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11032 for ac_hdr in stropts.h
11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11036 echo "configure:11037: checking for $ac_hdr" >&5
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11044 { (eval echo configure:11045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11046 if test -z "$ac_err"; then
11048 eval "ac_cv_header_$ac_safe=yes"
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 eval "ac_cv_header_$ac_safe=no"
11057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11058 echo "$ac_t""yes" 1>&6
11059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11060 { test "$extra_verbose" = "yes" && cat << EOF
11061 Defining $ac_tr_hdr
11063 cat >> confdefs.h <<EOF
11064 #define $ac_tr_hdr 1
11069 echo "$ac_t""no" 1>&6
11073 if test "$ac_cv_header_stropts_h" = "yes"; then
11074 for ac_func in isastream
11076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11077 echo "configure:11078: checking for $ac_func" >&5
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func(); below. */
11084 #include <assert.h>
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11105 eval "ac_cv_func_$ac_func=yes"
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11110 eval "ac_cv_func_$ac_func=no"
11114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11117 { test "$extra_verbose" = "yes" && cat << EOF
11118 Defining $ac_tr_func
11120 cat >> confdefs.h <<EOF
11121 #define $ac_tr_func 1
11126 echo "$ac_t""no" 1>&6
11130 for ac_hdr in strtio.h
11132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11134 echo "configure:11135: checking for $ac_hdr" >&5
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11142 { (eval echo configure:11143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11144 if test -z "$ac_err"; then
11146 eval "ac_cv_header_$ac_safe=yes"
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 eval "ac_cv_header_$ac_safe=no"
11155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11156 echo "$ac_t""yes" 1>&6
11157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11158 { test "$extra_verbose" = "yes" && cat << EOF
11159 Defining $ac_tr_hdr
11161 cat >> confdefs.h <<EOF
11162 #define $ac_tr_hdr 1
11167 echo "$ac_t""no" 1>&6
11172 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11173 echo " xemacs will be linked with \"realpath.o\""
11176 for ac_func in getloadavg
11178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11179 echo "configure:11180: checking for $ac_func" >&5
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 /* System header to define __stub macros and hopefully few prototypes,
11185 which can conflict with char $ac_func(); below. */
11186 #include <assert.h>
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 /* We use char because int might match the return type of a gcc2
11189 builtin and then its argument prototype would still apply. */
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11205 if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 eval "ac_cv_func_$ac_func=yes"
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11212 eval "ac_cv_func_$ac_func=no"
11216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11219 { test "$extra_verbose" = "yes" && cat << EOF
11220 Defining $ac_tr_func
11222 cat >> confdefs.h <<EOF
11223 #define $ac_tr_func 1
11228 echo "$ac_t""no" 1>&6
11233 if test "$ac_cv_func_getloadavg" = "yes"; then
11234 for ac_hdr in sys/loadavg.h
11236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11238 echo "configure:11239: checking for $ac_hdr" >&5
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11246 { (eval echo configure:11247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11248 if test -z "$ac_err"; then
11250 eval "ac_cv_header_$ac_safe=yes"
11253 echo "configure: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11256 eval "ac_cv_header_$ac_safe=no"
11259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11260 echo "$ac_t""yes" 1>&6
11261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11262 { test "$extra_verbose" = "yes" && cat << EOF
11263 Defining $ac_tr_hdr
11265 cat >> confdefs.h <<EOF
11266 #define $ac_tr_hdr 1
11271 echo "$ac_t""no" 1>&6
11276 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11277 echo " xemacs will be linked with \"getloadavg.o\""
11281 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11282 echo "configure:11283: checking for kstat_open in -lkstat" >&5
11283 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11285 xe_check_libs=" -lkstat "
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11298 if { (eval echo configure:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11300 eval "ac_cv_lib_$ac_lib_var=yes"
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11305 eval "ac_cv_lib_$ac_lib_var=no"
11310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11311 echo "$ac_t""yes" 1>&6
11312 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11314 { test "$extra_verbose" = "yes" && cat << EOF
11315 Defining $ac_tr_lib
11317 cat >> confdefs.h <<EOF
11318 #define $ac_tr_lib 1
11322 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11325 echo "$ac_t""no" 1>&6
11329 for ac_hdr in kstat.h
11331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11333 echo "configure:11334: checking for $ac_hdr" >&5
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11341 { (eval echo configure:11342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11343 if test -z "$ac_err"; then
11345 eval "ac_cv_header_$ac_safe=yes"
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11351 eval "ac_cv_header_$ac_safe=no"
11354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11357 { test "$extra_verbose" = "yes" && cat << EOF
11358 Defining $ac_tr_hdr
11360 cat >> confdefs.h <<EOF
11361 #define $ac_tr_hdr 1
11366 echo "$ac_t""no" 1>&6
11372 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11373 echo "configure:11374: checking for kvm_read in -lkvm" >&5
11374 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11376 xe_check_libs=" -lkvm "
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 /* Override any gcc2 internal prototype to avoid an error. */
11381 /* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11389 if { (eval echo configure:11390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11391 eval "ac_cv_lib_$ac_lib_var=yes"
11393 echo "configure: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11396 eval "ac_cv_lib_$ac_lib_var=no"
11401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11402 echo "$ac_t""yes" 1>&6
11403 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11405 { test "$extra_verbose" = "yes" && cat << EOF
11406 Defining $ac_tr_lib
11408 cat >> confdefs.h <<EOF
11409 #define $ac_tr_lib 1
11413 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11416 echo "$ac_t""no" 1>&6
11422 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11423 echo "configure:11424: checking whether netdb declares h_errno" >&5
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11432 if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11434 echo "$ac_t""yes" 1>&6
11435 { test "$extra_verbose" = "yes" && cat << \EOF
11436 Defining HAVE_H_ERRNO
11438 cat >> confdefs.h <<\EOF
11439 #define HAVE_H_ERRNO 1
11444 echo "configure: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11447 echo "$ac_t""no" 1>&6
11451 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11452 echo "configure:11453: checking for sigsetjmp" >&5
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <setjmp.h>
11458 sigjmp_buf bar; sigsetjmp (bar, 0);
11461 if { (eval echo configure:11462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11463 echo "$ac_t""yes" 1>&6
11464 { test "$extra_verbose" = "yes" && cat << \EOF
11465 Defining HAVE_SIGSETJMP
11467 cat >> confdefs.h <<\EOF
11468 #define HAVE_SIGSETJMP 1
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11476 echo "$ac_t""no" 1>&6
11480 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11481 echo "configure:11482: checking whether localtime caches TZ" >&5
11483 if test "$ac_cv_func_tzset" = "yes"; then
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11489 # include <stdlib.h>
11491 extern char **environ;
11495 for (to = from = environ; (*to = *from); from++)
11496 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11499 char TZ_GMT0[] = "TZ=GMT0";
11500 char TZ_PST8[] = "TZ=PST8";
11503 time_t now = time ((time_t *) 0);
11504 int hour_GMT0, hour_unset;
11505 if (putenv (TZ_GMT0) != 0)
11507 hour_GMT0 = localtime (&now)->tm_hour;
11509 hour_unset = localtime (&now)->tm_hour;
11510 if (putenv (TZ_PST8) != 0)
11512 if (localtime (&now)->tm_hour == hour_GMT0)
11515 if (localtime (&now)->tm_hour != hour_unset)
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11522 emacs_cv_localtime_cache=no
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 emacs_cv_localtime_cache=yes
11532 # If we lack tzset, report that localtime does not cache TZ,
11533 # since we can't invalidate the cache if we don't have tzset.
11534 emacs_cv_localtime_cache=no
11536 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11537 if test $emacs_cv_localtime_cache = yes; then
11538 { test "$extra_verbose" = "yes" && cat << \EOF
11539 Defining LOCALTIME_CACHE
11541 cat >> confdefs.h <<\EOF
11542 #define LOCALTIME_CACHE 1
11548 if test "$HAVE_TIMEVAL" = "yes"; then
11549 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11550 echo "configure:11551: checking whether gettimeofday accepts one or two arguments" >&5
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11555 #ifdef TIME_WITH_SYS_TIME
11556 #include <sys/time.h>
11559 #ifdef HAVE_SYS_TIME_H
11560 #include <sys/time.h>
11568 struct timeval time;
11569 gettimeofday (&time, 0);
11573 if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11575 echo "$ac_t""two" 1>&6
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11580 echo "$ac_t""one" 1>&6
11581 { test "$extra_verbose" = "yes" && cat << \EOF
11582 Defining GETTIMEOFDAY_ONE_ARGUMENT
11584 cat >> confdefs.h <<\EOF
11585 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11594 echo $ac_n "checking for inline""... $ac_c" 1>&6
11595 echo "configure:11596: checking for inline" >&5
11598 for ac_kw in inline __inline__ __inline; do
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11607 if { (eval echo configure:11608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11609 ac_cv_c_inline=$ac_kw; break
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11618 echo "$ac_t""$ac_cv_c_inline" 1>&6
11619 case "$ac_cv_c_inline" in
11621 no) { test "$extra_verbose" = "yes" && cat << \EOF
11624 cat >> confdefs.h <<\EOF
11629 *) { test "$extra_verbose" = "yes" && cat << EOF
11630 Defining inline = $ac_cv_c_inline
11632 cat >> confdefs.h <<EOF
11633 #define inline $ac_cv_c_inline
11639 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11640 echo " xemacs will be linked with \"inline.o\""
11644 if test "$__DECC" != "yes"; then
11645 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11646 # for constant arguments. Useless!
11647 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11648 echo "configure:11649: checking for working alloca.h" >&5
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include <alloca.h>
11655 char *p = alloca(2 * sizeof(int));
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11660 ac_cv_header_alloca_h=yes
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11665 ac_cv_header_alloca_h=no
11669 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11670 if test $ac_cv_header_alloca_h = yes; then
11671 { test "$extra_verbose" = "yes" && cat << \EOF
11672 Defining HAVE_ALLOCA_H
11674 cat >> confdefs.h <<\EOF
11675 #define HAVE_ALLOCA_H 1
11681 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11682 echo "configure:11683: checking for alloca" >&5
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11689 # define alloca __builtin_alloca
11692 # include <malloc.h>
11693 # define alloca _alloca
11696 # include <alloca.h>
11701 # ifndef alloca /* predefined by HP cc +Olibcalls */
11710 char *p = (char *) alloca(1);
11713 if { (eval echo configure:11714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11715 ac_cv_func_alloca_works=yes
11717 echo "configure: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11720 ac_cv_func_alloca_works=no
11724 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11725 if test $ac_cv_func_alloca_works = yes; then
11726 { test "$extra_verbose" = "yes" && cat << \EOF
11727 Defining HAVE_ALLOCA
11729 cat >> confdefs.h <<\EOF
11730 #define HAVE_ALLOCA 1
11736 if test $ac_cv_func_alloca_works = no; then
11737 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11738 # that cause trouble. Some versions do not even contain alloca or
11739 # contain a buggy version. If you still want to use their alloca,
11740 # use ar to extract alloca.o from them instead of compiling alloca.c.
11741 ALLOCA=alloca.${ac_objext}
11742 { test "$extra_verbose" = "yes" && cat << \EOF
11745 cat >> confdefs.h <<\EOF
11751 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11752 echo "configure:11753: checking whether alloca needs Cray hooks" >&5
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 #if defined(CRAY) && ! defined(CRAY2)
11764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11765 egrep "webecray" >/dev/null 2>&1; then
11775 echo "$ac_t""$ac_cv_os_cray" 1>&6
11776 if test $ac_cv_os_cray = yes; then
11777 for ac_func in _getb67 GETB67 getb67; do
11778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11779 echo "configure:11780: checking for $ac_func" >&5
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func(); below. */
11786 #include <assert.h>
11787 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11807 eval "ac_cv_func_$ac_func=yes"
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11812 eval "ac_cv_func_$ac_func=no"
11816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 { test "$extra_verbose" = "yes" && cat << EOF
11819 Defining CRAY_STACKSEG_END = $ac_func
11821 cat >> confdefs.h <<EOF
11822 #define CRAY_STACKSEG_END $ac_func
11828 echo "$ac_t""no" 1>&6
11834 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11835 echo "configure:11836: checking stack direction for C alloca" >&5
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 find_stack_direction ()
11842 static char *addr = 0;
11847 return find_stack_direction ();
11850 return (&dummy > addr) ? 1 : -1;
11854 exit (find_stack_direction() < 0);
11857 if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11859 ac_cv_c_stack_direction=1
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11865 ac_cv_c_stack_direction=-1
11869 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11870 { test "$extra_verbose" = "yes" && cat << EOF
11871 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
11873 cat >> confdefs.h <<EOF
11874 #define STACK_DIRECTION $ac_cv_c_stack_direction
11880 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
11881 echo " xemacs will be linked with \"$ALLOCA\""
11885 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11886 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11887 echo "configure:11888: checking for vfork.h" >&5
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11895 { (eval echo configure:11896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11897 if test -z "$ac_err"; then
11899 eval "ac_cv_header_$ac_safe=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 eval "ac_cv_header_$ac_safe=no"
11908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11909 echo "$ac_t""yes" 1>&6
11910 { test "$extra_verbose" = "yes" && cat << \EOF
11911 Defining HAVE_VFORK_H
11913 cat >> confdefs.h <<\EOF
11914 #define HAVE_VFORK_H 1
11919 echo "$ac_t""no" 1>&6
11922 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11923 echo "configure:11924: checking for working vfork" >&5
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 /* Thanks to Paul Eggert for this test. */
11930 #include <sys/types.h>
11931 #include <sys/stat.h>
11932 #ifdef HAVE_UNISTD_H
11933 #include <unistd.h>
11935 #ifdef HAVE_VFORK_H
11938 /* On some sparc systems, changes by the child to local and incoming
11939 argument registers are propagated back to the parent.
11940 The compiler is told about this with #include <vfork.h>,
11941 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
11942 Test for this by using a static variable whose address
11943 is put into a register that is clobbered by the vfork. */
11946 sparc_address_test (int arg)
11948 sparc_address_test (arg) int arg;
11951 static pid_t child;
11966 pid_t parent = getpid ();
11969 sparc_address_test ();
11974 /* Here is another test for sparc vfork register problems.
11975 This test uses lots of local variables, at least
11976 as many local variables as main has allocated so far
11977 including compiler temporaries. 4 locals are enough for
11978 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
11979 A buggy compiler should reuse the register of parent
11980 for one of the local variables, since it will think that
11981 parent can't possibly be used any more in this routine.
11982 Assigning to the local variable will thus munge parent
11983 in the parent process. */
11985 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11986 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11987 /* Convince the compiler that p..p7 are live; otherwise, it might
11988 use the same hardware register for all 8 local variables. */
11989 if (p != p1 || p != p2 || p != p3 || p != p4
11990 || p != p5 || p != p6 || p != p7)
11993 /* On some systems (e.g. IRIX 3.3),
11994 vfork doesn't separate parent from child file descriptors.
11995 If the child closes a descriptor before it execs or exits,
11996 this munges the parent's descriptor as well.
11997 Test for this by closing stdout in the child. */
11998 _exit(close(fileno(stdout)) != 0);
12003 while (wait(&status) != child)
12006 /* Was there some problem with vforking? */
12009 /* Did the child fail? (This shouldn't happen.) */
12012 /* Did the vfork/compiler bug occur? */
12013 || parent != getpid()
12015 /* Did the file descriptor bug occur? */
12016 || fstat(fileno(stdout), &st) != 0
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12023 ac_cv_func_vfork_works=yes
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12029 ac_cv_func_vfork_works=no
12033 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12034 if test $ac_cv_func_vfork_works = no; then
12035 { test "$extra_verbose" = "yes" && cat << \EOF
12036 Defining vfork = fork
12038 cat >> confdefs.h <<\EOF
12046 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12047 echo "configure:12048: checking for working strcoll" >&5
12049 cat > conftest.$ac_ext <<EOF
12050 #line 12051 "configure"
12051 #include "confdefs.h"
12052 #include <string.h>
12055 exit (strcoll ("abc", "def") >= 0 ||
12056 strcoll ("ABC", "DEF") >= 0 ||
12057 strcoll ("123", "456") >= 0);
12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12062 ac_cv_func_strcoll_works=yes
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12068 ac_cv_func_strcoll_works=no
12072 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12073 if test $ac_cv_func_strcoll_works = yes; then
12074 { test "$extra_verbose" = "yes" && cat << \EOF
12075 Defining HAVE_STRCOLL
12077 cat >> confdefs.h <<\EOF
12078 #define HAVE_STRCOLL 1
12085 for ac_func in getpgrp
12087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12088 echo "configure:12089: checking for $ac_func" >&5
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func(); below. */
12095 #include <assert.h>
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12103 /* The GNU C library defines this for functions which it implements
12104 to always fail with ENOSYS. Some functions are actually named
12105 something starting with __ and the normal name is an alias. */
12106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12116 eval "ac_cv_func_$ac_func=yes"
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12121 eval "ac_cv_func_$ac_func=no"
12125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12126 echo "$ac_t""yes" 1>&6
12127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12128 { test "$extra_verbose" = "yes" && cat << EOF
12129 Defining $ac_tr_func
12131 cat >> confdefs.h <<EOF
12132 #define $ac_tr_func 1
12137 echo "$ac_t""no" 1>&6
12141 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12142 echo "configure:12143: checking whether getpgrp takes no argument" >&5
12144 cat > conftest.$ac_ext <<EOF
12145 #line 12146 "configure"
12146 #include "confdefs.h"
12149 * If this system has a BSD-style getpgrp(),
12150 * which takes a pid argument, exit unsuccessfully.
12152 * Snarfed from Chet Ramey's bash pgrp.c test program
12155 #include <sys/types.h>
12158 int pg1, pg2, pg3, pg4;
12159 int ng, np, s, child;
12166 pg3 = getpgrp(pid);
12170 * If all of these values are the same, it's pretty sure that
12171 * we're on a system that ignores getpgrp's first argument.
12173 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12179 else if (child == 0) {
12182 * If this is Sys V, this will not work; pgrp will be
12183 * set to np because setpgrp just changes a pgrp to be
12184 * the same as the pid.
12187 ng = getpgrp(0); /* Same result for Sys V and BSD */
12200 if { (eval echo configure:12201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12202 ac_cv_func_getpgrp_void=yes
12205 echo "configure: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12208 ac_cv_func_getpgrp_void=no
12213 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12214 if test $ac_cv_func_getpgrp_void = yes; then
12215 { test "$extra_verbose" = "yes" && cat << \EOF
12216 Defining GETPGRP_VOID
12218 cat >> confdefs.h <<\EOF
12219 #define GETPGRP_VOID 1
12226 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12227 echo "configure:12228: checking for working mmap" >&5
12228 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12229 cat > conftest.$ac_ext <<EOF
12230 #line 12231 "configure"
12231 #include "confdefs.h"
12233 #include <unistd.h>
12235 #include <sys/mman.h>
12237 #ifndef MAP_VARIABLE
12238 #define MAP_VARIABLE 0
12242 #define MAP_FAILED -1
12245 int main (int argc, char *argv[])
12249 #ifndef MAP_ANONYMOUS
12250 fd = open ("/dev/zero", O_RDWR);
12253 #define MAP_ANONYMOUS 0
12255 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12256 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12257 fd, 0) != (void *) MAP_FAILED)
12259 perror ("conftest: mmap failed");
12263 if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12268 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12273 rm -fr conftest* ;;
12275 echo "$ac_t""$have_mmap" 1>&6
12276 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12279 cat >> confdefs.h <<\EOF
12280 #define HAVE_MMAP 1
12285 case "$opsys" in cygwin*)
12286 test "$rel_alloc" = "default" && rel_alloc=no ;;
12288 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12289 if test "$rel_alloc $have_mmap" = "default yes"; then
12290 if test "$doug_lea_malloc" = "yes"; then
12291 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12292 echo "configure:12293: checking for M_MMAP_THRESHOLD" >&5
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296 #include <malloc.h>
12299 #ifndef M_MMAP_THRESHOLD
12300 #error No M_MMAP_THRESHOLD :-(
12301 !@+$%^&*_)(_ - unlikely to compile...
12306 if { (eval echo configure:12307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12308 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12310 echo "configure: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12313 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12320 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12323 cat >> confdefs.h <<\EOF
12324 #define REL_ALLOC 1
12329 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12330 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12331 echo "configure:12332: checking for termios.h" >&5
12333 cat > conftest.$ac_ext <<EOF
12334 #line 12335 "configure"
12335 #include "confdefs.h"
12336 #include <termios.h>
12338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12339 { (eval echo configure:12340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12341 if test -z "$ac_err"; then
12343 eval "ac_cv_header_$ac_safe=yes"
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12349 eval "ac_cv_header_$ac_safe=no"
12352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 { test "$extra_verbose" = "yes" && cat << \EOF
12355 Defining HAVE_TERMIOS
12357 cat >> confdefs.h <<\EOF
12358 #define HAVE_TERMIOS 1
12362 { test "$extra_verbose" = "yes" && cat << \EOF
12363 Defining SIGNALS_VIA_CHARACTERS
12365 cat >> confdefs.h <<\EOF
12366 #define SIGNALS_VIA_CHARACTERS 1
12370 { test "$extra_verbose" = "yes" && cat << \EOF
12373 cat >> confdefs.h <<\EOF
12374 #define NO_TERMIO 1
12379 echo "$ac_t""no" 1>&6
12380 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12381 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12382 echo "configure:12383: checking for termio.h" >&5
12384 cat > conftest.$ac_ext <<EOF
12385 #line 12386 "configure"
12386 #include "confdefs.h"
12387 #include <termio.h>
12389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12390 { (eval echo configure:12391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12392 if test -z "$ac_err"; then
12394 eval "ac_cv_header_$ac_safe=yes"
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 eval "ac_cv_header_$ac_safe=no"
12403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12404 echo "$ac_t""yes" 1>&6
12405 { test "$extra_verbose" = "yes" && cat << \EOF
12406 Defining HAVE_TERMIO
12408 cat >> confdefs.h <<\EOF
12409 #define HAVE_TERMIO 1
12414 echo "$ac_t""no" 1>&6
12421 echo $ac_n "checking for socket""... $ac_c" 1>&6
12422 echo "configure:12423: checking for socket" >&5
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12426 "configure"
12426 #include "confdefs.h"
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char socket(); below. */
12429 #include <assert.h>
12430 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined (__stub_socket) || defined (__stub___socket)
12448 if { (eval echo configure:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12450 eval "ac_cv_func_socket=yes"
12452 echo "configure: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12455 eval "ac_cv_func_socket=no"
12459 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12460 echo "$ac_t""yes" 1>&6
12461 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12462 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12463 echo "configure:12464: checking for netinet/in.h" >&5
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 #include <netinet/in.h>
12470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12471 { (eval echo configure:12472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12473 if test -z "$ac_err"; then
12475 eval "ac_cv_header_$ac_safe=yes"
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 eval "ac_cv_header_$ac_safe=no"
12484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12485 echo "$ac_t""yes" 1>&6
12486 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12487 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12488 echo "configure:12489: checking for arpa/inet.h" >&5
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <arpa/inet.h>
12495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12496 { (eval echo configure:12497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12498 if test -z "$ac_err"; then
12500 eval "ac_cv_header_$ac_safe=yes"
12503 echo "configure: failed program was:" >&5
12504 cat conftest.$ac_ext >&5
12506 eval "ac_cv_header_$ac_safe=no"
12509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12512 { test "$extra_verbose" = "yes" && cat << \EOF
12513 Defining HAVE_SOCKETS
12515 cat >> confdefs.h <<\EOF
12516 #define HAVE_SOCKETS 1
12520 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12521 echo "configure:12522: checking "for sun_len member in struct sockaddr_un"" >&5
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12526 #include <sys/types.h>
12527 #include <sys/socket.h>
12528 #include <sys/un.h>
12531 static struct sockaddr_un x; x.sun_len = 1;
12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12536 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12537 Defining HAVE_SOCKADDR_SUN_LEN
12539 cat >> confdefs.h <<\EOF
12540 #define HAVE_SOCKADDR_SUN_LEN 1
12545 echo "configure: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12548 echo "$ac_t""no" 1>&6
12551 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12552 echo "configure:12553: checking "for ip_mreq struct in netinet/in.h"" >&5
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12557 #include <sys/types.h>
12558 #include <netinet/in.h>
12561 static struct ip_mreq x;
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12567 Defining HAVE_MULTICAST
12569 cat >> confdefs.h <<\EOF
12570 #define HAVE_MULTICAST 1
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12578 echo "$ac_t""no" 1>&6
12582 echo "$ac_t""no" 1>&6
12586 echo "$ac_t""no" 1>&6
12590 echo "$ac_t""no" 1>&6
12594 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12595 echo "configure:12596: checking for msgget" >&5
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 /* System header to define __stub macros and hopefully few prototypes,
12601 which can conflict with char msgget(); below. */
12602 #include <assert.h>
12603 /* Override any gcc2 internal prototype to avoid an error. */
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12610 /* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613 #if defined (__stub_msgget) || defined (__stub___msgget)
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 eval "ac_cv_func_msgget=yes"
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12628 eval "ac_cv_func_msgget=no"
12632 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12633 echo "$ac_t""yes" 1>&6
12634 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12635 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12636 echo "configure:12637: checking for sys/ipc.h" >&5
12638 cat > conftest.$ac_ext <<EOF
12639 #line 12640 "configure"
12640 #include "confdefs.h"
12641 #include <sys/ipc.h>
12643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12644 { (eval echo configure:12645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12646 if test -z "$ac_err"; then
12648 eval "ac_cv_header_$ac_safe=yes"
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 eval "ac_cv_header_$ac_safe=no"
12657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12658 echo "$ac_t""yes" 1>&6
12659 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12660 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12661 echo "configure:12662: checking for sys/msg.h" >&5
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 #include <sys/msg.h>
12668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12669 { (eval echo configure:12670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12671 if test -z "$ac_err"; then
12673 eval "ac_cv_header_$ac_safe=yes"
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12679 eval "ac_cv_header_$ac_safe=no"
12682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12684 { test "$extra_verbose" = "yes" && cat << \EOF
12685 Defining HAVE_SYSVIPC
12687 cat >> confdefs.h <<\EOF
12688 #define HAVE_SYSVIPC 1
12693 echo "$ac_t""no" 1>&6
12697 echo "$ac_t""no" 1>&6
12701 echo "$ac_t""no" 1>&6
12705 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12706 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12707 echo "configure:12708: checking for dirent.h" >&5
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 #include <dirent.h>
12714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12715 { (eval echo configure:12716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12717 if test -z "$ac_err"; then
12719 eval "ac_cv_header_$ac_safe=yes"
12722 echo "configure: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12725 eval "ac_cv_header_$ac_safe=no"
12728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12729 echo "$ac_t""yes" 1>&6
12730 { test "$extra_verbose" = "yes" && cat << \EOF
12731 Defining SYSV_SYSTEM_DIR
12733 cat >> confdefs.h <<\EOF
12734 #define SYSV_SYSTEM_DIR 1
12739 echo "$ac_t""no" 1>&6
12740 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12741 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12742 echo "configure:12743: checking for sys/dir.h" >&5
12744 cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 #include <sys/dir.h>
12749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12750 { (eval echo configure:12751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12752 if test -z "$ac_err"; then
12754 eval "ac_cv_header_$ac_safe=yes"
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12760 eval "ac_cv_header_$ac_safe=no"
12763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12764 echo "$ac_t""yes" 1>&6
12767 echo "$ac_t""no" 1>&6
12768 { test "$extra_verbose" = "yes" && cat << \EOF
12769 Defining NONSYSTEM_DIR_LIBRARY
12771 cat >> confdefs.h <<\EOF
12772 #define NONSYSTEM_DIR_LIBRARY 1
12781 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12782 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12783 echo "configure:12784: checking for nlist.h" >&5
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12791 { (eval echo configure:12792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12793 if test -z "$ac_err"; then
12795 eval "ac_cv_header_$ac_safe=yes"
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12801 eval "ac_cv_header_$ac_safe=no"
12804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12805 echo "$ac_t""yes" 1>&6
12806 { test "$extra_verbose" = "yes" && cat << \EOF
12807 Defining NLIST_STRUCT
12809 cat >> confdefs.h <<\EOF
12810 #define NLIST_STRUCT 1
12815 echo "$ac_t""no" 1>&6
12820 echo "checking "for sound support"" 1>&6
12821 echo "configure:12822: checking "for sound support"" >&5
12822 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12824 if test "$with_native_sound" != "no"; then
12825 if test -n "$native_sound_lib"; then
12826 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12827 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12828 echo "configure:12829: checking for multimedia/audio_device.h" >&5
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 #include <multimedia/audio_device.h>
12835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12836 { (eval echo configure:12837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12838 if test -z "$ac_err"; then
12840 eval "ac_cv_header_$ac_safe=yes"
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12846 eval "ac_cv_header_$ac_safe=no"
12849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12850 echo "$ac_t""yes" 1>&6
12851 sound_found=yes sound_cflags=""
12852 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12853 echo " xemacs will be linked with \"sunplay.o\""
12856 echo "$ac_t""no" 1>&6
12861 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
12863 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
12864 echo " xemacs will be linked with \"sunplay.o\""
12866 if test -d "/usr/demo/SOUND/include"
12867 then sound_cflags="-I/usr/demo/SOUND/include"
12868 else sound_cflags="-I/usr/demo/SOUND"
12870 if test -z "$native_sound_lib" ; then
12871 if test -r "/usr/demo/SOUND/lib/libaudio.a"
12872 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
12873 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
12878 if test -z "$sound_found"; then
12879 case "$canonical" in
12881 if test -z "$native_sound_lib"; then
12883 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12884 echo "configure:12885: checking for ALopenport in -laudio" >&5
12885 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12887 xe_check_libs=" -laudio "
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12890 "configure"
12890 #include "confdefs.h"
12891 /* Override any gcc2 internal prototype to avoid an error. */
12892 /* We use char because int might match the return type of a gcc2
12893 builtin and then its argument prototype would still apply. */
12900 if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12902 eval "ac_cv_lib_$ac_lib_var=yes"
12904 echo "configure: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12907 eval "ac_cv_lib_$ac_lib_var=no"
12912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12913 echo "$ac_t""yes" 1>&6
12914 native_sound_lib="-laudio"
12916 echo "$ac_t""no" 1>&6
12921 if test -n "$native_sound_lib"; then
12922 sound_found=yes sound_cflags=""
12923 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
12924 echo " xemacs will be linked with \"sgiplay.o\""
12928 if test -z "$native_sound_lib"; then
12930 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12931 echo "configure:12932: checking for AOpenAudio in -lAlib" >&5
12932 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12934 xe_check_libs=" -lAlib "
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 /* Override any gcc2 internal prototype to avoid an error. */
12939 /* We use char because int might match the return type of a gcc2
12940 builtin and then its argument prototype would still apply. */
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949 eval "ac_cv_lib_$ac_lib_var=yes"
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12954 eval "ac_cv_lib_$ac_lib_var=no"
12959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12960 echo "$ac_t""yes" 1>&6
12961 native_sound_lib="-lAlib"
12963 echo "$ac_t""no" 1>&6
12968 if test -n "$native_sound_lib"; then
12970 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
12971 echo " xemacs will be linked with \"hpplay.o\""
12973 if test "$GCC" = "yes" # Kludge city
12974 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
12975 else sound_cflags="+e -I/usr/audio/examples"
12981 if test -z "$sound_found"; then
12982 if test "$with_msw" = "yes"; then
12988 if test -z "$sound_found"; then
12989 for dir in "machine" "sys" "linux"; do
12990 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12991 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12992 echo "configure:12993: checking for ${dir}/soundcard.h" >&5
12994 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12997 #include <${dir}/soundcard.h>
12999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13000 { (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13002 if test -z "$ac_err"; then
13004 eval "ac_cv_header_$ac_safe=yes"
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13010 eval "ac_cv_header_$ac_safe=no"
13013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13014 echo "$ac_t""yes" 1>&6
13017 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13018 echo " xemacs will be linked with \"linuxplay.o\""
13020 { test "$extra_verbose" = "yes" && cat << EOF
13021 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13023 cat >> confdefs.h <<EOF
13024 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13030 echo "$ac_t""no" 1>&6
13036 test "$sound_found" = "yes" && with_native_sound=yes
13039 if test "$with_native_sound" = "yes"; then
13040 { test "$extra_verbose" = "yes" && cat << \EOF
13041 Defining HAVE_NATIVE_SOUND
13043 cat >> confdefs.h <<\EOF
13044 #define HAVE_NATIVE_SOUND 1
13048 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13051 if test "$with_nas_sound" != "no"; then
13052 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13053 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13054 echo "configure:13055: checking for audio/audiolib.h" >&5
13056 cat > conftest.$ac_ext <<EOF
13057 #line 13058 "configure"
13058 #include "confdefs.h"
13059 #include <audio/audiolib.h>
13061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13062 { (eval echo configure:13063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13064 if test -z "$ac_err"; then
13066 eval "ac_cv_header_$ac_safe=yes"
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13072 eval "ac_cv_header_$ac_safe=no"
13075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13076 echo "$ac_t""yes" 1>&6
13079 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13080 echo "configure:13081: checking for AuOpenServer in -laudio" >&5
13081 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13083 xe_check_libs=" -laudio "
13084 cat > conftest.$ac_ext <<EOF
13085 #line 13086 "configure"
13086 #include "confdefs.h"
13087 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13090 char AuOpenServer();
13096 if { (eval echo configure:13097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13098 eval "ac_cv_lib_$ac_lib_var=yes"
13100 echo "configure: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13103 eval "ac_cv_lib_$ac_lib_var=no"
13108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13109 echo "$ac_t""yes" 1>&6
13112 echo "$ac_t""no" 1>&6
13117 echo "$ac_t""no" 1>&6
13120 if test "$have_nas_sound" = "yes"; then
13122 { test "$extra_verbose" = "yes" && cat << \EOF
13123 Defining HAVE_NAS_SOUND
13125 cat >> confdefs.h <<\EOF
13126 #define HAVE_NAS_SOUND 1
13130 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13131 echo " xemacs will be linked with \"nas.o\""
13133 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13137 #include <audio/Xtutil.h>
13139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13140 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13144 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13145 Defining NAS_NO_ERROR_JUMP
13147 cat >> confdefs.h <<\EOF
13148 #define NAS_NO_ERROR_JUMP 1
13156 test "$with_nas_sound" = "yes" && \
13157 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13162 if test "$with_esd_sound" != "no"; then
13163 # Extract the first word of "esd-config", so it can be a program name with args.
13164 set dummy esd-config; ac_word=$2
13165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13166 echo "configure:13167: checking for $ac_word" >&5
13168 if test -n "$have_esd_config"; then
13169 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13173 for ac_dir in $ac_dummy; do
13174 test -z "$ac_dir" && ac_dir=.
13175 if test -f $ac_dir/$ac_word; then
13176 ac_cv_prog_have_esd_config="yes"
13181 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13183 have_esd_config="$ac_cv_prog_have_esd_config"
13184 if test -n "$have_esd_config"; then
13185 echo "$ac_t""$have_esd_config" 1>&6
13187 echo "$ac_t""no" 1>&6
13190 if test "$have_esd_config" = "yes"; then
13191 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13192 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
13193 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13194 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13195 echo "configure:13196: checking for esd_play_stream" >&5
13197 cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure"
13199 #include "confdefs.h"
13200 /* System header to define __stub macros and hopefully few prototypes,
13201 which can conflict with char esd_play_stream(); below. */
13202 #include <assert.h>
13203 /* Override any gcc2 internal prototype to avoid an error. */
13204 /* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13206 char esd_play_stream();
13210 /* The GNU C library defines this for functions which it implements
13211 to always fail with ENOSYS. Some functions are actually named
13212 something starting with __ and the normal name is an alias. */
13213 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13221 if { (eval echo configure:13222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13223 eval "ac_cv_func_esd_play_stream=yes"
13225 echo "configure: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13228 eval "ac_cv_func_esd_play_stream=no"
13232 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13236 echo "$ac_t""no" 1>&6
13237 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13242 if test "$have_esd_sound" = "yes"; then
13245 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13246 echo " xemacs will be linked with \"esd.o\""
13248 { test "$extra_verbose" = "yes" && cat << \EOF
13249 Defining HAVE_ESD_SOUND
13251 cat >> confdefs.h <<\EOF
13252 #define HAVE_ESD_SOUND 1
13257 test "$with_esd_sound" = "yes" && \
13258 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13263 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13264 echo " xemacs will be linked with \"miscplay.o\""
13268 test -z "$with_tty" && with_tty=yes
13270 if test "$with_tty" = "yes" ; then
13271 echo "checking for TTY-related features" 1>&6
13272 echo "configure:13273: checking for TTY-related features" >&5
13273 { test "$extra_verbose" = "yes" && cat << \EOF
13276 cat >> confdefs.h <<\EOF
13281 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
13282 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\""
13285 if test -z "$with_ncurses"; then
13287 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13288 echo "configure:13289: checking for tgetent in -lncurses" >&5
13289 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13291 xe_check_libs=" -lncurses "
13292 cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13295 /* Override any gcc2 internal prototype to avoid an error. */
13296 /* We use char because int might match the return type of a gcc2
13297 builtin and then its argument prototype would still apply. */
13304 if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13306 eval "ac_cv_lib_$ac_lib_var=yes"
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 eval "ac_cv_lib_$ac_lib_var=no"
13316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13317 echo "$ac_t""yes" 1>&6
13320 echo "$ac_t""no" 1>&6
13326 if test "$with_ncurses" = "yes"; then
13327 { test "$extra_verbose" = "yes" && cat << \EOF
13328 Defining HAVE_NCURSES
13330 cat >> confdefs.h <<\EOF
13331 #define HAVE_NCURSES 1
13335 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13336 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13337 echo "configure:13338: checking for ncurses/curses.h" >&5
13339 cat > conftest.$ac_ext <<EOF
13340 #line 13341 "configure"
13341 #include "confdefs.h"
13342 #include <ncurses/curses.h>
13344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13345 { (eval echo configure:13346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13347 if test -z "$ac_err"; then
13349 eval "ac_cv_header_$ac_safe=yes"
13352 echo "configure: failed program was:" >&5
13353 cat conftest.$ac_ext >&5
13355 eval "ac_cv_header_$ac_safe=no"
13358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13359 echo "$ac_t""yes" 1>&6
13360 curses_h_file=ncurses/curses.h
13362 echo "$ac_t""no" 1>&6
13365 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13366 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13367 echo "configure:13368: checking for ncurses/term.h" >&5
13369 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure"
13371 #include "confdefs.h"
13372 #include <ncurses/term.h>
13374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13375 { (eval echo configure:13376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13377 if test -z "$ac_err"; then
13379 eval "ac_cv_header_$ac_safe=yes"
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 eval "ac_cv_header_$ac_safe=no"
13388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13389 echo "$ac_t""yes" 1>&6
13390 term_h_file=ncurses/term.h
13392 echo "$ac_t""no" 1>&6
13395 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13396 echo " xemacs will be linked with \"terminfo.o\""
13398 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13400 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13401 save_c_switch_site="$c_switch_site"
13402 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13403 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13404 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13405 echo "configure:13406: checking for ncurses/curses.h" >&5
13407 cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13410 #include <ncurses/curses.h>
13412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13413 { (eval echo configure:13414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13415 if test -z "$ac_err"; then
13417 eval "ac_cv_header_$ac_safe=yes"
13420 echo "configure: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13423 eval "ac_cv_header_$ac_safe=no"
13426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13427 echo "$ac_t""yes" 1>&6
13428 curses_h_file=ncurses/curses.h
13430 echo "$ac_t""no" 1>&6
13433 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13434 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13435 else c_switch_site="$save_c_switch_site"
13438 else if test "$have_terminfo" = "yes"; then
13439 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13440 echo " xemacs will be linked with \"terminfo.o\""
13442 if test -n "$libs_termcap"; then
13443 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13445 for lib in curses termlib termcap; do
13447 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13448 echo "configure:13449: checking for tgetent in -l$lib" >&5
13449 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13451 xe_check_libs=" -l$lib "
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13455 /* Override any gcc2 internal prototype to avoid an error. */
13456 /* We use char because int might match the return type of a gcc2
13457 builtin and then its argument prototype would still apply. */
13464 if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13466 eval "ac_cv_lib_$ac_lib_var=yes"
13468 echo "configure: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13471 eval "ac_cv_lib_$ac_lib_var=no"
13476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13477 echo "$ac_t""yes" 1>&6
13478 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13480 echo "$ac_t""no" 1>&6
13486 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13487 echo " xemacs will be linked with \"tparam.o\""
13489 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13490 if test -n "$libs_termcap"; then
13491 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13494 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13495 echo "configure:13496: checking for tgetent in -lcurses" >&5
13496 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13498 xe_check_libs=" -lcurses "
13499 cat > conftest.$ac_ext <<EOF
13500 #line 13501 "configure"
13501 #include "confdefs.h"
13502 /* Override any gcc2 internal prototype to avoid an error. */
13503 /* We use char because int might match the return type of a gcc2
13504 builtin and then its argument prototype would still apply. */
13511 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13513 eval "ac_cv_lib_$ac_lib_var=yes"
13515 echo "configure: failed program was:" >&5
13516 cat conftest.$ac_ext >&5
13518 eval "ac_cv_lib_$ac_lib_var=no"
13523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13524 echo "$ac_t""yes" 1>&6
13525 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13527 echo "$ac_t""no" 1>&6
13528 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13529 echo "configure:13530: checking for tgetent in -ltermcap" >&5
13530 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13532 xe_check_libs=" -ltermcap "
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 eval "ac_cv_lib_$ac_lib_var=no"
13557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13558 echo "$ac_t""yes" 1>&6
13559 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13561 echo "$ac_t""no" 1>&6
13562 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13563 echo " xemacs will be linked with \"termcap.o\""
13574 { test "$extra_verbose" = "yes" && cat << EOF
13575 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13577 cat >> confdefs.h <<EOF
13578 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13582 { test "$extra_verbose" = "yes" && cat << EOF
13583 Defining TERM_H_FILE = "${term_h_file-term.h}"
13585 cat >> confdefs.h <<EOF
13586 #define TERM_H_FILE "${term_h_file-term.h}"
13591 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13592 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13593 echo "configure:13594: checking for gpm.h" >&5
13595 cat > conftest.$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13601 { (eval echo configure:13602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13603 if test -z "$ac_err"; then
13605 eval "ac_cv_header_$ac_safe=yes"
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13611 eval "ac_cv_header_$ac_safe=no"
13614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13615 echo "$ac_t""yes" 1>&6
13618 echo "$ac_t""no" 1>&6
13622 test -z "$with_gpm" && {
13623 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13624 echo "configure:13625: checking for Gpm_Open in -lgpm" >&5
13625 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13627 xe_check_libs=" -lgpm "
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 /* Override any gcc2 internal prototype to avoid an error. */
13632 /* We use char because int might match the return type of a gcc2
13633 builtin and then its argument prototype would still apply. */
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 eval "ac_cv_lib_$ac_lib_var=yes"
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 eval "ac_cv_lib_$ac_lib_var=no"
13652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13653 echo "$ac_t""yes" 1>&6
13656 echo "$ac_t""no" 1>&6
13661 if test "$with_gpm" = "yes"; then
13662 { test "$extra_verbose" = "yes" && cat << \EOF
13665 cat >> confdefs.h <<\EOF
13670 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13671 echo " xemacs will be linked with \"gpmevent.o\""
13673 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13676 else for feature in ncurses gpm; do
13677 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13678 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13680 eval "with_${feature}=no"
13683 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13684 echo " xemacs will be linked with \"event-unixoid.o\""
13688 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13689 != "no no no" && echo "checking for database support" 1>&6
13690 echo "configure:13691: checking for database support" >&5
13692 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13693 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13694 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13695 echo "configure:13696: checking for ndbm.h" >&5
13697 cat > conftest.$ac_ext <<EOF
13698 #line 13699 "configure"
13699 #include "confdefs.h"
13702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13703 { (eval echo configure:13704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13705 if test -z "$ac_err"; then
13707 eval "ac_cv_header_$ac_safe=yes"
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13713 eval "ac_cv_header_$ac_safe=no"
13716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13717 echo "$ac_t""yes" 1>&6
13720 echo "$ac_t""no" 1>&6
13722 test "$with_database_gdbm" = "yes" -o \
13723 "$with_database_dbm" = "yes" && \
13724 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13725 with_database_gdbm=no with_database_dbm=no
13730 if test "$with_database_gdbm" != "no"; then
13732 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13733 echo "configure:13734: checking for dbm_open in -lgdbm" >&5
13734 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13736 xe_check_libs=" -lgdbm "
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13740 /* Override any gcc2 internal prototype to avoid an error. */
13741 /* We use char because int might match the return type of a gcc2
13742 builtin and then its argument prototype would still apply. */
13749 if { (eval echo configure:13750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13751 eval "ac_cv_lib_$ac_lib_var=yes"
13753 echo "configure: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13756 eval "ac_cv_lib_$ac_lib_var=no"
13761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13762 echo "$ac_t""yes" 1>&6
13763 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
13765 echo "$ac_t""no" 1>&6
13766 if test "$with_database_gdbm" = "yes"; then
13767 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
13769 with_database_gdbm=no
13775 if test "$with_database_dbm" != "no"; then
13776 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13777 echo "configure:13778: checking for dbm_open" >&5
13779 cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13782 /* System header to define __stub macros and hopefully few prototypes,
13783 which can conflict with char dbm_open(); below. */
13784 #include <assert.h>
13785 /* Override any gcc2 internal prototype to avoid an error. */
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13792 /* The GNU C library defines this for functions which it implements
13793 to always fail with ENOSYS. Some functions are actually named
13794 something starting with __ and the normal name is an alias. */
13795 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13803 if { (eval echo configure:13804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 eval "ac_cv_func_dbm_open=yes"
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13810 eval "ac_cv_func_dbm_open=no"
13814 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13815 echo "$ac_t""yes" 1>&6
13816 with_database_dbm=yes libdbm=
13818 echo "$ac_t""no" 1>&6
13821 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13822 echo "configure:13823: checking for dbm_open in -ldbm" >&5
13823 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13825 xe_check_libs=" -ldbm "
13826 cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13829 /* Override any gcc2 internal prototype to avoid an error. */
13830 /* We use char because int might match the return type of a gcc2
13831 builtin and then its argument prototype would still apply. */
13838 if { (eval echo configure:13839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13840 eval "ac_cv_lib_$ac_lib_var=yes"
13842 echo "configure: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13845 eval "ac_cv_lib_$ac_lib_var=no"
13850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13851 echo "$ac_t""yes" 1>&6
13852 with_database_dbm=yes libdbm=-ldbm
13854 echo "$ac_t""no" 1>&6
13855 test "$with_database_dbm" = "yes" && \
13856 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
13857 with_database_dbm=no
13865 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
13866 test "$with_database_gdbm" = "yes" -o \
13867 "$with_database_dbm" = "yes" && \
13868 { test "$extra_verbose" = "yes" && cat << \EOF
13871 cat >> confdefs.h <<\EOF
13877 if test "$with_database_berkdb" != "no"; then
13878 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13879 echo "configure:13880: checking for Berkeley db.h" >&5
13880 for header in "db/db.h" "db.h"; do
13881 cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13885 #include <stdlib.h>
13886 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13887 #ifdef HAVE_INTTYPES_H
13888 #define __BIT_TYPES_DEFINED__
13889 #include <inttypes.h>
13890 typedef uint8_t u_int8_t;
13891 typedef uint16_t u_int16_t;
13892 typedef uint32_t u_int32_t;
13893 #ifdef WE_DONT_NEED_QUADS
13894 typedef uint64_t u_int64_t;
13904 if { (eval echo configure:13905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13906 db_h_file="$header"; break
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13913 if test -z "$db_h_file"
13914 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
13915 else echo "$ac_t""$db_h_file" 1>&6
13918 if test "$with_database_berkdb" != "no"; then
13919 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13920 echo "configure:13921: checking for Berkeley DB version" >&5
13921 cat > conftest.$ac_ext <<EOF
13922 #line 13923 "configure"
13923 #include "confdefs.h"
13924 #include <$db_h_file>
13925 #if DB_VERSION_MAJOR > 1
13930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13931 egrep "yes" >/dev/null 2>&1; then
13933 cat > conftest.$ac_ext <<EOF
13934 #line 13935 "configure"
13935 #include "confdefs.h"
13936 #include <$db_h_file>
13937 #if DB_VERSION_MAJOR > 2
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 egrep "yes" >/dev/null 2>&1; then
13945 echo "$ac_t""3" 1>&6; dbfunc=db_create
13949 echo "$ac_t""2" 1>&6; dbfunc=db_open
13956 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13960 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13961 echo "configure:13962: checking for $dbfunc" >&5
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13966 /* System header to define __stub macros and hopefully few prototypes,
13967 which can conflict with char $dbfunc(); below. */
13968 #include <assert.h>
13969 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13976 /* The GNU C library defines this for functions which it implements
13977 to always fail with ENOSYS. Some functions are actually named
13978 something starting with __ and the normal name is an alias. */
13979 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
13987 if { (eval echo configure:13988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13989 eval "ac_cv_func_$dbfunc=yes"
13991 echo "configure: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13994 eval "ac_cv_func_$dbfunc=no"
13998 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
13999 echo "$ac_t""yes" 1>&6
14000 with_database_berkdb=yes need_libdb=no
14002 echo "$ac_t""no" 1>&6
14005 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14006 echo "configure:14007: checking for $dbfunc in -ldb" >&5
14007 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14009 xe_check_libs=" -ldb "
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 eval "ac_cv_lib_$ac_lib_var=yes"
14026 echo "configure: failed program was:" >&5
14027 cat conftest.$ac_ext >&5
14029 eval "ac_cv_lib_$ac_lib_var=no"
14034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14035 echo "$ac_t""yes" 1>&6
14036 with_database_berkdb=yes need_libdb=yes
14038 echo "$ac_t""no" 1>&6
14046 if test "$with_database_berkdb" = "yes"; then
14047 { test "$extra_verbose" = "yes" && cat << EOF
14048 Defining DB_H_FILE = "$db_h_file"
14050 cat >> confdefs.h <<EOF
14051 #define DB_H_FILE "$db_h_file"
14055 { test "$extra_verbose" = "yes" && cat << \EOF
14056 Defining HAVE_BERKELEY_DB
14058 cat >> confdefs.h <<\EOF
14059 #define HAVE_BERKELEY_DB 1
14063 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14064 else with_database_berkdb=no
14068 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14069 != "no no no"; then
14070 { test "$extra_verbose" = "yes" && cat << \EOF
14071 Defining HAVE_DATABASE
14073 cat >> confdefs.h <<\EOF
14074 #define HAVE_DATABASE 1
14078 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14079 echo " xemacs will be linked with \"database.o\""
14083 if test "$with_socks" = "yes"; then
14085 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14086 echo "configure:14087: checking for SOCKSinit in -lsocks" >&5
14087 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14089 xe_check_libs=" -lsocks "
14090 cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure"
14092 #include "confdefs.h"
14093 /* Override any gcc2 internal prototype to avoid an error. */
14094 /* We use char because int might match the return type of a gcc2
14095 builtin and then its argument prototype would still apply. */
14102 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14104 eval "ac_cv_lib_$ac_lib_var=yes"
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14109 eval "ac_cv_lib_$ac_lib_var=no"
14114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14115 echo "$ac_t""yes" 1>&6
14116 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14118 { test "$extra_verbose" = "yes" && cat << EOF
14119 Defining $ac_tr_lib
14121 cat >> confdefs.h <<EOF
14122 #define $ac_tr_lib 1
14126 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14129 echo "$ac_t""no" 1>&6
14133 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14134 Defining HAVE_SOCKS
14136 cat >> confdefs.h <<\EOF
14137 #define HAVE_SOCKS 1
14143 if test "$usage_tracking" = "yes"; then
14144 { test "$extra_verbose" = "yes" && cat << \EOF
14145 Defining USAGE_TRACKING
14147 cat >> confdefs.h <<\EOF
14148 #define USAGE_TRACKING 1
14152 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14155 if test "$with_modules" != "no"; then
14156 echo "checking for module support" 1>&6
14157 echo "configure:14158: checking for module support" >&5
14159 if test "$with_msw" = "yes"; then
14162 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14163 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14164 echo "configure:14165: checking for dlfcn.h" >&5
14166 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14172 { (eval echo configure:14173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14174 if test -z "$ac_err"; then
14176 eval "ac_cv_header_$ac_safe=yes"
14179 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14182 eval "ac_cv_header_$ac_safe=no"
14185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14188 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14189 echo "configure:14190: checking for dlopen in -lc" >&5
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14198 if { (eval echo configure:14199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14202 echo "configure: failed program was:" >&5
14203 cat conftest.$ac_ext >&5
14206 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14207 echo "configure:14208: checking for dlopen in -ldl" >&5
14208 ac_save_LIBS="$LIBS"
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14218 if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14225 LIBS="$ac_save_LIBS"
14232 echo "$ac_t""no" 1>&6
14235 if test -n "$have_dl"; then
14236 { test "$extra_verbose" = "yes" && cat << \EOF
14237 Defining HAVE_DLOPEN
14239 cat >> confdefs.h <<\EOF
14240 #define HAVE_DLOPEN 1
14246 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14247 echo "configure:14248: checking for shl_load in -ldld" >&5
14248 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14250 xe_check_libs=" -ldld "
14251 cat > conftest.$ac_ext <<EOF
14252 #line 14253 "configure"
14253 #include "confdefs.h"
14254 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14263 if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265 eval "ac_cv_lib_$ac_lib_var=yes"
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14270 eval "ac_cv_lib_$ac_lib_var=no"
14275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14276 echo "$ac_t""yes" 1>&6
14277 libdl=dld have_dl=yes;
14278 { test "$extra_verbose" = "yes" && cat << \EOF
14279 Defining HAVE_SHL_LOAD
14281 cat >> confdefs.h <<\EOF
14282 #define HAVE_SHL_LOAD 1
14287 echo "$ac_t""no" 1>&6
14289 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14290 echo "configure:14291: checking for dld_init in -ldld" >&5
14291 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14293 xe_check_libs=" -ldld "
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* Override any gcc2 internal prototype to avoid an error. */
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14306 if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308 eval "ac_cv_lib_$ac_lib_var=yes"
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14313 eval "ac_cv_lib_$ac_lib_var=no"
14318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14319 echo "$ac_t""yes" 1>&6
14320 libdl=dld have_dl=yes;
14321 { test "$extra_verbose" = "yes" && cat << \EOF
14322 Defining HAVE_DLD_INIT
14324 cat >> confdefs.h <<\EOF
14325 #define HAVE_DLD_INIT 1
14330 echo "$ac_t""no" 1>&6
14339 if test -n "$have_dl"; then
14346 ld_dynamic_link_flags=
14348 xealias=$internal_configuration
14350 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14351 echo "configure:14352: checking how to build dynamic libraries for ${xehost}" >&5
14352 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14355 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14358 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14359 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14360 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14362 case "$xehost_os" in
14364 # AIX sometimes has problems with the GCC collect2 program. For some
14365 # reason, if we set the COLLECT_NAMES environment variable, the problems
14366 # vanish in a puff of smoke.
14367 if test "${COLLECT_NAMES+set}" != set; then
14369 export COLLECT_NAMES
14374 # Now see if the compiler is really GCC.
14375 if test "$GCC" = "yes"; then
14378 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14379 echo "configure:14380: checking checking whether we are using GNU C" >&5
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14390 egrep "yes" >/dev/null 2>&1; then
14399 echo "$ac_t""${XEGCC}" 1>&6
14402 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14403 echo "configure:14404: checking how to produce PIC code" >&5
14406 can_build_shared=yes
14407 if test "$XEGCC" = yes; then
14410 case "$xehost_os" in
14411 aix[3-9]* | irix[5-9]* | osf[3-9])
14412 # PIC is the default for these OSes.
14416 # We can build DLLs from non-PIC.
14419 # FIXME: we need at least 68020 code to build shared libraries, but
14420 # adding the `-m68020' flag to GCC prevents building anything better,
14422 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14424 *cygwin* | *mingw* )
14425 # PIC is the default
14432 # PORTME Check for PIC flags for the system compiler.
14433 case "$xehost_os" in
14434 hpux9* | hpux1[0-9]*)
14435 # Is there a better link_static_flag that works with the bundled CC?
14442 # PIC (with -KPIC) is the default.
14446 # We can build DLLs from non-PIC.
14450 # All OSF/1 code is PIC.
14455 # All AIX code is PIC.
14460 dll_cflags='-belf -Kpic'
14494 can_build_shared=no
14499 if test -n "$dll_cflags"; then
14500 echo "$ac_t""${dll_cflags}" 1>&6
14502 # Check to make sure the dll_cflags actually works.
14503 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14504 echo "configure:14505: checking if PIC flag ${dll_cflags} really works" >&5
14505 save_CFLAGS="$CFLAGS"
14506 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14507 cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14518 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14519 # reports no error. So, we need to grep stderr for (Bundled).
14520 if grep '(Bundled)' config.log >/dev/null; then
14521 echo "$ac_t""no" 1>&6
14522 can_build_shared=no
14525 echo "$ac_t""yes" 1>&6
14528 echo "configure: failed program was:" >&5
14529 cat conftest.$ac_ext >&5
14531 echo "$ac_t""no" 1>&6
14532 can_build_shared=no
14536 CFLAGS="$save_CFLAGS"
14538 echo "$ac_t""none" 1>&6
14541 if test "$can_build_shared" = "yes"; then
14545 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14546 echo "configure:14547: checking if C compiler can produce shared libraries" >&5
14547 if test "$XEGCC" = yes; then
14550 else # Not using GCC
14551 case "$xehost_os" in
14553 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14554 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14557 freebsd2* | netbsd* | openbsd*)
14559 xcldf="${wl}-Bshareable"
14568 xcldf="${wl}-b ${wl}+s"
14571 irix[5-9]* | osf[3-9]*)
14572 xcldf="${wl}-shared"
14576 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14582 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14583 xldf="-assert pure-text -Bstatic"
14586 fi # End if if we are using gcc
14588 if test -n "$xcldf"; then
14589 save_LDFLAGS=$LDFLAGS
14591 save_xe_libs=$xe_libs
14592 LDFLAGS="$xcldf $LDFLAGS"
14595 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14614 LDFLAGS=$save_LDFLAGS
14616 xe_libs=$save_xe_libs
14617 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14621 echo "$ac_t""${cc_produces_so}" 1>&6
14624 if test -z "$LTLD"; then
14626 if test "$XEGCC" = yes; then
14627 # Check if gcc -print-prog-name=ld gives a path.
14628 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14629 echo "configure:14630: checking for ld used by GCC" >&5
14630 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14632 # Accept absolute paths.
14634 if test -z "$LTLD"; then
14636 *gcc-lib*) LTLD="$CC"
14644 # If it fails, then pretend we aren't using GCC.
14648 # If it is relative, then search for the first ld in PATH.
14649 with_gnu_ld=unknown
14653 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14654 echo "configure:14655: checking for GNU ld" >&5
14657 if test -z "$LTLD"; then
14658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14659 for ac_dir in $PATH; do
14660 test -z "$ac_dir" && ac_dir=.
14661 if test -f "$ac_dir/$ac_prog"; then
14662 LTLD="$ac_dir/$ac_prog"
14663 # Check to see if the program is GNU ld. I'd rather use --version,
14664 # but apparently some GNU ld's only accept -v.
14665 # Break only if it was the GNU/non-GNU ld that we prefer.
14666 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14676 if test -n "$LTLD"; then
14677 echo "$ac_t""${LTLD}" 1>&6
14679 echo "$ac_t""no" 1>&6
14682 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14683 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14688 ld_dynamic_link_flags=
14690 # Check to see if it really is or isn't GNU ld.
14691 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14692 echo "configure:14693: checking if the linker is GNU ld" >&5
14693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14694 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14699 echo "$ac_t""${xe_gnu_ld}" 1>&6
14701 case "$xehost_os" in
14702 amigaos* | sunos4*)
14703 # On these operating systems, we should treat GNU ld like the system ld.
14704 gnu_ld_acts_native=yes
14707 gnu_ld_acts_native=no
14711 if test "$cc_produces_so" = "yes"; then
14714 can_build_shared=yes
14717 # OK - only NOW do we futz about with ld.
14718 # See if the linker supports building shared libraries.
14719 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14720 echo "configure:14721: checking whether the linker supports shared libraries" >&5
14722 dll_ldflags=$LDFLAGS
14724 can_build_shared=yes
14725 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14726 # See if GNU ld supports shared libraries.
14727 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14729 dll_ldflags="-shared"
14735 # PORTME fill in a description of your system's linker (not GNU ld)
14736 case "$xehost_os" in
14746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14747 # support. Future versions do this automatically, but an explicit c++rt0.o
14748 # doesn't break anything, and helps significantly (at the cost of a little
14753 dll_post="/usr/lib/c++rt0.o"
14756 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14759 dll_ldflags="-Bshareable"
14762 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14764 dll_ldflags="-shared"
14778 # Tested with NetBSD 1.2 ld
14793 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14794 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14797 *gcc*) dll_ldflags="-shared"
14800 *) dll_ldflags="-G"
14806 if test "$XEGCC" = yes; then
14826 can_build_shared=no
14830 echo "$ac_t""${ld_shlibs}" 1>&6
14831 if test "$ld_shlibs" = "no"; then
14832 can_build_shared=no
14834 fi # End of if cc_produces_so = no
14837 if test "$xe_gnu_ld" = yes; then
14838 if test "$ld_shlibs" = yes; then
14839 ld_dynamic_link_flags="${wl}-export-dynamic"
14843 if test -z "$ld_dynamic_link_flags"; then
14844 case "$xehost_os" in
14846 ld_dynamic_link_flags=
14850 ld_dynamic_link_flags=
14854 ld_dynamic_link_flags=
14858 ld_dynamic_link_flags=
14862 ld_dynamic_link_flags="${wl}-E"
14866 ld_dynamic_link_flags=
14870 ld_dynamic_link_flags=
14874 ld_dynamic_link_flags=
14878 ld_dynamic_link_flags=
14881 solaris2* | solaris7*)
14882 ld_dynamic_link_flags=
14885 sco3.2v5* | unixware* | sysv5* | sysv4*)
14886 ld_dynamic_link_flags="${wl}-Bexport"
14890 ld_dynamic_link_flags=
14894 ld_dynamic_link_flags=
14898 ld_dynamic_link_flags=
14902 fi # End of if -z ld_dynamic_link_flags
14903 fi # End of if test "$can_build_shared" = "yes"
14914 if test "$can_build_shared" = "yes"; then
14915 { test "$extra_verbose" = "yes" && cat << \EOF
14916 Defining HAVE_SHLIB
14918 cat >> confdefs.h <<\EOF
14919 #define HAVE_SHLIB 1
14923 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
14924 echo " xemacs will be linked with \"sysdll.o emodules.o\""
14926 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14927 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14928 for ac_func in dlerror _dlerror
14930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14931 echo "configure:14932: checking for $ac_func" >&5
14933 cat > conftest.$ac_ext <<EOF
14934 #line 14935 "configure"
14935 #include "confdefs.h"
14936 /* System header to define __stub macros and hopefully few prototypes,
14937 which can conflict with char $ac_func(); below. */
14938 #include <assert.h>
14939 /* Override any gcc2 internal prototype to avoid an error. */
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14957 if { (eval echo configure:14958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14959 eval "ac_cv_func_$ac_func=yes"
14961 echo "configure: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14964 eval "ac_cv_func_$ac_func=no"
14968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14969 echo "$ac_t""yes" 1>&6
14970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14971 { test "$extra_verbose" = "yes" && cat << EOF
14972 Defining $ac_tr_func
14974 cat >> confdefs.h <<EOF
14975 #define $ac_tr_func 1
14980 echo "$ac_t""no" 1>&6
14986 if test "$with_modules" = "yes"; then
14987 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
14989 echo "configure: warning: "Module support cannot be provided."" 1>&2
14995 cat > conftest.$ac_ext <<EOF
14996 #line 14997 "configure"
14997 #include "confdefs.h"
14998 int main(int c,char *v[]){return 0;}
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15005 echo "configure: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15010 echo "*** PANIC *** The C compiler can no longer build working executables."
15011 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
15012 echo "*** PANIC *** The most likely reason for this problem is that configure"
15013 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
15014 echo "*** PANIC *** found at run time."
15015 echo "*** PANIC ***"
15016 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
15017 echo "*** PANIC *** On other systems, try telling configure where to find the"
15018 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
15019 echo "*** PANIC ***"
15020 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
15021 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
15022 echo "*** PANIC *** on your system. Don't do that."
15027 if test "$win32_processes" = "yes"; then
15028 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15029 echo " xemacs will be linked with \"process-nt.o\""
15032 { test "$extra_verbose" = "yes" && cat << \EOF
15033 Defining HAVE_UNIX_PROCESSES
15035 cat >> confdefs.h <<\EOF
15036 #define HAVE_UNIX_PROCESSES 1
15040 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15041 echo " xemacs will be linked with \"process-unix.o\""
15048 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15053 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15058 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
15059 c_switch_general="$T"
15063 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
15064 c_switch_window_system="$T"
15068 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15073 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
15074 ld_switch_general="$T"
15078 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15079 ld_switch_window_system="$T"
15083 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15088 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15089 ld_libs_general="$T"
15093 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
15094 ld_libs_window_system="$T"
15098 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15103 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15104 internal_makefile_list="Makefile.in"
15105 SUBDIR_MAKEFILES=''
15106 test -d lock || mkdir lock
15107 for dir in $MAKE_SUBDIR; do
15108 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15109 test -d "$d" || mkdir "$d"; cd "$d"
15111 * ) test -d "$dir" || mkdir "$dir" ;;
15115 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15116 SUBDIR_MAKEFILES="$T"
15120 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15121 internal_makefile_list="$T"
15128 for dir in src/s src/m; do
15129 if test ! -d "$dir" ; then
15130 echo Making symbolic link to "$srcdir/$dir"
15131 ${LN_S} "$srcdir/$dir" "$dir"
15135 if test "$extra_verbose" = "yes"; then
15137 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
15142 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15143 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15144 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15147 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15148 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15149 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15152 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15153 test "$extra_verbose" = "yes" && echo "creating TAGS"
15155 $srcdir/TAGS,include" > "TAGS"
15158 if test "$__SUNPRO_C" = "yes"; then
15159 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15160 ( echo "# For use with Sun WorkShop's Source browser."
15161 echo "# See sbquery(1) and sbinit(4) for more information"
15162 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15190 *\$* ) eval "PREFIX=$PREFIX" ;;
15198 EXEC_PREFIX=$exec_prefix
15200 case "$EXEC_PREFIX" in
15201 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15212 *\$* ) eval "INFODIR=$INFODIR" ;;
15222 case "$INFOPATH" in
15223 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15231 PACKAGE_PATH=$package_path
15233 case "$PACKAGE_PATH" in
15234 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15245 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15253 MODULEDIR=$moduledir
15255 case "$MODULEDIR" in
15256 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15264 SITELISPDIR=$sitelispdir
15266 case "$SITELISPDIR" in
15267 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15275 SITEMODULEDIR=$sitemoduledir
15277 case "$SITEMODULEDIR" in
15278 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15289 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15300 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15308 ARCHLIBDIR=$archlibdir
15310 case "$ARCHLIBDIR" in
15311 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15335 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15343 : ${XEMACS_CC:=$CC}
15346 if test "$with_prefix" = "yes"; then
15347 { test "$extra_verbose" = "yes" && cat << \EOF
15348 Defining PREFIX_USER_DEFINED
15350 cat >> confdefs.h <<\EOF
15351 #define PREFIX_USER_DEFINED 1
15357 if test "$with_site_lisp" = "no"; then
15358 { test "$extra_verbose" = "yes" && cat << \EOF
15359 Defining INHIBIT_SITE_LISP
15361 cat >> confdefs.h <<\EOF
15362 #define INHIBIT_SITE_LISP 1
15367 if test "$with_site_modules" = "no"; then
15368 { test "$extra_verbose" = "yes" && cat << \EOF
15369 Defining INHIBIT_SITE_MODULES
15371 cat >> confdefs.h <<\EOF
15372 #define INHIBIT_SITE_MODULES 1
15380 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15381 ac_configure_args="$T"
15383 { test "$extra_verbose" = "yes" && cat << EOF
15384 Defining EMACS_CONFIGURATION = "$configuration"
15386 cat >> confdefs.h <<EOF
15387 #define EMACS_CONFIGURATION "$configuration"
15391 { test "$extra_verbose" = "yes" && cat << EOF
15392 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15394 cat >> confdefs.h <<EOF
15395 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15402 { test "$extra_verbose" = "yes" && cat << EOF
15403 Defining LD_SWITCH_X_SITE = $null_string
15405 cat >> confdefs.h <<EOF
15406 #define LD_SWITCH_X_SITE $null_string
15410 { test "$extra_verbose" = "yes" && cat << EOF
15411 Defining LD_SWITCH_X_SITE_AUX = $null_string
15413 cat >> confdefs.h <<EOF
15414 #define LD_SWITCH_X_SITE_AUX $null_string
15418 { test "$extra_verbose" = "yes" && cat << EOF
15419 Defining C_SWITCH_X_SITE = $null_string
15421 cat >> confdefs.h <<EOF
15422 #define C_SWITCH_X_SITE $null_string
15426 { test "$extra_verbose" = "yes" && cat << EOF
15427 Defining LD_SWITCH_SITE = $null_string
15429 cat >> confdefs.h <<EOF
15430 #define LD_SWITCH_SITE $null_string
15434 { test "$extra_verbose" = "yes" && cat << EOF
15435 Defining C_SWITCH_SITE = $null_string
15437 cat >> confdefs.h <<EOF
15438 #define C_SWITCH_SITE $null_string
15444 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15445 Defining GNU_MALLOC
15447 cat >> confdefs.h <<\EOF
15448 #define GNU_MALLOC 1
15452 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15453 Defining USE_SYSTEM_MALLOC
15455 cat >> confdefs.h <<\EOF
15456 #define USE_SYSTEM_MALLOC 1
15460 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15461 Defining USE_DEBUG_MALLOC
15463 cat >> confdefs.h <<\EOF
15464 #define USE_DEBUG_MALLOC 1
15468 { test "$extra_verbose" = "yes" && cat << \EOF
15469 Defining USE_SYSTEM_MALLOC
15471 cat >> confdefs.h <<\EOF
15472 #define USE_SYSTEM_MALLOC 1
15477 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15480 cat >> confdefs.h <<\EOF
15485 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15488 cat >> confdefs.h <<\EOF
15493 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15494 Defining EXTERNAL_WIDGET
15496 cat >> confdefs.h <<\EOF
15497 #define EXTERNAL_WIDGET 1
15501 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15502 Defining QUICK_BUILD
15504 cat >> confdefs.h <<\EOF
15505 #define QUICK_BUILD 1
15509 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15512 cat >> confdefs.h <<\EOF
15517 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15520 cat >> confdefs.h <<\EOF
15525 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15526 Defining MAIL_USE_POP
15528 cat >> confdefs.h <<\EOF
15529 #define MAIL_USE_POP 1
15533 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15536 cat >> confdefs.h <<\EOF
15541 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15544 cat >> confdefs.h <<\EOF
15549 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15550 Defining USE_UNION_TYPE
15552 cat >> confdefs.h <<\EOF
15553 #define USE_UNION_TYPE 1
15557 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15560 cat >> confdefs.h <<\EOF
15568 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15570 echo "uname -a: `uname -a`"
15573 echo "$0 $quoted_arguments"
15576 if test ! -z ${emacs_beta_version} ; then
15577 if test -z "${emacs_is_beta}" ; then
15578 xemacs_betaname=".${emacs_beta_version}"
15580 xemacs_betaname="-b${emacs_beta_version}"
15589 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15592 Compilation / Installation:"
15593 echo " Source code location: $srcdir"
15594 echo " Installation prefix: $prefix"
15595 if test -n "$site_includes"; then
15596 echo " Additional header files: $site_includes"
15598 if test -n "$site_libraries"; then
15599 echo " Additional libraries: $site_libraries"
15601 if test -n "$site_prefixes"; then
15602 echo " Additional prefixes: $site_prefixes"
15604 if test -n "$runpath"; then
15605 echo " Runtime library search path: $runpath"
15608 if test -n "$opsysfile"
15609 then echo " Operating system description file: \`$opsysfile'"
15610 else echo " Not using any operating system description file"
15612 if test -n "$machfile"
15613 then echo " Machine description file: \`$machfile'"
15614 else echo " Not using any machine description file"
15617 echo " Compiler: $CC $CFLAGS"
15618 echo " Relocating allocator for buffers: $rel_alloc"
15619 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15623 if test "$with_msw" = "yes"; then
15624 echo " Compiling in support for the Microsoft window system."
15626 if test "$with_x11" = "yes"; then
15627 echo " Compiling in support for the X window system:"
15628 echo " - X Windows headers location: $x_includes"
15629 echo " - X Windows libraries location: $x_libraries"
15630 if test "$with_xauth" != yes; then
15631 echo " - Xau (X authority) not available."
15633 if test "$with_xmu" != yes; then
15634 echo " - Xmu library not available; substituting equivalent routines."
15636 if test "$with_wmcommand" != no; then
15637 echo " - Handling WM_COMMAND properly."
15640 if test "$need_athena" = "yes"; then
15641 echo " Compiling in support for the Athena widget set:"
15642 echo " - Athena headers location: $athena_h_path"
15643 echo " - Athena library to link: $athena_lib"
15645 case "$with_menubars" in
15646 gtk ) echo " Using GTK menubars." ;;
15647 lucid ) echo " Using Lucid menubars." ;;
15648 motif ) echo " Using Motif menubars."
15649 echo " *WARNING* The Motif menubar implementation is currently buggy."
15650 echo " We recommend using the Lucid menubar instead."
15651 echo " Re-run configure with --with-menubars='lucid'." ;;
15652 msw ) echo " Using MS-Windows menubars." ;;
15654 case "$with_scrollbars" in
15655 gtk ) echo " Using GTK scrollbars." ;;
15656 lucid ) echo " Using Lucid scrollbars." ;;
15657 motif ) echo " Using Motif scrollbars." ;;
15658 athena ) echo " Using Athena scrollbars." ;;
15659 msw ) echo " Using MS-Windows scrollbars." ;;
15661 case "$with_dialogs" in
15662 gtk ) echo " Using GTK dialog boxes." ;;
15663 motif ) echo " Using Motif dialog boxes."
15664 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15665 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15666 echo " We recommend using the Athena dialog boxes instead."
15667 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15668 echo " Read the PROBLEMS file for more information."
15670 athena ) echo " Using Athena dialog boxes." ;;
15671 msw ) echo " Using MS-Windows dialog boxes." ;;
15673 case "$with_widgets" in
15674 gtk ) echo " Using GTK native widgets." ;;
15675 motif ) echo " Using Motif native widgets." ;;
15676 athena ) echo " Using Athena native widgets." ;;
15677 msw ) echo " Using MS-Windows native widgets." ;;
15679 if test "$with_dragndrop" = yes; then
15680 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
15681 echo " - Drag'n'Drop prototype: $dragndrop_proto."
15686 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
15687 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
15691 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
15692 if test "$with_xpm" = yes; then
15693 echo " Compiling in support for XPM images."
15694 elif test "$with_x11" = yes; then
15695 echo " WARNING: -----------------------------------------------------------"
15696 echo " WARNING: Compiling without XPM image support."
15697 if test "$xpm_problem" != ""; then
15698 echo " Reason: $xpm_problem"
15700 echo " WARNING: You should strongly consider installing XPM."
15701 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
15702 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15703 echo " WARNING: -----------------------------------------------------------"
15705 if test "$with_png" = yes; then
15706 echo " Compiling in support for PNG images."
15707 elif test "$window_system" != "none"; then
15708 echo " WARNING: -----------------------------------------------------------"
15709 echo " WARNING: Compiling without PNG image support."
15710 if test "$png_problem" != ""; then
15711 echo " Reason: $png_problem"
15713 echo " WARNING: You should strongly consider installing the PNG libraries."
15714 echo " WARNING: Otherwise certain images and glyphs may not display."
15715 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
15716 echo " WARNING: -----------------------------------------------------------"
15718 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
15719 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
15720 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
15724 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
15725 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
15726 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
15727 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
15731 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
15732 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
15733 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
15734 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
15735 if test "$with_postgresql" = yes; then
15736 echo " Compiling in support for PostgreSQL."
15737 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
15738 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
15742 Internationalization:"
15743 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
15744 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
15745 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
15746 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
15747 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
15748 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
15749 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
15750 if test "$with_wnn" = yes; then
15751 echo " Compiling in support for the WNN input method on Mule."
15752 test "$with_wnn6" = yes && echo " - Using WNN version 6."
15754 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
15758 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
15759 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
15760 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
15761 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
15765 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
15766 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
15767 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
15768 test "$with_dnet" = yes && echo " Compiling in support for DNET."
15769 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
15770 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
15771 test "$pdump" = yes && echo " Using the new portable dumper."
15772 test "$debug" = yes && echo " Compiling in support for extra debugging code."
15773 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
15774 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
15775 != "no no no no no no"; then
15776 echo " WARNING: ---------------------------------------------------------"
15777 echo " WARNING: Compiling in support for runtime error checking."
15778 echo " WARNING: XEmacs will run noticeably more slowly as a result."
15779 echo " WARNING: Error checking is on by default for XEmacs beta releases."
15780 echo " WARNING: ---------------------------------------------------------"
15783 ) | tee -a Installation
15787 # Remove any trailing slashes in these variables.
15788 test -n "$prefix" &&
15789 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15790 test -n "$exec_prefix" &&
15791 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15794 for file in $internal_makefile_list; do
15795 test "$file" = src/Makefile.in && \
15796 file="src/Makefile.in:src/Makefile.in.in:src/depend"
15797 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15799 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15800 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
15804 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15806 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15807 # Let make expand exec_prefix.
15808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15810 # Any assignment to VPATH causes Sun make to only execute
15811 # the first set of double-colon rules, so remove it if not needed.
15812 # If there is a colon in the path, we need to keep it.
15813 if test "x$srcdir" = x.; then
15814 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15817 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15819 DEFS=-DHAVE_CONFIG_H
15821 # Without the "./", some shells look in PATH for config.status.
15822 : ${CONFIG_STATUS=./config.status}
15824 echo creating $CONFIG_STATUS
15825 rm -f $CONFIG_STATUS
15826 cat > $CONFIG_STATUS <<EOF
15828 # Generated automatically by configure.
15829 # Run this file to recreate the current configuration.
15830 # This directory was configured as follows,
15831 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15833 # $0 $ac_configure_args
15835 # Compiler output produced by configure, useful for debugging
15836 # configure, is in ./config.log if it exists.
15838 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15841 case "\$ac_option" in
15842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15843 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15844 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15845 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15846 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15848 -help | --help | --hel | --he | --h)
15849 echo "\$ac_cs_usage"; exit 0 ;;
15850 *) echo "\$ac_cs_usage"; exit 1 ;;
15854 ac_given_srcdir=$srcdir
15855 ac_given_INSTALL="$INSTALL"
15857 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15859 cat >> $CONFIG_STATUS <<EOF
15861 # Protect against being on the right side of a sed subst in config.status.
15862 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15863 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15867 s%@CFLAGS@%$CFLAGS%g
15868 s%@CPPFLAGS@%$CPPFLAGS%g
15869 s%@CXXFLAGS@%$CXXFLAGS%g
15870 s%@FFLAGS@%$FFLAGS%g
15872 s%@LDFLAGS@%$LDFLAGS%g
15874 s%@exec_prefix@%$exec_prefix%g
15875 s%@prefix@%$prefix%g
15876 s%@program_transform_name@%$program_transform_name%g
15877 s%@bindir@%$bindir%g
15878 s%@sbindir@%$sbindir%g
15879 s%@libexecdir@%$libexecdir%g
15880 s%@datadir@%$datadir%g
15881 s%@sysconfdir@%$sysconfdir%g
15882 s%@sharedstatedir@%$sharedstatedir%g
15883 s%@localstatedir@%$localstatedir%g
15884 s%@libdir@%$libdir%g
15885 s%@includedir@%$includedir%g
15886 s%@oldincludedir@%$oldincludedir%g
15887 s%@infodir@%$infodir%g
15888 s%@mandir@%$mandir%g
15890 s%@blddir@%$blddir%g
15893 s%@start_flags@%$start_flags%g
15894 s%@ld_switch_shared@%$ld_switch_shared%g
15895 s%@start_files@%$start_files%g
15897 s%@lib_gcc@%$lib_gcc%g
15898 s%@RANLIB@%$RANLIB%g
15899 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15900 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15901 s%@INSTALL_DATA@%$INSTALL_DATA%g
15903 s%@SET_MAKE@%$SET_MAKE%g
15904 s%@GTK_CONFIG@%$GTK_CONFIG%g
15905 s%@X_CFLAGS@%$X_CFLAGS%g
15906 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15907 s%@X_LIBS@%$X_LIBS%g
15908 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15909 s%@install_pp@%$install_pp%g
15910 s%@libs_xauth@%$libs_xauth%g
15911 s%@dnd_objs@%$dnd_objs%g
15912 s%@lwlib_objs@%$lwlib_objs%g
15913 s%@ALLOCA@%$ALLOCA%g
15914 s%@have_esd_config@%$have_esd_config%g
15915 s%@dll_ld@%$dll_ld%g
15916 s%@dll_cflags@%$dll_cflags%g
15917 s%@dll_ldflags@%$dll_ldflags%g
15918 s%@dll_post@%$dll_post%g
15919 s%@dll_ldo@%$dll_ldo%g
15920 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
15921 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
15922 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
15923 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
15924 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
15925 s%@PROGNAME@%$PROGNAME%g
15926 s%@version@%$version%g
15927 s%@configuration@%$configuration%g
15928 s%@canonical@%$canonical%g
15929 s%@inststaticdir@%$inststaticdir%g
15930 s%@instvardir@%$instvardir%g
15931 s%@srcdir@%$srcdir%g
15932 s%@pkgdir@%$pkgdir%g
15933 s%@statedir@%$statedir%g
15934 s%@extra_includes@%$extra_includes%g
15935 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15936 s%@PREFIX@%$PREFIX%g
15937 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15938 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15939 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
15940 s%@INFODIR@%$INFODIR%g
15941 s%@infopath@%$infopath%g
15942 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
15943 s%@INFOPATH@%$INFOPATH%g
15944 s%@package_path@%$package_path%g
15945 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
15946 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
15947 s%@lispdir@%$lispdir%g
15948 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
15949 s%@LISPDIR@%$LISPDIR%g
15950 s%@moduledir@%$moduledir%g
15951 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
15952 s%@MODULEDIR@%$MODULEDIR%g
15953 s%@sitelispdir@%$sitelispdir%g
15954 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
15955 s%@SITELISPDIR@%$SITELISPDIR%g
15956 s%@sitemoduledir@%$sitemoduledir%g
15957 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
15958 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
15959 s%@etcdir@%$etcdir%g
15960 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
15961 s%@ETCDIR@%$ETCDIR%g
15962 s%@docdir@%$docdir%g
15963 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
15964 s%@DOCDIR@%$DOCDIR%g
15965 s%@archlibdir@%$archlibdir%g
15966 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
15967 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
15968 s%@bitmapdir@%$bitmapdir%g
15969 s%@extra_objs@%$extra_objs%g
15970 s%@machfile@%$machfile%g
15971 s%@opsysfile@%$opsysfile%g
15972 s%@c_switch_general@%$c_switch_general%g
15973 s%@c_switch_window_system@%$c_switch_window_system%g
15974 s%@c_switch_all@%$c_switch_all%g
15975 s%@ld_switch_general@%$ld_switch_general%g
15976 s%@ld_switch_window_system@%$ld_switch_window_system%g
15977 s%@ld_switch_all@%$ld_switch_all%g
15978 s%@ld_libs_general@%$ld_libs_general%g
15979 s%@ld_libs_window_system@%$ld_libs_window_system%g
15980 s%@ld_libs_all@%$ld_libs_all%g
15981 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
15982 s%@native_sound_lib@%$native_sound_lib%g
15983 s%@sound_cflags@%$sound_cflags%g
15984 s%@dynodump_arch@%$dynodump_arch%g
15985 s%@XEMACS_CC@%$XEMACS_CC%g
15986 s%@internal_makefile_list@%$internal_makefile_list%g
15991 cat >> $CONFIG_STATUS <<\EOF
15993 # Split the substitutions into bite-sized pieces for seds with
15994 # small command number limits, like on Digital OSF/1 and HP-UX.
15995 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15996 ac_file=1 # Number of current file.
15997 ac_beg=1 # First line for current file.
15998 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16001 while $ac_more_lines; do
16002 if test $ac_beg -gt 1; then
16003 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16005 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16007 if test ! -s conftest.s$ac_file; then
16008 ac_more_lines=false
16009 rm -f conftest.s$ac_file
16011 if test -z "$ac_sed_cmds"; then
16012 ac_sed_cmds="sed -f conftest.s$ac_file"
16014 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16016 ac_file=`expr $ac_file + 1`
16018 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16021 if test -z "$ac_sed_cmds"; then
16026 cat >> $CONFIG_STATUS <<EOF
16028 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16030 cat >> $CONFIG_STATUS <<\EOF
16031 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16036 *) ac_file_in="${ac_file}.in" ;;
16039 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16041 # Remove last slash and all that follows it. Not all systems have dirname.
16042 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16044 # The file is in a subdirectory.
16045 test ! -d "$ac_dir" && mkdir "$ac_dir"
16046 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16047 # A "../" for each directory in $ac_dir_suffix.
16048 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16050 ac_dir_suffix= ac_dots=
16053 case "$ac_given_srcdir" in
16055 if test -z "$ac_dots"; then top_srcdir=.
16056 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16057 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16058 *) # Relative path.
16059 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16060 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16063 case "$ac_given_INSTALL" in
16064 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16065 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16068 echo creating "$ac_file"
16070 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16072 *Makefile*) ac_comsub="1i\\
16073 # $configure_input" ;;
16077 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16079 s%@configure_input@%$configure_input%g
16080 s%@srcdir@%$srcdir%g
16081 s%@top_srcdir@%$top_srcdir%g
16082 s%@INSTALL@%$INSTALL%g
16083 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16090 # ac_d sets the value in "#define NAME VALUE" lines.
16091 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16092 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16095 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16096 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16097 ac_uB='\([ ]\)%\1#\2define\3'
16100 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16101 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16102 ac_eB='$%\1#\2define\3'
16106 if test "${CONFIG_HEADERS+set}" != set; then
16108 cat >> $CONFIG_STATUS <<EOF
16109 CONFIG_HEADERS="src/config.h lwlib/config.h"
16111 cat >> $CONFIG_STATUS <<\EOF
16113 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16116 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16117 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16118 *) ac_file_in="${ac_file}.in" ;;
16121 echo creating $ac_file
16123 rm -f conftest.frag conftest.in conftest.out
16124 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16125 cat $ac_file_inputs > conftest.in
16129 # Transform confdefs.h into a sed script conftest.vals that substitutes
16130 # the proper values into config.h.in to produce config.h. And first:
16131 # Protect against being on the right side of a sed subst in config.status.
16132 # Protect against being in an unquoted here document in config.status.
16133 rm -f conftest.vals
16134 cat > conftest.hdr <<\EOF
16137 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16141 sed -n -f conftest.hdr confdefs.h > conftest.vals
16144 # This sed command replaces #undef with comments. This is necessary, for
16145 # example, in the case of _POSIX_SOURCE, which is predefined and required
16146 # on some systems where configure will not decide to define it.
16147 cat >> conftest.vals <<\EOF
16148 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16151 # Break up conftest.vals because some shells have a limit on
16152 # the size of here documents, and old seds have small limits too.
16154 rm -f conftest.tail
16157 ac_lines=`grep -c . conftest.vals`
16158 # grep -c gives empty output for an empty file on some AIX systems.
16159 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16160 # Write a limited-size here document to conftest.frag.
16161 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16162 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16164 sed -f conftest.frag conftest.in > conftest.out
16166 mv conftest.out conftest.in
16167 ' >> $CONFIG_STATUS
16168 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16169 rm -f conftest.vals
16170 mv conftest.tail conftest.vals
16172 rm -f conftest.vals
16174 cat >> $CONFIG_STATUS <<\EOF
16175 rm -f conftest.frag conftest.h
16176 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16177 cat conftest.in >> conftest.h
16179 if cmp -s $ac_file conftest.h 2>/dev/null; then
16180 echo "$ac_file is unchanged"
16183 # Remove last slash and all that follows it. Not all systems have dirname.
16184 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16185 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16186 # The file is in a subdirectory.
16187 test ! -d "$ac_dir" && mkdir "$ac_dir"
16190 mv conftest.h $ac_file
16195 cat >> $CONFIG_STATUS <<EOF
16197 top_srcdir="$srcdir"
16198 MAKE_SUBDIR="$MAKE_SUBDIR"
16201 cat >> $CONFIG_STATUS <<\EOF
16202 for dir in . $MAKE_SUBDIR; do
16207 sed -e '/^# Generated/d' \
16208 -e 's%/\*\*/#.*%%' \
16223 echo creating $dir/Makefile
16224 $CPP -I. -I${top_srcdir}/src junk.c \
16225 | sed -e 's/^\#.*//' \
16226 -e 's/^[ ][ ]*$//'\
16234 chmod 444 Makefile.new
16235 mv -f Makefile.new Makefile
16237 echo creating $dir/GNUmakefile
16238 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16239 | sed -e 's/^\#.*//' \
16240 -e 's/^[ ][ ]*$//'\
16248 chmod 444 Makefile.new
16249 mv -f Makefile.new GNUmakefile
16255 sed < config.status >> lib-src/config.values \
16256 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16257 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16258 -e 's/^\([^ ]*\) $/\1 ""/' \
16264 chmod +x $CONFIG_STATUS
16265 rm -fr confdefs* $ac_clean_files
16266 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1