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, 93, 94, 95, 96 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) 1998, 1999 J. Kean Johnston.
12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command
17 ### in the this directory. You must have autoconf version 2.12 or later.
19 ### This file is part of XEmacs.
21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by
23 ### the Free Software Foundation; either version 2, or (at your
24 ### option) any later version.
26 ### XEmacs is distributed in the hope that it will be useful, but
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 ### General Public License for more details.
31 ### You should have received a copy of the GNU General Public License
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 ### For usage, run `./configure --help'
37 ### For more detailed information on building and installing XEmacs,
38 ### read the file `INSTALL'.
40 ### If configure succeeds, it leaves its status in config.status.
41 ### A log of configuration tests can be found in config.log.
42 ### If configure fails after disturbing the status quo,
43 ### config.status is removed.
46 --with-x use the X Window System"
50 if test -n "$ZSH_VERSION"; then
51 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
52 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
53 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
56 elif test -n "$BASH_VERSION"; then
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
71 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
97 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
99 # File descriptor usage:
102 # 2 errors and warnings
103 # 3 some systems may open it to /dev/tty
104 # 4 used on the Kubota Titan
105 # 6 checking for... messages and results
106 # 5 compiler messages saved in config.log
107 if test "$silent" = yes; then
115 This file contains any messages produced by compilers while
116 running configure, to aid debugging if configure makes a mistake.
119 # Strip out --no-create and --no-recursion so they do not pile up.
120 # Also quote any args containing shell metacharacters.
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
126 | --no-cr | --no-c) ;;
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
136 # Only set these to C if already set. These must not be set unconditionally
137 # because not all systems understand e.g. LANG=C (notably SCO).
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
139 # Non-C LC_CTYPE values break the ctype check.
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
141 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
142 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
143 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
146 rm -rf conftest* confdefs.h
147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
150 # A filename unique to this package, relative to the directory that
151 # configure is in, which we can look for to find out if srcdir is correct.
152 ac_unique_file=src/lisp.h
154 # Find the source files, if location was not specified.
155 if test -z "$srcdir"; then
156 ac_srcdir_defaulted=yes
157 # Try the directory containing this script, then its parent.
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
162 if test ! -r $srcdir/$ac_unique_file; then
166 ac_srcdir_defaulted=no
168 if test ! -r $srcdir/$ac_unique_file; then
169 if test "$ac_srcdir_defaulted" = yes; then
170 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
172 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
177 # Prefer explicitly selected file to automatically selected ones.
178 if test -z "$CONFIG_SITE"; then
179 if test "x$prefix" != xNONE; then
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
185 for ac_site_file in $CONFIG_SITE; do
186 if test -r "$ac_site_file"; then
187 echo "loading site script $ac_site_file"
194 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
197 ac_cpp='$CPP '"$xe_cppflags"
198 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
199 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
204 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
206 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
213 ac_n= ac_c='\c' ac_t=
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
220 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
221 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
224 exec_prefix='${prefix}'
225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1'
230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
235 lispdir='${datadir}/${instvardir}/lisp'
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
239 pkgdir='${datadir}/${instvardir}/lisp'
241 etcdir='${datadir}/${instvardir}/etc'
242 lockdir='${statedir}/${inststaticdir}/lock'
243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
247 with_site_modules='yes'
253 cpp='' cppflags='' libs='' ldflags=''
258 with_system_malloc='default'
259 with_dlmalloc='default'
273 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c) ;;
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
282 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
283 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
287 while test $# != 0; do
290 --no-create|--no-recursion) ;;
294 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
295 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
299 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
300 val="yes" valomitted=yes
305 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
307 case "${valomitted}-${opt}" in yes-without_* )
308 opt=`echo $opt | sed 's/without/with/'`
309 valomitted="no" val="no" ;;
316 with_site_modules | \
366 memory_usage_stats | \
367 with_clash_detection | \
371 y | ye | yes ) val=yes ;;
373 * ) (echo "$progname: Usage error:"
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
377 eval "$opt=\"$val\"" ;;
395 site_runtime_libraries )
396 if test "$valomitted" = "yes" ; then
397 if test "$#" = 0 ; then
398 (echo "$progname: Usage error:"
399 echo " " "The \`--$optname' option requires a value."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
409 with_debug_malloc | use_debug_malloc | \
410 with_system_malloc | use_system_malloc )
412 y | ye | yes ) val=yes ;;
414 d | de | def | defa | defau | defaul | default ) val=default ;;
415 * ) (echo "$progname: Usage error:"
416 echo " " "The \`--$optname' option requires one of these values:
417 \`yes', \`no', or \`default'."
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
420 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
425 with_database_berkdb=no
427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
453 n | no | non | none ) new_sdefault=no ;;
454 a | al | all | both ) new_sdefault=yes ;;
456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
465 * ) bogus_sound=yes ;;
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
473 The default is to autodetect all sound support."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd_sound=$new_sdefault
479 new_sdefault= # reset this
487 y | ye | yes ) val=yes ;;
488 n | no | non | none ) val=no ;;
489 x | xl | xli | xlib ) val=xlib ;;
490 m | mo | mot | moti | motif ) val=motif ;;
491 * ) (echo "$progname: Usage error:"
492 echo " " "The \`--$optname' option must have one of these values:
493 \`motif', \`xlib', \`yes', or \`no'."
494 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
504 * ) (echo "$progname: Usage error:"
505 echo " " "The \`--$optname' option must have one of these values:
506 \`lockf', \`flock', or \`file'."
507 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
514 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
516 n | no | non | none ) new_default=no ;;
517 a | al | all ) new_default=yes ;;
519 extents ) error_check_extents=yes ;;
520 noextents ) error_check_extents=no ;;
522 typecheck ) error_check_typecheck=yes ;;
523 notypecheck ) error_check_typecheck=no ;;
525 bufpos ) error_check_bufpos=yes ;;
526 nobufpos ) error_check_bufpos=no ;;
528 gc ) error_check_gc=yes ;;
529 nogc ) error_check_gc=no ;;
531 malloc ) error_check_malloc=yes ;;
532 nomalloc ) error_check_malloc=no ;;
534 byte_code ) error_check_byte_code=yes ;;
535 nobyte_code ) error_check_byte_code=no ;;
537 * ) bogus_error_check=yes ;;
539 if test "$bogus_error_check" -o \
540 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
541 if test "$error_check_default" = yes ; then
542 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
544 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
546 (echo "$progname: Usage error:"
547 echo " " "Valid types for the \`--$optname' option are:
549 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
550 elif test -n "$new_default" ; then
551 error_check_extents=$new_default
552 error_check_typecheck=$new_default
553 error_check_bufpos=$new_default
554 error_check_gc=$new_default
555 error_check_malloc=$new_default
556 error_check_byte_code=$new_default
557 new_default= # reset this
564 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
565 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
566 archlibdir | docdir | package_path )
567 if test "$valomitted" = "yes"; then
568 if test "$#" = 0; then
569 (echo "$progname: Usage error:"
570 echo " " "The \`--$optname' option requires a value."
571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
578 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
579 Defining EXEC_PREFIX_USER_DEFINED
581 cat >> confdefs.h <<\EOF
582 #define EXEC_PREFIX_USER_DEFINED 1
586 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
587 Defining LISPDIR_USER_DEFINED
589 cat >> confdefs.h <<\EOF
590 #define LISPDIR_USER_DEFINED 1
594 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining SITELISPDIR_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define SITELISPDIR_USER_DEFINED 1
602 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining MODULEDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define MODULEDIR_USER_DEFINED 1
610 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining ETCDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define ETCDIR_USER_DEFINED 1
618 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining INFODIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define INFODIR_USER_DEFINED 1
626 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining INFOPATH_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define INFOPATH_USER_DEFINED 1
634 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining PACKAGE_PATH_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define PACKAGE_PATH_USER_DEFINED 1
643 { test "$extra_verbose" = "yes" && cat << \EOF
644 Defining INFODIR_USER_DEFINED
646 cat >> confdefs.h <<\EOF
647 #define INFODIR_USER_DEFINED 1
651 { test "$extra_verbose" = "yes" && cat << \EOF
652 Defining LISPDIR_USER_DEFINED
654 cat >> confdefs.h <<\EOF
655 #define LISPDIR_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining MODULEDIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define MODULEDIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining ETCDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define ETCDIR_USER_DEFINED 1
675 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining LOCKDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define LOCKDIR_USER_DEFINED 1
683 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining DOCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define DOCDIR_USER_DEFINED 1
691 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining ARCHLIBDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define ARCHLIBDIR_USER_DEFINED 1
704 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
707 "with_scrollbars" | \
711 l | lu | luc | luci | lucid ) val=lucid ;;
712 m | mo | mot | moti | motif ) val=motif ;;
713 athena3d | athena-3d ) val=athena3d ;;
714 a | at | ath | athe | athen | athena ) val=athena ;;
715 n | no | non | none ) val=no ;;
716 * ) (echo "$progname: Usage error:"
717 echo " " "The \`--$optname' option must have one of these values:
718 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
719 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
724 "use_minimal_tagbits" | \
725 "use_indexed_lrecord_implementation" | \
728 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
731 * ) (echo "$progname: Usage error:"
732 echo " " "Unrecognized option: $arg"
733 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
738 *-*-*) configuration="$arg" ;;
740 *) (echo "$progname: Usage error:"
741 echo " " "Unrecognized argument: $arg"
742 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
748 test -n "$cpp" && CPP="$cpp"
749 test -n "$cppflags" && CPPFLAGS="$cppflags"
750 test -n "$libs" && LIBS="$libs"
751 test -n "$ldflags" && LDFLAGS="$ldflags"
753 eval set x "$quoted_arguments"; shift
755 test "$extra_verbose" = "yes" && verbose=yes
757 test -n "$with_x" && with_x11="$with_x"
759 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
760 test "$with_system_malloc" = "default" && with_system_malloc=yes
765 if test "$with_cde $with_tooltalk" = "yes no"; then
766 (echo "$progname: Usage error:"
767 echo " " "--with-cde requires --with-tooltalk"
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
769 elif test "$with_tooltalk" = "no" ; then with_cde=no
770 elif test "$with_cde" = "yes"; then with_tooltalk=yes
777 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
778 if test -f "$dir/src/lisp.h" -a \
779 -f "$dir/lisp/version.el" ; then
784 if test -z "$srcdir" ; then
785 (echo "$progname: Usage error:"
786 echo " " "Neither the current directory nor its parent seem to
787 contain the XEmacs sources. If you do not want to build XEmacs in its
788 source tree, you should run \`$progname' in the directory in which
789 you wish to build XEmacs, using the \`--srcdir' option to say where the
790 sources may be found."
791 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
796 if test ! -f "$srcdir/src/lisp.h" -o \
797 ! -f "$srcdir/lisp/version.el" ; then
798 (echo "$progname: Usage error:"
799 echo " " "The directory specified with the \`--srcdir' option,
800 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
801 either run the \`$progname' script at the top of the XEmacs source
802 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
803 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
808 if test -z "$configuration"; then
809 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
810 if test -z "$configuration"; then
811 (echo "$progname: Usage error:"
812 echo " " "XEmacs has not been ported to this host type.
813 Try explicitly specifying the CONFIGURATION when rerunning configure."
814 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
818 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
819 echo "configure:820: checking whether ln -s works" >&5
822 if ln -s X conftestdata 2>/dev/null
825 ac_cv_prog_LN_S="ln -s"
829 LN_S="$ac_cv_prog_LN_S"
830 if test "$ac_cv_prog_LN_S" = "ln -s"; then
831 echo "$ac_t""yes" 1>&6
833 echo "$ac_t""no" 1>&6
837 for dir in lisp etc man info; do
838 if test ! -d "$dir" ; then
839 echo Making symbolic link to "$srcdir/$dir"
840 ${LN_S} "$srcdir/$dir" "$dir"
845 absolute_pwd="`pwd`";
846 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
848 else blddir="$absolute_pwd"; if test -d "/net"; then
849 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
850 blddir=`echo "$blddir" | \
851 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
858 . ) srcdir="$blddir" ;;
859 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
860 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
861 srcdir=`echo "$srcdir" | \
862 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
866 if test `pwd` != `sh -c cd $srcdir && pwd` \
867 && test -f "$srcdir/src/config.h"; then
868 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
869 echo " as a build directory right now; it has been configured in its own"
870 echo " right. To configure in another directory as well, you MUST"
871 echo " use GNU make. If you do not have GNU make, then you must"
872 echo " now do \`make distclean' in $srcdir,"
873 echo " and then run $progname again.") >&2
874 extrasub='/^VPATH[ ]*=/c\
880 vpath %.in $(srcdir)'
883 . "$srcdir/version.sh" || exit 1;
884 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
885 : "${extra_verbose=$beta}"
886 version="${emacs_major_version}.${emacs_minor_version}"
887 { test "$extra_verbose" = "yes" && cat << EOF
888 Defining EMACS_MAJOR_VERSION = $emacs_major_version
890 cat >> confdefs.h <<EOF
891 #define EMACS_MAJOR_VERSION $emacs_major_version
895 { test "$extra_verbose" = "yes" && cat << EOF
896 Defining EMACS_MINOR_VERSION = $emacs_minor_version
898 cat >> confdefs.h <<EOF
899 #define EMACS_MINOR_VERSION $emacs_minor_version
903 if test -n "$emacs_beta_version" ; then
904 if test "$beta" = "yes"; then
905 version="${version}-b${emacs_beta_version}"
906 { test "$extra_verbose" = "yes" && cat << EOF
907 Defining EMACS_BETA_VERSION = $emacs_beta_version
909 cat >> confdefs.h <<EOF
910 #define EMACS_BETA_VERSION $emacs_beta_version
915 version="${version}.${emacs_beta_version}"
916 { test "$extra_verbose" = "yes" && cat << EOF
917 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
919 cat >> confdefs.h <<EOF
920 #define EMACS_PATCH_LEVEL $emacs_beta_version
926 { test "$extra_verbose" = "yes" && cat << EOF
927 Defining XEMACS_CODENAME = "$xemacs_codename"
929 cat >> confdefs.h <<EOF
930 #define XEMACS_CODENAME "$xemacs_codename"
934 { test "$extra_verbose" = "yes" && cat << EOF
935 Defining EMACS_VERSION = "$version"
937 cat >> confdefs.h <<EOF
938 #define EMACS_VERSION "$version"
943 if test "$with_infodock" = "yes"; then
944 if test ! -f ../../ID-INSTALL; then
945 echo "Cannot build InfoDock without InfoDock sources"
950 if test "$with_infodock" = "yes"; then
951 { test "$extra_verbose" = "yes" && cat << EOF
952 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
954 cat >> confdefs.h <<EOF
955 #define INFODOCK_MAJOR_VERSION $infodock_major_version
959 { test "$extra_verbose" = "yes" && cat << EOF
960 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
962 cat >> confdefs.h <<EOF
963 #define INFODOCK_MINOR_VERSION $infodock_minor_version
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
970 cat >> confdefs.h <<EOF
971 #define INFODOCK_BUILD_VERSION $infodock_build_version
975 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
977 CPPFLAGS="$CPPFLAGS -DINFODOCK"
982 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
983 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
984 Defining ERROR_CHECK_EXTENTS
986 cat >> confdefs.h <<\EOF
987 #define ERROR_CHECK_EXTENTS 1
991 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
992 Defining ERROR_CHECK_TYPECHECK
994 cat >> confdefs.h <<\EOF
995 #define ERROR_CHECK_TYPECHECK 1
999 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1000 Defining ERROR_CHECK_BUFPOS
1002 cat >> confdefs.h <<\EOF
1003 #define ERROR_CHECK_BUFPOS 1
1007 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1008 Defining ERROR_CHECK_GC
1010 cat >> confdefs.h <<\EOF
1011 #define ERROR_CHECK_GC 1
1015 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1016 Defining ERROR_CHECK_MALLOC
1018 cat >> confdefs.h <<\EOF
1019 #define ERROR_CHECK_MALLOC 1
1023 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining ERROR_CHECK_BYTE_CODE
1026 cat >> confdefs.h <<\EOF
1027 #define ERROR_CHECK_BYTE_CODE 1
1031 if test "${debug:=$beta}" = "yes"; then
1032 use_assertions=yes memory_usage_stats=yes
1033 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1034 echo " xemacs will be linked with \"debug.o\""
1036 { test "$extra_verbose" = "yes" && cat << \EOF
1037 Defining DEBUG_XEMACS
1039 cat >> confdefs.h <<\EOF
1040 #define DEBUG_XEMACS 1
1045 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1046 Defining USE_ASSERTIONS
1048 cat >> confdefs.h <<\EOF
1049 #define USE_ASSERTIONS 1
1053 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1054 Defining MEMORY_USAGE_STATS
1056 cat >> confdefs.h <<\EOF
1057 #define MEMORY_USAGE_STATS 1
1063 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1064 echo "configure:1065: checking "host system type"" >&5
1065 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1066 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1067 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1068 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1069 echo "$ac_t""$configuration" 1>&6
1077 case "$canonical" in
1078 sparc-*-* ) machine=sparc ;;
1079 alpha*-*-* ) machine=alpha ;;
1080 vax-*-* ) machine=vax ;;
1081 mips-dec-* ) machine=pmax ;;
1082 mips-sgi-* ) machine=iris4d ;;
1083 mips*-linux ) machine=mips ;;
1084 romp-ibm-* ) machine=ibmrt ;;
1085 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1086 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1087 powerpc*-* ) machine=powerpc ;;
1088 hppa-*-* ) machine=hp800 ;;
1089 m88k-dg-* ) machine=aviion ;;
1090 m68*-sony-* ) machine=news ;;
1091 mips-sony-* ) machine=news-risc ;;
1092 clipper-* ) machine=clipper ;;
1093 arm-* ) machine=arm ;;
1094 ns32k-* ) machine=ns32000 ;;
1097 case "$canonical" in
1098 *-*-linux* ) opsys=linux ;;
1099 *-*-netbsd* ) opsys=netbsd ;;
1100 *-*-openbsd* ) opsys=openbsd ;;
1101 *-*-nextstep* ) opsys=nextstep ;;
1102 *-*-vms ) opsys=vms ;;
1104 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1105 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1106 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1107 *-dec-osf3* ) opsys=decosf3-1 ;;
1108 *-dec-osf4* ) opsys=decosf4-0 ;;
1110 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1111 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1112 *-*-ultrix* ) opsys=ultrix4-3 ;;
1114 *-*-aix3.1* ) opsys=aix3-1 ;;
1115 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1116 *-*-aix3* ) opsys=aix3-2 ;;
1117 *-*-aix4.0* ) opsys=aix4 ;;
1118 *-*-aix4.1* ) opsys=aix4-1 ;;
1119 *-*-aix4* ) opsys=aix4-2 ;;
1121 *-gnu* ) opsys=gnu ;;
1122 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1123 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1124 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1125 *-*-aos4.2 ) opsys=bsd4-2 ;;
1126 *-*-aos* ) opsys=bsd4-3 ;;
1127 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1128 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1129 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1130 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1131 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1132 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1133 if test -z "$NON_GNU_CPP" ; then
1134 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1135 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1139 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1140 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1143 case "$canonical" in
1146 case "$canonical" in
1147 i[3-9]86-*-netbsd*) machine=intel386 ;;
1148 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1149 machine=hp9000s300 ;;
1150 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1151 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1156 case "${canonical}" in
1157 i386-*-openbsd*) machine=intel386 ;;
1158 m68k-*-openbsd*) machine=hp9000s300 ;;
1159 mipsel-*-openbsd*) machine=pmax ;;
1163 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1164 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1166 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1167 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1169 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1171 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1173 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1175 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1177 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1179 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1180 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1181 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1184 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1186 *-convex-bsd* | *-convex-convexos* )
1187 machine=convex opsys=bsd4-3
1188 NON_GNU_CPP="cc -E -P"
1191 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1193 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1194 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1195 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1196 m88k-dg-dgux* ) opsys=dgux ;;
1198 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1199 m88k-motorola-sysv4* )
1200 machine=delta88k opsys=usg5-4-2
1202 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1204 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1205 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1207 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1209 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1210 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1211 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1214 case "`uname -r`" in
1215 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1216 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1218 NON_GNU_CPP="/lib/cpp"
1220 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1221 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1223 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1225 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1228 case "$canonical" in
1229 m68* ) machine=hp9000s300 ;;
1230 hppa* ) machine=hp800 ;;
1233 case "$canonical" in
1234 *-hp-hpux7* ) opsys=hpux ;;
1235 *-hp-hpux8* ) opsys=hpux8 ;;
1236 *-hp-hpux9* ) opsys=hpux9 ;;
1237 *-hp-hpux10* ) opsys=hpux10 ;;
1238 *-hp-hpux11* ) opsys=hpux11 ;;
1242 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1243 echo " xemacs will be linked with \"strcat.o\""
1246 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1247 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1248 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1250 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1253 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1254 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1256 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1257 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1258 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1259 romp-ibm-aos* ) opsys=bsd4-3 ;;
1260 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1261 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1263 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1264 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1266 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1268 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1270 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1272 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1274 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1276 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1278 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1280 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1282 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1284 mips-mips-usg* ) machine=mips4 ;;
1287 NON_GNU_CC="cc -systype bsd43"
1288 NON_GNU_CPP="cc -systype bsd43 -E"
1289 case "$canonical" in
1290 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1291 mips-mips-riscos5* ) opsys=riscos5 ;;
1294 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1295 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1297 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1299 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1301 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1302 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1304 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1306 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1308 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1310 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1312 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1313 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1315 mips-siemens-sysv* | mips-sni-sysv*)
1316 machine=mips-siemens opsys=usg5-4
1317 NON_GNU_CC=/usr/ccs/bin/cc
1318 NON_GNU_CPP=/usr/ccs/lib/cpp
1323 NON_GNU_CC=/usr/ccs/bin/cc
1324 NON_GNU_CPP=/usr/ccs/lib/cpp
1327 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1328 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1329 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1330 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1331 mips-sgi-irix6* ) opsys=irix6-0 ;;
1332 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1333 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1334 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1335 mips-sgi-irix* ) opsys=irix5-0 ;;
1337 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1338 *-sony-news* ) opsys=newsos5 ;;
1340 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1342 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1343 case "$canonical" in
1344 m68*-sunos1* ) machine=sun1 ;;
1345 m68*-sunos2* ) machine=sun2 ;;
1346 m68* ) machine=sun3 ;;
1347 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1348 i*86-*-* ) machine=intel386 ;;
1349 rs6000* ) machine=rs6000 ;;
1352 case "$canonical" in *-sunos5*)
1353 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1356 case "$canonical" in
1358 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1361 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1365 case "$canonical" in
1368 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1369 { test "$extra_verbose" = "yes" && cat << EOF
1370 Defining OS_RELEASE = $os_release
1372 cat >> confdefs.h <<EOF
1373 #define OS_RELEASE $os_release
1378 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1379 *-sunos4.0* ) opsys=sunos4-0 ;;
1380 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1381 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1382 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1383 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1384 *-mach* ) opsys=mach-bsd4-3 ;;
1388 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1390 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1393 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1395 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1396 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1398 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1400 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1402 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1403 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1405 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1407 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1410 case "$canonical" in
1411 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1412 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1413 *-mach* ) opsys=mach-bsd4-3 ;;
1417 ns16k-whitechapel-* ) machine=mg1 ;;
1419 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1423 case "$canonical" in
1424 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1425 *-isc2.2* ) opsys=isc2-2 ;;
1426 *-isc4.0* ) opsys=isc4-0 ;;
1427 *-isc4.* ) opsys=isc4-1
1428 GCC_TEST_OPTIONS=-posix
1429 NON_GCC_TEST_OPTIONS=-Xp
1431 *-isc* ) opsys=isc3-0 ;;
1432 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1433 *-esix* ) opsys=esix ;;
1434 *-mach* ) opsys=mach-bsd4-3 ;;
1435 *-xenix* ) opsys=xenix ;;
1436 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1437 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1438 *-bsdi4* ) opsys=bsdos4 ;;
1439 *-bsdi3* ) opsys=bsdos3 ;;
1440 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1441 *-bsdi2* ) opsys=bsdos2 ;;
1442 *-sco3.2v5* ) opsys=sco5 ;
1443 if test "$dynamic" = "yes" ; then
1444 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1446 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1448 *-sysv5* ) opsys=sco7 ;;
1449 *-386bsd* ) opsys=386bsd ;;
1450 *-freebsd* ) opsys=freebsd ;;
1451 *-nextstep* ) opsys=nextstep ;;
1452 *-pc-cygwin* ) opsys=cygwin32 ;;
1453 *-pc-mingw* ) opsys=mingw32 ;
1454 test -z "$with_tty" && with_tty="no";;
1458 m68k-*-linux* ) machine=m68k opsys=linux ;;
1462 if test -z "$machine" -o -z "$opsys"; then
1463 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1464 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1469 if test -z "$dynamic"; then
1471 hpux* | sunos4* ) dynamic=no ;;
1475 if test "$dynamic" = "yes"; then
1477 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1478 decosf* ) ld_call_shared="-call_shared" ;;
1480 else case "$opsys" in
1482 echo "Static linking is not supported on Solaris 2."
1483 echo "Rerun configure without specifying --dynamic=no."
1485 linux ) ld_call_shared="-Bstatic" ;;
1486 decosf* ) ld_call_shared="-non_shared" ;;
1490 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1492 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1493 { test "$extra_verbose" = "yes" && cat << EOF
1494 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1496 cat >> confdefs.h <<EOF
1497 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1502 machfile="m/${machine}.h"
1503 opsysfile="s/${opsys}.h"
1506 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1507 if test "$with_workshop $with_tooltalk" = "yes no"; then
1508 (echo "$progname: Usage error:"
1509 echo " " "--with-workshop requires --with-tooltalk"
1510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1511 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1512 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1515 if test "$with_workshop" = "yes"; then
1516 { test "$extra_verbose" = "yes" && cat << \EOF
1519 cat >> confdefs.h <<\EOF
1524 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1525 echo " xemacs will be linked with \"sunpro.o\""
1529 if test "$with_clash_detection" = "yes"; then
1530 { test "$extra_verbose" = "yes" && cat << \EOF
1531 Defining CLASH_DETECTION
1533 cat >> confdefs.h <<\EOF
1534 #define CLASH_DETECTION 1
1538 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1539 echo " xemacs will be linked with \"filelock.o\""
1543 test -n "$compiler" && CC="$compiler"
1544 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1547 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1548 if test "${CFLAGS-unset}" != unset
1549 then cflags_specified=yes;
1550 else cflags_specified=no;
1553 xe_save_CFLAGS="$CFLAGS"
1555 # Extract the first word of "gcc", so it can be a program name with args.
1556 set dummy gcc; ac_word=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1575 if test -n "$CC"; then
1576 echo "$ac_t""$CC" 1>&6
1578 echo "$ac_t""no" 1>&6
1581 if test -z "$CC"; then
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1593 for ac_dir in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir=.
1595 if test -f $ac_dir/$ac_word; then
1596 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1597 ac_prog_rejected=yes
1605 if test $ac_prog_rejected = yes; then
1606 # We found a bogon in the path, so make sure we never use it.
1607 set dummy $ac_cv_prog_CC
1609 if test $# -gt 0; then
1610 # We chose a different compiler from the bogus one.
1611 # However, it has the same basename, so the bogon will be chosen
1612 # first if we set CC to just the basename; use the full file name.
1614 set dummy "$ac_dir/$ac_word" "$@"
1621 if test -n "$CC"; then
1622 echo "$ac_t""$CC" 1>&6
1624 echo "$ac_t""no" 1>&6
1627 if test -z "$CC"; then
1628 case "`uname -s`" in
1630 # Extract the first word of "cl", so it can be a program name with args.
1631 set dummy cl; ac_word=$2
1632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_word" >&5
1635 if test -n "$CC"; then
1636 ac_cv_prog_CC="$CC" # Let the user override the test.
1638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1640 for ac_dir in $ac_dummy; do
1641 test -z "$ac_dir" && ac_dir=.
1642 if test -f $ac_dir/$ac_word; then
1650 if test -n "$CC"; then
1651 echo "$ac_t""$CC" 1>&6
1653 echo "$ac_t""no" 1>&6
1658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1662 echo "configure:1663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1665 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1666 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1667 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1668 ac_cpp='$CPP '"$xe_cppflags"
1669 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1670 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1673 cat > conftest.$ac_ext << EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1681 ac_cv_prog_cc_works=yes
1682 # If we can't run a trivial program, we are probably using a cross compiler.
1683 if (./conftest; exit) 2>/dev/null; then
1684 ac_cv_prog_cc_cross=no
1686 ac_cv_prog_cc_cross=yes
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1691 ac_cv_prog_cc_works=no
1695 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1696 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1697 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1698 ac_cpp='$CPP '"$xe_cppflags"
1699 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1700 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1703 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1704 if test $ac_cv_prog_cc_works = no; then
1705 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1707 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1708 echo "configure:1709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1709 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1710 cross_compiling=$ac_cv_prog_cc_cross
1712 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether we are using GNU C" >&5
1715 cat > conftest.c <<EOF
1720 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1726 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1728 if test $ac_cv_prog_gcc = yes; then
1734 ac_test_CFLAGS="${CFLAGS+set}"
1735 ac_save_CFLAGS="$CFLAGS"
1737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1738 echo "configure:1739: checking whether ${CC-cc} accepts -g" >&5
1740 echo 'void f(){}' > conftest.c
1741 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1749 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1750 if test "$ac_test_CFLAGS" = set; then
1751 CFLAGS="$ac_save_CFLAGS"
1752 elif test $ac_cv_prog_cc_g = yes; then
1753 if test "$GCC" = yes; then
1759 if test "$GCC" = yes; then
1766 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1768 # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_word" >&5
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1778 for ac_dir in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir=.
1780 if test -f $ac_dir/$ac_word; then
1788 if test -n "$CC"; then
1789 echo "$ac_t""$CC" 1>&6
1791 echo "$ac_t""no" 1>&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1806 for ac_dir in $ac_dummy; do
1807 test -z "$ac_dir" && ac_dir=.
1808 if test -f $ac_dir/$ac_word; then
1809 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1810 ac_prog_rejected=yes
1818 if test $ac_prog_rejected = yes; then
1819 # We found a bogon in the path, so make sure we never use it.
1820 set dummy $ac_cv_prog_CC
1822 if test $# -gt 0; then
1823 # We chose a different compiler from the bogus one.
1824 # However, it has the same basename, so the bogon will be chosen
1825 # first if we set CC to just the basename; use the full file name.
1827 set dummy "$ac_dir/$ac_word" "$@"
1834 if test -n "$CC"; then
1835 echo "$ac_t""$CC" 1>&6
1837 echo "$ac_t""no" 1>&6
1840 if test -z "$CC"; then
1841 case "`uname -s`" in
1843 # Extract the first word of "cl", so it can be a program name with args.
1844 set dummy cl; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1863 if test -n "$CC"; then
1864 echo "$ac_t""$CC" 1>&6
1866 echo "$ac_t""no" 1>&6
1871 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1874 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1875 echo "configure:1876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1878 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1879 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1880 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1881 ac_cpp='$CPP '"$xe_cppflags"
1882 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1883 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1886 cat > conftest.$ac_ext << EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 ac_cv_prog_cc_works=yes
1895 # If we can't run a trivial program, we are probably using a cross compiler.
1896 if (./conftest; exit) 2>/dev/null; then
1897 ac_cv_prog_cc_cross=no
1899 ac_cv_prog_cc_cross=yes
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1904 ac_cv_prog_cc_works=no
1908 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1909 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1910 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1911 ac_cpp='$CPP '"$xe_cppflags"
1912 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1913 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1917 if test $ac_cv_prog_cc_works = no; then
1918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1923 cross_compiling=$ac_cv_prog_cc_cross
1925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether we are using GNU C" >&5
1928 cat > conftest.c <<EOF
1933 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1939 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1941 if test $ac_cv_prog_gcc = yes; then
1947 ac_test_CFLAGS="${CFLAGS+set}"
1948 ac_save_CFLAGS="$CFLAGS"
1950 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether ${CC-cc} accepts -g" >&5
1953 echo 'void f(){}' > conftest.c
1954 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1962 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1963 if test "$ac_test_CFLAGS" = set; then
1964 CFLAGS="$ac_save_CFLAGS"
1965 elif test $ac_cv_prog_cc_g = yes; then
1966 if test "$GCC" = yes; then
1972 if test "$GCC" = yes; then
1979 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1981 # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_word" >&5
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 for ac_dir in $ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
2001 if test -n "$CC"; then
2002 echo "$ac_t""$CC" 1>&6
2004 echo "$ac_t""no" 1>&6
2007 if test -z "$CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2011 echo "configure:2012: checking for $ac_word" >&5
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2019 for ac_dir in $ac_dummy; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/$ac_word; then
2022 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2023 ac_prog_rejected=yes
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2035 if test $# -gt 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 set dummy "$ac_dir/$ac_word" "$@"
2047 if test -n "$CC"; then
2048 echo "$ac_t""$CC" 1>&6
2050 echo "$ac_t""no" 1>&6
2053 if test -z "$CC"; then
2054 case "`uname -s`" in
2056 # Extract the first word of "cl", so it can be a program name with args.
2057 set dummy cl; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 for ac_dir in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2076 if test -n "$CC"; then
2077 echo "$ac_t""$CC" 1>&6
2079 echo "$ac_t""no" 1>&6
2084 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2087 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2088 echo "configure:2089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2091 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2092 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2093 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2094 ac_cpp='$CPP '"$xe_cppflags"
2095 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2096 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2099 cat > conftest.$ac_ext << EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2106 if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2107 ac_cv_prog_cc_works=yes
2108 # If we can't run a trivial program, we are probably using a cross compiler.
2109 if (./conftest; exit) 2>/dev/null; then
2110 ac_cv_prog_cc_cross=no
2112 ac_cv_prog_cc_cross=yes
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 ac_cv_prog_cc_works=no
2121 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2122 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2123 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2124 ac_cpp='$CPP '"$xe_cppflags"
2125 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2126 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2129 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2130 if test $ac_cv_prog_cc_works = no; then
2131 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2133 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2134 echo "configure:2135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2135 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2136 cross_compiling=$ac_cv_prog_cc_cross
2138 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2139 echo "configure:2140: checking whether we are using GNU C" >&5
2141 cat > conftest.c <<EOF
2146 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2152 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2154 if test $ac_cv_prog_gcc = yes; then
2160 ac_test_CFLAGS="${CFLAGS+set}"
2161 ac_save_CFLAGS="$CFLAGS"
2163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2164 echo "configure:2165: checking whether ${CC-cc} accepts -g" >&5
2166 echo 'void f(){}' > conftest.c
2167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2175 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2176 if test "$ac_test_CFLAGS" = set; then
2177 CFLAGS="$ac_save_CFLAGS"
2178 elif test $ac_cv_prog_cc_g = yes; then
2179 if test "$GCC" = yes; then
2185 if test "$GCC" = yes; then
2193 CFLAGS="$xe_save_CFLAGS"
2196 test -n "$CPP" -a -d "$CPP" && CPP=
2198 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to run the C preprocessor" >&5
2202 # On Suns, sometimes $CPP names a directory.
2203 if test -n "$CPP" && test -d "$CPP"; then
2206 if test -z "$CPP"; then
2208 # This must be in double quotes, not single quotes, because CPP may get
2209 # substituted into the Makefile and "${CC-cc}" will confuse make.
2211 # On the NeXT, cc -E runs the code through the compiler's parser,
2212 # not just through cpp.
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2226 echo "configure: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2229 CPP="${CC-cc} -E -traditional-cpp"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2237 { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2239 if test -z "$ac_err"; then
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 CPP="${CC-cc} -nologo -E"
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2254 { (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2256 if test -z "$ac_err"; then
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2270 ac_cv_prog_CPP="$CPP"
2271 CPP="$ac_cv_prog_CPP"
2273 ac_cv_prog_CPP="$CPP"
2275 echo "$ac_t""$CPP" 1>&6
2278 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2279 echo "configure:2280: checking for AIX" >&5
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2289 egrep "yes" >/dev/null 2>&1; then
2291 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2292 Defining _ALL_SOURCE
2294 cat >> confdefs.h <<\EOF
2295 #define _ALL_SOURCE 1
2301 echo "$ac_t""no" 1>&6
2307 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2308 echo "configure:2309: checking for GNU libc" >&5
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 #include <features.h>
2315 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2316 #error Not a GNU libc system :-(
2317 ******* ======= ******** &&&&&&&&
2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2332 echo "$ac_t""$have_glibc" 1>&6
2333 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2334 Defining _GNU_SOURCE
2336 cat >> confdefs.h <<\EOF
2337 #define _GNU_SOURCE 1
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2347 #if defined __SUNPRO_C
2349 #elif defined __DECC
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 case "$conftest_rc" in
2365 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2366 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2374 echo "Extracting information from the machine- and system-dependent headers..."
2376 tempcname="conftest.c"
2380 cat > $tempcname <<EOF
2382 #define C_SWITCH_SITE
2383 #define C_SWITCH_X_SITE
2384 #define LD_SWITCH_SITE
2385 #define LD_SWITCH_X_SITE
2386 #define LD_SWITCH_X_SITE_AUX
2387 #define OS_RELEASE $os_release
2388 #include "$srcdir/src/$opsysfile"
2389 #include "$srcdir/src/$machfile"
2391 #ifndef LIBS_MACHINE
2392 #define LIBS_MACHINE
2394 configure___ libs_machine=LIBS_MACHINE
2399 configure___ libs_system=LIBS_SYSTEM
2401 #ifndef LIBS_TERMCAP
2402 #define LIBS_TERMCAP
2404 configure___ libs_termcap=LIBS_TERMCAP
2406 #ifndef LIB_STANDARD
2407 #define LIB_STANDARD
2409 configure___ libs_standard=LIB_STANDARD
2412 #ifndef OBJECTS_MACHINE
2413 #define OBJECTS_MACHINE
2415 configure___ objects_machine=OBJECTS_MACHINE
2417 #ifndef OBJECTS_SYSTEM
2418 #define OBJECTS_SYSTEM
2420 configure___ objects_system=OBJECTS_SYSTEM
2423 #ifndef C_SWITCH_MACHINE
2424 #define C_SWITCH_MACHINE
2426 configure___ c_switch_machine=C_SWITCH_MACHINE
2428 #ifndef C_SWITCH_SYSTEM
2429 #define C_SWITCH_SYSTEM
2431 configure___ c_switch_system=C_SWITCH_SYSTEM
2434 #ifndef LD_SWITCH_MACHINE
2435 #define LD_SWITCH_MACHINE
2437 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2439 #ifndef LD_SWITCH_SYSTEM
2440 #define LD_SWITCH_SYSTEM
2442 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2446 #define UNEXEC "unexec.o"
2448 configure___ unexec=UNEXEC
2451 #ifndef LD_SWITCH_SHARED
2452 #define LD_SWITCH_SHARED "-c"
2454 configure___ ld_switch_shared=LD_SWITCH_SHARED
2457 #ifdef ORDINARY_LINK
2458 #define LD "\$(CC) \$(CFLAGS)"
2459 #else /* no ORDINARY LINK */
2460 #ifdef COFF_ENCAPSULATE
2461 #define LD "\$(CC) -nostdlib"
2462 #else /* not COFF_ENCAPSULATE */
2465 #else /* ! defined (LINKER) */
2467 #endif /* ! defined (LINKER) */
2468 #endif /* ! defined (COFF_ENCAPSULATE) */
2469 #endif /* not ORDINARY_LINK */
2475 configure___ lib_gcc=LIB_GCC
2477 #ifndef LD_TEXT_START_ADDR
2478 #define LD_TEXT_START_ADDR
2480 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2483 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2485 #ifdef COFF_ENCAPSULATE
2486 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2487 #else /* ! defined (COFF_ENCAPSULATE) */
2488 #define START_FILES "pre-crt0.o /lib/crt0.o"
2489 #endif /* ! defined (COFF_ENCAPSULATE) */
2490 #else /* ! defined (NO_REMAP) */
2491 #define START_FILES "ecrt0.o"
2492 #endif /* ! defined (NO_REMAP) */
2493 #endif /* no ORDINARY_LINK */
2497 configure___ start_files=START_FILES
2499 #ifdef ORDINARY_LINK
2500 configure___ ordinary_link=yes
2502 configure___ ordinary_link=no
2505 #ifdef SYSTEM_MALLOC
2506 configure___ system_malloc=yes
2508 configure___ system_malloc=no
2512 configure___ have_terminfo=yes
2514 configure___ have_terminfo=no
2517 #ifdef MAIL_USE_FLOCK
2518 configure___ mail_use_flock=yes
2520 configure___ mail_use_flock=no
2523 #ifdef MAIL_USE_LOCKF
2524 configure___ mail_use_lockf=yes
2526 configure___ mail_use_lockf=no
2529 #ifdef HAVE_WIN32_PROCESSES
2530 configure___ win32_processes=yes
2532 configure___ win32_processes=no
2537 CPP=`eval "echo $CPP $CPPFLAGS"`
2538 eval `$CPP -Isrc $tempcname \
2539 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2543 test "$extra_verbose" = "yes" && \
2544 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 ""
2546 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2548 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2550 if test "$cflags_specified" = "no"; then
2551 if test "$GCC" = "yes"; then
2552 CFLAGS="-g -O3 -Wall -Wno-switch"
2553 elif test "$__SUNPRO_C" = "yes"; then
2555 sol2 ) CFLAGS="-v -xO4" ;;
2556 sunos4* ) CFLAGS="-xO2";;
2558 elif test "$__DECC" = "yes"; then
2560 elif test "$CC" = "xlc"; then
2561 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2567 if test "$GCC" = "yes"; then
2568 set x $ld_switch_system; shift; ld_switch_system=""
2569 while test -n "$1"; do
2571 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2572 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2574 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2580 if test "$GCC" = "yes"; then
2581 set x $ld_switch_machine; shift; ld_switch_machine=""
2582 while test -n "$1"; do
2584 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2585 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2587 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2593 if test "$GCC" = "yes"; then
2594 set x $LDFLAGS; shift; LDFLAGS=""
2595 while test -n "$1"; do
2597 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2598 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2600 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2606 if test "$GCC" = "yes"; then
2607 set x $ld_call_shared; shift; ld_call_shared=""
2608 while test -n "$1"; do
2610 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2611 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2613 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2619 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2620 echo " xemacs will be linked with \"$objects_machine\""
2622 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2623 echo " xemacs will be linked with \"$objects_system\""
2625 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2626 echo " xemacs will be linked with \"$unexec\""
2629 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2630 echo "configure:2631: checking for dynodump" >&5
2631 if test "$unexec" != "unexsol2.o"; then
2632 echo "$ac_t""no" 1>&6
2634 echo "$ac_t""yes" 1>&6
2635 { test "$extra_verbose" = "yes" && cat << \EOF
2638 cat >> confdefs.h <<\EOF
2643 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2644 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2646 sparc ) dynodump_arch=sparc ;;
2647 *86* ) dynodump_arch=i386 ;;
2648 powerpc ) dynodump_arch=ppc ;;
2650 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
2654 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2656 if test "$unexec" = "unexaix.o"; then
2657 if test "$dynamic" = "no"; then
2658 start_flags="-Wl,-bnso,-bnodelcsect"
2659 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2660 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2661 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2663 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2664 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2667 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2668 echo "configure:2669: checking for terminateAndUnload in -lC" >&5
2669 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2671 xe_check_libs=" -lC "
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2678 char terminateAndUnload();
2681 terminateAndUnload()
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2686 eval "ac_cv_lib_$ac_lib_var=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_lib_$ac_lib_var=no"
2696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2697 echo "$ac_t""yes" 1>&6
2698 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2700 echo "$ac_t""no" 1>&6
2705 elif test -n "$ld_text_start_addr"; then
2706 start_flags="-T $ld_text_start_addr -e __start"
2712 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2713 test -z "$linker" && linker='$(CC) -nostdlib'
2714 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2716 test "$GCC" != "yes" && lib_gcc=
2722 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2723 if test -n "$site_libraries"; then
2724 for arg in $site_libraries; do
2727 * ) test -d "$arg" || \
2728 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2731 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2735 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2736 if test -n "$site_includes"; then
2737 for arg in $site_includes; do
2740 * ) test -d "$arg" || \
2741 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2744 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2748 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2749 if test -n "$site_prefixes"; then
2750 for dir in $site_prefixes; do
2751 lib_dir="${dir}/lib"
2752 inc_dir="${dir}/include"
2753 if test ! -d "$dir"; then
2754 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2755 elif test ! -d "$lib_dir"; then
2756 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2758 if test -d "$inc_dir"; then
2759 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
2761 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
2767 for dir in "/usr/ccs/lib"; do
2768 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2771 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2772 if test -n "$site_runtime_libraries"; then
2773 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2778 if test "$dynamic" = "no"; then add_runtime_path=no
2779 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2780 else case "$opsys" in
2781 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2782 * ) add_runtime_path=no ;;
2786 if test "$add_runtime_path" = "yes"; then
2787 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2788 echo "configure:2789: checking "for runtime libraries flag"" >&5
2790 sol2 ) dash_r="-R" ;;
2791 decosf* | linux* | irix*) dash_r="-rpath " ;;
2794 for try_dash_r in "-R" "-R " "-rpath "; do
2795 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2797 if test "$GCC" = "yes"; then
2798 set x $xe_check_libs; shift; xe_check_libs=""
2799 while test -n "$1"; do
2801 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2802 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2804 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819 dash_r="$try_dash_r"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2826 test -n "$dash_r" && break
2829 if test -n "$dash_r";
2830 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2831 else echo "$ac_t""NONE" 1>&6
2835 xe_add_unique_runpath_dir='
2837 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2839 if test "$xe_add_p" = "yes"; then
2840 test -n "$runpath" && runpath="${runpath}:"
2841 runpath="${runpath}${xe_runpath_dir}"
2842 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2848 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2849 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2850 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2852 runpath="" runpath_dirs=""
2853 if test -n "$LD_RUN_PATH"; then
2854 runpath="$LD_RUN_PATH"
2855 elif test "$GCC" = "yes"; then
2856 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2857 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2858 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2859 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2860 case "$arg" in P,* | -L* | -R* )
2861 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2863 xe_runpath_dir="$dir"
2864 test "$xe_runpath_dir" != "/lib" -a \
2865 "$xe_runpath_dir" != "/usr/lib" -a \
2866 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2867 eval "$xe_add_unique_runpath_dir"
2872 ld_switch_run="$ld_switch_run_save"
2875 for arg in $ld_switch_site $ld_switch_x_site; do
2876 case "$arg" in -L*) {
2877 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2878 test "$xe_runpath_dir" != "/lib" -a \
2879 "$xe_runpath_dir" != "/usr/lib" -a \
2880 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2881 eval "$xe_add_unique_runpath_dir"
2884 if test "$opsys $need_motif" = "sol2 yes"; then
2885 xe_runpath_dir="/opt/SUNWdt/lib";
2886 eval "$xe_add_unique_runpath_dir";
2889 if test -n "$runpath"; then
2890 ld_switch_run="${dash_r}${runpath}"
2892 if test "$GCC" = "yes"; then
2893 set x $ld_switch_run; shift; ld_switch_run=""
2894 while test -n "$1"; do
2896 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2897 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2899 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2904 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2912 if test "$with_dlmalloc" != "no"; then
2917 after_morecore_hook_exists=yes
2918 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2919 echo "configure:2920: checking for malloc_get_state" >&5
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* System header to define __stub macros and hopefully few prototypes,
2925 which can conflict with char malloc_get_state(); below. */
2927 /* Override any gcc2 internal prototype to avoid an error. */
2928 /* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
2930 char malloc_get_state();
2934 /* The GNU C library defines this for functions which it implements
2935 to always fail with ENOSYS. Some functions are actually named
2936 something starting with __ and the normal name is an alias. */
2937 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947 eval "ac_cv_func_malloc_get_state=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 eval "ac_cv_func_malloc_get_state=no"
2956 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2957 echo "$ac_t""yes" 1>&6
2960 echo "$ac_t""no" 1>&6
2964 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2965 echo "configure:2966: checking for malloc_set_state" >&5
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* System header to define __stub macros and hopefully few prototypes,
2971 which can conflict with char malloc_set_state(); below. */
2973 /* Override any gcc2 internal prototype to avoid an error. */
2974 /* We use char because int might match the return type of a gcc2
2975 builtin and then its argument prototype would still apply. */
2976 char malloc_set_state();
2980 /* The GNU C library defines this for functions which it implements
2981 to always fail with ENOSYS. Some functions are actually named
2982 something starting with __ and the normal name is an alias. */
2983 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2993 eval "ac_cv_func_malloc_set_state=yes"
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2998 eval "ac_cv_func_malloc_set_state=no"
3002 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3006 echo "$ac_t""no" 1>&6
3010 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3011 echo "configure:3012: checking whether __after_morecore_hook exists" >&5
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 extern void (* __after_morecore_hook)();
3017 __after_morecore_hook = 0
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3022 echo "$ac_t""yes" 1>&6
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 echo "$ac_t""no" 1>&6
3028 after_morecore_hook_exists=no
3031 if test "$system_malloc" = "yes" ; then
3034 (The GNU allocators don't work with this system configuration)."
3035 elif test "$with_system_malloc" = "yes" ; then
3038 (User chose not to use GNU allocators)."
3039 elif test "$with_debug_malloc" = "yes" ; then
3042 (User chose to use Debugging Malloc)."
3045 if test "$doug_lea_malloc" = "yes" ; then
3046 if test "$GNU_MALLOC" = yes ; then
3048 (Using Doug Lea's new malloc from the GNU C Library.)"
3050 { test "$extra_verbose" = "yes" && cat << \EOF
3051 Defining DOUG_LEA_MALLOC
3053 cat >> confdefs.h <<\EOF
3054 #define DOUG_LEA_MALLOC 1
3058 if test "$after_morecore_hook_exists" = "no" ; then
3060 (Using Doug Lea's new malloc from the Linux C Library.)"
3061 { test "$extra_verbose" = "yes" && cat << \EOF
3062 Defining _NO_MALLOC_WARNING_
3064 cat >> confdefs.h <<\EOF
3065 #define _NO_MALLOC_WARNING_ 1
3070 use_minimal_tagbits=yes
3076 # Extract the first word of "ranlib", so it can be a program name with args.
3077 set dummy ranlib; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3081 if test -n "$RANLIB"; then
3082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_prog_RANLIB="ranlib"
3094 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3096 RANLIB="$ac_cv_prog_RANLIB"
3097 if test -n "$RANLIB"; then
3098 echo "$ac_t""$RANLIB" 1>&6
3100 echo "$ac_t""no" 1>&6
3104 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3105 if test -f $ac_dir/install-sh; then
3107 ac_install_sh="$ac_aux_dir/install-sh -c"
3109 elif test -f $ac_dir/install.sh; then
3111 ac_install_sh="$ac_aux_dir/install.sh -c"
3115 if test -z "$ac_aux_dir"; then
3116 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3118 ac_config_guess=$ac_aux_dir/config.guess
3119 ac_config_sub=$ac_aux_dir/config.sub
3120 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3122 # Find a good install program. We prefer a C program (faster),
3123 # so one script is as good as another. But avoid the broken or
3124 # incompatible versions:
3125 # SysV /etc/install, /usr/sbin/install
3126 # SunOS /usr/etc/install
3127 # IRIX /sbin/install
3129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3132 # ./install, which can be erroneously created by make from ./install.sh.
3133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3134 echo "configure:3135: checking for a BSD compatible install" >&5
3135 if test -z "$INSTALL"; then
3137 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3138 for ac_dir in $PATH; do
3139 # Account for people who put trailing slashes in PATH elements.
3141 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3143 # OSF1 and SCO ODT 3.0 have their own names for install.
3144 # Don't use installbsd from OSF since it installs stuff as root
3146 for ac_prog in ginstall scoinst install; do
3147 if test -f $ac_dir/$ac_prog; then
3148 if test $ac_prog = install &&
3149 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3150 # AIX install. It has an incompatible calling convention.
3153 ac_cv_path_install="$ac_dir/$ac_prog -c"
3163 if test "${ac_cv_path_install+set}" = set; then
3164 INSTALL="$ac_cv_path_install"
3166 # As a last resort, use the slow shell script. We don't cache a
3167 # path for INSTALL within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the path is relative.
3170 INSTALL="$ac_install_sh"
3173 echo "$ac_t""$INSTALL" 1>&6
3175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3176 # It thinks the first close brace ends the variable substitution.
3177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3183 for ac_prog in 'bison -y' byacc
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_word" >&5
3190 if test -n "$YACC"; then
3191 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3195 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_YACC="$ac_prog"
3204 YACC="$ac_cv_prog_YACC"
3205 if test -n "$YACC"; then
3206 echo "$ac_t""$YACC" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 test -n "$YACC" && break
3213 test -n "$YACC" || YACC="yacc"
3216 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_hdr" >&5
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3228 { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3230 if test -z "$ac_err"; then
3232 eval "ac_cv_header_$ac_safe=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_header_$ac_safe=no"
3241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3244 { test "$extra_verbose" = "yes" && cat << EOF
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_hdr 1
3253 echo "$ac_t""no" 1>&6
3257 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_hdr" >&5
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3271 if test -z "$ac_err"; then
3273 eval "ac_cv_header_$ac_safe=yes"
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 eval "ac_cv_header_$ac_safe=no"
3282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3285 { test "$extra_verbose" = "yes" && cat << EOF
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_hdr 1
3294 echo "$ac_t""no" 1>&6
3298 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_hdr" >&5
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3310 { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3312 if test -z "$ac_err"; then
3314 eval "ac_cv_header_$ac_safe=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_header_$ac_safe=no"
3323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3326 { test "$extra_verbose" = "yes" && cat << EOF
3329 cat >> confdefs.h <<EOF
3330 #define $ac_tr_hdr 1
3335 echo "$ac_t""no" 1>&6
3339 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3340 echo "configure:3341: checking for sys/wait.h that is POSIX.1 compatible" >&5
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 #include <sys/types.h>
3346 #include <sys/wait.h>
3348 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3351 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3356 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361 ac_cv_header_sys_wait_h=yes
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 ac_cv_header_sys_wait_h=no
3370 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3371 if test $ac_cv_header_sys_wait_h = yes; then
3372 { test "$extra_verbose" = "yes" && cat << \EOF
3373 Defining HAVE_SYS_WAIT_H
3375 cat >> confdefs.h <<\EOF
3376 #define HAVE_SYS_WAIT_H 1
3382 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3383 echo "configure:3384: checking for ANSI C header files" >&5
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3394 { (eval echo configure:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3396 if test -z "$ac_err"; then
3398 ac_cv_header_stdc=yes
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 ac_cv_header_stdc=no
3408 if test $ac_cv_header_stdc = yes; then
3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "memchr" >/dev/null 2>&1; then
3420 ac_cv_header_stdc=no
3426 if test $ac_cv_header_stdc = yes; then
3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "free" >/dev/null 2>&1; then
3438 ac_cv_header_stdc=no
3444 if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3450 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3451 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3453 int main () { int i; for (i = 0; i < 256; i++)
3454 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3458 if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3466 ac_cv_header_stdc=no
3471 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3472 if test $ac_cv_header_stdc = yes; then
3473 { test "$extra_verbose" = "yes" && cat << \EOF
3474 Defining STDC_HEADERS
3476 cat >> confdefs.h <<\EOF
3477 #define STDC_HEADERS 1
3483 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3484 echo "configure:3485: checking whether time.h and sys/time.h may both be included" >&5
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3490 #include <sys/time.h>
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 ac_cv_header_time=yes
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 ac_cv_header_time=no
3507 echo "$ac_t""$ac_cv_header_time" 1>&6
3508 if test $ac_cv_header_time = yes; then
3509 { test "$extra_verbose" = "yes" && cat << \EOF
3510 Defining TIME_WITH_SYS_TIME
3512 cat >> confdefs.h <<\EOF
3513 #define TIME_WITH_SYS_TIME 1
3519 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3520 echo "configure:3521: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3527 /* NetBSD declares sys_siglist in unistd.h. */
3528 #ifdef HAVE_UNISTD_H
3532 char *msg = *(sys_siglist + 1);
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3537 ac_cv_decl_sys_siglist=yes
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 ac_cv_decl_sys_siglist=no
3546 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3547 if test $ac_cv_decl_sys_siglist = yes; then
3548 { test "$extra_verbose" = "yes" && cat << \EOF
3549 Defining SYS_SIGLIST_DECLARED
3551 cat >> confdefs.h <<\EOF
3552 #define SYS_SIGLIST_DECLARED 1
3559 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3560 echo "configure:3561: checking for struct utimbuf" >&5
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #ifdef TIME_WITH_SYS_TIME
3565 #include <sys/time.h>
3568 #ifdef HAVE_SYS_TIME_H
3569 #include <sys/time.h>
3578 static struct utimbuf x; x.actime = x.modtime;
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3583 echo "$ac_t""yes" 1>&6
3584 { test "$extra_verbose" = "yes" && cat << \EOF
3585 Defining HAVE_STRUCT_UTIMBUF
3587 cat >> confdefs.h <<\EOF
3588 #define HAVE_STRUCT_UTIMBUF 1
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 echo "$ac_t""no" 1>&6
3600 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3601 echo "configure:3602: checking return type of signal handlers" >&5
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 #include <sys/types.h>
3612 extern "C" void (*signal (int, void (*)(int)))(int);
3614 void (*signal ()) ();
3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623 ac_cv_type_signal=void
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 ac_cv_type_signal=int
3632 echo "$ac_t""$ac_cv_type_signal" 1>&6
3633 { test "$extra_verbose" = "yes" && cat << EOF
3634 Defining RETSIGTYPE = $ac_cv_type_signal
3636 cat >> confdefs.h <<EOF
3637 #define RETSIGTYPE $ac_cv_type_signal
3642 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3643 echo "configure:3644: checking for size_t" >&5
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3657 ac_cv_type_size_t=yes
3660 ac_cv_type_size_t=no
3664 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3665 if test $ac_cv_type_size_t = no; then
3666 { test "$extra_verbose" = "yes" && cat << \EOF
3667 Defining size_t = unsigned
3669 cat >> confdefs.h <<\EOF
3670 #define size_t unsigned
3676 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3677 echo "configure:3678: checking for pid_t" >&5
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <sys/types.h>
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3691 ac_cv_type_pid_t=yes
3698 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3699 if test $ac_cv_type_pid_t = no; then
3700 { test "$extra_verbose" = "yes" && cat << \EOF
3701 Defining pid_t = int
3703 cat >> confdefs.h <<\EOF
3710 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3711 echo "configure:3712: checking for uid_t in sys/types.h" >&5
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <sys/types.h>
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "uid_t" >/dev/null 2>&1; then
3721 ac_cv_type_uid_t=yes
3729 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3730 if test $ac_cv_type_uid_t = no; then
3731 { test "$extra_verbose" = "yes" && cat << \EOF
3732 Defining uid_t = int
3734 cat >> confdefs.h <<\EOF
3739 { test "$extra_verbose" = "yes" && cat << \EOF
3740 Defining gid_t = int
3742 cat >> confdefs.h <<\EOF
3749 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3750 echo "configure:3751: checking for mode_t" >&5
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3762 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3764 ac_cv_type_mode_t=yes
3767 ac_cv_type_mode_t=no
3771 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3772 if test $ac_cv_type_mode_t = no; then
3773 { test "$extra_verbose" = "yes" && cat << \EOF
3774 Defining mode_t = int
3776 cat >> confdefs.h <<\EOF
3783 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3784 echo "configure:3785: checking for off_t" >&5
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 #include <sys/types.h>
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3798 ac_cv_type_off_t=yes
3805 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3806 if test $ac_cv_type_off_t = no; then
3807 { test "$extra_verbose" = "yes" && cat << \EOF
3808 Defining off_t = long
3810 cat >> confdefs.h <<\EOF
3817 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3818 echo "configure:3819: checking for ssize_t" >&5
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include <sys/types.h>
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3832 ac_cv_type_ssize_t=yes
3835 ac_cv_type_ssize_t=no
3839 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3840 if test $ac_cv_type_ssize_t = no; then
3841 { test "$extra_verbose" = "yes" && cat << \EOF
3842 Defining ssize_t = int
3844 cat >> confdefs.h <<\EOF
3852 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3853 echo "configure:3854: checking for struct timeval" >&5
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 #ifdef TIME_WITH_SYS_TIME
3858 #include <sys/time.h>
3861 #ifdef HAVE_SYS_TIME_H
3862 #include <sys/time.h>
3868 static struct timeval x; x.tv_sec = x.tv_usec;
3871 if { (eval echo configure:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873 echo "$ac_t""yes" 1>&6
3875 { test "$extra_verbose" = "yes" && cat << \EOF
3876 Defining HAVE_TIMEVAL
3878 cat >> confdefs.h <<\EOF
3879 #define HAVE_TIMEVAL 1
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 echo "$ac_t""no" 1>&6
3892 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3893 echo "configure:3894: checking whether struct tm is in sys/time.h or time.h" >&5
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <sys/types.h>
3901 struct tm *tp; tp->tm_sec;
3904 if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3906 ac_cv_struct_tm=time.h
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3911 ac_cv_struct_tm=sys/time.h
3915 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3916 if test $ac_cv_struct_tm = sys/time.h; then
3917 { test "$extra_verbose" = "yes" && cat << \EOF
3918 Defining TM_IN_SYS_TIME
3920 cat >> confdefs.h <<\EOF
3921 #define TM_IN_SYS_TIME 1
3927 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3928 echo "configure:3929: checking for tm_zone in struct tm" >&5
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933 #include <sys/types.h>
3934 #include <$ac_cv_struct_tm>
3936 struct tm tm; tm.tm_zone;
3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 ac_cv_struct_tm_zone=yes
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 ac_cv_struct_tm_zone=no
3950 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3951 if test "$ac_cv_struct_tm_zone" = yes; then
3952 { test "$extra_verbose" = "yes" && cat << \EOF
3953 Defining HAVE_TM_ZONE
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_TM_ZONE 1
3961 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3962 echo "configure:3963: checking for tzname" >&5
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3968 #ifndef tzname /* For SGI. */
3969 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 ac_cv_var_tzname=yes
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3986 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3987 if test $ac_cv_var_tzname = yes; then
3988 { test "$extra_verbose" = "yes" && cat << \EOF
3989 Defining HAVE_TZNAME
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_TZNAME 1
4000 echo $ac_n "checking for working const""... $ac_c" 1>&6
4001 echo "configure:4002: checking for working const" >&5
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4009 /* Ultrix mips cc rejects this. */
4010 typedef int charset[2]; const charset x;
4011 /* SunOS 4.1.1 cc rejects this. */
4012 char const *const *ccp;
4014 /* NEC SVR4.0.2 mips cc rejects this. */
4015 struct point {int x, y;};
4016 static struct point const zero = {0,0};
4017 /* AIX XL C 1.02.0.0 rejects this.
4018 It does not let you subtract one const X* pointer from another in an arm
4019 of an if-expression whose if-part is not a constant expression */
4020 const char *g = "string";
4021 ccp = &g + (g ? g-g : 0);
4022 /* HPUX 7.0 cc rejects these. */
4025 ccp = (char const *const *) p;
4026 { /* SCO 3.2v4 cc rejects this. */
4028 char const *s = 0 ? (char *) 0 : (char const *) 0;
4032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4034 const int *foo = &x[0];
4037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4038 typedef const int *iptr;
4042 { /* AIX XL C 1.02.0.0 rejects this saying
4043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4044 struct s { int j; const int *ap[3]; };
4045 struct s *b; b->j = 5;
4047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4064 echo "$ac_t""$ac_cv_c_const" 1>&6
4065 if test $ac_cv_c_const = no; then
4066 { test "$extra_verbose" = "yes" && cat << \EOF
4069 cat >> confdefs.h <<\EOF
4077 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4078 echo "configure:4079: checking whether ${MAKE-make} sets \${MAKE}" >&5
4079 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4081 cat > conftestmake <<\EOF
4083 @echo 'ac_maketemp="${MAKE}"'
4085 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4086 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4087 if test -n "$ac_maketemp"; then
4088 eval ac_cv_prog_make_${ac_make}_set=yes
4090 eval ac_cv_prog_make_${ac_make}_set=no
4093 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4097 echo "$ac_t""no" 1>&6
4098 SET_MAKE="MAKE=${MAKE-make}"
4102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4103 echo "configure:4104: checking whether byte ordering is bigendian" >&5
4105 ac_cv_c_bigendian=unknown
4106 # See if sys/param.h defines the BYTE_ORDER macro.
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 #include <sys/types.h>
4111 #include <sys/param.h>
4114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4119 if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 # It does; now see whether it defined to BIG_ENDIAN or not.
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <sys/types.h>
4126 #include <sys/param.h>
4129 #if BYTE_ORDER != BIG_ENDIAN
4134 if { (eval echo configure:4135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4136 ac_cv_c_bigendian=yes
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4141 ac_cv_c_bigendian=no
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4149 if test $ac_cv_c_bigendian = unknown; then
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4154 /* Are we little or big endian? From Harbison&Steele. */
4158 char c[sizeof (long)];
4161 exit (u.c[sizeof (long) - 1] == 1);
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4166 ac_cv_c_bigendian=no
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 ac_cv_c_bigendian=yes
4177 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4178 if test $ac_cv_c_bigendian = yes; then
4179 { test "$extra_verbose" = "yes" && cat << \EOF
4180 Defining WORDS_BIGENDIAN
4182 cat >> confdefs.h <<\EOF
4183 #define WORDS_BIGENDIAN 1
4190 echo $ac_n "checking size of short""... $ac_c" 1>&6
4191 echo "configure:4192: checking size of short" >&5
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4199 FILE *f=fopen("conftestval", "w");
4201 fprintf(f, "%d\n", sizeof(short));
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4207 ac_cv_sizeof_short=`cat conftestval`
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 ac_cv_sizeof_short=0
4216 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4217 { test "$extra_verbose" = "yes" && cat << EOF
4218 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4220 cat >> confdefs.h <<EOF
4221 #define SIZEOF_SHORT $ac_cv_sizeof_short
4226 if test "$ac_cv_sizeof_short" = 0; then
4228 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4229 echo "*** PANIC *** Please examine config.log for compilation errors."
4232 echo $ac_n "checking size of int""... $ac_c" 1>&6
4233 echo "configure:4234: checking size of int" >&5
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4241 FILE *f=fopen("conftestval", "w");
4243 fprintf(f, "%d\n", sizeof(int));
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4249 ac_cv_sizeof_int=`cat conftestval`
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4258 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4259 { test "$extra_verbose" = "yes" && cat << EOF
4260 Defining SIZEOF_INT = $ac_cv_sizeof_int
4262 cat >> confdefs.h <<EOF
4263 #define SIZEOF_INT $ac_cv_sizeof_int
4268 echo $ac_n "checking size of long""... $ac_c" 1>&6
4269 echo "configure:4270: checking size of long" >&5
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4277 FILE *f=fopen("conftestval", "w");
4279 fprintf(f, "%d\n", sizeof(long));
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4285 ac_cv_sizeof_long=`cat conftestval`
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4294 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4295 { test "$extra_verbose" = "yes" && cat << EOF
4296 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4298 cat >> confdefs.h <<EOF
4299 #define SIZEOF_LONG $ac_cv_sizeof_long
4304 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4305 echo "configure:4306: checking size of long long" >&5
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4313 FILE *f=fopen("conftestval", "w");
4315 fprintf(f, "%d\n", sizeof(long long));
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4321 ac_cv_sizeof_long_long=`cat conftestval`
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 ac_cv_sizeof_long_long=0
4330 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4331 { test "$extra_verbose" = "yes" && cat << EOF
4332 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4334 cat >> confdefs.h <<EOF
4335 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4340 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4341 echo "configure:4342: checking size of void *" >&5
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4349 FILE *f=fopen("conftestval", "w");
4351 fprintf(f, "%d\n", sizeof(void *));
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4357 ac_cv_sizeof_void_p=`cat conftestval`
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 ac_cv_sizeof_void_p=0
4366 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4367 { test "$extra_verbose" = "yes" && cat << EOF
4368 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4370 cat >> confdefs.h <<EOF
4371 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4377 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4378 echo "configure:4379: checking for long file names" >&5
4380 ac_cv_sys_long_file_names=yes
4381 # Test for long file names in all the places we know might matter:
4382 # . the current directory, where building will happen
4383 # $prefix/lib where we will be installing things
4384 # $exec_prefix/lib likewise
4385 # eval it to expand exec_prefix.
4386 # $TMPDIR if set, where it might want to write temporary files
4387 # if $TMPDIR is not set:
4388 # /tmp where it might want to write temporary files
4391 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4392 ac_tmpdirs="$TMPDIR"
4394 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4396 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4397 test -d $ac_dir || continue
4398 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4399 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4400 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4401 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4402 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4403 ac_cv_sys_long_file_names=no
4404 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4407 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4410 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4411 if test $ac_cv_sys_long_file_names = yes; then
4412 { test "$extra_verbose" = "yes" && cat << \EOF
4413 Defining HAVE_LONG_FILE_NAMES
4415 cat >> confdefs.h <<\EOF
4416 #define HAVE_LONG_FILE_NAMES 1
4423 echo $ac_n "checking for sin""... $ac_c" 1>&6
4424 echo "configure:4425: checking for sin" >&5
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* System header to define __stub macros and hopefully few prototypes,
4430 which can conflict with char sin(); below. */
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4439 /* The GNU C library defines this for functions which it implements
4440 to always fail with ENOSYS. Some functions are actually named
4441 something starting with __ and the normal name is an alias. */
4442 #if defined (__stub_sin) || defined (__stub___sin)
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4452 eval "ac_cv_func_sin=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4457 eval "ac_cv_func_sin=no"
4461 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4465 echo "$ac_t""no" 1>&6
4467 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4468 echo "configure:4469: checking for sin in -lm" >&5
4469 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4471 xe_check_libs=" -lm "
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4500 { test "$extra_verbose" = "yes" && cat << EOF
4503 cat >> confdefs.h <<EOF
4504 #define $ac_tr_lib 1
4508 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4511 echo "$ac_t""no" 1>&6
4518 { test "$extra_verbose" = "yes" && cat << \EOF
4519 Defining LISP_FLOAT_TYPE
4521 cat >> confdefs.h <<\EOF
4522 #define LISP_FLOAT_TYPE 1
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 { test "$extra_verbose" = "yes" && cat << \EOF
4538 Defining HAVE_INVERSE_HYPERBOLIC
4540 cat >> confdefs.h <<\EOF
4541 #define HAVE_INVERSE_HYPERBOLIC 1
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4551 echo "checking type of mail spool file locking" 1>&6
4552 echo "configure:4553: checking type of mail spool file locking" >&5
4553 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4554 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4555 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4556 Defining REAL_MAIL_USE_LOCKF
4558 cat >> confdefs.h <<\EOF
4559 #define REAL_MAIL_USE_LOCKF 1
4563 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4564 Defining REAL_MAIL_USE_FLOCK
4566 cat >> confdefs.h <<\EOF
4567 #define REAL_MAIL_USE_FLOCK 1
4571 else mail_locking="dot-locking"
4574 case "$opsys" in decosf*)
4576 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4577 echo "configure:4578: checking for cma_open in -lpthreads" >&5
4578 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4580 xe_check_libs=" -lpthreads "
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_lib_$ac_lib_var=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_lib_$ac_lib_var=no"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4609 { test "$extra_verbose" = "yes" && cat << EOF
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_lib 1
4617 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4620 echo "$ac_t""no" 1>&6
4624 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4625 c_switch_site="$c_switch_site -threads" ;;
4628 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4629 echo "configure:4630: checking whether the -xildoff compiler flag is required" >&5
4630 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4631 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4632 then echo "$ac_t""no" 1>&6;
4633 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
4635 else echo "$ac_t""no" 1>&6
4638 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4639 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4640 echo "configure:4641: checking for \"-z ignore\" linker flag" >&5
4641 case "`ld -h 2>&1`" in
4642 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4643 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4644 *) echo "$ac_t""no" 1>&6 ;;
4649 echo "checking "for specified window system"" 1>&6
4650 echo "configure:4651: checking "for specified window system"" >&5
4652 if test "$with_x11" != "no"; then
4653 test "$x_includes $x_libraries" != "NONE NONE" && \
4654 window_system=x11 with_x11=yes
4657 if test "$x_includes $x_libraries" = "NONE NONE" \
4658 -a -n "$OPENWINHOME" \
4659 -a "$OPENWINHOME" != "/usr/openwin" \
4660 -a -d "$OPENWINHOME"; then
4661 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4662 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4663 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4666 if test "$x_includes" = "NONE"; then
4667 for dir in "/usr/X11" "/usr/X11R6"; do
4668 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4672 if test "$x_libraries" = "NONE"; then
4673 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4674 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4678 # If we find X, set shell vars x_includes and x_libraries to the
4679 # paths, otherwise set no_x=yes.
4680 # Uses ac_ vars as temps to allow command line to override cache and checks.
4681 # --without-x overrides everything else, but does not touch the cache.
4682 echo $ac_n "checking for X""... $ac_c" 1>&6
4683 echo "configure:4684: checking for X" >&5
4685 # Check whether --with-x or --without-x was given.
4686 if test "${with_x+set}" = set; then
4691 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4692 if test "x$with_x" = xno; then
4693 # The user explicitly disabled X.
4696 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4697 # Both variables are already set.
4701 # One or both of the vars are not set, and there is no cached value.
4702 ac_x_includes=NO ac_x_libraries=NO
4704 if mkdir conftestdir; then
4706 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4707 cat > Imakefile <<'EOF'
4709 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4711 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4712 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4713 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4714 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4715 for ac_extension in a so sl; do
4716 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4717 test -f $ac_im_libdir/libX11.$ac_extension; then
4718 ac_im_usrlibdir=$ac_im_libdir; break
4721 # Screen out bogus values from the imake configuration. They are
4722 # bogus both because they are the default anyway, and because
4723 # using them would break gcc on systems where it needs fixed includes.
4724 case "$ac_im_incroot" in
4726 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4728 case "$ac_im_usrlibdir" in
4730 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4737 if test "$ac_x_includes" = NO; then
4738 # Guess where to find include files, by looking for this one X11 .h file.
4739 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4741 # First, try using that file with no special directory specified.
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 #include <$x_direct_test_include>
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4752 # We can compile using X headers with no special include directory.
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4759 # Look for the header file in a standard set of common directories.
4760 # Check X11 before X11Rn because it is often a symlink to the current release.
4763 /usr/X11R6/include \
4764 /usr/X11R5/include \
4765 /usr/X11R4/include \
4768 /usr/include/X11R6 \
4769 /usr/include/X11R5 \
4770 /usr/include/X11R4 \
4772 /usr/local/X11/include \
4773 /usr/local/X11R6/include \
4774 /usr/local/X11R5/include \
4775 /usr/local/X11R4/include \
4777 /usr/local/include/X11 \
4778 /usr/local/include/X11R6 \
4779 /usr/local/include/X11R5 \
4780 /usr/local/include/X11R4 \
4784 /usr/XFree86/include/X11 \
4787 /usr/local/include \
4788 /usr/unsupported/include \
4789 /usr/athena/include \
4790 /usr/local/x11r5/include \
4791 /usr/lpp/Xamples/include \
4793 /usr/openwin/include \
4794 /usr/openwin/share/include \
4797 if test -r "$ac_dir/$x_direct_test_include"; then
4798 ac_x_includes=$ac_dir
4804 fi # $ac_x_includes = NO
4806 if test "$ac_x_libraries" = NO; then
4807 # Check for the libraries.
4809 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4810 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4812 # See if we find them without any special options.
4813 # Don't add to $LIBS permanently.
4814 ac_save_LIBS="$LIBS"
4815 LIBS="-l$x_direct_test_library $LIBS"
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4821 ${x_direct_test_function}()
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 LIBS="$ac_save_LIBS"
4827 # We can link X programs with no special library path.
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 LIBS="$ac_save_LIBS"
4834 # First see if replacing the include by lib works.
4835 # Check X11 before X11Rn because it is often a symlink to the current release.
4836 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4847 /usr/local/X11/lib \
4848 /usr/local/X11R6/lib \
4849 /usr/local/X11R5/lib \
4850 /usr/local/X11R4/lib \
4852 /usr/local/lib/X11 \
4853 /usr/local/lib/X11R6 \
4854 /usr/local/lib/X11R5 \
4855 /usr/local/lib/X11R4 \
4859 /usr/XFree86/lib/X11 \
4863 /usr/unsupported/lib \
4865 /usr/local/x11r5/lib \
4866 /usr/lpp/Xamples/lib \
4870 /usr/openwin/share/lib \
4873 for ac_extension in a so sl; do
4874 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4875 ac_x_libraries=$ac_dir
4882 fi # $ac_x_libraries = NO
4884 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4885 # Didn't find X anywhere. Cache the known absence of X.
4886 ac_cv_have_x="have_x=no"
4888 # Record where we found X for the cache.
4889 ac_cv_have_x="have_x=yes \
4890 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4893 eval "$ac_cv_have_x"
4896 if test "$have_x" != yes; then
4897 echo "$ac_t""$have_x" 1>&6
4900 # If each of the values was on the command line, it overrides each guess.
4901 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4902 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4903 # Update the cache value to reflect the command line values.
4904 ac_cv_have_x="have_x=yes \
4905 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4906 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4909 if test "$no_x" = yes; then
4910 # Not all programs may use this symbol, but it does not hurt to define it.
4911 { test "$extra_verbose" = "yes" && cat << \EOF
4912 Defining X_DISPLAY_MISSING
4914 cat >> confdefs.h <<\EOF
4915 #define X_DISPLAY_MISSING 1
4919 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4921 if test -n "$x_includes"; then
4922 X_CFLAGS="$X_CFLAGS -I$x_includes"
4925 # It would also be nice to do this for all -L options, not just this one.
4926 if test -n "$x_libraries"; then
4927 X_LIBS="$X_LIBS -L$x_libraries"
4928 # For Solaris; some versions of Sun CC require a space after -R and
4929 # others require no space. Words are not sufficient . . . .
4930 case "`(uname -sr) 2>/dev/null`" in
4932 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4933 echo "configure:4934: checking whether -R must be followed by a space" >&5
4934 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4953 if test $ac_R_nospace = yes; then
4954 echo "$ac_t""no" 1>&6
4955 X_LIBS="$X_LIBS -R$x_libraries"
4957 LIBS="$ac_xsave_LIBS -R $x_libraries"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4976 if test $ac_R_space = yes; then
4977 echo "$ac_t""yes" 1>&6
4978 X_LIBS="$X_LIBS -R $x_libraries"
4980 echo "$ac_t""neither works" 1>&6
4983 LIBS="$ac_xsave_LIBS"
4987 # Check for system-dependent libraries X programs must link with.
4988 # Do this before checking for the system-independent R6 libraries
4989 # (-lICE), since we may need -lsocket or whatever for X linking.
4991 if test "$ISC" = yes; then
4992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4994 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4995 # libraries were built with DECnet support. And karl@cs.umb.edu says
4996 # the Alpha needs dnet_stub (dnet does not exist).
4997 if test "$with_dnet" = "no" ; then
4998 ac_cv_lib_dnet_dnet_ntoa=no
5001 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5002 echo "configure:5003: checking for dnet_ntoa in -ldnet" >&5
5003 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5005 xe_check_libs=" -ldnet "
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5025 eval "ac_cv_lib_$ac_lib_var=no"
5030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5031 echo "$ac_t""yes" 1>&6
5032 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5034 echo "$ac_t""no" 1>&6
5039 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5041 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5042 echo "configure:5043: checking for dnet_ntoa in -ldnet_stub" >&5
5043 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5045 xe_check_libs=" -ldnet_stub "
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 eval "ac_cv_lib_$ac_lib_var=yes"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 eval "ac_cv_lib_$ac_lib_var=no"
5070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5071 echo "$ac_t""yes" 1>&6
5072 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5074 echo "$ac_t""no" 1>&6
5080 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5081 # to get the SysV transport functions.
5082 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5084 # The nsl library prevents programs from opening the X display
5085 # on Irix 5.2, according to dickey@clark.net.
5086 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5087 echo "configure:5088: checking for gethostbyname" >&5
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 /* System header to define __stub macros and hopefully few prototypes,
5093 which can conflict with char gethostbyname(); below. */
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5098 char gethostbyname();
5102 /* The GNU C library defines this for functions which it implements
5103 to always fail with ENOSYS. Some functions are actually named
5104 something starting with __ and the normal name is an alias. */
5105 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 eval "ac_cv_func_gethostbyname=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_func_gethostbyname=no"
5124 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5128 echo "$ac_t""no" 1>&6
5131 if test $ac_cv_func_gethostbyname = no; then
5133 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5134 echo "configure:5135: checking for gethostbyname in -lnsl" >&5
5135 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5137 xe_check_libs=" -lnsl "
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5144 char gethostbyname();
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5163 echo "$ac_t""yes" 1>&6
5164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5166 echo "$ac_t""no" 1>&6
5172 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5173 # socket/setsockopt and other routines are undefined under SCO ODT
5174 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5175 # on later versions), says simon@lia.di.epfl.ch: it contains
5176 # gethostby* variants that don't use the nameserver (or something).
5177 # -lsocket must be given before -lnsl if both are needed.
5178 # We assume that if connect needs -lnsl, so does gethostbyname.
5179 echo $ac_n "checking for connect""... $ac_c" 1>&6
5180 echo "configure:5181: checking for connect" >&5
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 /* System header to define __stub macros and hopefully few prototypes,
5186 which can conflict with char connect(); below. */
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5195 /* The GNU C library defines this for functions which it implements
5196 to always fail with ENOSYS. Some functions are actually named
5197 something starting with __ and the normal name is an alias. */
5198 #if defined (__stub_connect) || defined (__stub___connect)
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5208 eval "ac_cv_func_connect=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 eval "ac_cv_func_connect=no"
5217 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5221 echo "$ac_t""no" 1>&6
5224 if test $ac_cv_func_connect = no; then
5226 xe_msg_checking="for connect in -lsocket"
5227 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5228 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5229 echo "configure:5230: checking "$xe_msg_checking"" >&5
5230 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5232 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 eval "ac_cv_lib_$ac_lib_var=yes"
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5252 eval "ac_cv_lib_$ac_lib_var=no"
5257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5258 echo "$ac_t""yes" 1>&6
5259 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5261 echo "$ac_t""no" 1>&6
5267 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5268 echo $ac_n "checking for remove""... $ac_c" 1>&6
5269 echo "configure:5270: checking for remove" >&5
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* System header to define __stub macros and hopefully few prototypes,
5275 which can conflict with char remove(); below. */
5277 /* Override any gcc2 internal prototype to avoid an error. */
5278 /* We use char because int might match the return type of a gcc2
5279 builtin and then its argument prototype would still apply. */
5284 /* The GNU C library defines this for functions which it implements
5285 to always fail with ENOSYS. Some functions are actually named
5286 something starting with __ and the normal name is an alias. */
5287 #if defined (__stub_remove) || defined (__stub___remove)
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 eval "ac_cv_func_remove=yes"
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 eval "ac_cv_func_remove=no"
5306 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5310 echo "$ac_t""no" 1>&6
5313 if test $ac_cv_func_remove = no; then
5315 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5316 echo "configure:5317: checking for remove in -lposix" >&5
5317 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5319 xe_check_libs=" -lposix "
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334 eval "ac_cv_lib_$ac_lib_var=yes"
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5339 eval "ac_cv_lib_$ac_lib_var=no"
5344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5345 echo "$ac_t""yes" 1>&6
5346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5348 echo "$ac_t""no" 1>&6
5354 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5355 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5356 echo "configure:5357: checking for shmat" >&5
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char shmat(); below. */
5364 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5371 /* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374 #if defined (__stub_shmat) || defined (__stub___shmat)
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5384 eval "ac_cv_func_shmat=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5389 eval "ac_cv_func_shmat=no"
5393 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5397 echo "$ac_t""no" 1>&6
5400 if test $ac_cv_func_shmat = no; then
5402 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5403 echo "configure:5404: checking for shmat in -lipc" >&5
5404 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5406 xe_check_libs=" -lipc "
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5410 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 eval "ac_cv_lib_$ac_lib_var=yes"
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 eval "ac_cv_lib_$ac_lib_var=no"
5431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5432 echo "$ac_t""yes" 1>&6
5433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5435 echo "$ac_t""no" 1>&6
5442 # Check for libraries that X11R6 Xt/Xaw programs need.
5443 ac_save_LDFLAGS="$LDFLAGS"
5444 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5445 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5446 # check for ICE first), but we must link in the order -lSM -lICE or
5447 # we get undefined symbols. So assume we have SM if we have ICE.
5448 # These have to be linked with before -lX11, unlike the other
5449 # libraries we check for below, so use a different variable.
5450 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5452 xe_msg_checking="for IceConnectionNumber in -lICE"
5453 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5454 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5455 echo "configure:5456: checking "$xe_msg_checking"" >&5
5456 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5458 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5465 char IceConnectionNumber();
5468 IceConnectionNumber()
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 eval "ac_cv_lib_$ac_lib_var=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_lib_$ac_lib_var=no"
5483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5484 echo "$ac_t""yes" 1>&6
5485 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5487 echo "$ac_t""no" 1>&6
5491 LDFLAGS="$ac_save_LDFLAGS"
5494 # Autoconf claims to find X library and include dirs for us.
5495 if test "$no_x" = "yes"
5496 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5497 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5502 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5503 no ) window_system=none HAVE_X_WINDOWS=no ;;
5506 if test "$with_x11" = "yes"; then
5507 { test "$extra_verbose" = "yes" && cat << \EOF
5508 Defining HAVE_X_WINDOWS
5510 cat >> confdefs.h <<\EOF
5511 #define HAVE_X_WINDOWS 1
5515 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5516 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5518 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5519 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5520 if test -d "$lib_dir" -a -d "$inc_dir"; then
5521 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5522 x_libraries="$lib_dir $x_libraries"
5523 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5525 case "$x_includes" in "$inc_dir"* ) ;; *)
5526 x_includes="$inc_dir $x_includes"
5527 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5532 for rel in "X11R6" "X11R5" "X11R4"; do
5533 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5534 if test -d "$lib_dir" -a -d "$inc_dir"; then
5535 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5536 x_libraries="$x_libraries $lib_dir"
5537 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5539 case "$x_includes" in "$inc_dir"* ) ;; *)
5540 x_includes="$x_includes $inc_dir"
5541 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5546 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
5548 ld_switch_x_site="$X_LIBS"
5551 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5552 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5553 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5555 runpath="" runpath_dirs=""
5556 if test -n "$LD_RUN_PATH"; then
5557 runpath="$LD_RUN_PATH"
5558 elif test "$GCC" = "yes"; then
5559 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5560 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5561 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5562 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5563 case "$arg" in P,* | -L* | -R* )
5564 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5566 xe_runpath_dir="$dir"
5567 test "$xe_runpath_dir" != "/lib" -a \
5568 "$xe_runpath_dir" != "/usr/lib" -a \
5569 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5570 eval "$xe_add_unique_runpath_dir"
5575 ld_switch_run="$ld_switch_run_save"
5578 for arg in $ld_switch_site $ld_switch_x_site; do
5579 case "$arg" in -L*) {
5580 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5581 test "$xe_runpath_dir" != "/lib" -a \
5582 "$xe_runpath_dir" != "/usr/lib" -a \
5583 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5584 eval "$xe_add_unique_runpath_dir"
5587 if test "$opsys $need_motif" = "sol2 yes"; then
5588 xe_runpath_dir="/opt/SUNWdt/lib";
5589 eval "$xe_add_unique_runpath_dir";
5592 if test -n "$runpath"; then
5593 ld_switch_run="${dash_r}${runpath}"
5595 if test "$GCC" = "yes"; then
5596 set x $ld_switch_run; shift; ld_switch_run=""
5597 while test -n "$1"; do
5599 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5600 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5602 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5607 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5612 if test "$extra_verbose" = "yes"; then
5613 echo; echo "X11 compilation variables:"
5614 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5619 if test "$x_includes" != NONE; then
5620 for i in $x_includes; do
5621 if test -d "$i/bitmaps"; then
5622 bitmapdirs="$i/bitmaps:$bitmapdirs"
5624 if test -d "$i/X11/bitmaps"; then
5625 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5628 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5630 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5631 Defining BITMAPDIR = "$bitmapdirs"
5633 cat >> confdefs.h <<EOF
5634 #define BITMAPDIR "$bitmapdirs"
5639 echo "checking for X defines extracted by xmkmf" 1>&6
5640 echo "configure:5641: checking for X defines extracted by xmkmf" >&5
5642 if mkdir conftestdir; then
5644 cat > Imakefile <<'EOF'
5646 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5648 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5650 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5654 for word in $xmkmf_defines; do
5657 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5658 { test "$extra_verbose" = "yes" && cat << EOF
5661 cat >> confdefs.h <<EOF
5670 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5671 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5672 echo "configure:5673: checking for X11/Intrinsic.h" >&5
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 #include <X11/Intrinsic.h>
5679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5682 if test -z "$ac_err"; then
5684 eval "ac_cv_header_$ac_safe=yes"
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5690 eval "ac_cv_header_$ac_safe=no"
5693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5697 echo "$ac_t""no" 1>&6
5698 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5703 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5704 echo "configure:5705: checking for XOpenDisplay in -lX11" >&5
5705 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5707 xe_check_libs=" -lX11 "
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5714 char XOpenDisplay();
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 eval "ac_cv_lib_$ac_lib_var=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 eval "ac_cv_lib_$ac_lib_var=no"
5732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5733 echo "$ac_t""yes" 1>&6
5736 echo "$ac_t""no" 1>&6
5740 if test "$have_lib_x11" != "yes"; then
5742 xe_msg_checking="for XGetFontProperty in -lX11"
5743 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5744 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5745 echo "configure:5746: checking "$xe_msg_checking"" >&5
5746 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5748 xe_check_libs=" -lX11 -b i486-linuxaout"
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5755 char XGetFontProperty();
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_lib_$ac_lib_var=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_lib_$ac_lib_var=no"
5773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5774 echo "$ac_t""yes" 1>&6
5775 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5777 echo "$ac_t""no" 1>&6
5778 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5784 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5787 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5788 echo "configure:5789: checking for XShapeSelectInput in -lXext" >&5
5789 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5791 xe_check_libs=" -lXext "
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 /* Override any gcc2 internal prototype to avoid an error. */
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5798 char XShapeSelectInput();
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 eval "ac_cv_lib_$ac_lib_var=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 eval "ac_cv_lib_$ac_lib_var=no"
5816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5817 echo "$ac_t""yes" 1>&6
5818 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5820 echo "$ac_t""no" 1>&6
5826 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5827 echo "configure:5828: checking for XtOpenDisplay in -lXt" >&5
5828 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5830 xe_check_libs=" -lXt "
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837 char XtOpenDisplay();
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5845 eval "ac_cv_lib_$ac_lib_var=yes"
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5850 eval "ac_cv_lib_$ac_lib_var=no"
5855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5856 echo "$ac_t""yes" 1>&6
5857 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5859 echo "$ac_t""no" 1>&6
5860 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5865 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5866 echo "configure:5867: checking the version of X11 being used" >&5
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 #include <X11/Intrinsic.h>
5871 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5875 ./conftest foobar; x11_release=$?
5878 echo "configure: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5884 echo "$ac_t""R${x11_release}" 1>&6
5885 { test "$extra_verbose" = "yes" && cat << EOF
5886 Defining THIS_IS_X11R${x11_release}
5888 cat >> confdefs.h <<EOF
5889 #define THIS_IS_X11R${x11_release} 1
5894 for ac_hdr in X11/Xlocale.h
5896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5898 echo "configure:5899: checking for $ac_hdr" >&5
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5906 { (eval echo configure:5907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5908 if test -z "$ac_err"; then
5910 eval "ac_cv_header_$ac_safe=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_header_$ac_safe=no"
5919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5922 { test "$extra_verbose" = "yes" && cat << EOF
5925 cat >> confdefs.h <<EOF
5926 #define $ac_tr_hdr 1
5931 echo "$ac_t""no" 1>&6
5936 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5937 echo "configure:5938: checking for XFree86" >&5
5938 if test -d "/usr/X386/include" -o \
5939 -f "/etc/XF86Config" -o \
5940 -f "/etc/X11/XF86Config" -o \
5941 -f "/usr/X11R6/lib/X11/XF86Config"; then
5942 echo "$ac_t""yes" 1>&6
5943 { test "$extra_verbose" = "yes" && cat << \EOF
5944 Defining HAVE_XFREE386
5946 cat >> confdefs.h <<\EOF
5947 #define HAVE_XFREE386 1
5952 echo "$ac_t""no" 1>&6
5955 test -z "$with_xmu" && {
5956 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5957 echo "configure:5958: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5958 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5960 xe_check_libs=" -lXmu "
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5967 char XmuReadBitmapDataFromFile();
5970 XmuReadBitmapDataFromFile()
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 eval "ac_cv_lib_$ac_lib_var=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_lib_$ac_lib_var=no"
5985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5986 echo "$ac_t""yes" 1>&6
5989 echo "$ac_t""no" 1>&6
5994 if test "$with_xmu" = "no"; then
5995 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5996 echo " xemacs will be linked with \"xmu.o\""
5999 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6000 { test "$extra_verbose" = "yes" && cat << \EOF
6003 cat >> confdefs.h <<\EOF
6011 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6012 echo "configure:6013: checking for main in -lXbsd" >&5
6013 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6015 xe_check_libs=" -lXbsd "
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 eval "ac_cv_lib_$ac_lib_var=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_lib_$ac_lib_var=no"
6036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6037 echo "$ac_t""yes" 1>&6
6038 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6040 echo "$ac_t""no" 1>&6
6045 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6046 if test "$GCC" = "yes"; then
6047 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6048 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6051 "xlc" ) CC="xlc_r" ;;
6052 "xlC" ) CC="xlC_r" ;;
6059 if test "$with_msw" != "no"; then
6060 echo "checking for MS-Windows" 1>&6
6061 echo "configure:6062: checking for MS-Windows" >&5
6063 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6064 echo "configure:6065: checking for main in -lgdi32" >&5
6065 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6067 xe_check_libs=" -lgdi32 "
6068 cat > conftest.$ac_ext <<EOF
6069 #line 6070 "configure"
6070 #include "confdefs.h"
6076 if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6078 eval "ac_cv_lib_$ac_lib_var=yes"
6080 echo "configure: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6083 eval "ac_cv_lib_$ac_lib_var=no"
6088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6089 echo "$ac_t""yes" 1>&6
6092 echo "$ac_t""no" 1>&6
6096 if test "$with_msw" = "yes"; then
6097 { test "$extra_verbose" = "yes" && cat << \EOF
6098 Defining HAVE_MS_WINDOWS
6100 cat >> confdefs.h <<\EOF
6101 #define HAVE_MS_WINDOWS 1
6105 install_pp="$blddir/lib-src/installexe.sh"
6106 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6107 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6108 if test "$window_system" != x11; then
6110 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6111 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6112 echo " xemacs will be linked with \"scrollbar-msw.o\""
6114 test "$with_menubars" != "no" && with_menubars=msw \
6115 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6116 echo " xemacs will be linked with \"menubar-msw.o\""
6118 test "$with_toolbars" != "no" && with_toolbars=msw \
6119 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6120 echo " xemacs will be linked with \"toolbar-msw.o\""
6122 test "$with_dialogs" != "no" && with_dialogs=msw \
6123 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6124 echo " xemacs will be linked with \"dialog-msw.o\""
6126 test "$with_widgets" != "no" && with_widgets=msw
6128 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6129 echo " xemacs will be linked with \"scrollbar-msw.o\""
6131 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6132 echo " xemacs will be linked with \"menubar-msw.o\""
6134 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6135 echo " xemacs will be linked with \"toolbar-msw.o\""
6137 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6138 echo " xemacs will be linked with \"dialog-msw.o\""
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6145 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6149 { test "$extra_verbose" = "yes" && cat << \EOF
6150 Defining HAVE_MSG_SELECT
6152 cat >> confdefs.h <<\EOF
6153 #define HAVE_MSG_SELECT 1
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6164 with_file_coding=yes
6165 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
6166 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\""
6173 test -z "$window_system" && window_system="none"
6175 if test "$window_system" = "none"; then
6176 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6178 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6179 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6181 eval "with_${feature}=no"
6184 test -z "$with_toolbars" && with_toolbars=yes
6187 if test "$with_msw" != "yes"; then
6188 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6190 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6191 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6193 eval "with_${feature}=no"
6199 if test "$with_x11" != "yes"; then
6200 for feature in tooltalk cde offix wmcommand xim xmu xpm nas_sound
6202 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6203 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6205 eval "with_${feature}=no"
6211 case "$window_system" in
6212 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6213 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6214 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6217 case "$x_libraries" in *X11R4* )
6218 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6219 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6222 echo "checking for WM_COMMAND option" 1>&6
6223 echo "configure:6224: checking for WM_COMMAND option" >&5;
6224 if test "$with_wmcommand" != "no"; then
6225 { test "$extra_verbose" = "yes" && cat << \EOF
6226 Defining HAVE_WMCOMMAND
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE_WMCOMMAND 1
6235 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6236 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6237 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6238 echo "configure:6239: checking for X11/Xauth.h" >&5
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 #include <X11/Xauth.h>
6245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6246 { (eval echo configure:6247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6248 if test -z "$ac_err"; then
6250 eval "ac_cv_header_$ac_safe=yes"
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 eval "ac_cv_header_$ac_safe=no"
6259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6263 echo "$ac_t""no" 1>&6
6267 test -z "$with_xauth" && {
6268 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6269 echo "configure:6270: checking for XauGetAuthByAddr in -lXau" >&5
6270 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6272 xe_check_libs=" -lXau "
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 /* We use char because int might match the return type of a gcc2
6278 builtin and then its argument prototype would still apply. */
6279 char XauGetAuthByAddr();
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 eval "ac_cv_lib_$ac_lib_var=yes"
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6292 eval "ac_cv_lib_$ac_lib_var=no"
6297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6298 echo "$ac_t""yes" 1>&6
6301 echo "$ac_t""no" 1>&6
6306 test -z "$with_xauth" && with_xauth=yes
6307 if test "$with_xauth" = "yes"; then
6308 { test "$extra_verbose" = "yes" && cat << \EOF
6311 cat >> confdefs.h <<\EOF
6312 #define HAVE_XAUTH 1
6318 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6326 if test "$with_tooltalk" != "no" ; then
6327 for dir in "" "Tt/" "desktop/" ; do
6328 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6329 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6330 echo "configure:6331: checking for ${dir}tt_c.h" >&5
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 #include <${dir}tt_c.h>
6337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6338 { (eval echo configure:6339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6340 if test -z "$ac_err"; then
6342 eval "ac_cv_header_$ac_safe=yes"
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6348 eval "ac_cv_header_$ac_safe=no"
6351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 tt_c_h_path="${dir}tt_c.h"; break
6355 echo "$ac_t""no" 1>&6
6359 if test -z "$tt_c_h_path"; then
6360 if test "$with_tooltalk" = "yes"; then
6361 (echo "$progname: Usage error:"
6362 echo " " "Unable to find required tooltalk header files."
6363 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6368 if test "$with_tooltalk" != "no" ; then
6369 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6371 xe_msg_checking="for tt_message_create in -ltt"
6372 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6373 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6374 echo "configure:6375: checking "$xe_msg_checking"" >&5
6375 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6377 xe_check_libs=" -ltt $extra_libs"
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384 char tt_message_create();
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 eval "ac_cv_lib_$ac_lib_var=yes"
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6397 eval "ac_cv_lib_$ac_lib_var=no"
6402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6403 echo "$ac_t""yes" 1>&6
6404 tt_libs="-ltt $extra_libs"; break
6406 echo "$ac_t""no" 1>&6
6412 if test -z "$tt_libs"; then
6413 if test "$with_tooltalk" = "yes"; then
6414 (echo "$progname: Usage error:"
6415 echo " " "Unable to find required tooltalk libraries."
6416 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6421 test -z "$with_tooltalk" && with_tooltalk=yes
6422 if test "$with_tooltalk" = "yes"; then
6423 { test "$extra_verbose" = "yes" && cat << \EOF
6426 cat >> confdefs.h <<\EOF
6431 { test "$extra_verbose" = "yes" && cat << EOF
6432 Defining TT_C_H_PATH = "$tt_c_h_path"
6434 cat >> confdefs.h <<EOF
6435 #define TT_C_H_PATH "$tt_c_h_path"
6439 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6440 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6441 echo " xemacs will be linked with \"tooltalk.o\""
6445 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6446 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6447 echo "configure:6448: checking for Dt/Dt.h" >&5
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6457 if test -z "$ac_err"; then
6459 eval "ac_cv_header_$ac_safe=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_header_$ac_safe=no"
6468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6469 echo "$ac_t""yes" 1>&6
6472 echo "$ac_t""no" 1>&6
6476 test -z "$with_cde" && {
6477 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6478 echo "configure:6479: checking for DtDndDragStart in -lDtSvc" >&5
6479 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6481 xe_check_libs=" -lDtSvc "
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char DtDndDragStart();
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_lib_$ac_lib_var=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_lib_$ac_lib_var=no"
6506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6507 echo "$ac_t""yes" 1>&6
6510 echo "$ac_t""no" 1>&6
6515 test -z "$with_cde" && with_cde=yes
6516 if test "$with_dragndrop" = no; then
6517 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6520 if test "$with_cde" = "yes" ; then
6521 { test "$extra_verbose" = "yes" && cat << \EOF
6524 cat >> confdefs.h <<\EOF
6529 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6530 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6531 with_tooltalk=yes # CDE requires Tooltalk
6532 need_motif=yes # CDE requires Motif
6535 test "$window_system" != "x11" && with_offix=no
6536 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6537 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6540 if test "$with_dragndrop" = no; then
6541 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6544 if test "$with_cde" = yes; then
6545 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6548 test -z "$with_offix" && with_offix=no
6549 if test "$with_offix" = "yes"; then
6550 { test "$extra_verbose" = "yes" && cat << \EOF
6551 Defining HAVE_OFFIX_DND
6553 cat >> confdefs.h <<\EOF
6554 #define HAVE_OFFIX_DND 1
6558 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6559 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6562 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6563 echo "configure:6564: checking if drag and drop API is needed" >&5
6564 if test "$with_dragndrop" != "no" ; then
6565 if test -n "$dragndrop_proto" ; then
6567 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6568 { test "$extra_verbose" = "yes" && cat << \EOF
6569 Defining HAVE_DRAGNDROP
6571 cat >> confdefs.h <<\EOF
6572 #define HAVE_DRAGNDROP 1
6576 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6579 echo "$ac_t""no" 1>&6
6583 echo "checking for LDAP" 1>&6
6584 echo "configure:6585: checking for LDAP" >&5
6585 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6586 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6587 echo "configure:6588: checking for ldap.h" >&5
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6595 { (eval echo configure:6596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6597 if test -z "$ac_err"; then
6599 eval "ac_cv_header_$ac_safe=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 eval "ac_cv_header_$ac_safe=no"
6608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6609 echo "$ac_t""yes" 1>&6
6612 echo "$ac_t""no" 1>&6
6616 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6617 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6618 echo "configure:6619: checking for lber.h" >&5
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6626 { (eval echo configure:6627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6628 if test -z "$ac_err"; then
6630 eval "ac_cv_header_$ac_safe=yes"
6633 echo "configure: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6636 eval "ac_cv_header_$ac_safe=no"
6639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6643 echo "$ac_t""no" 1>&6
6647 if test "$with_ldap" != "no"; then
6649 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6650 echo "configure:6651: checking for ldap_search in -lldap" >&5
6651 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6653 xe_check_libs=" -lldap "
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_lib_$ac_lib_var=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_lib_$ac_lib_var=no"
6678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6679 echo "$ac_t""yes" 1>&6
6680 with_ldap_nolber=yes
6682 echo "$ac_t""no" 1>&6
6687 test "$with_ldap_nolber" = "no" && {
6688 xe_msg_checking="for ldap_open in -lldap"
6689 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6690 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6691 echo "configure:6692: checking "$xe_msg_checking"" >&5
6692 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6694 xe_check_libs=" -lldap -llber"
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_lib_$ac_lib_var=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_lib_$ac_lib_var=no"
6719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6720 echo "$ac_t""yes" 1>&6
6723 echo "$ac_t""no" 1>&6
6728 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6729 xe_msg_checking="for ldap_open in -lldap"
6730 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6731 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6732 echo "configure:6733: checking "$xe_msg_checking"" >&5
6733 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6735 xe_check_libs=" -lldap -llber -lkrb"
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6750 eval "ac_cv_lib_$ac_lib_var=yes"
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 eval "ac_cv_lib_$ac_lib_var=no"
6760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6761 echo "$ac_t""yes" 1>&6
6764 echo "$ac_t""no" 1>&6
6769 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6770 xe_msg_checking="for ldap_open in -lldap"
6771 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6772 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6773 echo "configure:6774: checking "$xe_msg_checking"" >&5
6774 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6776 xe_check_libs=" -lldap -llber -lkrb -ldes"
6777 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 eval "ac_cv_lib_$ac_lib_var=yes"
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 eval "ac_cv_lib_$ac_lib_var=no"
6801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6802 echo "$ac_t""yes" 1>&6
6803 with_ldap_krbdes=yes
6805 echo "$ac_t""no" 1>&6
6810 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
6812 if test "$with_ldap" = "yes"; then
6813 { test "$extra_verbose" = "yes" && cat << \EOF
6816 cat >> confdefs.h <<\EOF
6821 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6822 echo " xemacs will be linked with \"eldap.o\""
6824 if test "$with_ldap_nolber" = "yes" ; then
6825 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6827 if test "$with_ldap_krb" = "yes" ; then
6828 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6830 if test "$with_ldap_krbdes" = "yes" ; then
6831 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6832 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6834 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6835 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6837 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_func" >&5
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 /* System header to define __stub macros and hopefully few prototypes,
6846 which can conflict with char $ac_func(); below. */
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6855 /* The GNU C library defines this for functions which it implements
6856 to always fail with ENOSYS. Some functions are actually named
6857 something starting with __ and the normal name is an alias. */
6858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6868 eval "ac_cv_func_$ac_func=yes"
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 eval "ac_cv_func_$ac_func=no"
6877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6878 echo "$ac_t""yes" 1>&6
6879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6880 { test "$extra_verbose" = "yes" && cat << EOF
6881 Defining $ac_tr_func
6883 cat >> confdefs.h <<EOF
6884 #define $ac_tr_func 1
6889 echo "$ac_t""no" 1>&6
6896 if test "$window_system" != "none"; then
6897 echo "checking for graphics libraries" 1>&6
6898 echo "configure:6899: checking for graphics libraries" >&5
6901 if test -z "$with_xpm"; then
6902 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6903 echo "configure:6904: checking for Xpm - no older than 3.4f" >&5
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 #include <X11/xpm.h>
6909 int main(int c, char **v) {
6911 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6912 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6916 ./conftest dummy_arg; xpm_status=$?;
6917 if test "$xpm_status" = "0"; then
6921 if test "$xpm_status" = "1"; then
6922 xpm_problem="Xpm library version and header file version don't match!"
6923 elif test "$xpm_status" = "2"; then
6924 xpm_problem="Xpm library version is too old!"
6926 xpm_problem="Internal xpm detection logic error!"
6929 *** WARNING *** $xpm_problem
6930 I'm not touching that with a 10-foot pole!
6931 If you really want to use the installed version of Xpm, rerun
6932 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6943 echo "$ac_t""$with_xpm" 1>&6
6945 if test "$with_xpm" = "yes"; then
6946 { test "$extra_verbose" = "yes" && cat << \EOF
6949 cat >> confdefs.h <<\EOF
6954 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6955 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6956 echo "configure:6957: checking for \"FOR_MSW\" xpm" >&5
6958 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6963 XpmCreatePixmapFromData()
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6977 echo "$ac_t""$xpm_for_msw" 1>&6
6978 if test "$xpm_for_msw" = "yes"; then
6979 { test "$extra_verbose" = "yes" && cat << \EOF
6982 cat >> confdefs.h <<\EOF
6990 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6991 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6992 echo "configure:6993: checking for compface.h" >&5
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 #include <compface.h>
6999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7000 { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7002 if test -z "$ac_err"; then
7004 eval "ac_cv_header_$ac_safe=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_header_$ac_safe=no"
7013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7017 echo "$ac_t""no" 1>&6
7021 test -z "$with_xface" && {
7022 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7023 echo "configure:7024: checking for UnGenFace in -lcompface" >&5
7024 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7026 xe_check_libs=" -lcompface "
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 eval "ac_cv_lib_$ac_lib_var=no"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7052 echo "$ac_t""yes" 1>&6
7055 echo "$ac_t""no" 1>&6
7060 test -z "$with_xface" && with_xface=yes
7061 if test "$with_xface" = "yes"; then
7062 { test "$extra_verbose" = "yes" && cat << \EOF
7065 cat >> confdefs.h <<\EOF
7066 #define HAVE_XFACE 1
7070 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7073 if test "$with_gif" != "no"; then
7075 { test "$extra_verbose" = "yes" && cat << \EOF
7078 cat >> confdefs.h <<\EOF
7083 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7084 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7088 if test "$with_png $with_tiff" != "no no"; then
7090 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7091 echo "configure:7092: checking for inflate in -lc" >&5
7092 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7094 xe_check_libs=" -lc "
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7109 eval "ac_cv_lib_$ac_lib_var=yes"
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 eval "ac_cv_lib_$ac_lib_var=no"
7119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7120 echo "$ac_t""yes" 1>&6
7123 echo "$ac_t""no" 1>&6
7125 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7126 echo "configure:7127: checking for inflate in -lz" >&5
7127 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7129 xe_check_libs=" -lz "
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7144 eval "ac_cv_lib_$ac_lib_var=yes"
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 eval "ac_cv_lib_$ac_lib_var=no"
7154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7155 echo "$ac_t""yes" 1>&6
7156 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7158 echo "$ac_t""no" 1>&6
7160 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7161 echo "configure:7162: checking for inflate in -lgz" >&5
7162 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7164 xe_check_libs=" -lgz "
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */
7169 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 eval "ac_cv_lib_$ac_lib_var=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_lib_$ac_lib_var=no"
7189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7190 echo "$ac_t""yes" 1>&6
7191 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7193 echo "$ac_t""no" 1>&6
7205 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7206 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7207 echo "configure:7208: checking for jpeglib.h" >&5
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 #include <jpeglib.h>
7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7217 if test -z "$ac_err"; then
7219 eval "ac_cv_header_$ac_safe=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_header_$ac_safe=no"
7228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7232 echo "$ac_t""no" 1>&6
7236 test -z "$with_jpeg" && {
7237 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7238 echo "configure:7239: checking for jpeg_destroy_decompress in -ljpeg" >&5
7239 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7241 xe_check_libs=" -ljpeg "
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char jpeg_destroy_decompress();
7251 jpeg_destroy_decompress()
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7256 eval "ac_cv_lib_$ac_lib_var=yes"
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7261 eval "ac_cv_lib_$ac_lib_var=no"
7266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7267 echo "$ac_t""yes" 1>&6
7270 echo "$ac_t""no" 1>&6
7275 test -z "$with_jpeg" && with_jpeg=yes
7276 if test "$with_jpeg" = "yes"; then
7277 { test "$extra_verbose" = "yes" && cat << \EOF
7280 cat >> confdefs.h <<\EOF
7285 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7289 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7290 echo "configure:7291: checking for pow" >&5
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* System header to define __stub macros and hopefully few prototypes,
7296 which can conflict with char pow(); below. */
7298 /* Override any gcc2 internal prototype to avoid an error. */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7305 /* The GNU C library defines this for functions which it implements
7306 to always fail with ENOSYS. Some functions are actually named
7307 something starting with __ and the normal name is an alias. */
7308 #if defined (__stub_pow) || defined (__stub___pow)
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 eval "ac_cv_func_pow=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_func_pow=no"
7327 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7331 echo "$ac_t""no" 1>&6
7335 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7336 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7337 echo "configure:7338: checking for png.h" >&5
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7345 { (eval echo configure:7346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7347 if test -z "$ac_err"; then
7349 eval "ac_cv_header_$ac_safe=yes"
7352 echo "configure: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7355 eval "ac_cv_header_$ac_safe=no"
7358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7359 echo "$ac_t""yes" 1>&6
7362 echo "$ac_t""no" 1>&6
7366 test -z "$with_png" && {
7367 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7368 echo "configure:7369: checking for png_read_image in -lpng" >&5
7369 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7371 xe_check_libs=" -lpng "
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 /* Override any gcc2 internal prototype to avoid an error. */
7376 /* We use char because int might match the return type of a gcc2
7377 builtin and then its argument prototype would still apply. */
7378 char png_read_image();
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7386 eval "ac_cv_lib_$ac_lib_var=yes"
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 eval "ac_cv_lib_$ac_lib_var=no"
7396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7397 echo "$ac_t""yes" 1>&6
7400 echo "$ac_t""no" 1>&6
7405 if test -z "$with_png"; then
7406 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7407 echo "configure:7408: checking for workable png version information" >&5
7408 xe_check_libs="-lpng -lz"
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7413 int main(int c, char **v) {
7414 if (c == 1) return 0;
7415 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7416 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7420 ./conftest dummy_arg; png_status=$?;
7421 if test "$png_status" = "0"; then
7425 if test "$png_status" = "1"; then
7426 png_problem="PNG library version and header file don't match!"
7427 elif test "$png_status" = "2"; then
7428 png_problem="PNG library version too old (pre 1.0.2)!"
7431 *** WARNING *** $png_problem
7432 I'm not touching that with a 10-foot pole!
7433 If you really want to use the installed version of libPNG, rerun
7434 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7445 echo "$ac_t""$with_png" 1>&6
7447 if test "$with_png" = "yes"; then
7448 { test "$extra_verbose" = "yes" && cat << \EOF
7451 cat >> confdefs.h <<\EOF
7456 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7459 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7460 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7461 echo "configure:7462: checking for tiffio.h" >&5
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7469 { (eval echo configure:7470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7471 if test -z "$ac_err"; then
7473 eval "ac_cv_header_$ac_safe=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_header_$ac_safe=no"
7482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7486 echo "$ac_t""no" 1>&6
7490 test -z "$with_tiff" && {
7491 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7492 echo "configure:7493: checking for TIFFClientOpen in -ltiff" >&5
7493 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7495 xe_check_libs=" -ltiff "
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7502 char TIFFClientOpen();
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7510 eval "ac_cv_lib_$ac_lib_var=yes"
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 eval "ac_cv_lib_$ac_lib_var=no"
7520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7521 echo "$ac_t""yes" 1>&6
7524 echo "$ac_t""no" 1>&6
7529 test -z "$with_tiff" && with_tiff=yes
7530 if test "$with_tiff" = "yes"; then
7531 { test "$extra_verbose" = "yes" && cat << \EOF
7534 cat >> confdefs.h <<\EOF
7539 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7544 if test "$with_x11" = "yes"; then
7546 echo "checking for X11 graphics libraries" 1>&6
7547 echo "configure:7548: checking for X11 graphics libraries" >&5
7550 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7551 echo "configure:7552: checking for XawScrollbarSetThumb in -lXaw" >&5
7552 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7554 xe_check_libs=" -lXaw "
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char XawScrollbarSetThumb();
7564 XawScrollbarSetThumb()
7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 eval "ac_cv_lib_$ac_lib_var=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_lib_$ac_lib_var=no"
7579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7580 echo "$ac_t""yes" 1>&6
7583 echo "$ac_t""no" 1>&6
7590 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
7591 echo "configure:7592: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7592 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7594 xe_check_libs=" -lXaw3d "
7595 cat > conftest.$ac_ext <<EOF
7596 #line 7597 "configure"
7597 #include "confdefs.h"
7598 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7601 char XawScrollbarSetThumb();
7604 XawScrollbarSetThumb()
7607 if { (eval echo configure:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609 eval "ac_cv_lib_$ac_lib_var=yes"
7611 echo "configure: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7614 eval "ac_cv_lib_$ac_lib_var=no"
7619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7620 echo "$ac_t""yes" 1>&6
7623 echo "$ac_t""no" 1>&6
7629 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7630 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7631 echo "configure:7632: checking for Xm/Xm.h" >&5
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7639 { (eval echo configure:7640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7641 if test -z "$ac_err"; then
7643 eval "ac_cv_header_$ac_safe=yes"
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 eval "ac_cv_header_$ac_safe=no"
7652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7655 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7656 echo "configure:7657: checking for XmStringFree in -lXm" >&5
7657 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7659 xe_check_libs=" -lXm "
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7666 char XmStringFree();
7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7674 eval "ac_cv_lib_$ac_lib_var=yes"
7676 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7679 eval "ac_cv_lib_$ac_lib_var=no"
7684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7685 echo "$ac_t""yes" 1>&6
7688 echo "$ac_t""no" 1>&6
7694 echo "$ac_t""no" 1>&6
7699 if test "$have_motif" = "yes"; then
7700 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7701 echo "configure:7702: checking for Lesstif" >&5
7702 cat > conftest.$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7706 #ifdef LESSTIF_VERSION
7711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7712 egrep "yes" >/dev/null 2>&1; then
7721 echo "$ac_t""$have_lesstif" 1>&6
7726 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
7727 with_menubars="lucid" ;;
7729 case "$with_dialogs" in "" | "yes" | "lucid" )
7730 if test "$have_motif" = "yes"; then with_dialogs="motif"
7731 elif test "$have_xaw3d" = "yes"; then with_dialogs="athena3d"
7732 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7733 else with_dialogs=no
7736 case "$with_scrollbars" in "" | "yes" )
7737 with_scrollbars="lucid" ;;
7739 case "$with_widgets" in "" | "yes" | "lucid")
7740 if test "$have_motif" = "yes"; then with_widgets="motif"
7741 elif test "$have_xaw3d" = "yes"; then with_widgets="athena3d"
7742 elif test "$have_xaw" = "yes"; then with_widgets="athena"
7743 else with_widgets=no
7747 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
7749 case "$all_widgets" in
7751 { test "$extra_verbose" = "yes" && cat << \EOF
7752 Defining LWLIB_USES_ATHENA
7754 cat >> confdefs.h <<\EOF
7755 #define LWLIB_USES_ATHENA 1
7759 { test "$extra_verbose" = "yes" && cat << \EOF
7760 Defining NEED_ATHENA
7762 cat >> confdefs.h <<\EOF
7763 #define NEED_ATHENA 1
7767 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7768 if test "$have_xaw3d"; then
7769 libs_x="-lXaw3d $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw3d\" to \$libs_x"; fi
7771 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi
7774 { test "$extra_verbose" = "yes" && cat << \EOF
7775 Defining LWLIB_USES_ATHENA
7777 cat >> confdefs.h <<\EOF
7778 #define LWLIB_USES_ATHENA 1
7782 { test "$extra_verbose" = "yes" && cat << \EOF
7783 Defining NEED_ATHENA
7785 cat >> confdefs.h <<\EOF
7786 #define NEED_ATHENA 1
7790 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7791 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
7794 case "$all_widgets" in *motif* )
7795 { test "$extra_verbose" = "yes" && cat << \EOF
7796 Defining LWLIB_USES_MOTIF
7798 cat >> confdefs.h <<\EOF
7799 #define LWLIB_USES_MOTIF 1
7803 { test "$extra_verbose" = "yes" && cat << \EOF
7806 cat >> confdefs.h <<\EOF
7807 #define NEED_MOTIF 1
7811 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
7815 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7816 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7817 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
7818 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7819 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
7820 case "$with_widgets" in athena* )
7821 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;;
7823 case "$all_widgets" in *lucid* )
7824 { test "$extra_verbose" = "yes" && cat << \EOF
7827 cat >> confdefs.h <<\EOF
7828 #define NEED_LUCID 1
7832 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7837 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7838 Defining LWLIB_SCROLLBARS_ATHENA
7840 cat >> confdefs.h <<\EOF
7841 #define LWLIB_SCROLLBARS_ATHENA 1
7845 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7846 Defining LWLIB_DIALOGS_ATHENA
7848 cat >> confdefs.h <<\EOF
7849 #define LWLIB_DIALOGS_ATHENA 1
7853 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7854 Defining LWLIB_SCROLLBARS_ATHENA3D
7856 cat >> confdefs.h <<\EOF
7857 #define LWLIB_SCROLLBARS_ATHENA3D 1
7861 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7862 Defining LWLIB_DIALOGS_ATHENA3D
7864 cat >> confdefs.h <<\EOF
7865 #define LWLIB_DIALOGS_ATHENA3D 1
7869 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
7870 Defining LWLIB_WIDGETS_ATHENA
7872 cat >> confdefs.h <<\EOF
7873 #define LWLIB_WIDGETS_ATHENA 1
7877 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7878 { test "$extra_verbose" = "yes" && cat << \EOF
7879 Defining LWLIB_TABS_LUCID
7881 cat >> confdefs.h <<\EOF
7882 #define LWLIB_TABS_LUCID 1
7887 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7888 Defining HAVE_MENUBARS
7890 cat >> confdefs.h <<\EOF
7891 #define HAVE_MENUBARS 1
7895 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7896 Defining HAVE_SCROLLBARS
7898 cat >> confdefs.h <<\EOF
7899 #define HAVE_SCROLLBARS 1
7903 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7904 Defining HAVE_DIALOGS
7906 cat >> confdefs.h <<\EOF
7907 #define HAVE_DIALOGS 1
7911 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7912 Defining HAVE_TOOLBARS
7914 cat >> confdefs.h <<\EOF
7915 #define HAVE_TOOLBARS 1
7919 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7920 Defining HAVE_WIDGETS
7922 cat >> confdefs.h <<\EOF
7923 #define HAVE_WIDGETS 1
7928 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7929 Defining LWLIB_MENUBARS_LUCID
7931 cat >> confdefs.h <<\EOF
7932 #define LWLIB_MENUBARS_LUCID 1
7936 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7937 Defining LWLIB_SCROLLBARS_LUCID
7939 cat >> confdefs.h <<\EOF
7940 #define LWLIB_SCROLLBARS_LUCID 1
7945 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7946 Defining LWLIB_MENUBARS_MOTIF
7948 cat >> confdefs.h <<\EOF
7949 #define LWLIB_MENUBARS_MOTIF 1
7953 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7954 Defining LWLIB_SCROLLBARS_MOTIF
7956 cat >> confdefs.h <<\EOF
7957 #define LWLIB_SCROLLBARS_MOTIF 1
7961 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7962 Defining LWLIB_DIALOGS_MOTIF
7964 cat >> confdefs.h <<\EOF
7965 #define LWLIB_DIALOGS_MOTIF 1
7969 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7970 Defining LWLIB_WIDGETS_MOTIF
7972 cat >> confdefs.h <<\EOF
7973 #define LWLIB_WIDGETS_MOTIF 1
7978 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7979 echo " xemacs will be linked with \"menubar.o\""
7981 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7982 echo " xemacs will be linked with \"scrollbar.o\""
7984 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7985 echo " xemacs will be linked with \"dialog.o\""
7987 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7988 echo " xemacs will be linked with \"toolbar.o\""
7991 if test "$with_x11" = "yes"; then
7992 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7993 echo " xemacs will be linked with \"menubar-x.o\""
7995 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7996 echo " xemacs will be linked with \"scrollbar-x.o\""
7998 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7999 echo " xemacs will be linked with \"dialog-x.o\""
8001 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8002 echo " xemacs will be linked with \"toolbar-x.o\""
8004 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8005 echo " xemacs will be linked with \"gui-x.o\""
8010 test -z "$with_mule" && with_mule=no
8011 test -z "$with_file_coding" && with_file_coding=no
8014 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8015 { test "$extra_verbose" = "yes" && cat << \EOF
8016 Defining FILE_CODING
8018 cat >> confdefs.h <<\EOF
8019 #define FILE_CODING 1
8023 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8024 echo " xemacs will be linked with \"file-coding.o\""
8028 if test "$with_mule" = "yes" ; then
8029 echo "checking for Mule-related features" 1>&6
8030 echo "configure:8031: checking for Mule-related features" >&5
8031 { test "$extra_verbose" = "yes" && cat << \EOF
8034 cat >> confdefs.h <<\EOF
8039 { test "$extra_verbose" = "yes" && cat << \EOF
8040 Defining FILE_CODING
8042 cat >> confdefs.h <<\EOF
8043 #define FILE_CODING 1
8047 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8048 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8051 for ac_hdr in libintl.h
8053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8055 echo "configure:8056: checking for $ac_hdr" >&5
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8067 eval "ac_cv_header_$ac_safe=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_header_$ac_safe=no"
8076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8077 echo "$ac_t""yes" 1>&6
8078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8079 { test "$extra_verbose" = "yes" && cat << EOF
8082 cat >> confdefs.h <<EOF
8083 #define $ac_tr_hdr 1
8088 echo "$ac_t""no" 1>&6
8093 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8094 echo "configure:8095: checking for strerror in -lintl" >&5
8095 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8097 xe_check_libs=" -lintl "
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8112 eval "ac_cv_lib_$ac_lib_var=yes"
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 eval "ac_cv_lib_$ac_lib_var=no"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8123 echo "$ac_t""yes" 1>&6
8124 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8126 { test "$extra_verbose" = "yes" && cat << EOF
8129 cat >> confdefs.h <<EOF
8130 #define $ac_tr_lib 1
8134 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8137 echo "$ac_t""no" 1>&6
8142 echo "checking for Mule input methods" 1>&6
8143 echo "configure:8144: checking for Mule input methods" >&5
8144 case "$with_xim" in "" | "yes" )
8145 echo "checking for XIM" 1>&6
8146 echo "configure:8147: checking for XIM" >&5
8148 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8149 echo "configure:8150: checking for XOpenIM in -lX11" >&5
8150 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8152 xe_check_libs=" -lX11 "
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8167 eval "ac_cv_lib_$ac_lib_var=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 eval "ac_cv_lib_$ac_lib_var=no"
8177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8178 echo "$ac_t""yes" 1>&6
8181 echo "$ac_t""no" 1>&6
8186 if test "$have_motif $have_lesstif" = "yes no"; then
8188 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8189 echo "configure:8190: checking for XmImMbLookupString in -lXm" >&5
8190 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8192 xe_check_libs=" -lXm "
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8199 char XmImMbLookupString();
8202 XmImMbLookupString()
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_lib_$ac_lib_var=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_lib_$ac_lib_var=no"
8217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8218 echo "$ac_t""yes" 1>&6
8221 echo "$ac_t""no" 1>&6
8227 if test "$with_xim" != "no"; then
8228 { test "$extra_verbose" = "yes" && cat << \EOF
8231 cat >> confdefs.h <<\EOF
8236 if test "$with_xim" = "xlib"; then
8237 { test "$extra_verbose" = "yes" && cat << \EOF
8240 cat >> confdefs.h <<\EOF
8245 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8246 echo " xemacs will be linked with \"input-method-xlib.o\""
8249 if test "$with_xim" = "motif"; then
8250 { test "$extra_verbose" = "yes" && cat << \EOF
8253 cat >> confdefs.h <<\EOF
8259 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8260 echo " xemacs will be linked with \"input-method-motif.o\""
8263 if test "$with_xim" = "motif"; then
8268 if test "$with_xfs" = "yes" ; then
8269 echo "checking for XFontSet" 1>&6
8270 echo "configure:8271: checking for XFontSet" >&5
8272 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8273 echo "configure:8274: checking for XmbDrawString in -lX11" >&5
8274 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8276 xe_check_libs=" -lX11 "
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8283 char XmbDrawString();
8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8291 eval "ac_cv_lib_$ac_lib_var=yes"
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8296 eval "ac_cv_lib_$ac_lib_var=no"
8301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8302 echo "$ac_t""yes" 1>&6
8305 echo "$ac_t""no" 1>&6
8310 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8311 { test "$extra_verbose" = "yes" && cat << \EOF
8312 Defining USE_XFONTSET
8314 cat >> confdefs.h <<\EOF
8315 #define USE_XFONTSET 1
8319 if test "$with_xim" = "no" ; then
8320 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
8321 echo " xemacs will be linked with \"input-method-xfs.o\""
8326 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8327 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8328 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8329 echo "configure:8330: checking for wnn/jllib.h" >&5
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 #include <wnn/jllib.h>
8336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8337 { (eval echo configure:8338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8339 if test -z "$ac_err"; then
8341 eval "ac_cv_header_$ac_safe=yes"
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 eval "ac_cv_header_$ac_safe=no"
8350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8354 echo "$ac_t""no" 1>&6
8358 if test "$with_wnn" != "no"; then
8359 for ac_func in crypt
8361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8362 echo "configure:8363: checking for $ac_func" >&5
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* System header to define __stub macros and hopefully few prototypes,
8368 which can conflict with char $ac_func(); below. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 eval "ac_cv_func_$ac_func=yes"
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 eval "ac_cv_func_$ac_func=no"
8399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8400 echo "$ac_t""yes" 1>&6
8401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8402 { test "$extra_verbose" = "yes" && cat << EOF
8403 Defining $ac_tr_func
8405 cat >> confdefs.h <<EOF
8406 #define $ac_tr_func 1
8411 echo "$ac_t""no" 1>&6
8415 test "$ac_cv_func_crypt" != "yes" && {
8416 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8417 echo "configure:8418: checking for crypt in -lcrypt" >&5
8418 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8420 xe_check_libs=" -lcrypt "
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 eval "ac_cv_lib_$ac_lib_var=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_lib_$ac_lib_var=no"
8445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8446 echo "$ac_t""yes" 1>&6
8447 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8449 { test "$extra_verbose" = "yes" && cat << EOF
8452 cat >> confdefs.h <<EOF
8453 #define $ac_tr_lib 1
8457 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
8460 echo "$ac_t""no" 1>&6
8465 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8467 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8468 echo "configure:8469: checking for jl_dic_list_e in -lwnn" >&5
8469 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8471 xe_check_libs=" -lwnn "
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char jl_dic_list_e();
8484 if { (eval echo configure:8485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8486 eval "ac_cv_lib_$ac_lib_var=yes"
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8491 eval "ac_cv_lib_$ac_lib_var=no"
8496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8497 echo "$ac_t""yes" 1>&6
8500 echo "$ac_t""no" 1>&6
8501 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8502 echo "configure:8503: checking for jl_dic_list_e in -lwnn4" >&5
8503 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8505 xe_check_libs=" -lwnn4 "
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8512 char jl_dic_list_e();
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8520 eval "ac_cv_lib_$ac_lib_var=yes"
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8525 eval "ac_cv_lib_$ac_lib_var=no"
8530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8531 echo "$ac_t""yes" 1>&6
8534 echo "$ac_t""no" 1>&6
8535 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8536 echo "configure:8537: checking for jl_dic_list_e in -lwnn6" >&5
8537 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8539 xe_check_libs=" -lwnn6 "
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8546 char jl_dic_list_e();
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554 eval "ac_cv_lib_$ac_lib_var=yes"
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8559 eval "ac_cv_lib_$ac_lib_var=no"
8564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8565 echo "$ac_t""yes" 1>&6
8568 echo "$ac_t""no" 1>&6
8569 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8570 echo "configure:8571: checking for dic_list_e in -lwnn6_fromsrc" >&5
8571 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8573 xe_check_libs=" -lwnn6_fromsrc "
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8588 eval "ac_cv_lib_$ac_lib_var=yes"
8590 echo "configure: failed program was:" >&5
8591 cat conftest.$ac_ext >&5
8593 eval "ac_cv_lib_$ac_lib_var=no"
8598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8599 echo "$ac_t""yes" 1>&6
8602 echo "$ac_t""no" 1>&6
8617 test -z "$with_wnn" && with_wnn=yes
8618 if test "$with_wnn" = "yes"; then
8619 { test "$extra_verbose" = "yes" && cat << \EOF
8622 cat >> confdefs.h <<\EOF
8627 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
8628 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
8629 echo " xemacs will be linked with \"mule-wnnfns.o\""
8631 if test "$with_wnn6" != "no"; then
8633 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8634 echo "configure:8635: checking for jl_fi_dic_list in -l$libwnn" >&5
8635 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8637 xe_check_libs=" -l$libwnn "
8638 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure"
8640 #include "confdefs.h"
8641 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char jl_fi_dic_list();
8650 if { (eval echo configure:8651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8652 eval "ac_cv_lib_$ac_lib_var=yes"
8654 echo "configure: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8657 eval "ac_cv_lib_$ac_lib_var=no"
8662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8663 echo "$ac_t""yes" 1>&6
8666 echo "$ac_t""no" 1>&6
8670 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8673 cat >> confdefs.h <<\EOF
8681 canna_includes_found=no
8682 if test "$with_canna" != "no"; then
8683 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8684 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8685 echo "configure:8686: checking for canna/jrkanji.h" >&5
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <canna/jrkanji.h>
8692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8693 { (eval echo configure:8694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8695 if test -z "$ac_err"; then
8697 eval "ac_cv_header_$ac_safe=yes"
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 eval "ac_cv_header_$ac_safe=no"
8706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8707 echo "$ac_t""yes" 1>&6
8708 canna_includes_found=yes
8710 echo "$ac_t""no" 1>&6
8714 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
8715 -d "/usr/local/canna/include"; then
8716 save_c_switch_site="$c_switch_site"
8717 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8718 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8719 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8720 echo "configure:8721: checking for canna/jrkanji.h" >&5
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8725 #include <canna/jrkanji.h>
8727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8728 { (eval echo configure:8729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8730 if test -z "$ac_err"; then
8732 eval "ac_cv_header_$ac_safe=yes"
8735 echo "configure: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8738 eval "ac_cv_header_$ac_safe=no"
8741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8742 echo "$ac_t""yes" 1>&6
8743 canna_includes_found=yes
8745 echo "$ac_t""no" 1>&6
8748 if test "$canna_includes_found" != "yes"; then
8749 c_switch_site="$save_c_switch_site"
8754 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8755 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8756 echo "configure:8757: checking for canna/RK.h" >&5
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 #include <canna/RK.h>
8763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8764 { (eval echo configure:8765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8766 if test -z "$ac_err"; then
8768 eval "ac_cv_header_$ac_safe=yes"
8771 echo "configure: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8774 eval "ac_cv_header_$ac_safe=no"
8777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8778 echo "$ac_t""yes" 1>&6
8781 echo "$ac_t""no" 1>&6
8785 test -z "$with_canna" && {
8786 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8787 echo "configure:8788: checking for RkBgnBun in -lRKC" >&5
8788 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8790 xe_check_libs=" -lRKC "
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8805 eval "ac_cv_lib_$ac_lib_var=yes"
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8810 eval "ac_cv_lib_$ac_lib_var=no"
8815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8816 echo "$ac_t""yes" 1>&6
8819 echo "$ac_t""no" 1>&6
8824 test -z "$with_canna" && {
8825 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8826 echo "configure:8827: checking for jrKanjiControl in -lcanna" >&5
8827 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8829 xe_check_libs=" -lcanna "
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8833 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char jrKanjiControl();
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 eval "ac_cv_lib_$ac_lib_var=yes"
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 eval "ac_cv_lib_$ac_lib_var=no"
8854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8855 echo "$ac_t""yes" 1>&6
8858 echo "$ac_t""no" 1>&6
8863 test -z "$with_canna" && with_canna=yes
8864 if test "$with_canna" = "yes"; then
8865 { test "$extra_verbose" = "yes" && cat << \EOF
8868 cat >> confdefs.h <<\EOF
8869 #define HAVE_CANNA 1
8873 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
8874 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
8875 echo " xemacs will be linked with \"mule-canna.o\""
8879 else for feature in xim canna wnn; do
8880 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
8881 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
8883 eval "with_${feature}=no"
8887 if test "$need_motif" = "yes" ; then
8888 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8890 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8891 echo "configure:8892: checking for layout_object_getvalue in -li18n" >&5
8892 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8894 xe_check_libs=" -li18n "
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* Override any gcc2 internal prototype to avoid an error. */
8899 /* We use char because int might match the return type of a gcc2
8900 builtin and then its argument prototype would still apply. */
8901 char layout_object_getvalue();
8904 layout_object_getvalue()
8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8909 eval "ac_cv_lib_$ac_lib_var=yes"
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 eval "ac_cv_lib_$ac_lib_var=no"
8919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8920 echo "$ac_t""yes" 1>&6
8921 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
8923 echo "$ac_t""no" 1>&6
8928 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
8929 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8930 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
8932 runpath="" runpath_dirs=""
8933 if test -n "$LD_RUN_PATH"; then
8934 runpath="$LD_RUN_PATH"
8935 elif test "$GCC" = "yes"; then
8936 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
8937 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
8938 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
8939 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
8940 case "$arg" in P,* | -L* | -R* )
8941 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
8943 xe_runpath_dir="$dir"
8944 test "$xe_runpath_dir" != "/lib" -a \
8945 "$xe_runpath_dir" != "/usr/lib" -a \
8946 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8947 eval "$xe_add_unique_runpath_dir"
8952 ld_switch_run="$ld_switch_run_save"
8955 for arg in $ld_switch_site $ld_switch_x_site; do
8956 case "$arg" in -L*) {
8957 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
8958 test "$xe_runpath_dir" != "/lib" -a \
8959 "$xe_runpath_dir" != "/usr/lib" -a \
8960 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
8961 eval "$xe_add_unique_runpath_dir"
8964 if test "$opsys $need_motif" = "sol2 yes"; then
8965 xe_runpath_dir="/opt/SUNWdt/lib";
8966 eval "$xe_add_unique_runpath_dir";
8969 if test -n "$runpath"; then
8970 ld_switch_run="${dash_r}${runpath}"
8972 if test "$GCC" = "yes"; then
8973 set x $ld_switch_run; shift; ld_switch_run=""
8974 while test -n "$1"; do
8976 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8977 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
8979 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8984 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
8990 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8993 echo "configure:8994: checking for $ac_func" >&5
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* System header to define __stub macros and hopefully few prototypes,
8999 which can conflict with char $ac_func(); below. */
9001 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9008 /* The GNU C library defines this for functions which it implements
9009 to always fail with ENOSYS. Some functions are actually named
9010 something starting with __ and the normal name is an alias. */
9011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 eval "ac_cv_func_$ac_func=yes"
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 eval "ac_cv_func_$ac_func=no"
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033 { test "$extra_verbose" = "yes" && cat << EOF
9034 Defining $ac_tr_func
9036 cat >> confdefs.h <<EOF
9037 #define $ac_tr_func 1
9042 echo "$ac_t""no" 1>&6
9049 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9050 echo " xemacs will be linked with \"realpath.o\""
9053 case "$canonical" in
9054 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9055 echo " xemacs will be linked with \"realpath.o\""
9057 * ) for ac_func in realpath
9059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9060 echo "configure:9061: checking for $ac_func" >&5
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 /* System header to define __stub macros and hopefully few prototypes,
9066 which can conflict with char $ac_func(); below. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9075 /* The GNU C library defines this for functions which it implements
9076 to always fail with ENOSYS. Some functions are actually named
9077 something starting with __ and the normal name is an alias. */
9078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9088 eval "ac_cv_func_$ac_func=yes"
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 eval "ac_cv_func_$ac_func=no"
9097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9098 echo "$ac_t""yes" 1>&6
9099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9100 { test "$extra_verbose" = "yes" && cat << EOF
9101 Defining $ac_tr_func
9103 cat >> confdefs.h <<EOF
9104 #define $ac_tr_func 1
9109 echo "$ac_t""no" 1>&6
9113 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9114 echo " xemacs will be linked with \"realpath.o\""
9119 for ac_func in getloadavg
9121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9122 echo "configure:9123: checking for $ac_func" >&5
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char $ac_func(); below. */
9130 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9137 /* The GNU C library defines this for functions which it implements
9138 to always fail with ENOSYS. Some functions are actually named
9139 something starting with __ and the normal name is an alias. */
9140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 eval "ac_cv_func_$ac_func=yes"
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 eval "ac_cv_func_$ac_func=no"
9159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9160 echo "$ac_t""yes" 1>&6
9161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9162 { test "$extra_verbose" = "yes" && cat << EOF
9163 Defining $ac_tr_func
9165 cat >> confdefs.h <<EOF
9166 #define $ac_tr_func 1
9171 echo "$ac_t""no" 1>&6
9176 if test "$ac_cv_func_getloadavg" != "yes"
9178 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9179 echo " xemacs will be linked with \"getloadavg.o\""
9183 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9184 echo "configure:9185: checking for kstat_open in -lkstat" >&5
9185 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9187 xe_check_libs=" -lkstat "
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 /* Override any gcc2 internal prototype to avoid an error. */
9192 /* We use char because int might match the return type of a gcc2
9193 builtin and then its argument prototype would still apply. */
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9202 eval "ac_cv_lib_$ac_lib_var=yes"
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9207 eval "ac_cv_lib_$ac_lib_var=no"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 { test "$extra_verbose" = "yes" && cat << EOF
9219 cat >> confdefs.h <<EOF
9220 #define $ac_tr_lib 1
9224 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9227 echo "$ac_t""no" 1>&6
9233 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9234 echo "configure:9235: checking for kvm_read in -lkvm" >&5
9235 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9237 xe_check_libs=" -lkvm "
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9241 /* Override any gcc2 internal prototype to avoid an error. */
9242 /* We use char because int might match the return type of a gcc2
9243 builtin and then its argument prototype would still apply. */
9250 if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9252 eval "ac_cv_lib_$ac_lib_var=yes"
9254 echo "configure: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9257 eval "ac_cv_lib_$ac_lib_var=no"
9262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9263 echo "$ac_t""yes" 1>&6
9264 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9266 { test "$extra_verbose" = "yes" && cat << EOF
9269 cat >> confdefs.h <<EOF
9270 #define $ac_tr_lib 1
9274 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9277 echo "$ac_t""no" 1>&6
9283 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9284 echo "configure:9285: checking whether netdb declares h_errno" >&5
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295 echo "$ac_t""yes" 1>&6
9296 { test "$extra_verbose" = "yes" && cat << \EOF
9297 Defining HAVE_H_ERRNO
9299 cat >> confdefs.h <<\EOF
9300 #define HAVE_H_ERRNO 1
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 echo "$ac_t""no" 1>&6
9312 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9313 echo "configure:9314: checking for sigsetjmp" >&5
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9319 sigjmp_buf bar; sigsetjmp (bar, 0);
9322 if { (eval echo configure:9323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9324 echo "$ac_t""yes" 1>&6
9325 { test "$extra_verbose" = "yes" && cat << \EOF
9326 Defining HAVE_SIGSETJMP
9328 cat >> confdefs.h <<\EOF
9329 #define HAVE_SIGSETJMP 1
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9337 echo "$ac_t""no" 1>&6
9341 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9342 echo "configure:9343: checking whether localtime caches TZ" >&5
9344 if test "$ac_cv_func_tzset" = "yes"; then
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9350 # include <stdlib.h>
9352 extern char **environ;
9356 for (to = from = environ; (*to = *from); from++)
9357 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9360 char TZ_GMT0[] = "TZ=GMT0";
9361 char TZ_PST8[] = "TZ=PST8";
9364 time_t now = time ((time_t *) 0);
9365 int hour_GMT0, hour_unset;
9366 if (putenv (TZ_GMT0) != 0)
9368 hour_GMT0 = localtime (&now)->tm_hour;
9370 hour_unset = localtime (&now)->tm_hour;
9371 if (putenv (TZ_PST8) != 0)
9373 if (localtime (&now)->tm_hour == hour_GMT0)
9376 if (localtime (&now)->tm_hour != hour_unset)
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9383 emacs_cv_localtime_cache=no
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 emacs_cv_localtime_cache=yes
9393 # If we lack tzset, report that localtime does not cache TZ,
9394 # since we can't invalidate the cache if we don't have tzset.
9395 emacs_cv_localtime_cache=no
9397 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
9398 if test $emacs_cv_localtime_cache = yes; then
9399 { test "$extra_verbose" = "yes" && cat << \EOF
9400 Defining LOCALTIME_CACHE
9402 cat >> confdefs.h <<\EOF
9403 #define LOCALTIME_CACHE 1
9409 if test "$HAVE_TIMEVAL" = "yes"; then
9410 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9411 echo "configure:9412: checking whether gettimeofday accepts one or two arguments" >&5
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #ifdef TIME_WITH_SYS_TIME
9417 #include <sys/time.h>
9420 #ifdef HAVE_SYS_TIME_H
9421 #include <sys/time.h>
9429 struct timeval time;
9430 struct timezone dummy;
9431 gettimeofday (&time, &dummy);
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9437 echo "$ac_t""two" 1>&6
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 echo "$ac_t""one" 1>&6
9443 { test "$extra_verbose" = "yes" && cat << \EOF
9444 Defining GETTIMEOFDAY_ONE_ARGUMENT
9446 cat >> confdefs.h <<\EOF
9447 #define GETTIMEOFDAY_ONE_ARGUMENT 1
9456 echo $ac_n "checking for inline""... $ac_c" 1>&6
9457 echo "configure:9458: checking for inline" >&5
9460 for ac_kw in inline __inline__ __inline; do
9461 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure"
9463 #include "confdefs.h"
9469 if { (eval echo configure:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9471 ac_cv_c_inline=$ac_kw; break
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9480 echo "$ac_t""$ac_cv_c_inline" 1>&6
9481 case "$ac_cv_c_inline" in
9483 no) { test "$extra_verbose" = "yes" && cat << \EOF
9486 cat >> confdefs.h <<\EOF
9491 *) { test "$extra_verbose" = "yes" && cat << EOF
9492 Defining inline = $ac_cv_c_inline
9494 cat >> confdefs.h <<EOF
9495 #define inline $ac_cv_c_inline
9501 if test "$ac_cv_c_inline" != "no"; then
9502 { test "$extra_verbose" = "yes" && cat << \EOF
9503 Defining HAVE_INLINE
9505 cat >> confdefs.h <<\EOF
9506 #define HAVE_INLINE 1
9510 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
9511 echo " xemacs will be linked with \"inline.o\""
9516 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9517 # for constant arguments. Useless!
9518 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9519 echo "configure:9520: checking for working alloca.h" >&5
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9526 char *p = alloca(2 * sizeof(int));
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9531 ac_cv_header_alloca_h=yes
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 ac_cv_header_alloca_h=no
9540 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9541 if test $ac_cv_header_alloca_h = yes; then
9542 { test "$extra_verbose" = "yes" && cat << \EOF
9543 Defining HAVE_ALLOCA_H
9545 cat >> confdefs.h <<\EOF
9546 #define HAVE_ALLOCA_H 1
9552 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9553 echo "configure:9554: checking for alloca" >&5
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9560 # define alloca __builtin_alloca
9563 # include <malloc.h>
9564 # define alloca _alloca
9567 # include <alloca.h>
9572 # ifndef alloca /* predefined by HP cc +Olibcalls */
9581 char *p = (char *) alloca(1);
9584 if { (eval echo configure:9585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9586 ac_cv_func_alloca_works=yes
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9591 ac_cv_func_alloca_works=no
9595 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9596 if test $ac_cv_func_alloca_works = yes; then
9597 { test "$extra_verbose" = "yes" && cat << \EOF
9598 Defining HAVE_ALLOCA
9600 cat >> confdefs.h <<\EOF
9601 #define HAVE_ALLOCA 1
9607 if test $ac_cv_func_alloca_works = no; then
9608 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9609 # that cause trouble. Some versions do not even contain alloca or
9610 # contain a buggy version. If you still want to use their alloca,
9611 # use ar to extract alloca.o from them instead of compiling alloca.c.
9612 ALLOCA=alloca.${ac_objext}
9613 { test "$extra_verbose" = "yes" && cat << \EOF
9616 cat >> confdefs.h <<\EOF
9622 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9623 echo "configure:9624: checking whether alloca needs Cray hooks" >&5
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 #if defined(CRAY) && ! defined(CRAY2)
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 egrep "webecray" >/dev/null 2>&1; then
9646 echo "$ac_t""$ac_cv_os_cray" 1>&6
9647 if test $ac_cv_os_cray = yes; then
9648 for ac_func in _getb67 GETB67 getb67; do
9649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9650 echo "configure:9651: checking for $ac_func" >&5
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char $ac_func(); below. */
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9665 /* The GNU C library defines this for functions which it implements
9666 to always fail with ENOSYS. Some functions are actually named
9667 something starting with __ and the normal name is an alias. */
9668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 eval "ac_cv_func_$ac_func=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_func_$ac_func=no"
9687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 { test "$extra_verbose" = "yes" && cat << EOF
9690 Defining CRAY_STACKSEG_END = $ac_func
9692 cat >> confdefs.h <<EOF
9693 #define CRAY_STACKSEG_END $ac_func
9699 echo "$ac_t""no" 1>&6
9705 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9706 echo "configure:9707: checking stack direction for C alloca" >&5
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 find_stack_direction ()
9713 static char *addr = 0;
9718 return find_stack_direction ();
9721 return (&dummy > addr) ? 1 : -1;
9725 exit (find_stack_direction() < 0);
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9730 ac_cv_c_stack_direction=1
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9736 ac_cv_c_stack_direction=-1
9740 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9741 { test "$extra_verbose" = "yes" && cat << EOF
9742 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
9744 cat >> confdefs.h <<EOF
9745 #define STACK_DIRECTION $ac_cv_c_stack_direction
9751 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
9752 echo " xemacs will be linked with \"$ALLOCA\""
9755 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9756 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9757 echo "configure:9758: checking for vfork.h" >&5
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9765 { (eval echo configure:9766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9767 if test -z "$ac_err"; then
9769 eval "ac_cv_header_$ac_safe=yes"
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9775 eval "ac_cv_header_$ac_safe=no"
9778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9779 echo "$ac_t""yes" 1>&6
9780 { test "$extra_verbose" = "yes" && cat << \EOF
9781 Defining HAVE_VFORK_H
9783 cat >> confdefs.h <<\EOF
9784 #define HAVE_VFORK_H 1
9789 echo "$ac_t""no" 1>&6
9792 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9793 echo "configure:9794: checking for working vfork" >&5
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Thanks to Paul Eggert for this test. */
9800 #include <sys/types.h>
9801 #include <sys/stat.h>
9802 #ifdef HAVE_UNISTD_H
9808 /* On some sparc systems, changes by the child to local and incoming
9809 argument registers are propagated back to the parent.
9810 The compiler is told about this with #include <vfork.h>,
9811 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
9812 Test for this by using a static variable whose address
9813 is put into a register that is clobbered by the vfork. */
9816 sparc_address_test (int arg)
9818 sparc_address_test (arg) int arg;
9836 pid_t parent = getpid ();
9839 sparc_address_test ();
9844 /* Here is another test for sparc vfork register problems.
9845 This test uses lots of local variables, at least
9846 as many local variables as main has allocated so far
9847 including compiler temporaries. 4 locals are enough for
9848 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
9849 A buggy compiler should reuse the register of parent
9850 for one of the local variables, since it will think that
9851 parent can't possibly be used any more in this routine.
9852 Assigning to the local variable will thus munge parent
9853 in the parent process. */
9855 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9856 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9857 /* Convince the compiler that p..p7 are live; otherwise, it might
9858 use the same hardware register for all 8 local variables. */
9859 if (p != p1 || p != p2 || p != p3 || p != p4
9860 || p != p5 || p != p6 || p != p7)
9863 /* On some systems (e.g. IRIX 3.3),
9864 vfork doesn't separate parent from child file descriptors.
9865 If the child closes a descriptor before it execs or exits,
9866 this munges the parent's descriptor as well.
9867 Test for this by closing stdout in the child. */
9868 _exit(close(fileno(stdout)) != 0);
9873 while (wait(&status) != child)
9876 /* Was there some problem with vforking? */
9879 /* Did the child fail? (This shouldn't happen.) */
9882 /* Did the vfork/compiler bug occur? */
9883 || parent != getpid()
9885 /* Did the file descriptor bug occur? */
9886 || fstat(fileno(stdout), &st) != 0
9891 if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9893 ac_cv_func_vfork_works=yes
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 ac_cv_func_vfork_works=no
9903 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9904 if test $ac_cv_func_vfork_works = no; then
9905 { test "$extra_verbose" = "yes" && cat << \EOF
9906 Defining vfork = fork
9908 cat >> confdefs.h <<\EOF
9916 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9917 echo "configure:9918: checking for working strcoll" >&5
9919 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9925 exit (strcoll ("abc", "def") >= 0 ||
9926 strcoll ("ABC", "DEF") >= 0 ||
9927 strcoll ("123", "456") >= 0);
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9932 ac_cv_func_strcoll_works=yes
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9938 ac_cv_func_strcoll_works=no
9942 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
9943 if test $ac_cv_func_strcoll_works = yes; then
9944 { test "$extra_verbose" = "yes" && cat << \EOF
9945 Defining HAVE_STRCOLL
9947 cat >> confdefs.h <<\EOF
9948 #define HAVE_STRCOLL 1
9955 for ac_func in getpgrp
9957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9958 echo "configure:9959: checking for $ac_func" >&5
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func(); below. */
9966 /* Override any gcc2 internal prototype to avoid an error. */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9973 /* The GNU C library defines this for functions which it implements
9974 to always fail with ENOSYS. Some functions are actually named
9975 something starting with __ and the normal name is an alias. */
9976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9986 eval "ac_cv_func_$ac_func=yes"
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9991 eval "ac_cv_func_$ac_func=no"
9995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
9997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9998 { test "$extra_verbose" = "yes" && cat << EOF
9999 Defining $ac_tr_func
10001 cat >> confdefs.h <<EOF
10002 #define $ac_tr_func 1
10007 echo "$ac_t""no" 1>&6
10011 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10012 echo "configure:10013: checking whether getpgrp takes no argument" >&5
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10019 * If this system has a BSD-style getpgrp(),
10020 * which takes a pid argument, exit unsuccessfully.
10022 * Snarfed from Chet Ramey's bash pgrp.c test program
10025 #include <sys/types.h>
10028 int pg1, pg2, pg3, pg4;
10029 int ng, np, s, child;
10036 pg3 = getpgrp(pid);
10040 * If all of these values are the same, it's pretty sure that
10041 * we're on a system that ignores getpgrp's first argument.
10043 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10049 else if (child == 0) {
10052 * If this is Sys V, this will not work; pgrp will be
10053 * set to np because setpgrp just changes a pgrp to be
10054 * the same as the pid.
10057 ng = getpgrp(0); /* Same result for Sys V and BSD */
10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10072 ac_cv_func_getpgrp_void=yes
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 ac_cv_func_getpgrp_void=no
10083 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10084 if test $ac_cv_func_getpgrp_void = yes; then
10085 { test "$extra_verbose" = "yes" && cat << \EOF
10086 Defining GETPGRP_VOID
10088 cat >> confdefs.h <<\EOF
10089 #define GETPGRP_VOID 1
10096 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10097 echo "configure:10098: checking for working mmap" >&5
10098 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10103 #include <unistd.h>
10105 #include <sys/mman.h>
10107 #ifndef MAP_VARIABLE
10108 #define MAP_VARIABLE 0
10112 #define MAP_FAILED -1
10115 int main (int argc, char *argv[])
10119 #ifndef MAP_ANONYMOUS
10120 fd = open ("/dev/zero", O_RDWR);
10123 #define MAP_ANONYMOUS 0
10125 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10126 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10127 fd, 0) != (void *) MAP_FAILED)
10129 perror ("conftest: mmap failed");
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10143 rm -fr conftest* ;;
10145 echo "$ac_t""$have_mmap" 1>&6
10146 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_MMAP 1
10155 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10156 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10157 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10160 cat >> confdefs.h <<\EOF
10161 #define REL_ALLOC 1
10166 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10167 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10168 echo "configure:10169: checking for termios.h" >&5
10170 cat > conftest.$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 #include <termios.h>
10175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10176 { (eval echo configure:10177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10178 if test -z "$ac_err"; then
10180 eval "ac_cv_header_$ac_safe=yes"
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10186 eval "ac_cv_header_$ac_safe=no"
10189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 { test "$extra_verbose" = "yes" && cat << \EOF
10192 Defining HAVE_TERMIOS
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_TERMIOS 1
10199 { test "$extra_verbose" = "yes" && cat << \EOF
10200 Defining SIGNALS_VIA_CHARACTERS
10202 cat >> confdefs.h <<\EOF
10203 #define SIGNALS_VIA_CHARACTERS 1
10207 { test "$extra_verbose" = "yes" && cat << \EOF
10210 cat >> confdefs.h <<\EOF
10211 #define NO_TERMIO 1
10216 echo "$ac_t""no" 1>&6
10217 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10218 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10219 echo "configure:10220: checking for termio.h" >&5
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10224 #include <termio.h>
10226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10227 { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10229 if test -z "$ac_err"; then
10231 eval "ac_cv_header_$ac_safe=yes"
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 eval "ac_cv_header_$ac_safe=no"
10240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 { test "$extra_verbose" = "yes" && cat << \EOF
10243 Defining HAVE_TERMIO
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_TERMIO 1
10251 echo "$ac_t""no" 1>&6
10258 echo $ac_n "checking for socket""... $ac_c" 1>&6
10259 echo "configure:10260: checking for socket" >&5
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char socket(); below. */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_socket) || defined (__stub___socket)
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10287 eval "ac_cv_func_socket=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_func_socket=no"
10296 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10299 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10300 echo "configure:10301: checking for netinet/in.h" >&5
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 #include <netinet/in.h>
10307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10308 { (eval echo configure:10309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10310 if test -z "$ac_err"; then
10312 eval "ac_cv_header_$ac_safe=yes"
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 eval "ac_cv_header_$ac_safe=no"
10321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10322 echo "$ac_t""yes" 1>&6
10323 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10324 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10325 echo "configure:10326: checking for arpa/inet.h" >&5
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 #include <arpa/inet.h>
10332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10333 { (eval echo configure:10334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10335 if test -z "$ac_err"; then
10337 eval "ac_cv_header_$ac_safe=yes"
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10343 eval "ac_cv_header_$ac_safe=no"
10346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10347 echo "$ac_t""yes" 1>&6
10349 { test "$extra_verbose" = "yes" && cat << \EOF
10350 Defining HAVE_SOCKETS
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_SOCKETS 1
10357 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10358 echo "configure:10359: checking "for sun_len member in struct sockaddr_un"" >&5
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10363 #include <sys/types.h>
10364 #include <sys/socket.h>
10365 #include <sys/un.h>
10368 static struct sockaddr_un x; x.sun_len = 1;
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10374 Defining HAVE_SOCKADDR_SUN_LEN
10376 cat >> confdefs.h <<\EOF
10377 #define HAVE_SOCKADDR_SUN_LEN 1
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 echo "$ac_t""no" 1>&6
10388 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10389 echo "configure:10390: checking "for ip_mreq struct in netinet/in.h"" >&5
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10394 #include <sys/types.h>
10395 #include <netinet/in.h>
10398 static struct ip_mreq x;
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10403 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10404 Defining HAVE_MULTICAST
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_MULTICAST 1
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 echo "$ac_t""no" 1>&6
10419 echo "$ac_t""no" 1>&6
10423 echo "$ac_t""no" 1>&6
10427 echo "$ac_t""no" 1>&6
10431 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10432 echo "configure:10433: checking for msgget" >&5
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 /* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char msgget(); below. */
10439 #include <assert.h>
10440 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10447 /* The GNU C library defines this for functions which it implements
10448 to always fail with ENOSYS. Some functions are actually named
10449 something starting with __ and the normal name is an alias. */
10450 #if defined (__stub_msgget) || defined (__stub___msgget)
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10460 eval "ac_cv_func_msgget=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_func_msgget=no"
10469 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10470 echo "$ac_t""yes" 1>&6
10471 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10472 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10473 echo "configure:10474: checking for sys/ipc.h" >&5
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10478 #include <sys/ipc.h>
10480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10481 { (eval echo configure:10482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10483 if test -z "$ac_err"; then
10485 eval "ac_cv_header_$ac_safe=yes"
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10491 eval "ac_cv_header_$ac_safe=no"
10494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10495 echo "$ac_t""yes" 1>&6
10496 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10497 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10498 echo "configure:10499: checking for sys/msg.h" >&5
10500 cat > conftest.$ac_ext <<EOF
10501 #line 10502 "configure"
10502 #include "confdefs.h"
10503 #include <sys/msg.h>
10505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10506 { (eval echo configure:10507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10508 if test -z "$ac_err"; then
10510 eval "ac_cv_header_$ac_safe=yes"
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10516 eval "ac_cv_header_$ac_safe=no"
10519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 { test "$extra_verbose" = "yes" && cat << \EOF
10522 Defining HAVE_SYSVIPC
10524 cat >> confdefs.h <<\EOF
10525 #define HAVE_SYSVIPC 1
10530 echo "$ac_t""no" 1>&6
10534 echo "$ac_t""no" 1>&6
10538 echo "$ac_t""no" 1>&6
10542 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10543 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10544 echo "configure:10545: checking for dirent.h" >&5
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10548 "configure"
10548 #include "confdefs.h"
10549 #include <dirent.h>
10551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10552 { (eval echo configure:10553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10554 if test -z "$ac_err"; then
10556 eval "ac_cv_header_$ac_safe=yes"
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10562 eval "ac_cv_header_$ac_safe=no"
10565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10566 echo "$ac_t""yes" 1>&6
10567 { test "$extra_verbose" = "yes" && cat << \EOF
10568 Defining SYSV_SYSTEM_DIR
10570 cat >> confdefs.h <<\EOF
10571 #define SYSV_SYSTEM_DIR 1
10576 echo "$ac_t""no" 1>&6
10577 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10578 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10579 echo "configure:10580: checking for sys/dir.h" >&5
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10584 #include <sys/dir.h>
10586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10587 { (eval echo configure:10588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10589 if test -z "$ac_err"; then
10591 eval "ac_cv_header_$ac_safe=yes"
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 eval "ac_cv_header_$ac_safe=no"
10600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10601 echo "$ac_t""yes" 1>&6
10604 echo "$ac_t""no" 1>&6
10605 { test "$extra_verbose" = "yes" && cat << \EOF
10606 Defining NONSYSTEM_DIR_LIBRARY
10608 cat >> confdefs.h <<\EOF
10609 #define NONSYSTEM_DIR_LIBRARY 1
10618 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10619 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10620 echo "configure:10621: checking for nlist.h" >&5
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10628 { (eval echo configure:10629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10630 if test -z "$ac_err"; then
10632 eval "ac_cv_header_$ac_safe=yes"
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 eval "ac_cv_header_$ac_safe=no"
10641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10642 echo "$ac_t""yes" 1>&6
10643 { test "$extra_verbose" = "yes" && cat << \EOF
10644 Defining NLIST_STRUCT
10646 cat >> confdefs.h <<\EOF
10647 #define NLIST_STRUCT 1
10652 echo "$ac_t""no" 1>&6
10657 echo "checking "for sound support"" 1>&6
10658 echo "configure:10659: checking "for sound support"" >&5
10659 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10661 if test "$with_native_sound" != "no"; then
10662 if test -n "$native_sound_lib"; then
10663 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10664 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10665 echo "configure:10666: checking for multimedia/audio_device.h" >&5
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <multimedia/audio_device.h>
10672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10673 { (eval echo configure:10674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10675 if test -z "$ac_err"; then
10677 eval "ac_cv_header_$ac_safe=yes"
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 eval "ac_cv_header_$ac_safe=no"
10686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10687 echo "$ac_t""yes" 1>&6
10688 sound_found=yes sound_cflags=""
10689 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10690 echo " xemacs will be linked with \"sunplay.o\""
10693 echo "$ac_t""no" 1>&6
10698 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
10700 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
10701 echo " xemacs will be linked with \"sunplay.o\""
10703 if test -d "/usr/demo/SOUND/include"
10704 then sound_cflags="-I/usr/demo/SOUND/include"
10705 else sound_cflags="-I/usr/demo/SOUND"
10707 if test -z "$native_sound_lib" ; then
10708 if test -r "/usr/demo/SOUND/lib/libaudio.a"
10709 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
10710 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
10715 if test -z "$sound_found"; then
10716 case "$canonical" in
10718 if test -z "$native_sound_lib"; then
10720 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10721 echo "configure:10722: checking for ALopenport in -laudio" >&5
10722 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10724 xe_check_libs=" -laudio "
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10728 /* Override any gcc2 internal prototype to avoid an error. */
10729 /* We use char because int might match the return type of a gcc2
10730 builtin and then its argument prototype would still apply. */
10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10739 eval "ac_cv_lib_$ac_lib_var=yes"
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10744 eval "ac_cv_lib_$ac_lib_var=no"
10749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10750 echo "$ac_t""yes" 1>&6
10751 native_sound_lib="-laudio"
10753 echo "$ac_t""no" 1>&6
10758 if test -n "$native_sound_lib"; then
10759 sound_found=yes sound_cflags=""
10760 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
10761 echo " xemacs will be linked with \"sgiplay.o\""
10765 if test -z "$native_sound_lib"; then
10767 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10768 echo "configure:10769: checking for AOpenAudio in -lAlib" >&5
10769 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10771 xe_check_libs=" -lAlib "
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 /* We use char because int might match the return type of a gcc2
10777 builtin and then its argument prototype would still apply. */
10784 if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786 eval "ac_cv_lib_$ac_lib_var=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_lib_$ac_lib_var=no"
10796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10797 echo "$ac_t""yes" 1>&6
10798 native_sound_lib="-lAlib"
10800 echo "$ac_t""no" 1>&6
10805 if test -n "$native_sound_lib"; then
10807 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
10808 echo " xemacs will be linked with \"hpplay.o\""
10810 if test "$GCC" = "yes" # Kludge city
10811 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
10812 else sound_cflags="+e -I/usr/audio/examples"
10818 if test -z "$sound_found"; then
10819 for dir in "machine" "sys" "linux"; do
10820 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10821 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10822 echo "configure:10823: checking for ${dir}/soundcard.h" >&5
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 #include <${dir}/soundcard.h>
10829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10830 { (eval echo configure:10831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10832 if test -z "$ac_err"; then
10834 eval "ac_cv_header_$ac_safe=yes"
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10840 eval "ac_cv_header_$ac_safe=no"
10843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10844 echo "$ac_t""yes" 1>&6
10847 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10848 echo " xemacs will be linked with \"linuxplay.o\""
10850 { test "$extra_verbose" = "yes" && cat << EOF
10851 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10853 cat >> confdefs.h <<EOF
10854 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
10860 echo "$ac_t""no" 1>&6
10866 test "$sound_found" = "yes" && with_native_sound=yes
10869 if test "$with_native_sound" = "yes"; then
10870 { test "$extra_verbose" = "yes" && cat << \EOF
10871 Defining HAVE_NATIVE_SOUND
10873 cat >> confdefs.h <<\EOF
10874 #define HAVE_NATIVE_SOUND 1
10878 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10881 if test "$with_nas_sound" != "no"; then
10882 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
10883 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
10884 echo "configure:10885: checking for audio/audiolib.h" >&5
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <audio/audiolib.h>
10891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10892 { (eval echo configure:10893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10894 if test -z "$ac_err"; then
10896 eval "ac_cv_header_$ac_safe=yes"
10899 echo "configure: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10902 eval "ac_cv_header_$ac_safe=no"
10905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10906 echo "$ac_t""yes" 1>&6
10909 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
10910 echo "configure:10911: checking for AuOpenServer in -laudio" >&5
10911 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
10913 xe_check_libs=" -laudio "
10914 cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10917 /* Override any gcc2 internal prototype to avoid an error. */
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10920 char AuOpenServer();
10926 if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10928 eval "ac_cv_lib_$ac_lib_var=yes"
10930 echo "configure: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10933 eval "ac_cv_lib_$ac_lib_var=no"
10938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10939 echo "$ac_t""yes" 1>&6
10942 echo "$ac_t""no" 1>&6
10947 echo "$ac_t""no" 1>&6
10950 if test "$have_nas_sound" = "yes"; then
10952 { test "$extra_verbose" = "yes" && cat << \EOF
10953 Defining HAVE_NAS_SOUND
10955 cat >> confdefs.h <<\EOF
10956 #define HAVE_NAS_SOUND 1
10960 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10961 echo " xemacs will be linked with \"nas.o\""
10963 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include <audio/Xtutil.h>
10969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10970 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10974 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
10975 Defining NAS_NO_ERROR_JUMP
10977 cat >> confdefs.h <<\EOF
10978 #define NAS_NO_ERROR_JUMP 1
10986 test "$with_nas_sound" = "yes" && \
10987 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
10992 if test "$with_esd_sound" != "no"; then
10993 # Extract the first word of "esd-config", so it can be a program name with args.
10994 set dummy esd-config; ac_word=$2
10995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10996 echo "configure:10997: checking for $ac_word" >&5
10998 if test -n "$have_esd_config"; then
10999 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11003 for ac_dir in $ac_dummy; do
11004 test -z "$ac_dir" && ac_dir=.
11005 if test -f $ac_dir/$ac_word; then
11006 ac_cv_prog_have_esd_config="yes"
11011 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11013 have_esd_config="$ac_cv_prog_have_esd_config"
11014 if test -n "$have_esd_config"; then
11015 echo "$ac_t""$have_esd_config" 1>&6
11017 echo "$ac_t""no" 1>&6
11020 if test "$have_esd_config" = "yes"; then
11021 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11022 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
11023 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11024 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11025 echo "configure:11026: checking for esd_play_stream" >&5
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char esd_play_stream(); below. */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error. */
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11036 char esd_play_stream();
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11053 eval "ac_cv_func_esd_play_stream=yes"
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11058 eval "ac_cv_func_esd_play_stream=no"
11062 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11063 echo "$ac_t""yes" 1>&6
11066 echo "$ac_t""no" 1>&6
11067 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11072 if test "$have_esd_sound" = "yes"; then
11075 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11076 echo " xemacs will be linked with \"esd.o\""
11078 { test "$extra_verbose" = "yes" && cat << \EOF
11079 Defining HAVE_ESD_SOUND
11081 cat >> confdefs.h <<\EOF
11082 #define HAVE_ESD_SOUND 1
11087 test "$with_esd_sound" = "yes" && \
11088 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11093 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11094 echo " xemacs will be linked with \"miscplay.o\""
11098 test -z "$with_tty" && with_tty=yes
11100 if test "$with_tty" = "yes" ; then
11101 echo "checking for TTY-related features" 1>&6
11102 echo "configure:11103: checking for TTY-related features" >&5
11103 { test "$extra_verbose" = "yes" && cat << \EOF
11106 cat >> confdefs.h <<\EOF
11111 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
11112 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\""
11115 if test -z "$with_ncurses"; then
11117 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11118 echo "configure:11119: checking for tgetent in -lncurses" >&5
11119 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11121 xe_check_libs=" -lncurses "
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136 eval "ac_cv_lib_$ac_lib_var=yes"
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 eval "ac_cv_lib_$ac_lib_var=no"
11146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11147 echo "$ac_t""yes" 1>&6
11150 echo "$ac_t""no" 1>&6
11156 if test "$with_ncurses" = "yes"; then
11157 { test "$extra_verbose" = "yes" && cat << \EOF
11158 Defining HAVE_NCURSES
11160 cat >> confdefs.h <<\EOF
11161 #define HAVE_NCURSES 1
11165 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11166 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11167 echo "configure:11168: checking for ncurses/curses.h" >&5
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 #include <ncurses/curses.h>
11174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11175 { (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11177 if test -z "$ac_err"; then
11179 eval "ac_cv_header_$ac_safe=yes"
11182 echo "configure: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
11185 eval "ac_cv_header_$ac_safe=no"
11188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11189 echo "$ac_t""yes" 1>&6
11190 curses_h_path=ncurses/curses.h
11192 echo "$ac_t""no" 1>&6
11195 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11196 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11197 echo "configure:11198: checking for ncurses/term.h" >&5
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 #include <ncurses/term.h>
11204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11205 { (eval echo configure:11206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11207 if test -z "$ac_err"; then
11209 eval "ac_cv_header_$ac_safe=yes"
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11215 eval "ac_cv_header_$ac_safe=no"
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 term_h_path=ncurses/term.h
11222 echo "$ac_t""no" 1>&6
11225 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11226 echo " xemacs will be linked with \"terminfo.o\""
11228 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11230 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11231 save_c_switch_site="$c_switch_site"
11232 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11233 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11234 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11235 echo "configure:11236: checking for ncurses/curses.h" >&5
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 #include <ncurses/curses.h>
11242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11243 { (eval echo configure:11244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11245 if test -z "$ac_err"; then
11247 eval "ac_cv_header_$ac_safe=yes"
11250 echo "configure: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11253 eval "ac_cv_header_$ac_safe=no"
11256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11257 echo "$ac_t""yes" 1>&6
11258 curses_h_path=ncurses/curses.h
11260 echo "$ac_t""no" 1>&6
11263 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11264 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11265 else c_switch_site="$save_c_switch_site"
11268 else if test "$have_terminfo" = "yes"; then
11269 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11270 echo " xemacs will be linked with \"terminfo.o\""
11272 if test -n "$libs_termcap"; then
11273 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11275 for lib in curses termlib termcap; do
11277 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11278 echo "configure:11279: checking for tgetent in -l$lib" >&5
11279 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11281 xe_check_libs=" -l$lib "
11282 cat > conftest.$ac_ext <<EOF
11283 #line 11284 "configure"
11284 #include "confdefs.h"
11285 /* Override any gcc2 internal prototype to avoid an error. */
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11294 if { (eval echo configure:11295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11296 eval "ac_cv_lib_$ac_lib_var=yes"
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11301 eval "ac_cv_lib_$ac_lib_var=no"
11306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11307 echo "$ac_t""yes" 1>&6
11308 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11310 echo "$ac_t""no" 1>&6
11316 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11317 echo " xemacs will be linked with \"tparam.o\""
11319 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11320 if test -n "$libs_termcap"; then
11321 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11324 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11325 echo "configure:11326: checking for tgetent in -lcurses" >&5
11326 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11328 xe_check_libs=" -lcurses "
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 /* Override any gcc2 internal prototype to avoid an error. */
11333 /* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11341 if { (eval echo configure:11342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11343 eval "ac_cv_lib_$ac_lib_var=yes"
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 eval "ac_cv_lib_$ac_lib_var=no"
11353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11354 echo "$ac_t""yes" 1>&6
11355 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11357 echo "$ac_t""no" 1>&6
11358 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11359 echo "configure:11360: checking for tgetent in -ltermcap" >&5
11360 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11362 xe_check_libs=" -ltermcap "
11363 cat > conftest.$ac_ext <<EOF
11364 #line 11365 "configure"
11365 #include "confdefs.h"
11366 /* Override any gcc2 internal prototype to avoid an error. */
11367 /* We use char because int might match the return type of a gcc2
11368 builtin and then its argument prototype would still apply. */
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11377 eval "ac_cv_lib_$ac_lib_var=yes"
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 eval "ac_cv_lib_$ac_lib_var=no"
11387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11388 echo "$ac_t""yes" 1>&6
11389 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
11391 echo "$ac_t""no" 1>&6
11392 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
11393 echo " xemacs will be linked with \"termcap.o\""
11404 { test "$extra_verbose" = "yes" && cat << EOF
11405 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
11407 cat >> confdefs.h <<EOF
11408 #define CURSES_H_PATH "${curses_h_path-curses.h}"
11412 { test "$extra_verbose" = "yes" && cat << EOF
11413 Defining TERM_H_PATH = "${term_h_path-term.h}"
11415 cat >> confdefs.h <<EOF
11416 #define TERM_H_PATH "${term_h_path-term.h}"
11421 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11422 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11423 echo "configure:11424: checking for gpm.h" >&5
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11431 { (eval echo configure:11432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11433 if test -z "$ac_err"; then
11435 eval "ac_cv_header_$ac_safe=yes"
11438 echo "configure: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11441 eval "ac_cv_header_$ac_safe=no"
11444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11445 echo "$ac_t""yes" 1>&6
11448 echo "$ac_t""no" 1>&6
11452 test -z "$with_gpm" && {
11453 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11454 echo "configure:11455: checking for Gpm_Open in -lgpm" >&5
11455 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11457 xe_check_libs=" -lgpm "
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 /* Override any gcc2 internal prototype to avoid an error. */
11462 /* We use char because int might match the return type of a gcc2
11463 builtin and then its argument prototype would still apply. */
11470 if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11472 eval "ac_cv_lib_$ac_lib_var=yes"
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11477 eval "ac_cv_lib_$ac_lib_var=no"
11482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11483 echo "$ac_t""yes" 1>&6
11486 echo "$ac_t""no" 1>&6
11491 if test "$with_gpm" = "yes"; then
11492 { test "$extra_verbose" = "yes" && cat << \EOF
11495 cat >> confdefs.h <<\EOF
11500 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
11501 echo " xemacs will be linked with \"gpmevent.o\""
11503 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
11506 else for feature in ncurses gpm; do
11507 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
11508 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
11510 eval "with_${feature}=no"
11513 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11514 echo " xemacs will be linked with \"event-unixoid.o\""
11518 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11519 != "no no no" && echo "checking for database support" 1>&6
11520 echo "configure:11521: checking for database support" >&5
11522 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11523 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11524 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11525 echo "configure:11526: checking for ndbm.h" >&5
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11533 { (eval echo configure:11534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11535 if test -z "$ac_err"; then
11537 eval "ac_cv_header_$ac_safe=yes"
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11543 eval "ac_cv_header_$ac_safe=no"
11546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11547 echo "$ac_t""yes" 1>&6
11550 echo "$ac_t""no" 1>&6
11552 test "$with_database_gdbm" = "yes" -o \
11553 "$with_database_dbm" = "yes" && \
11554 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11555 with_database_gdbm=no with_database_dbm=no
11560 if test "$with_database_gdbm" != "no"; then
11562 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11563 echo "configure:11564: checking for dbm_open in -lgdbm" >&5
11564 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11566 xe_check_libs=" -lgdbm "
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 /* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581 eval "ac_cv_lib_$ac_lib_var=yes"
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11586 eval "ac_cv_lib_$ac_lib_var=no"
11591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11592 echo "$ac_t""yes" 1>&6
11593 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
11595 echo "$ac_t""no" 1>&6
11596 if test "$with_database_gdbm" = "yes"; then
11597 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11599 with_database_gdbm=no
11605 if test "$with_database_dbm" != "no"; then
11606 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11607 echo "configure:11608: checking for dbm_open" >&5
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char dbm_open(); below. */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11616 /* We use char because int might match the return type of a gcc2
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11635 eval "ac_cv_func_dbm_open=yes"
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11640 eval "ac_cv_func_dbm_open=no"
11644 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11645 echo "$ac_t""yes" 1>&6
11646 with_database_dbm=yes libdbm=
11648 echo "$ac_t""no" 1>&6
11651 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11652 echo "configure:11653: checking for dbm_open in -ldbm" >&5
11653 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11655 xe_check_libs=" -ldbm "
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 /* We use char because int might match the return type of a gcc2
11661 builtin and then its argument prototype would still apply. */
11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11670 eval "ac_cv_lib_$ac_lib_var=yes"
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11675 eval "ac_cv_lib_$ac_lib_var=no"
11680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11681 echo "$ac_t""yes" 1>&6
11682 with_database_dbm=yes libdbm=-ldbm
11684 echo "$ac_t""no" 1>&6
11685 test "$with_database_dbm" = "yes" && \
11686 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11687 with_database_dbm=no
11695 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11696 test "$with_database_gdbm" = "yes" -o \
11697 "$with_database_dbm" = "yes" && \
11698 { test "$extra_verbose" = "yes" && cat << \EOF
11701 cat >> confdefs.h <<\EOF
11707 if test "$with_database_berkdb" != "no"; then
11708 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11709 echo "configure:11710: checking for Berkeley db.h" >&5
11710 for path in "db/db.h" "db.h"; do
11711 cat > conftest.$ac_ext <<EOF
11712 #line 11713 "configure"
11713 #include "confdefs.h"
11714 #ifdef HAVE_INTTYPES_H
11715 #define __BIT_TYPES_DEFINED__
11716 #include <inttypes.h>
11717 typedef uint8_t u_int8_t;
11718 typedef uint16_t u_int16_t;
11719 typedef uint32_t u_int32_t;
11720 #ifdef WE_DONT_NEED_QUADS
11721 typedef uint64_t u_int64_t;
11730 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11732 db_h_path="$path"; break
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11739 if test -z "$db_h_path"
11740 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
11741 else echo "$ac_t""$db_h_path" 1>&6
11744 if test "$with_database_berkdb" != "no"; then
11745 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11746 echo "configure:11747: checking for Berkeley DB version" >&5
11747 cat > conftest.$ac_ext <<EOF
11748 #line 11749 "configure"
11749 #include "confdefs.h"
11750 #include <$db_h_path>
11751 #if DB_VERSION_MAJOR > 1
11756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11757 egrep "yes" >/dev/null 2>&1; then
11759 echo "$ac_t""2" 1>&6; dbfunc=db_open
11762 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11766 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11767 echo "configure:11768: checking for $dbfunc" >&5
11769 cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11772 /* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $dbfunc(); below. */
11774 #include <assert.h>
11775 /* Override any gcc2 internal prototype to avoid an error. */
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
11793 if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11795 eval "ac_cv_func_$dbfunc=yes"
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11800 eval "ac_cv_func_$dbfunc=no"
11804 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 with_database_berkdb=yes need_libdb=no
11808 echo "$ac_t""no" 1>&6
11811 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11812 echo "configure:11813: checking for $dbfunc in -ldb" >&5
11813 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11815 xe_check_libs=" -ldb "
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11830 eval "ac_cv_lib_$ac_lib_var=yes"
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 eval "ac_cv_lib_$ac_lib_var=no"
11840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11841 echo "$ac_t""yes" 1>&6
11842 with_database_berkdb=yes need_libdb=yes
11844 echo "$ac_t""no" 1>&6
11852 if test "$with_database_berkdb" = "yes"; then
11853 { test "$extra_verbose" = "yes" && cat << EOF
11854 Defining DB_H_PATH = "$db_h_path"
11856 cat >> confdefs.h <<EOF
11857 #define DB_H_PATH "$db_h_path"
11861 { test "$extra_verbose" = "yes" && cat << \EOF
11862 Defining HAVE_BERKELEY_DB
11864 cat >> confdefs.h <<\EOF
11865 #define HAVE_BERKELEY_DB 1
11869 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11870 else with_database_berkdb=no
11874 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11875 != "no no no"; then
11876 { test "$extra_verbose" = "yes" && cat << \EOF
11877 Defining HAVE_DATABASE
11879 cat >> confdefs.h <<\EOF
11880 #define HAVE_DATABASE 1
11884 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
11885 echo " xemacs will be linked with \"database.o\""
11889 if test "$with_socks" = "yes"; then
11891 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11892 echo "configure:11893: checking for SOCKSinit in -lsocks" >&5
11893 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11895 xe_check_libs=" -lsocks "
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11908 if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11910 eval "ac_cv_lib_$ac_lib_var=yes"
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11915 eval "ac_cv_lib_$ac_lib_var=no"
11920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11921 echo "$ac_t""yes" 1>&6
11922 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11924 { test "$extra_verbose" = "yes" && cat << EOF
11925 Defining $ac_tr_lib
11927 cat >> confdefs.h <<EOF
11928 #define $ac_tr_lib 1
11932 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
11935 echo "$ac_t""no" 1>&6
11939 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
11940 Defining HAVE_SOCKS
11942 cat >> confdefs.h <<\EOF
11943 #define HAVE_SOCKS 1
11949 if test "$usage_tracking" = "yes"; then
11950 { test "$extra_verbose" = "yes" && cat << \EOF
11951 Defining USAGE_TRACKING
11953 cat >> confdefs.h <<\EOF
11954 #define USAGE_TRACKING 1
11958 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11961 if test "$with_modules" != "no"; then
11962 echo "checking for module support" 1>&6
11963 echo "configure:11964: checking for module support" >&5
11965 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
11966 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
11967 echo "configure:11968: checking for dlfcn.h" >&5
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11975 { (eval echo configure:11976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11977 if test -z "$ac_err"; then
11979 eval "ac_cv_header_$ac_safe=yes"
11982 echo "configure: failed program was:" >&5
11983 cat conftest.$ac_ext >&5
11985 eval "ac_cv_header_$ac_safe=no"
11988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11989 echo "$ac_t""yes" 1>&6
11992 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11993 echo "configure:11994: checking for dlopen in -ldl" >&5
11994 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11996 xe_check_libs=" -ldl "
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* Override any gcc2 internal prototype to avoid an error. */
12001 /* We use char because int might match the return type of a gcc2
12002 builtin and then its argument prototype would still apply. */
12009 if { (eval echo configure:12010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12011 eval "ac_cv_lib_$ac_lib_var=yes"
12013 echo "configure: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12016 eval "ac_cv_lib_$ac_lib_var=no"
12021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12022 echo "$ac_t""yes" 1>&6
12023 have_dl=yes libdl=dl
12025 echo "$ac_t""no" 1>&6
12027 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12028 echo "configure:12029: checking for dlopen in -lc" >&5
12029 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12031 xe_check_libs=" -lc "
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12044 if { (eval echo configure:12045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12046 eval "ac_cv_lib_$ac_lib_var=yes"
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 eval "ac_cv_lib_$ac_lib_var=no"
12056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12057 echo "$ac_t""yes" 1>&6
12060 echo "$ac_t""no" 1>&6
12068 echo "$ac_t""no" 1>&6
12071 if test -n "$have_dl"; then
12072 { test "$extra_verbose" = "yes" && cat << \EOF
12073 Defining HAVE_DLOPEN
12075 cat >> confdefs.h <<\EOF
12076 #define HAVE_DLOPEN 1
12082 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12083 echo "configure:12084: checking for shl_load in -ldld" >&5
12084 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12086 xe_check_libs=" -ldld "
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 /* Override any gcc2 internal prototype to avoid an error. */
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101 eval "ac_cv_lib_$ac_lib_var=yes"
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12106 eval "ac_cv_lib_$ac_lib_var=no"
12111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12112 echo "$ac_t""yes" 1>&6
12113 libdl=dld have_dl=yes;
12114 { test "$extra_verbose" = "yes" && cat << \EOF
12115 Defining HAVE_SHL_LOAD
12117 cat >> confdefs.h <<\EOF
12118 #define HAVE_SHL_LOAD 1
12123 echo "$ac_t""no" 1>&6
12125 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12126 echo "configure:12127: checking for dld_init in -ldld" >&5
12127 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12129 xe_check_libs=" -ldld "
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12142 if { (eval echo configure:12143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12144 eval "ac_cv_lib_$ac_lib_var=yes"
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12149 eval "ac_cv_lib_$ac_lib_var=no"
12154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12155 echo "$ac_t""yes" 1>&6
12156 libdl=dld have_dl=yes;
12157 { test "$extra_verbose" = "yes" && cat << \EOF
12158 Defining HAVE_DLD_INIT
12160 cat >> confdefs.h <<\EOF
12161 #define HAVE_DLD_INIT 1
12166 echo "$ac_t""no" 1>&6
12175 if test -n "$have_dl"; then
12182 ld_dynamic_link_flags=
12184 xealias=$internal_configuration
12186 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12187 echo "configure:12188: checking how to build dynamic libraries for ${xehost}" >&5
12188 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12191 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12194 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12195 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12196 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12198 case "$xehost_os" in
12200 # AIX sometimes has problems with the GCC collect2 program. For some
12201 # reason, if we set the COLLECT_NAMES environment variable, the problems
12202 # vanish in a puff of smoke.
12203 if test "${COLLECT_NAMES+set}" != set; then
12205 export COLLECT_NAMES
12210 # Now see if the compiler is really GCC.
12211 if test "$GCC" = "yes"; then
12214 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12215 echo "configure:12216: checking checking whether we are using GNU C" >&5
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12226 egrep "yes" >/dev/null 2>&1; then
12235 echo "$ac_t""${XEGCC}" 1>&6
12238 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12239 echo "configure:12240: checking how to produce PIC code" >&5
12242 can_build_shared=yes
12243 if test "$XEGCC" = yes; then
12246 case "$xehost_os" in
12247 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12248 # PIC is the default for these OSes.
12252 # We can build DLLs from non-PIC.
12255 # FIXME: we need at least 68020 code to build shared libraries, but
12256 # adding the `-m68020' flag to GCC prevents building anything better,
12258 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12265 # PORTME Check for PIC flags for the system compiler.
12266 case "$xehost_os" in
12267 hpux9* | hpux1[0-9]*)
12268 # Is there a better link_static_flag that works with the bundled CC?
12275 # PIC (with -KPIC) is the default.
12279 # We can build DLLs from non-PIC.
12283 # All OSF/1 code is PIC.
12288 dll_cflags='-belf -Kpic'
12322 can_build_shared=no
12327 if test -n "$dll_cflags"; then
12328 echo "$ac_t""${dll_cflags}" 1>&6
12330 # Check to make sure the dll_cflags actually works.
12331 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12332 echo "configure:12333: checking if PIC flag ${dll_cflags} really works" >&5
12333 save_CFLAGS="$CFLAGS"
12334 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12343 if { (eval echo configure:12344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12346 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12347 # reports no error. So, we need to grep stderr for (Bundled).
12348 if grep '(Bundled)' config.log >/dev/null; then
12349 echo "$ac_t""no" 1>&6
12350 can_build_shared=no
12353 echo "$ac_t""yes" 1>&6
12356 echo "configure: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12359 echo "$ac_t""no" 1>&6
12360 can_build_shared=no
12364 CFLAGS="$save_CFLAGS"
12366 echo "$ac_t""none" 1>&6
12369 if test "$can_build_shared" = "yes"; then
12373 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12374 echo "configure:12375: checking if C compiler can produce shared libraries" >&5
12375 if test "$XEGCC" = yes; then
12378 else # Not using GCC
12379 case "$xehost_os" in
12381 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
12382 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
12385 freebsd2* | netbsd* | openbsd*)
12387 xcldf="${wl}-Bshareable"
12396 xcldf="${wl}-b ${wl}+s"
12399 irix5* | irix6* | osf3* | osf4*)
12400 xcldf="${wl}-shared"
12404 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
12410 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
12411 xldf="-assert pure-text -Bstatic"
12414 fi # End if if we are using gcc
12416 if test -n "$xcldf"; then
12417 save_LDFLAGS=$LDFLAGS
12419 save_xe_libs=$xe_libs
12420 LDFLAGS="$xcldf $LDFLAGS"
12423 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12426 "configure"
12426 #include "confdefs.h"
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12442 LDFLAGS=$save_LDFLAGS
12444 xe_libs=$save_xe_libs
12445 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12449 echo "$ac_t""${cc_produces_so}" 1>&6
12452 if test -z "$LTLD"; then
12454 if test "$XEGCC" = yes; then
12455 # Check if gcc -print-prog-name=ld gives a path.
12456 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12457 echo "configure:12458: checking for ld used by GCC" >&5
12458 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12460 # Accept absolute paths.
12462 if test -z "$LTLD"; then
12464 *gcc-lib*) LTLD="$CC"
12472 # If it fails, then pretend we aren't using GCC.
12476 # If it is relative, then search for the first ld in PATH.
12477 with_gnu_ld=unknown
12481 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12482 echo "configure:12483: checking for GNU ld" >&5
12485 if test -z "$LTLD"; then
12486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12487 for ac_dir in $PATH; do
12488 test -z "$ac_dir" && ac_dir=.
12489 if test -f "$ac_dir/$ac_prog"; then
12490 LTLD="$ac_dir/$ac_prog"
12491 # Check to see if the program is GNU ld. I'd rather use --version,
12492 # but apparently some GNU ld's only accept -v.
12493 # Break only if it was the GNU/non-GNU ld that we prefer.
12494 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12504 if test -n "$LTLD"; then
12505 echo "$ac_t""${LTLD}" 1>&6
12507 echo "$ac_t""no" 1>&6
12510 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12511 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12516 ld_dynamic_link_flags=
12518 # Check to see if it really is or isn't GNU ld.
12519 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12520 echo "configure:12521: checking if the linker is GNU ld" >&5
12521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12522 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12527 echo "$ac_t""${xe_gnu_ld}" 1>&6
12529 case "$xehost_os" in
12530 amigaos* | sunos4*)
12531 # On these operating systems, we should treat GNU ld like the system ld.
12532 gnu_ld_acts_native=yes
12535 gnu_ld_acts_native=no
12539 if test "$cc_produces_so" = "yes"; then
12542 can_build_shared=yes
12544 # OK - only NOW do we futz about with ld.
12545 # See if the linker supports building shared libraries.
12546 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12547 echo "configure:12548: checking whether the linker supports shared libraries" >&5
12549 dll_ldflags=$LDFLAGS
12551 can_build_shared=yes
12552 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12553 # See if GNU ld supports shared libraries.
12554 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12556 dll_ldflags="-shared"
12562 # PORTME fill in a description of your system's linker (not GNU ld)
12563 case "$xehost_os" in
12573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12574 # support. Future versions do this automatically, but an explicit c++rt0.o
12575 # doesn't break anything, and helps significantly (at the cost of a little
12580 dll_post="/usr/lib/c++rt0.o"
12583 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12586 dll_ldflags="-Bshareable"
12589 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12591 dll_ldflags="-shared"
12605 # Tested with NetBSD 1.2 ld
12620 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12621 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12624 *gcc*) dll_ldflags="-shared"
12627 *) dll_ldflags="-G"
12633 if test "$XEGCC" = yes; then
12653 can_build_shared=no
12657 echo "$ac_t""${ld_shlibs}" 1>&6
12658 if test "$ld_shlibs" = "no"; then
12659 can_build_shared=no
12661 fi # End of if cc_produces_so = no
12664 if test "$xe_gnu_ld" = yes; then
12665 if test "$ld_shlibs" = yes; then
12666 ld_dynamic_link_flags="${wl}-export-dynamic"
12670 if test -z "$ld_dynamic_link_flags"; then
12671 case "$xehost_os" in
12673 ld_dynamic_link_flags=
12677 ld_dynamic_link_flags=
12681 ld_dynamic_link_flags=
12685 ld_dynamic_link_flags=
12689 ld_dynamic_link_flags=
12693 ld_dynamic_link_flags="${wl}-E"
12697 ld_dynamic_link_flags=
12701 ld_dynamic_link_flags=
12705 ld_dynamic_link_flags=
12709 ld_dynamic_link_flags=
12712 solaris2* | solaris7*)
12713 ld_dynamic_link_flags=
12716 sco3.2v5* | unixware* | sysv5* | sysv4*)
12717 ld_dynamic_link_flags="${wl}-Bexport"
12721 ld_dynamic_link_flags=
12725 ld_dynamic_link_flags=
12729 ld_dynamic_link_flags=
12733 fi # End of if -z ld_dynamic_link_flags
12734 fi # End of if test "$can_build_shared" = "yes"
12745 if test "$can_build_shared" = "yes"; then
12746 { test "$extra_verbose" = "yes" && cat << \EOF
12747 Defining HAVE_SHLIB
12749 cat >> confdefs.h <<\EOF
12750 #define HAVE_SHLIB 1
12754 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
12755 echo " xemacs will be linked with \"sysdll.o emodules.o\""
12757 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12758 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
12759 for ac_func in dlerror _dlerror
12761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12762 echo "configure:12763: checking for $ac_func" >&5
12764 cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12767 /* System header to define __stub macros and hopefully few prototypes,
12768 which can conflict with char $ac_func(); below. */
12769 #include <assert.h>
12770 /* Override any gcc2 internal prototype to avoid an error. */
12771 /* We use char because int might match the return type of a gcc2
12772 builtin and then its argument prototype would still apply. */
12777 /* The GNU C library defines this for functions which it implements
12778 to always fail with ENOSYS. Some functions are actually named
12779 something starting with __ and the normal name is an alias. */
12780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12788 if { (eval echo configure:12789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12790 eval "ac_cv_func_$ac_func=yes"
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12795 eval "ac_cv_func_$ac_func=no"
12799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12800 echo "$ac_t""yes" 1>&6
12801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12802 { test "$extra_verbose" = "yes" && cat << EOF
12803 Defining $ac_tr_func
12805 cat >> confdefs.h <<EOF
12806 #define $ac_tr_func 1
12811 echo "$ac_t""no" 1>&6
12817 if test "$with_modules" = "yes"; then
12818 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
12820 echo "configure: warning: "Module support cannot be provided."" 1>&2
12826 cat > conftest.$ac_ext <<EOF
12827 #line 12828 "configure"
12828 #include "confdefs.h"
12829 int main(int c,char *v[]){return 0;}
12831 if { (eval echo configure:12832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12841 echo "*** PANIC *** The C compiler can no longer build working executables."
12842 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
12843 echo "*** PANIC *** The most likely reason for this problem is that configure"
12844 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
12845 echo "*** PANIC *** found at run time."
12846 echo "*** PANIC ***"
12847 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
12848 echo "*** PANIC *** On other systems, try telling configure where to find the"
12849 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
12850 echo "*** PANIC ***"
12851 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
12852 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
12853 echo "*** PANIC *** on your system. Don't do that."
12858 if test "$win32_processes" = "yes"; then
12859 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
12860 echo " xemacs will be linked with \"process-nt.o\""
12863 { test "$extra_verbose" = "yes" && cat << \EOF
12864 Defining HAVE_UNIX_PROCESSES
12866 cat >> confdefs.h <<\EOF
12867 #define HAVE_UNIX_PROCESSES 1
12871 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12872 echo " xemacs will be linked with \"process-unix.o\""
12879 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12884 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12889 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
12890 c_switch_general="$T"
12894 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12895 c_switch_window_system="$T"
12899 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12904 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
12905 ld_switch_general="$T"
12909 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12910 ld_switch_window_system="$T"
12914 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12919 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12920 ld_libs_general="$T"
12924 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12925 ld_libs_window_system="$T"
12929 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12934 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
12935 internal_makefile_list="Makefile.in"
12936 SUBDIR_MAKEFILES=''
12937 test -d lock || mkdir lock
12938 for dir in $MAKE_SUBDIR; do
12939 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
12940 test -d "$d" || mkdir "$d"; cd "$d"
12942 * ) test -d "$dir" || mkdir "$dir" ;;
12946 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12947 SUBDIR_MAKEFILES="$T"
12951 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12952 internal_makefile_list="$T"
12959 for dir in src/s src/m; do
12960 if test ! -d "$dir" ; then
12961 echo Making symbolic link to "$srcdir/$dir"
12962 ${LN_S} "$srcdir/$dir" "$dir"
12966 if test "$extra_verbose" = "yes"; then
12968 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
12972 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
12973 echo "creating src/gdbinit"; echo ""
12974 echo "source $srcdir/src/gdbinit" > src/gdbinit
12977 if test "$__SUNPRO_C" = "yes"; then
12978 echo "creating .sbinit"; echo ""
12979 ( echo "# For use with Sun WorkShop's Source browser."
12980 echo "# See sbquery(1) and sbinit(4) for more information"
12981 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13008 *\$* ) eval "PREFIX=$PREFIX" ;;
13016 EXEC_PREFIX=$exec_prefix
13018 case "$EXEC_PREFIX" in
13019 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13030 *\$* ) eval "INFODIR=$INFODIR" ;;
13040 case "$INFOPATH" in
13041 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13049 PACKAGE_PATH=$package_path
13051 case "$PACKAGE_PATH" in
13052 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13063 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13071 MODULEDIR=$moduledir
13073 case "$MODULEDIR" in
13074 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13082 SITELISPDIR=$sitelispdir
13084 case "$SITELISPDIR" in
13085 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13093 SITEMODULEDIR=$sitemoduledir
13095 case "$SITEMODULEDIR" in
13096 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13107 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13118 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13129 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13137 ARCHLIBDIR=$archlibdir
13139 case "$ARCHLIBDIR" in
13140 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13164 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13172 : ${XEMACS_CC:=$CC}
13175 if test "$with_prefix" = "yes"; then
13176 { test "$extra_verbose" = "yes" && cat << \EOF
13177 Defining PREFIX_USER_DEFINED
13179 cat >> confdefs.h <<\EOF
13180 #define PREFIX_USER_DEFINED 1
13186 if test "$with_site_lisp" = "no"; then
13187 { test "$extra_verbose" = "yes" && cat << \EOF
13188 Defining INHIBIT_SITE_LISP
13190 cat >> confdefs.h <<\EOF
13191 #define INHIBIT_SITE_LISP 1
13196 if test "$with_site_modules" = "no"; then
13197 { test "$extra_verbose" = "yes" && cat << \EOF
13198 Defining INHIBIT_SITE_MODULES
13200 cat >> confdefs.h <<\EOF
13201 #define INHIBIT_SITE_MODULES 1
13209 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13210 ac_configure_args="$T"
13212 { test "$extra_verbose" = "yes" && cat << EOF
13213 Defining EMACS_CONFIGURATION = "$configuration"
13215 cat >> confdefs.h <<EOF
13216 #define EMACS_CONFIGURATION "$configuration"
13220 { test "$extra_verbose" = "yes" && cat << EOF
13221 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13223 cat >> confdefs.h <<EOF
13224 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13228 { test "$extra_verbose" = "yes" && cat << EOF
13229 Defining config_machfile = "$machfile"
13231 cat >> confdefs.h <<EOF
13232 #define config_machfile "$machfile"
13236 { test "$extra_verbose" = "yes" && cat << EOF
13237 Defining config_opsysfile = "$opsysfile"
13239 cat >> confdefs.h <<EOF
13240 #define config_opsysfile "$opsysfile"
13247 { test "$extra_verbose" = "yes" && cat << EOF
13248 Defining LD_SWITCH_X_SITE = $null_string
13250 cat >> confdefs.h <<EOF
13251 #define LD_SWITCH_X_SITE $null_string
13255 { test "$extra_verbose" = "yes" && cat << EOF
13256 Defining LD_SWITCH_X_SITE_AUX = $null_string
13258 cat >> confdefs.h <<EOF
13259 #define LD_SWITCH_X_SITE_AUX $null_string
13263 { test "$extra_verbose" = "yes" && cat << EOF
13264 Defining C_SWITCH_X_SITE = $null_string
13266 cat >> confdefs.h <<EOF
13267 #define C_SWITCH_X_SITE $null_string
13271 { test "$extra_verbose" = "yes" && cat << EOF
13272 Defining LD_SWITCH_SITE = $null_string
13274 cat >> confdefs.h <<EOF
13275 #define LD_SWITCH_SITE $null_string
13279 { test "$extra_verbose" = "yes" && cat << EOF
13280 Defining C_SWITCH_SITE = $null_string
13282 cat >> confdefs.h <<EOF
13283 #define C_SWITCH_SITE $null_string
13289 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13290 Defining GNU_MALLOC
13292 cat >> confdefs.h <<\EOF
13293 #define GNU_MALLOC 1
13297 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13298 Defining USE_SYSTEM_MALLOC
13300 cat >> confdefs.h <<\EOF
13301 #define USE_SYSTEM_MALLOC 1
13305 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13306 Defining USE_DEBUG_MALLOC
13308 cat >> confdefs.h <<\EOF
13309 #define USE_DEBUG_MALLOC 1
13313 { test "$extra_verbose" = "yes" && cat << \EOF
13314 Defining USE_SYSTEM_MALLOC
13316 cat >> confdefs.h <<\EOF
13317 #define USE_SYSTEM_MALLOC 1
13322 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13325 cat >> confdefs.h <<\EOF
13330 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13333 cat >> confdefs.h <<\EOF
13338 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13339 Defining EXTERNAL_WIDGET
13341 cat >> confdefs.h <<\EOF
13342 #define EXTERNAL_WIDGET 1
13346 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13347 Defining NO_DOC_FILE
13349 cat >> confdefs.h <<\EOF
13350 #define NO_DOC_FILE 1
13354 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13357 cat >> confdefs.h <<\EOF
13362 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13365 cat >> confdefs.h <<\EOF
13370 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13371 Defining MAIL_USE_POP
13373 cat >> confdefs.h <<\EOF
13374 #define MAIL_USE_POP 1
13378 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13381 cat >> confdefs.h <<\EOF
13386 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13389 cat >> confdefs.h <<\EOF
13394 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13395 Defining USE_UNION_TYPE
13397 cat >> confdefs.h <<\EOF
13398 #define USE_UNION_TYPE 1
13402 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13405 cat >> confdefs.h <<\EOF
13413 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
13415 echo "uname -a: `uname -a`"
13418 echo "$0 $quoted_arguments"
13421 if test ! -z ${emacs_beta_version} ; then
13422 if test -z "${emacs_is_beta}" ; then
13423 xemacs_betaname=".${emacs_beta_version}"
13425 xemacs_betaname="-b${emacs_beta_version}"
13434 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13436 Where should the build process find the source code? $srcdir
13437 What installation prefix should install use? $prefix
13438 What operating system and machine description files should XEmacs use?
13439 \`$opsysfile' and \`$machfile'
13440 What compiler should XEmacs be built with? $CC $CFLAGS
13441 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13442 Should XEmacs use the relocating allocator for buffers? $rel_alloc
13443 What window system should XEmacs use? ${window_system}"
13444 if test "$with_x11" = "yes"; then
13445 echo " Where do we find X Windows header files? $x_includes"
13446 echo " Where do we find X Windows libraries? $x_libraries"
13448 if test -n "$site_includes"; then
13449 echo " Additional header files: $site_includes"
13451 if test -n "$site_libraries"; then
13452 echo " Additional libraries: $site_libraries"
13454 if test -n "$site_prefixes"; then
13455 echo " Additional prefixes: $site_prefixes"
13457 if test -n "$runpath"; then
13458 echo " Runtime library search path: $runpath"
13460 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13461 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13462 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13463 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13464 echo " No Xmu; substituting equivalent routines."
13467 if test "$with_xpm" = yes; then
13468 echo " Compiling in support for XPM images."
13469 elif test "$with_x11" = yes; then
13470 echo " --------------------------------------------------------------------"
13471 echo " WARNING: Compiling without XPM support."
13472 if test "$xpm_problem" != ""; then
13473 echo " Reason: $xpm_problem"
13475 echo " WARNING: You should strongly consider installing XPM."
13476 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
13477 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13478 echo " --------------------------------------------------------------------"
13480 if test "$with_png" = yes; then
13481 echo " Compiling in support for PNG image handling."
13482 elif test "$window_system" != "none"; then
13483 echo " --------------------------------------------------------------------"
13484 echo " WARNING: Compiling without PNG image support."
13485 if test "$png_problem" != ""; then
13486 echo " Reason: $png_problem"
13488 echo " WARNING: You should strongly consider installing the PNG libraries."
13489 echo " WARNING: Otherwise certain images and glyphs may not display."
13490 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
13491 echo " --------------------------------------------------------------------"
13493 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13494 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13495 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13496 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13498 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13499 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13500 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13501 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
13503 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13504 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13505 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13507 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13509 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13510 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13512 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13513 test "$with_file_coding" = yes && echo " Compiling in File coding support."
13514 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
13515 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
13516 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
13517 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
13518 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
13519 if test "$with_wnn" = yes; then
13520 echo " Compiling in support for the WNN input method on Mule."
13521 test "$with_wnn6" = yes && echo " Using WNN version 6."
13523 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
13525 test "$with_cde" = yes && echo " Compiling in support for CDE."
13526 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13527 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13528 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13529 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13530 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13531 case "$with_menubars" in
13532 lucid ) echo " Using Lucid menubars." ;;
13533 motif ) echo " Using Motif menubars."
13534 echo " *WARNING* The Motif menubar implementation is currently buggy."
13535 echo " We recommend using the Lucid menubar instead."
13536 echo " Re-run configure with --with-menubars='lucid'." ;;
13537 msw ) echo " Using MS-Windows menubars." ;;
13539 case "$with_scrollbars" in
13540 lucid ) echo " Using Lucid scrollbars." ;;
13541 motif ) echo " Using Motif scrollbars." ;;
13542 athena ) echo " Using Athena scrollbars." ;;
13543 athena3d ) echo " Using Athena-3d scrollbars." ;;
13544 msw ) echo " Using MS-Windows scrollbars." ;;
13546 case "$with_widgets" in
13547 motif ) echo " Using Motif native widgets." ;;
13548 athena ) echo " Using Athena native widgets." ;;
13549 athena3d ) echo " Using Athena-3d native widgets." ;;
13550 msw ) echo " Using MS-Windows native widgets." ;;
13552 case "$with_dialogs" in
13554 echo " Using Motif dialog boxes."
13555 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13556 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13557 echo " We recommend using the Athena dialog boxes instead."
13558 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13559 echo " Read the PROBLEMS file for more information."
13562 athena ) echo " Using Athena dialog boxes." ;;
13563 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13564 msw ) echo " Using MS-Windows dialog boxes." ;;
13566 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
13567 test "$with_clash_detection" = yes && \
13568 echo " Clash detection will use \"$lockdir\" for locking files."
13569 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13570 test "$with_pop" = yes && echo " Using POP for mail access."
13571 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13572 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13573 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13574 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
13575 test "$debug" = yes && echo " Compiling in extra code for debugging."
13576 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13577 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13578 != "no no no no no"; then
13579 echo " WARNING: ---------------------------------------------------------"
13580 echo " WARNING: Compiling in support for runtime error checking."
13581 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13582 echo " WARNING: Error checking is on by default for XEmacs beta releases."
13583 echo " WARNING: ---------------------------------------------------------"
13586 ) | tee -a Installation
13590 # Remove any trailing slashes in these variables.
13591 test -n "$prefix" &&
13592 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13593 test -n "$exec_prefix" &&
13594 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13597 for file in $internal_makefile_list; do
13598 test "$file" = src/Makefile.in && \
13599 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13600 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
13602 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13603 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
13607 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13610 # Let make expand exec_prefix.
13611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13613 # Any assignment to VPATH causes Sun make to only execute
13614 # the first set of double-colon rules, so remove it if not needed.
13615 # If there is a colon in the path, we need to keep it.
13616 if test "x$srcdir" = x.; then
13617 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13620 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13622 DEFS=-DHAVE_CONFIG_H
13624 # Without the "./", some shells look in PATH for config.status.
13625 : ${CONFIG_STATUS=./config.status}
13627 echo creating $CONFIG_STATUS
13628 rm -f $CONFIG_STATUS
13629 cat > $CONFIG_STATUS <<EOF
13631 # Generated automatically by configure.
13632 # Run this file to recreate the current configuration.
13633 # This directory was configured as follows,
13634 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13636 # $0 $ac_configure_args
13638 # Compiler output produced by configure, useful for debugging
13639 # configure, is in ./config.log if it exists.
13641 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13644 case "\$ac_option" in
13645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13646 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13647 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13648 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13649 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13651 -help | --help | --hel | --he | --h)
13652 echo "\$ac_cs_usage"; exit 0 ;;
13653 *) echo "\$ac_cs_usage"; exit 1 ;;
13657 ac_given_srcdir=$srcdir
13658 ac_given_INSTALL="$INSTALL"
13660 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13662 cat >> $CONFIG_STATUS <<EOF
13664 # Protect against being on the right side of a sed subst in config.status.
13665 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13666 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13670 s%@CFLAGS@%$CFLAGS%g
13671 s%@CPPFLAGS@%$CPPFLAGS%g
13672 s%@CXXFLAGS@%$CXXFLAGS%g
13673 s%@FFLAGS@%$FFLAGS%g
13675 s%@LDFLAGS@%$LDFLAGS%g
13677 s%@exec_prefix@%$exec_prefix%g
13678 s%@prefix@%$prefix%g
13679 s%@program_transform_name@%$program_transform_name%g
13680 s%@bindir@%$bindir%g
13681 s%@sbindir@%$sbindir%g
13682 s%@libexecdir@%$libexecdir%g
13683 s%@datadir@%$datadir%g
13684 s%@sysconfdir@%$sysconfdir%g
13685 s%@sharedstatedir@%$sharedstatedir%g
13686 s%@localstatedir@%$localstatedir%g
13687 s%@libdir@%$libdir%g
13688 s%@includedir@%$includedir%g
13689 s%@oldincludedir@%$oldincludedir%g
13690 s%@infodir@%$infodir%g
13691 s%@mandir@%$mandir%g
13693 s%@blddir@%$blddir%g
13696 s%@start_flags@%$start_flags%g
13697 s%@ld_switch_shared@%$ld_switch_shared%g
13698 s%@start_files@%$start_files%g
13700 s%@lib_gcc@%$lib_gcc%g
13701 s%@RANLIB@%$RANLIB%g
13702 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13703 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13704 s%@INSTALL_DATA@%$INSTALL_DATA%g
13706 s%@SET_MAKE@%$SET_MAKE%g
13707 s%@X_CFLAGS@%$X_CFLAGS%g
13708 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13709 s%@X_LIBS@%$X_LIBS%g
13710 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13711 s%@install_pp@%$install_pp%g
13712 s%@libs_xauth@%$libs_xauth%g
13713 s%@dnd_objs@%$dnd_objs%g
13714 s%@lwlib_objs@%$lwlib_objs%g
13715 s%@ALLOCA@%$ALLOCA%g
13716 s%@have_esd_config@%$have_esd_config%g
13717 s%@dll_ld@%$dll_ld%g
13718 s%@dll_cflags@%$dll_cflags%g
13719 s%@dll_ldflags@%$dll_ldflags%g
13720 s%@dll_post@%$dll_post%g
13721 s%@dll_ldo@%$dll_ldo%g
13722 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
13723 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
13724 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
13725 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
13726 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13727 s%@PROGNAME@%$PROGNAME%g
13728 s%@version@%$version%g
13729 s%@configuration@%$configuration%g
13730 s%@canonical@%$canonical%g
13731 s%@inststaticdir@%$inststaticdir%g
13732 s%@instvardir@%$instvardir%g
13733 s%@srcdir@%$srcdir%g
13734 s%@pkgdir@%$pkgdir%g
13735 s%@statedir@%$statedir%g
13736 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13737 s%@PREFIX@%$PREFIX%g
13738 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13739 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13740 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13741 s%@INFODIR@%$INFODIR%g
13742 s%@infopath@%$infopath%g
13743 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13744 s%@INFOPATH@%$INFOPATH%g
13745 s%@package_path@%$package_path%g
13746 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
13747 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
13748 s%@lispdir@%$lispdir%g
13749 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
13750 s%@LISPDIR@%$LISPDIR%g
13751 s%@moduledir@%$moduledir%g
13752 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13753 s%@MODULEDIR@%$MODULEDIR%g
13754 s%@sitelispdir@%$sitelispdir%g
13755 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13756 s%@SITELISPDIR@%$SITELISPDIR%g
13757 s%@sitemoduledir@%$sitemoduledir%g
13758 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13759 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
13760 s%@etcdir@%$etcdir%g
13761 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13762 s%@ETCDIR@%$ETCDIR%g
13763 s%@lockdir@%$lockdir%g
13764 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13765 s%@LOCKDIR@%$LOCKDIR%g
13766 s%@docdir@%$docdir%g
13767 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
13768 s%@DOCDIR@%$DOCDIR%g
13769 s%@archlibdir@%$archlibdir%g
13770 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13771 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13772 s%@bitmapdir@%$bitmapdir%g
13773 s%@extra_objs@%$extra_objs%g
13774 s%@machfile@%$machfile%g
13775 s%@opsysfile@%$opsysfile%g
13776 s%@c_switch_general@%$c_switch_general%g
13777 s%@c_switch_window_system@%$c_switch_window_system%g
13778 s%@c_switch_all@%$c_switch_all%g
13779 s%@ld_switch_general@%$ld_switch_general%g
13780 s%@ld_switch_window_system@%$ld_switch_window_system%g
13781 s%@ld_switch_all@%$ld_switch_all%g
13782 s%@ld_libs_general@%$ld_libs_general%g
13783 s%@ld_libs_window_system@%$ld_libs_window_system%g
13784 s%@ld_libs_all@%$ld_libs_all%g
13785 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
13786 s%@native_sound_lib@%$native_sound_lib%g
13787 s%@sound_cflags@%$sound_cflags%g
13788 s%@dynodump_arch@%$dynodump_arch%g
13789 s%@XEMACS_CC@%$XEMACS_CC%g
13790 s%@internal_makefile_list@%$internal_makefile_list%g
13795 cat >> $CONFIG_STATUS <<\EOF
13797 # Split the substitutions into bite-sized pieces for seds with
13798 # small command number limits, like on Digital OSF/1 and HP-UX.
13799 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13800 ac_file=1 # Number of current file.
13801 ac_beg=1 # First line for current file.
13802 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13805 while $ac_more_lines; do
13806 if test $ac_beg -gt 1; then
13807 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13809 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13811 if test ! -s conftest.s$ac_file; then
13812 ac_more_lines=false
13813 rm -f conftest.s$ac_file
13815 if test -z "$ac_sed_cmds"; then
13816 ac_sed_cmds="sed -f conftest.s$ac_file"
13818 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13820 ac_file=`expr $ac_file + 1`
13822 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13825 if test -z "$ac_sed_cmds"; then
13830 cat >> $CONFIG_STATUS <<EOF
13832 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
13834 cat >> $CONFIG_STATUS <<\EOF
13835 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13838 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13839 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13840 *) ac_file_in="${ac_file}.in" ;;
13843 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13845 # Remove last slash and all that follows it. Not all systems have dirname.
13846 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13848 # The file is in a subdirectory.
13849 test ! -d "$ac_dir" && mkdir "$ac_dir"
13850 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13851 # A "../" for each directory in $ac_dir_suffix.
13852 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13854 ac_dir_suffix= ac_dots=
13857 case "$ac_given_srcdir" in
13859 if test -z "$ac_dots"; then top_srcdir=.
13860 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13861 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13862 *) # Relative path.
13863 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13864 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13867 case "$ac_given_INSTALL" in
13868 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13869 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13872 echo creating "$ac_file"
13874 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13876 *Makefile*) ac_comsub="1i\\
13877 # $configure_input" ;;
13881 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13883 s%@configure_input@%$configure_input%g
13884 s%@srcdir@%$srcdir%g
13885 s%@top_srcdir@%$top_srcdir%g
13886 s%@INSTALL@%$INSTALL%g
13887 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13891 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13892 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13894 # ac_d sets the value in "#define NAME VALUE" lines.
13895 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13896 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13899 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13900 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13901 ac_uB='\([ ]\)%\1#\2define\3'
13904 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13905 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13906 ac_eB='$%\1#\2define\3'
13910 if test "${CONFIG_HEADERS+set}" != set; then
13912 cat >> $CONFIG_STATUS <<EOF
13913 CONFIG_HEADERS="src/config.h lwlib/config.h"
13915 cat >> $CONFIG_STATUS <<\EOF
13917 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13922 *) ac_file_in="${ac_file}.in" ;;
13925 echo creating $ac_file
13927 rm -f conftest.frag conftest.in conftest.out
13928 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13929 cat $ac_file_inputs > conftest.in
13933 # Transform confdefs.h into a sed script conftest.vals that substitutes
13934 # the proper values into config.h.in to produce config.h. And first:
13935 # Protect against being on the right side of a sed subst in config.status.
13936 # Protect against being in an unquoted here document in config.status.
13937 rm -f conftest.vals
13938 cat > conftest.hdr <<\EOF
13941 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13945 sed -n -f conftest.hdr confdefs.h > conftest.vals
13948 # This sed command replaces #undef with comments. This is necessary, for
13949 # example, in the case of _POSIX_SOURCE, which is predefined and required
13950 # on some systems where configure will not decide to define it.
13951 cat >> conftest.vals <<\EOF
13952 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13955 # Break up conftest.vals because some shells have a limit on
13956 # the size of here documents, and old seds have small limits too.
13958 rm -f conftest.tail
13961 ac_lines=`grep -c . conftest.vals`
13962 # grep -c gives empty output for an empty file on some AIX systems.
13963 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13964 # Write a limited-size here document to conftest.frag.
13965 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13966 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13968 sed -f conftest.frag conftest.in > conftest.out
13970 mv conftest.out conftest.in
13971 ' >> $CONFIG_STATUS
13972 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13973 rm -f conftest.vals
13974 mv conftest.tail conftest.vals
13976 rm -f conftest.vals
13978 cat >> $CONFIG_STATUS <<\EOF
13979 rm -f conftest.frag conftest.h
13980 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13981 cat conftest.in >> conftest.h
13983 if cmp -s $ac_file conftest.h 2>/dev/null; then
13984 echo "$ac_file is unchanged"
13987 # Remove last slash and all that follows it. Not all systems have dirname.
13988 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13989 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13990 # The file is in a subdirectory.
13991 test ! -d "$ac_dir" && mkdir "$ac_dir"
13994 mv conftest.h $ac_file
13999 cat >> $CONFIG_STATUS <<EOF
14001 top_srcdir="$srcdir"
14002 MAKE_SUBDIR="$MAKE_SUBDIR"
14005 cat >> $CONFIG_STATUS <<\EOF
14006 for dir in . $MAKE_SUBDIR; do
14011 sed -e '/^# Generated/d' \
14012 -e 's%/\*\*/#.*%%' \
14027 echo creating $dir/Makefile
14028 $CPP -I. -I${top_srcdir}/src junk.c \
14029 | sed -e 's/^\#.*//' \
14030 -e 's/^[ ][ ]*$//'\
14032 | sed -n -e '/^..*$/p' \
14038 chmod 444 Makefile.new
14039 mv -f Makefile.new Makefile
14041 echo creating $dir/GNUmakefile
14042 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14043 | sed -e 's/^\#.*//' \
14044 -e 's/^[ ][ ]*$//'\
14046 | sed -n -e '/^..*$/p' \
14052 chmod 444 Makefile.new
14053 mv -f Makefile.new GNUmakefile
14059 sed < config.status >> lib-src/config.values \
14060 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14061 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14062 -e 's/^\([^ ]*\) $/\1 ""/' \
14068 chmod +x $CONFIG_STATUS
14069 rm -fr confdefs* $ac_clean_files
14070 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1