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'
274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c) ;;
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
288 while test $# != 0; do
291 --no-create|--no-recursion) ;;
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
296 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
300 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
301 val="yes" valomitted=yes
306 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
308 case "${valomitted}-${opt}" in yes-without_* )
309 opt=`echo $opt | sed 's/without/with/'`
310 valomitted="no" val="no" ;;
317 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 xa | xaw ) val=xaw ;;
488 3 | 3d | xaw3d ) val=3d ;;
489 ne | nex | next | naxtaw) val=next ;;
490 9 | 95 | xaw95 ) val=95 ;;
491 xp | xpm | xawxpm ) val=xpm ;;
492 * ) (echo "$progname: Usage error:"
493 echo " " "The \`--$optname' option must have one of these values:
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
502 y | ye | yes ) val=yes ;;
503 n | no | non | none ) val=no ;;
504 x | xl | xli | xlib ) val=xlib ;;
505 m | mo | mot | moti | motif ) val=motif ;;
506 * ) (echo "$progname: Usage error:"
507 echo " " "The \`--$optname' option must have one of these values:
508 \`motif', \`xlib', \`yes', or \`no'."
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
518 file | dot ) val=file ;;
519 locking ) val=locking ;;
520 * ) (echo "$progname: Usage error:"
521 echo " " "The \`--$optname' option must have one of these values:
522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
532 n | no | non | none ) new_default=no ;;
533 a | al | all ) new_default=yes ;;
535 extents ) error_check_extents=yes ;;
536 noextents ) error_check_extents=no ;;
538 typecheck ) error_check_typecheck=yes ;;
539 notypecheck ) error_check_typecheck=no ;;
541 bufpos ) error_check_bufpos=yes ;;
542 nobufpos ) error_check_bufpos=no ;;
544 gc ) error_check_gc=yes ;;
545 nogc ) error_check_gc=no ;;
547 malloc ) error_check_malloc=yes ;;
548 nomalloc ) error_check_malloc=no ;;
550 byte_code ) error_check_byte_code=yes ;;
551 nobyte_code ) error_check_byte_code=no ;;
553 * ) bogus_error_check=yes ;;
555 if test "$bogus_error_check" -o \
556 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
557 if test "$error_check_default" = yes ; then
558 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
560 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
562 (echo "$progname: Usage error:"
563 echo " " "Valid types for the \`--$optname' option are:
565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
566 elif test -n "$new_default" ; then
567 error_check_extents=$new_default
568 error_check_typecheck=$new_default
569 error_check_bufpos=$new_default
570 error_check_gc=$new_default
571 error_check_malloc=$new_default
572 error_check_byte_code=$new_default
573 new_default= # reset this
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
581 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
582 archlibdir | docdir | package_path )
583 if test "$valomitted" = "yes"; then
584 if test "$#" = 0; then
585 (echo "$progname: Usage error:"
586 echo " " "The \`--$optname' option requires a value."
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
603 Defining LISPDIR_USER_DEFINED
605 cat >> confdefs.h <<\EOF
606 #define LISPDIR_USER_DEFINED 1
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
611 Defining SITELISPDIR_USER_DEFINED
613 cat >> confdefs.h <<\EOF
614 #define SITELISPDIR_USER_DEFINED 1
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining MODULEDIR_USER_DEFINED
621 cat >> confdefs.h <<\EOF
622 #define MODULEDIR_USER_DEFINED 1
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
627 Defining ETCDIR_USER_DEFINED
629 cat >> confdefs.h <<\EOF
630 #define ETCDIR_USER_DEFINED 1
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
635 Defining INFODIR_USER_DEFINED
637 cat >> confdefs.h <<\EOF
638 #define INFODIR_USER_DEFINED 1
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
643 Defining INFOPATH_USER_DEFINED
645 cat >> confdefs.h <<\EOF
646 #define INFOPATH_USER_DEFINED 1
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
651 Defining PACKAGE_PATH_USER_DEFINED
653 cat >> confdefs.h <<\EOF
654 #define PACKAGE_PATH_USER_DEFINED 1
659 { test "$extra_verbose" = "yes" && cat << \EOF
660 Defining INFODIR_USER_DEFINED
662 cat >> confdefs.h <<\EOF
663 #define INFODIR_USER_DEFINED 1
667 { test "$extra_verbose" = "yes" && cat << \EOF
668 Defining LISPDIR_USER_DEFINED
670 cat >> confdefs.h <<\EOF
671 #define LISPDIR_USER_DEFINED 1
675 { test "$extra_verbose" = "yes" && cat << \EOF
676 Defining MODULEDIR_USER_DEFINED
678 cat >> confdefs.h <<\EOF
679 #define MODULEDIR_USER_DEFINED 1
683 { test "$extra_verbose" = "yes" && cat << \EOF
684 Defining ETCDIR_USER_DEFINED
686 cat >> confdefs.h <<\EOF
687 #define ETCDIR_USER_DEFINED 1
691 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining LOCKDIR_USER_DEFINED
694 cat >> confdefs.h <<\EOF
695 #define LOCKDIR_USER_DEFINED 1
699 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining DOCDIR_USER_DEFINED
702 cat >> confdefs.h <<\EOF
703 #define DOCDIR_USER_DEFINED 1
707 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
708 Defining ARCHLIBDIR_USER_DEFINED
710 cat >> confdefs.h <<\EOF
711 #define ARCHLIBDIR_USER_DEFINED 1
720 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
723 "with_scrollbars" | \
727 l | lu | luc | luci | lucid ) val=lucid ;;
728 m | mo | mot | moti | motif ) val=motif ;;
729 a | at | ath | athe | athen | athena ) val=athena ;;
730 n | no | non | none ) val=no ;;
731 * ) (echo "$progname: Usage error:"
732 echo " " "The \`--$optname' option must have one of these values:
733 \`lucid', \`motif', \`athena', or \`no'."
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
739 "use_minimal_tagbits" | \
740 "use_indexed_lrecord_implementation" | \
742 "const_is_losing" | \
744 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
747 * ) (echo "$progname: Usage error:"
748 echo " " "Unrecognized option: $arg"
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
754 *-*-*) configuration="$arg" ;;
756 *) (echo "$progname: Usage error:"
757 echo " " "Unrecognized argument: $arg"
758 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
764 test -n "$cpp" && CPP="$cpp"
765 test -n "$cppflags" && CPPFLAGS="$cppflags"
766 test -n "$libs" && LIBS="$libs"
767 test -n "$ldflags" && LDFLAGS="$ldflags"
769 eval set x "$quoted_arguments"; shift
771 test "$extra_verbose" = "yes" && verbose=yes
773 test -n "$with_x" && with_x11="$with_x"
775 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
776 test "$with_system_malloc" = "default" && with_system_malloc=yes
781 if test "$with_cde $with_tooltalk" = "yes no"; then
782 (echo "$progname: Usage error:"
783 echo " " "--with-cde requires --with-tooltalk"
784 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
785 elif test "$with_tooltalk" = "no" ; then with_cde=no
786 elif test "$with_cde" = "yes"; then with_tooltalk=yes
793 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
794 if test -f "$dir/src/lisp.h" -a \
795 -f "$dir/lisp/version.el" ; then
800 if test -z "$srcdir" ; then
801 (echo "$progname: Usage error:"
802 echo " " "Neither the current directory nor its parent seem to
803 contain the XEmacs sources. If you do not want to build XEmacs in its
804 source tree, you should run \`$progname' in the directory in which
805 you wish to build XEmacs, using the \`--srcdir' option to say where the
806 sources may be found."
807 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
812 if test ! -f "$srcdir/src/lisp.h" -o \
813 ! -f "$srcdir/lisp/version.el" ; then
814 (echo "$progname: Usage error:"
815 echo " " "The directory specified with the \`--srcdir' option,
816 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
817 either run the \`$progname' script at the top of the XEmacs source
818 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
819 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
824 if test -z "$configuration"; then
825 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
826 if test -z "$configuration"; then
827 (echo "$progname: Usage error:"
828 echo " " "XEmacs has not been ported to this host type.
829 Try explicitly specifying the CONFIGURATION when rerunning configure."
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
835 echo "configure:836: checking whether ln -s works" >&5
838 if ln -s X conftestdata 2>/dev/null
841 ac_cv_prog_LN_S="ln -s"
845 LN_S="$ac_cv_prog_LN_S"
846 if test "$ac_cv_prog_LN_S" = "ln -s"; then
847 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
853 for dir in lisp etc man info tests; do
854 if test ! -d "$dir" ; then
855 echo Making symbolic link to "$srcdir/$dir"
856 ${LN_S} "$srcdir/$dir" "$dir"
861 absolute_pwd="`pwd`";
862 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
864 else blddir="$absolute_pwd"; if test -d "/net"; then
865 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
866 blddir=`echo "$blddir" | \
867 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
874 . ) srcdir="$blddir" ;;
875 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
877 srcdir=`echo "$srcdir" | \
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
882 if test `pwd` != `sh -c cd $srcdir && pwd` \
883 && test -f "$srcdir/src/config.h"; then
884 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
885 echo " as a build directory right now; it has been configured in its own"
886 echo " right. To configure in another directory as well, you MUST"
887 echo " use GNU make. If you do not have GNU make, then you must"
888 echo " now do \`make distclean' in $srcdir,"
889 echo " and then run $progname again.") >&2
890 extrasub='/^VPATH[ ]*=/c\
896 vpath %.in $(srcdir)'
899 . "$srcdir/version.sh" || exit 1;
900 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
901 : "${extra_verbose=$beta}"
902 version="${emacs_major_version}.${emacs_minor_version}"
903 { test "$extra_verbose" = "yes" && cat << EOF
904 Defining EMACS_MAJOR_VERSION = $emacs_major_version
906 cat >> confdefs.h <<EOF
907 #define EMACS_MAJOR_VERSION $emacs_major_version
911 { test "$extra_verbose" = "yes" && cat << EOF
912 Defining EMACS_MINOR_VERSION = $emacs_minor_version
914 cat >> confdefs.h <<EOF
915 #define EMACS_MINOR_VERSION $emacs_minor_version
919 if test -n "$emacs_beta_version" ; then
920 if test "$beta" = "yes"; then
921 version="${version}-b${emacs_beta_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_BETA_VERSION = $emacs_beta_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_BETA_VERSION $emacs_beta_version
931 version="${version}.${emacs_beta_version}"
932 { test "$extra_verbose" = "yes" && cat << EOF
933 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
935 cat >> confdefs.h <<EOF
936 #define EMACS_PATCH_LEVEL $emacs_beta_version
942 { test "$extra_verbose" = "yes" && cat << EOF
943 Defining XEMACS_CODENAME = "$xemacs_codename"
945 cat >> confdefs.h <<EOF
946 #define XEMACS_CODENAME "$xemacs_codename"
950 { test "$extra_verbose" = "yes" && cat << EOF
951 Defining EMACS_VERSION = "$version"
953 cat >> confdefs.h <<EOF
954 #define EMACS_VERSION "$version"
959 if test "$with_infodock" = "yes"; then
960 if test ! -f ../../ID-INSTALL; then
961 echo "Cannot build InfoDock without InfoDock sources"
966 if test "$with_infodock" = "yes"; then
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
970 cat >> confdefs.h <<EOF
971 #define INFODOCK_MAJOR_VERSION $infodock_major_version
975 { test "$extra_verbose" = "yes" && cat << EOF
976 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
978 cat >> confdefs.h <<EOF
979 #define INFODOCK_MINOR_VERSION $infodock_minor_version
983 { test "$extra_verbose" = "yes" && cat << EOF
984 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
986 cat >> confdefs.h <<EOF
987 #define INFODOCK_BUILD_VERSION $infodock_build_version
991 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
993 CPPFLAGS="$CPPFLAGS -DINFODOCK"
998 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
999 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1000 Defining ERROR_CHECK_EXTENTS
1002 cat >> confdefs.h <<\EOF
1003 #define ERROR_CHECK_EXTENTS 1
1007 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1008 Defining ERROR_CHECK_TYPECHECK
1010 cat >> confdefs.h <<\EOF
1011 #define ERROR_CHECK_TYPECHECK 1
1015 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1016 Defining ERROR_CHECK_BUFPOS
1018 cat >> confdefs.h <<\EOF
1019 #define ERROR_CHECK_BUFPOS 1
1023 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1024 Defining ERROR_CHECK_GC
1026 cat >> confdefs.h <<\EOF
1027 #define ERROR_CHECK_GC 1
1031 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1032 Defining ERROR_CHECK_MALLOC
1034 cat >> confdefs.h <<\EOF
1035 #define ERROR_CHECK_MALLOC 1
1039 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1040 Defining ERROR_CHECK_BYTE_CODE
1042 cat >> confdefs.h <<\EOF
1043 #define ERROR_CHECK_BYTE_CODE 1
1047 if test "${debug:=$beta}" = "yes"; then
1048 use_assertions=yes memory_usage_stats=yes
1049 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1050 echo " xemacs will be linked with \"debug.o\""
1052 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1053 echo " xemacs will be linked with \"tests.o\""
1055 { test "$extra_verbose" = "yes" && cat << \EOF
1056 Defining DEBUG_XEMACS
1058 cat >> confdefs.h <<\EOF
1059 #define DEBUG_XEMACS 1
1064 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1065 Defining USE_ASSERTIONS
1067 cat >> confdefs.h <<\EOF
1068 #define USE_ASSERTIONS 1
1072 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1073 Defining MEMORY_USAGE_STATS
1075 cat >> confdefs.h <<\EOF
1076 #define MEMORY_USAGE_STATS 1
1082 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1083 echo "configure:1084: checking "host system type"" >&5
1084 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1085 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1086 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1087 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1088 echo "$ac_t""$configuration" 1>&6
1096 case "$canonical" in
1097 sparc-*-* ) machine=sparc ;;
1098 alpha*-*-* ) machine=alpha ;;
1099 vax-*-* ) machine=vax ;;
1100 mips-dec-* ) machine=pmax ;;
1101 mips-sgi-irix6* ) machine=iris6d ;;
1102 mips-sgi-* ) machine=iris4d ;;
1103 mips*-linux ) machine=mips ;;
1104 romp-ibm-* ) machine=ibmrt ;;
1105 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1106 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1107 powerpc*-* ) machine=powerpc ;;
1108 hppa-*-* ) machine=hp800 ;;
1109 m88k-dg-* ) machine=aviion ;;
1110 m68*-sony-* ) machine=news ;;
1111 mips-sony-* ) machine=news-risc ;;
1112 clipper-* ) machine=clipper ;;
1113 arm-* ) machine=arm ;;
1114 armv34lb-* ) machine=arm ;;
1115 ns32k-* ) machine=ns32000 ;;
1118 case "$canonical" in
1119 *-*-linux* ) opsys=linux ;;
1120 *-*-netbsd* ) opsys=netbsd ;;
1121 *-*-openbsd* ) opsys=openbsd ;;
1122 *-*-nextstep* ) opsys=nextstep ;;
1123 *-*-vms ) opsys=vms ;;
1125 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1126 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1127 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1128 *-dec-osf3* ) opsys=decosf3-1 ;;
1129 *-dec-osf4* ) opsys=decosf4-0 ;;
1131 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1132 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1133 *-*-ultrix* ) opsys=ultrix4-3 ;;
1135 *-*-aix3.1* ) opsys=aix3-1 ;;
1136 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1137 *-*-aix3* ) opsys=aix3-2 ;;
1138 *-*-aix4.0* ) opsys=aix4 ;;
1139 *-*-aix4.1* ) opsys=aix4-1 ;;
1140 *-*-aix4* ) opsys=aix4-2 ;;
1142 *-gnu* ) opsys=gnu ;;
1143 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1144 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1145 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1146 *-*-aos4.2 ) opsys=bsd4-2 ;;
1147 *-*-aos* ) opsys=bsd4-3 ;;
1148 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1149 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1150 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1151 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1152 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1153 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1154 if test -z "$NON_GNU_CPP" ; then
1155 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1156 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1160 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1161 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1164 case "$canonical" in
1167 case "$canonical" in
1168 i[3-9]86-*-netbsd*) machine=intel386 ;;
1169 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1170 machine=hp9000s300 ;;
1171 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1172 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1177 case "${canonical}" in
1178 i386-*-openbsd*) machine=intel386 ;;
1179 m68k-*-openbsd*) machine=hp9000s300 ;;
1180 mipsel-*-openbsd*) machine=pmax ;;
1184 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1185 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1187 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1188 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1190 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1192 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1194 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1196 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1198 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1200 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1201 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1202 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1205 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1207 *-convex-bsd* | *-convex-convexos* )
1208 machine=convex opsys=bsd4-3
1209 NON_GNU_CPP="cc -E -P"
1212 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1214 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1215 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1216 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1217 m88k-dg-dgux* ) opsys=dgux ;;
1219 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1220 m88k-motorola-sysv4* )
1221 machine=delta88k opsys=usg5-4-2
1223 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1225 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1226 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1228 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1230 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1231 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1232 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1235 case "`uname -r`" in
1236 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1237 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1239 NON_GNU_CPP="/lib/cpp"
1241 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1242 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1244 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1246 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1249 case "$canonical" in
1250 m68* ) machine=hp9000s300 ;;
1251 hppa* ) machine=hp800 ;;
1254 case "$canonical" in
1255 *-hp-hpux7* ) opsys=hpux ;;
1256 *-hp-hpux8* ) opsys=hpux8 ;;
1257 *-hp-hpux9* ) opsys=hpux9 ;;
1258 *-hp-hpux10* ) opsys=hpux10 ;;
1259 *-hp-hpux11* ) opsys=hpux11 ;;
1263 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1264 echo " xemacs will be linked with \"strcat.o\""
1267 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1268 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1269 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1271 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1274 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1275 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1277 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1278 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1279 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1280 romp-ibm-aos* ) opsys=bsd4-3 ;;
1281 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1282 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1284 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1285 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1287 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1289 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1291 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1293 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1295 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1297 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1299 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1301 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1303 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1305 mips-mips-usg* ) machine=mips4 ;;
1308 NON_GNU_CC="cc -systype bsd43"
1309 NON_GNU_CPP="cc -systype bsd43 -E"
1310 case "$canonical" in
1311 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1312 mips-mips-riscos5* ) opsys=riscos5 ;;
1315 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1316 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1318 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1320 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1322 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1323 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1325 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1327 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1329 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1331 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1333 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1334 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1336 mips-siemens-sysv* | mips-sni-sysv*)
1337 machine=mips-siemens opsys=usg5-4
1338 NON_GNU_CC=/usr/ccs/bin/cc
1339 NON_GNU_CPP=/usr/ccs/lib/cpp
1344 NON_GNU_CC=/usr/ccs/bin/cc
1345 NON_GNU_CPP=/usr/ccs/lib/cpp
1348 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1349 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1350 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1351 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1352 mips-sgi-irix6* ) opsys=irix6-0 ;;
1353 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1354 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1355 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1356 mips-sgi-irix* ) opsys=irix5-0 ;;
1358 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1359 *-sony-news* ) opsys=newsos5 ;;
1361 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1363 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1364 case "$canonical" in
1365 m68*-sunos1* ) machine=sun1 ;;
1366 m68*-sunos2* ) machine=sun2 ;;
1367 m68* ) machine=sun3 ;;
1368 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1369 i*86-*-* ) machine=intel386 ;;
1370 rs6000* ) machine=rs6000 ;;
1373 case "$canonical" in *-sunos5*)
1374 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1377 case "$canonical" in
1379 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1382 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1386 case "$canonical" in
1389 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1390 { test "$extra_verbose" = "yes" && cat << EOF
1391 Defining OS_RELEASE = $os_release
1393 cat >> confdefs.h <<EOF
1394 #define OS_RELEASE $os_release
1399 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1400 *-sunos4.0* ) opsys=sunos4-0 ;;
1401 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1402 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1403 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1404 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1405 *-mach* ) opsys=mach-bsd4-3 ;;
1409 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1411 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1414 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1416 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1417 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1419 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1421 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1423 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1424 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1426 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1428 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1431 case "$canonical" in
1432 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1433 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1434 *-mach* ) opsys=mach-bsd4-3 ;;
1438 ns16k-whitechapel-* ) machine=mg1 ;;
1440 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1444 case "$canonical" in
1445 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1446 *-isc2.2* ) opsys=isc2-2 ;;
1447 *-isc4.0* ) opsys=isc4-0 ;;
1448 *-isc4.* ) opsys=isc4-1
1449 GCC_TEST_OPTIONS=-posix
1450 NON_GCC_TEST_OPTIONS=-Xp
1452 *-isc* ) opsys=isc3-0 ;;
1453 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1454 *-esix* ) opsys=esix ;;
1455 *-mach* ) opsys=mach-bsd4-3 ;;
1456 *-xenix* ) opsys=xenix ;;
1457 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1458 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1459 *-bsdi4* ) opsys=bsdos4 ;;
1460 *-bsdi3* ) opsys=bsdos3 ;;
1461 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1462 *-bsdi2* ) opsys=bsdos2 ;;
1463 *-sco3.2v5* ) opsys=sco5 ;
1464 if test "$dynamic" = "yes" ; then
1465 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1467 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1469 *-sysv5* ) opsys=sco7 ;;
1470 *-386bsd* ) opsys=386bsd ;;
1471 *-freebsd* ) opsys=freebsd ;;
1472 *-nextstep* ) opsys=nextstep ;;
1473 *-pc-cygwin* ) opsys=cygwin32 ;;
1474 *-pc-mingw* ) opsys=mingw32 ;
1475 test -z "$with_tty" && with_tty="no";;
1479 m68k-*-linux* ) machine=m68k opsys=linux ;;
1483 if test -z "$machine" -o -z "$opsys"; then
1484 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
1485 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
1490 if test -z "$dynamic"; then
1492 hpux* | sunos4* ) dynamic=no ;;
1496 if test "$dynamic" = "yes"; then
1498 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1499 decosf* ) ld_call_shared="-call_shared" ;;
1501 else case "$opsys" in
1503 echo "Static linking is not supported on Solaris 2."
1504 echo "Rerun configure without specifying --dynamic=no."
1506 linux ) ld_call_shared="-Bstatic" ;;
1507 decosf* ) ld_call_shared="-non_shared" ;;
1511 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1513 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1514 { test "$extra_verbose" = "yes" && cat << EOF
1515 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1517 cat >> confdefs.h <<EOF
1518 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1523 machfile="m/${machine}.h"
1524 opsysfile="s/${opsys}.h"
1527 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1528 if test "$with_workshop $with_tooltalk" = "yes no"; then
1529 (echo "$progname: Usage error:"
1530 echo " " "--with-workshop requires --with-tooltalk"
1531 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1532 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1533 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1536 if test "$with_workshop" = "yes"; then
1537 { test "$extra_verbose" = "yes" && cat << \EOF
1540 cat >> confdefs.h <<\EOF
1545 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1546 echo " xemacs will be linked with \"sunpro.o\""
1550 if test "$with_clash_detection" = "yes"; then
1551 { test "$extra_verbose" = "yes" && cat << \EOF
1552 Defining CLASH_DETECTION
1554 cat >> confdefs.h <<\EOF
1555 #define CLASH_DETECTION 1
1559 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1560 echo " xemacs will be linked with \"filelock.o\""
1564 test -n "$compiler" && CC="$compiler"
1565 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1568 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1569 if test "${CFLAGS-unset}" != unset
1570 then cflags_specified=yes;
1571 else cflags_specified=no;
1574 xe_save_CFLAGS="$CFLAGS"
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1586 for ac_dir in $ac_dummy; do
1587 test -z "$ac_dir" && ac_dir=.
1588 if test -f $ac_dir/$ac_word; then
1596 if test -n "$CC"; then
1597 echo "$ac_t""$CC" 1>&6
1599 echo "$ac_t""no" 1>&6
1602 if test -z "$CC"; then
1603 # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1614 for ac_dir in $ac_dummy; do
1615 test -z "$ac_dir" && ac_dir=.
1616 if test -f $ac_dir/$ac_word; then
1617 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# -gt 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 set dummy "$ac_dir/$ac_word" "$@"
1642 if test -n "$CC"; then
1643 echo "$ac_t""$CC" 1>&6
1645 echo "$ac_t""no" 1>&6
1648 if test -z "$CC"; then
1649 case "`uname -s`" in
1651 # Extract the first word of "cl", so it can be a program name with args.
1652 set dummy cl; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1661 for ac_dir in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir=.
1663 if test -f $ac_dir/$ac_word; then
1671 if test -n "$CC"; then
1672 echo "$ac_t""$CC" 1>&6
1674 echo "$ac_t""no" 1>&6
1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1686 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1687 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1688 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1689 ac_cpp='$CPP '"$xe_cppflags"
1690 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1691 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1694 cat > conftest.$ac_ext << EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_prog_cc_works=yes
1703 # If we can't run a trivial program, we are probably using a cross compiler.
1704 if (./conftest; exit) 2>/dev/null; then
1705 ac_cv_prog_cc_cross=no
1707 ac_cv_prog_cc_cross=yes
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 ac_cv_prog_cc_works=no
1716 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1717 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1718 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1719 ac_cpp='$CPP '"$xe_cppflags"
1720 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1721 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1725 if test $ac_cv_prog_cc_works = no; then
1726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1731 cross_compiling=$ac_cv_prog_cc_cross
1733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether we are using GNU C" >&5
1736 cat > conftest.c <<EOF
1741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1747 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1749 if test $ac_cv_prog_gcc = yes; then
1755 ac_test_CFLAGS="${CFLAGS+set}"
1756 ac_save_CFLAGS="$CFLAGS"
1758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether ${CC-cc} accepts -g" >&5
1761 echo 'void f(){}' > conftest.c
1762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1771 if test "$ac_test_CFLAGS" = set; then
1772 CFLAGS="$ac_save_CFLAGS"
1773 elif test $ac_cv_prog_cc_g = yes; then
1774 if test "$GCC" = yes; then
1780 if test "$GCC" = yes; then
1787 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1789 # Extract the first word of "gcc", so it can be a program name with args.
1790 set dummy gcc; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 for ac_dir in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f $ac_dir/$ac_word; then
1809 if test -n "$CC"; then
1810 echo "$ac_t""$CC" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 if test -z "$CC"; then
1816 # Extract the first word of "cc", so it can be a program name with args.
1817 set dummy cc; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1827 for ac_dir in $ac_dummy; do
1828 test -z "$ac_dir" && ac_dir=.
1829 if test -f $ac_dir/$ac_word; then
1830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1831 ac_prog_rejected=yes
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1843 if test $# -gt 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1848 set dummy "$ac_dir/$ac_word" "$@"
1855 if test -n "$CC"; then
1856 echo "$ac_t""$CC" 1>&6
1858 echo "$ac_t""no" 1>&6
1861 if test -z "$CC"; then
1862 case "`uname -s`" in
1864 # Extract the first word of "cl", so it can be a program name with args.
1865 set dummy cl; ac_word=$2
1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_word" >&5
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1884 if test -n "$CC"; then
1885 echo "$ac_t""$CC" 1>&6
1887 echo "$ac_t""no" 1>&6
1892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1899 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1900 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1901 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1902 ac_cpp='$CPP '"$xe_cppflags"
1903 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1904 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1907 cat > conftest.$ac_ext << EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915 ac_cv_prog_cc_works=yes
1916 # If we can't run a trivial program, we are probably using a cross compiler.
1917 if (./conftest; exit) 2>/dev/null; then
1918 ac_cv_prog_cc_cross=no
1920 ac_cv_prog_cc_cross=yes
1923 echo "configure: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1925 ac_cv_prog_cc_works=no
1929 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1930 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1931 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1932 ac_cpp='$CPP '"$xe_cppflags"
1933 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1934 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1938 if test $ac_cv_prog_cc_works = no; then
1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1944 cross_compiling=$ac_cv_prog_cc_cross
1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether we are using GNU C" >&5
1949 cat > conftest.c <<EOF
1954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1962 if test $ac_cv_prog_gcc = yes; then
1968 ac_test_CFLAGS="${CFLAGS+set}"
1969 ac_save_CFLAGS="$CFLAGS"
1971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether ${CC-cc} accepts -g" >&5
1974 echo 'void f(){}' > conftest.c
1975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1984 if test "$ac_test_CFLAGS" = set; then
1985 CFLAGS="$ac_save_CFLAGS"
1986 elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1993 if test "$GCC" = yes; then
2000 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2002 # Extract the first word of "gcc", so it can be a program name with args.
2003 set dummy gcc; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2012 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 if test -f $ac_dir/$ac_word; then
2022 if test -n "$CC"; then
2023 echo "$ac_t""$CC" 1>&6
2025 echo "$ac_t""no" 1>&6
2028 if test -z "$CC"; then
2029 # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2
2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_word" >&5
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2040 for ac_dir in $ac_dummy; do
2041 test -z "$ac_dir" && ac_dir=.
2042 if test -f $ac_dir/$ac_word; then
2043 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2044 ac_prog_rejected=yes
2052 if test $ac_prog_rejected = yes; then
2053 # We found a bogon in the path, so make sure we never use it.
2054 set dummy $ac_cv_prog_CC
2056 if test $# -gt 0; then
2057 # We chose a different compiler from the bogus one.
2058 # However, it has the same basename, so the bogon will be chosen
2059 # first if we set CC to just the basename; use the full file name.
2061 set dummy "$ac_dir/$ac_word" "$@"
2068 if test -n "$CC"; then
2069 echo "$ac_t""$CC" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 if test -z "$CC"; then
2075 case "`uname -s`" in
2077 # Extract the first word of "cl", so it can be a program name with args.
2078 set dummy cl; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2097 if test -n "$CC"; then
2098 echo "$ac_t""$CC" 1>&6
2100 echo "$ac_t""no" 1>&6
2105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2112 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2113 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2114 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2115 ac_cpp='$CPP '"$xe_cppflags"
2116 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2117 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2120 cat > conftest.$ac_ext << EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128 ac_cv_prog_cc_works=yes
2129 # If we can't run a trivial program, we are probably using a cross compiler.
2130 if (./conftest; exit) 2>/dev/null; then
2131 ac_cv_prog_cc_cross=no
2133 ac_cv_prog_cc_cross=yes
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 ac_cv_prog_cc_works=no
2142 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2143 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2144 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2145 ac_cpp='$CPP '"$xe_cppflags"
2146 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2147 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2151 if test $ac_cv_prog_cc_works = no; then
2152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2157 cross_compiling=$ac_cv_prog_cc_cross
2159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether we are using GNU C" >&5
2162 cat > conftest.c <<EOF
2167 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2173 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2175 if test $ac_cv_prog_gcc = yes; then
2181 ac_test_CFLAGS="${CFLAGS+set}"
2182 ac_save_CFLAGS="$CFLAGS"
2184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether ${CC-cc} accepts -g" >&5
2187 echo 'void f(){}' > conftest.c
2188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2196 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2197 if test "$ac_test_CFLAGS" = set; then
2198 CFLAGS="$ac_save_CFLAGS"
2199 elif test $ac_cv_prog_cc_g = yes; then
2200 if test "$GCC" = yes; then
2206 if test "$GCC" = yes; then
2214 CFLAGS="$xe_save_CFLAGS"
2217 test -n "$CPP" -a -d "$CPP" && CPP=
2219 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2222 echo "configure:2223: checking how to run the C preprocessor" >&5
2223 # On Suns, sometimes $CPP names a directory.
2224 if test -n "$CPP" && test -d "$CPP"; then
2227 if test -z "$CPP"; then
2229 # This must be in double quotes, not single quotes, because CPP may get
2230 # substituted into the Makefile and "${CC-cc}" will confuse make.
2232 # On the NeXT, cc -E runs the code through the compiler's parser,
2233 # not just through cpp.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 CPP="${CC-cc} -E -traditional-cpp"
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 CPP="${CC-cc} -nologo -E"
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2291 ac_cv_prog_CPP="$CPP"
2292 CPP="$ac_cv_prog_CPP"
2294 ac_cv_prog_CPP="$CPP"
2296 echo "$ac_t""$CPP" 1>&6
2301 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2302 echo "configure:2303: checking for AIX" >&5
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "yes" >/dev/null 2>&1; then
2314 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2315 Defining _ALL_SOURCE
2317 cat >> confdefs.h <<\EOF
2318 #define _ALL_SOURCE 1
2324 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2330 echo "configure:2331: checking for GNU libc" >&5
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 #include <features.h>
2337 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2338 #error Not a GNU libc system :-(
2339 ******* ======= ******** &&&&&&&&
2344 if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2354 echo "$ac_t""$have_glibc" 1>&6
2355 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2356 Defining _GNU_SOURCE
2358 cat >> confdefs.h <<\EOF
2359 #define _GNU_SOURCE 1
2366 { test "$extra_verbose" = "yes" && cat << \EOF
2367 Defining __EXTENSIONS__
2369 cat >> confdefs.h <<\EOF
2370 #define __EXTENSIONS__ 1
2374 if test "$os_release" -ge 55; then
2375 { test "$extra_verbose" = "yes" && cat << \EOF
2376 Defining _XOPEN_SOURCE = 500
2378 cat >> confdefs.h <<\EOF
2379 #define _XOPEN_SOURCE 500
2383 { test "$extra_verbose" = "yes" && cat << \EOF
2384 Defining _XOPEN_SOURCE_EXTENDED
2386 cat >> confdefs.h <<\EOF
2387 #define _XOPEN_SOURCE_EXTENDED 1
2393 { test "$extra_verbose" = "yes" && cat << \EOF
2394 Defining _POSIX_C_SOURCE = 199506L
2396 cat >> confdefs.h <<\EOF
2397 #define _POSIX_C_SOURCE 199506L
2401 { test "$extra_verbose" = "yes" && cat << \EOF
2402 Defining _XOPEN_SOURCE = 500
2404 cat >> confdefs.h <<\EOF
2405 #define _XOPEN_SOURCE 500
2409 { test "$extra_verbose" = "yes" && cat << \EOF
2410 Defining _XOPEN_SOURCE_EXTENDED
2412 cat >> confdefs.h <<\EOF
2413 #define _XOPEN_SOURCE_EXTENDED 1
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2424 #if defined __SUNPRO_C
2426 #elif defined __DECC
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2441 case "$conftest_rc" in
2442 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2443 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2451 echo "Extracting information from the machine- and system-dependent headers..."
2453 tempcname="conftest.c"
2457 cat > $tempcname <<EOF
2459 #define C_SWITCH_SITE
2460 #define C_SWITCH_X_SITE
2461 #define LD_SWITCH_SITE
2462 #define LD_SWITCH_X_SITE
2463 #define LD_SWITCH_X_SITE_AUX
2464 #define OS_RELEASE $os_release
2465 #include "$srcdir/src/$opsysfile"
2466 #include "$srcdir/src/$machfile"
2468 #ifndef LIBS_MACHINE
2469 #define LIBS_MACHINE
2471 configure___ libs_machine=LIBS_MACHINE
2476 configure___ libs_system=LIBS_SYSTEM
2478 #ifndef LIBS_TERMCAP
2479 #define LIBS_TERMCAP
2481 configure___ libs_termcap=LIBS_TERMCAP
2483 #ifndef LIB_STANDARD
2484 #define LIB_STANDARD
2486 configure___ libs_standard=LIB_STANDARD
2489 #ifndef OBJECTS_MACHINE
2490 #define OBJECTS_MACHINE
2492 configure___ objects_machine=OBJECTS_MACHINE
2494 #ifndef OBJECTS_SYSTEM
2495 #define OBJECTS_SYSTEM
2497 configure___ objects_system=OBJECTS_SYSTEM
2500 #ifndef C_SWITCH_MACHINE
2501 #define C_SWITCH_MACHINE
2503 configure___ c_switch_machine=C_SWITCH_MACHINE
2505 #ifndef C_SWITCH_SYSTEM
2506 #define C_SWITCH_SYSTEM
2508 configure___ c_switch_system=C_SWITCH_SYSTEM
2511 #ifndef LD_SWITCH_MACHINE
2512 #define LD_SWITCH_MACHINE
2514 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2516 #ifndef LD_SWITCH_SYSTEM
2517 #define LD_SWITCH_SYSTEM
2519 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2523 #define UNEXEC "unexec.o"
2525 configure___ unexec=UNEXEC
2528 #ifndef LD_SWITCH_SHARED
2529 #define LD_SWITCH_SHARED "-c"
2531 configure___ ld_switch_shared=LD_SWITCH_SHARED
2534 #ifdef ORDINARY_LINK
2535 #define LD "\$(CC) \$(CFLAGS)"
2536 #else /* no ORDINARY LINK */
2537 #ifdef COFF_ENCAPSULATE
2538 #define LD "\$(CC) -nostdlib"
2539 #else /* not COFF_ENCAPSULATE */
2542 #else /* ! defined (LINKER) */
2544 #endif /* ! defined (LINKER) */
2545 #endif /* ! defined (COFF_ENCAPSULATE) */
2546 #endif /* not ORDINARY_LINK */
2552 configure___ lib_gcc=LIB_GCC
2554 #ifndef LD_TEXT_START_ADDR
2555 #define LD_TEXT_START_ADDR
2557 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2560 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2562 #ifdef COFF_ENCAPSULATE
2563 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2564 #else /* ! defined (COFF_ENCAPSULATE) */
2565 #define START_FILES "pre-crt0.o /lib/crt0.o"
2566 #endif /* ! defined (COFF_ENCAPSULATE) */
2567 #else /* ! defined (NO_REMAP) */
2568 #define START_FILES "ecrt0.o"
2569 #endif /* ! defined (NO_REMAP) */
2570 #endif /* no ORDINARY_LINK */
2574 configure___ start_files=START_FILES
2576 #ifdef ORDINARY_LINK
2577 configure___ ordinary_link=yes
2579 configure___ ordinary_link=no
2582 #ifdef SYSTEM_MALLOC
2583 configure___ system_malloc=yes
2585 configure___ system_malloc=no
2589 configure___ have_terminfo=yes
2591 configure___ have_terminfo=no
2594 #ifdef MAIL_USE_FLOCK
2595 configure___ mail_use_flock=yes
2597 configure___ mail_use_flock=no
2600 #ifdef MAIL_USE_LOCKF
2601 configure___ mail_use_lockf=yes
2603 configure___ mail_use_lockf=no
2606 #ifdef MAIL_USE_LOCKING
2607 configure___ mail_use_locking=yes
2609 configure___ mail_use_locking=no
2612 #ifdef HAVE_WIN32_PROCESSES
2613 configure___ win32_processes=yes
2615 configure___ win32_processes=no
2620 CPP=`eval "echo $CPP $CPPFLAGS"`
2621 eval `$CPP -Isrc $tempcname \
2622 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2626 test "$extra_verbose" = "yes" && \
2627 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 ""
2629 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2630 mingw_include=`eval "dirname $mingw_include"` ;
2631 mingw_include="-I$mingw_include/../include/mingw32" ;
2632 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2635 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2637 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2639 if test "$cflags_specified" = "no"; then
2640 if test "$GCC" = "yes"; then
2641 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2642 elif test "$__SUNPRO_C" = "yes"; then
2644 sol2 ) CFLAGS="-v -xO4" ;;
2645 sunos4* ) CFLAGS="-xO2";;
2647 elif test "$__DECC" = "yes"; then
2649 elif test "$CC" = "xlc"; then
2650 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2656 if test "$GCC" = "yes"; then
2657 set x $ld_switch_system; shift; ld_switch_system=""
2658 while test -n "$1"; do
2660 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2661 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2663 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2669 if test "$GCC" = "yes"; then
2670 set x $ld_switch_machine; shift; ld_switch_machine=""
2671 while test -n "$1"; do
2673 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2674 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2676 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2682 if test "$GCC" = "yes"; then
2683 set x $LDFLAGS; shift; LDFLAGS=""
2684 while test -n "$1"; do
2686 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2687 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2689 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2695 if test "$GCC" = "yes"; then
2696 set x $ld_call_shared; shift; ld_call_shared=""
2697 while test -n "$1"; do
2699 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2700 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2702 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2708 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2709 echo " xemacs will be linked with \"$objects_machine\""
2711 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2712 echo " xemacs will be linked with \"$objects_system\""
2714 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2715 echo " xemacs will be linked with \"$unexec\""
2718 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2719 echo "configure:2720: checking for dynodump" >&5
2720 if test "$unexec" != "unexsol2.o"; then
2721 echo "$ac_t""no" 1>&6
2723 echo "$ac_t""yes" 1>&6
2724 { test "$extra_verbose" = "yes" && cat << \EOF
2727 cat >> confdefs.h <<\EOF
2732 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2733 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2735 sparc ) dynodump_arch=sparc ;;
2736 *86* ) dynodump_arch=i386 ;;
2737 powerpc ) dynodump_arch=ppc ;;
2739 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
2743 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2745 if test "$unexec" = "unexaix.o"; then
2746 if test "$dynamic" = "no"; then
2747 start_flags="-Wl,-bnso,-bnodelcsect"
2748 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2749 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2750 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2752 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2753 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2756 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2757 echo "configure:2758: checking for terminateAndUnload in -lC" >&5
2758 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2760 xe_check_libs=" -lC "
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* Override any gcc2 internal prototype to avoid an error. */
2765 /* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */
2767 char terminateAndUnload();
2770 terminateAndUnload()
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775 eval "ac_cv_lib_$ac_lib_var=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 eval "ac_cv_lib_$ac_lib_var=no"
2785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2786 echo "$ac_t""yes" 1>&6
2787 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2789 echo "$ac_t""no" 1>&6
2794 elif test -n "$ld_text_start_addr"; then
2795 start_flags="-T $ld_text_start_addr -e __start"
2801 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2802 test -z "$linker" && linker='$(CC) -nostdlib'
2803 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
2805 test "$GCC" != "yes" && lib_gcc=
2811 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2812 if test -n "$site_libraries"; then
2813 for arg in $site_libraries; do
2816 * ) test -d "$arg" || \
2817 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
2820 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2824 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2825 if test -n "$site_includes"; then
2826 for arg in $site_includes; do
2829 * ) test -d "$arg" || \
2830 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
2833 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2837 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2838 if test -n "$site_prefixes"; then
2839 for dir in $site_prefixes; do
2840 lib_dir="${dir}/lib"
2841 inc_dir="${dir}/include"
2842 if test ! -d "$dir"; then
2843 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2844 elif test ! -d "$lib_dir"; then
2845 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2847 if test -d "$inc_dir"; then
2848 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
2850 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
2856 for dir in "/usr/ccs/lib"; do
2857 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
2860 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2861 if test -n "$site_runtime_libraries"; then
2862 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2870 if test -n "$add_runtime_path"; then :;
2871 elif test "$dynamic" = "no"; then add_runtime_path=no
2872 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2873 else case "$opsys" in
2874 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2875 * ) add_runtime_path=no ;;
2879 if test "$add_runtime_path" = "yes"; then
2880 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2881 echo "configure:2882: checking "for runtime libraries flag"" >&5
2883 sol2 ) dash_r="-R" ;;
2884 decosf* | linux* | irix*) dash_r="-rpath " ;;
2887 for try_dash_r in "-R" "-R " "-rpath "; do
2888 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2890 if test "$GCC" = "yes"; then
2891 set x $xe_check_libs; shift; xe_check_libs=""
2892 while test -n "$1"; do
2894 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2895 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
2897 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912 dash_r="$try_dash_r"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2919 test -n "$dash_r" && break
2922 if test -n "$dash_r";
2923 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2924 else echo "$ac_t""NONE" 1>&6
2928 xe_add_unique_runpath_dir='
2930 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2932 if test "$xe_add_p" = "yes"; then
2933 test -n "$runpath" && runpath="${runpath}:"
2934 runpath="${runpath}${xe_runpath_dir}"
2935 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2941 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2942 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2943 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
2945 runpath="" runpath_dirs=""
2946 if test -n "$LD_RUN_PATH"; then
2947 runpath="$LD_RUN_PATH"
2948 elif test "$GCC" = "yes"; then
2949 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2950 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2951 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2952 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2953 case "$arg" in P,* | -L* | -R* )
2954 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2956 xe_runpath_dir="$dir"
2957 test "$xe_runpath_dir" != "/lib" -a \
2958 "$xe_runpath_dir" != "/usr/lib" -a \
2959 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2960 eval "$xe_add_unique_runpath_dir"
2965 ld_switch_run="$ld_switch_run_save"
2968 for arg in $ld_switch_site $ld_switch_x_site; do
2969 case "$arg" in -L*) {
2970 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2971 test "$xe_runpath_dir" != "/lib" -a \
2972 "$xe_runpath_dir" != "/usr/lib" -a \
2973 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2974 eval "$xe_add_unique_runpath_dir"
2977 if test "$opsys $need_motif" = "sol2 yes"; then
2978 xe_runpath_dir="/opt/SUNWdt/lib";
2979 eval "$xe_add_unique_runpath_dir";
2982 if test -n "$runpath"; then
2983 ld_switch_run="${dash_r}${runpath}"
2985 if test "$GCC" = "yes"; then
2986 set x $ld_switch_run; shift; ld_switch_run=""
2987 while test -n "$1"; do
2989 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2990 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
2992 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2997 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3005 if test "$with_dlmalloc" != "no"; then
3010 after_morecore_hook_exists=yes
3011 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3012 echo "configure:3013: checking for malloc_get_state" >&5
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 /* System header to define __stub macros and hopefully few prototypes,
3018 which can conflict with char malloc_get_state(); below. */
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3023 char malloc_get_state();
3027 /* The GNU C library defines this for functions which it implements
3028 to always fail with ENOSYS. Some functions are actually named
3029 something starting with __ and the normal name is an alias. */
3030 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3040 eval "ac_cv_func_malloc_get_state=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 eval "ac_cv_func_malloc_get_state=no"
3049 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3053 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3058 echo "configure:3059: checking for malloc_set_state" >&5
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* System header to define __stub macros and hopefully few prototypes,
3064 which can conflict with char malloc_set_state(); below. */
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3069 char malloc_set_state();
3073 /* The GNU C library defines this for functions which it implements
3074 to always fail with ENOSYS. Some functions are actually named
3075 something starting with __ and the normal name is an alias. */
3076 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 eval "ac_cv_func_malloc_set_state=yes"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 eval "ac_cv_func_malloc_set_state=no"
3095 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3099 echo "$ac_t""no" 1>&6
3103 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether __after_morecore_hook exists" >&5
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 extern void (* __after_morecore_hook)();
3110 __after_morecore_hook = 0
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3115 echo "$ac_t""yes" 1>&6
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 echo "$ac_t""no" 1>&6
3121 after_morecore_hook_exists=no
3124 if test "$system_malloc" = "yes" ; then
3127 (The GNU allocators don't work with this system configuration)."
3128 elif test "$with_system_malloc" = "yes" ; then
3131 (User chose not to use GNU allocators)."
3132 elif test "$with_debug_malloc" = "yes" ; then
3135 (User chose to use Debugging Malloc)."
3138 if test "$doug_lea_malloc" = "yes" ; then
3139 if test "$GNU_MALLOC" = yes ; then
3141 (Using Doug Lea's new malloc from the GNU C Library.)"
3143 { test "$extra_verbose" = "yes" && cat << \EOF
3144 Defining DOUG_LEA_MALLOC
3146 cat >> confdefs.h <<\EOF
3147 #define DOUG_LEA_MALLOC 1
3151 if test "$after_morecore_hook_exists" = "no" ; then
3153 (Using Doug Lea's new malloc from the Linux C Library.)"
3154 { test "$extra_verbose" = "yes" && cat << \EOF
3155 Defining _NO_MALLOC_WARNING_
3157 cat >> confdefs.h <<\EOF
3158 #define _NO_MALLOC_WARNING_ 1
3163 use_minimal_tagbits=yes
3169 # Extract the first word of "ranlib", so it can be a program name with args.
3170 set dummy ranlib; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3174 if test -n "$RANLIB"; then
3175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3179 for ac_dir in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_prog_RANLIB="ranlib"
3187 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3189 RANLIB="$ac_cv_prog_RANLIB"
3190 if test -n "$RANLIB"; then
3191 echo "$ac_t""$RANLIB" 1>&6
3193 echo "$ac_t""no" 1>&6
3197 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3198 if test -f $ac_dir/install-sh; then
3200 ac_install_sh="$ac_aux_dir/install-sh -c"
3202 elif test -f $ac_dir/install.sh; then
3204 ac_install_sh="$ac_aux_dir/install.sh -c"
3208 if test -z "$ac_aux_dir"; then
3209 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3211 ac_config_guess=$ac_aux_dir/config.guess
3212 ac_config_sub=$ac_aux_dir/config.sub
3213 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3215 # Find a good install program. We prefer a C program (faster),
3216 # so one script is as good as another. But avoid the broken or
3217 # incompatible versions:
3218 # SysV /etc/install, /usr/sbin/install
3219 # SunOS /usr/etc/install
3220 # IRIX /sbin/install
3222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3225 # ./install, which can be erroneously created by make from ./install.sh.
3226 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3227 echo "configure:3228: checking for a BSD compatible install" >&5
3228 if test -z "$INSTALL"; then
3230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3231 for ac_dir in $PATH; do
3232 # Account for people who put trailing slashes in PATH elements.
3234 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3236 # OSF1 and SCO ODT 3.0 have their own names for install.
3237 # Don't use installbsd from OSF since it installs stuff as root
3239 for ac_prog in ginstall scoinst install; do
3240 if test -f $ac_dir/$ac_prog; then
3241 if test $ac_prog = install &&
3242 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3243 # AIX install. It has an incompatible calling convention.
3246 ac_cv_path_install="$ac_dir/$ac_prog -c"
3256 if test "${ac_cv_path_install+set}" = set; then
3257 INSTALL="$ac_cv_path_install"
3259 # As a last resort, use the slow shell script. We don't cache a
3260 # path for INSTALL within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the path is relative.
3263 INSTALL="$ac_install_sh"
3266 echo "$ac_t""$INSTALL" 1>&6
3268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3269 # It thinks the first close brace ends the variable substitution.
3270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3276 for ac_prog in 'bison -y' byacc
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_word" >&5
3283 if test -n "$YACC"; then
3284 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3288 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 if test -f $ac_dir/$ac_word; then
3291 ac_cv_prog_YACC="$ac_prog"
3297 YACC="$ac_cv_prog_YACC"
3298 if test -n "$YACC"; then
3299 echo "$ac_t""$YACC" 1>&6
3301 echo "$ac_t""no" 1>&6
3304 test -n "$YACC" && break
3306 test -n "$YACC" || YACC="yacc"
3309 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_hdr" >&5
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3321 { (eval echo configure:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3323 if test -z "$ac_err"; then
3325 eval "ac_cv_header_$ac_safe=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_header_$ac_safe=no"
3334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3337 { test "$extra_verbose" = "yes" && cat << EOF
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_hdr 1
3346 echo "$ac_t""no" 1>&6
3350 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3354 echo "configure:3355: checking for $ac_hdr" >&5
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3364 if test -z "$ac_err"; then
3366 eval "ac_cv_header_$ac_safe=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_header_$ac_safe=no"
3375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3378 { test "$extra_verbose" = "yes" && cat << EOF
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_hdr 1
3387 echo "$ac_t""no" 1>&6
3391 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_hdr" >&5
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 eval "ac_cv_header_$ac_safe=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_header_$ac_safe=no"
3416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3419 { test "$extra_verbose" = "yes" && cat << EOF
3422 cat >> confdefs.h <<EOF
3423 #define $ac_tr_hdr 1
3428 echo "$ac_t""no" 1>&6
3432 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3433 echo "configure:3434: checking for sys/wait.h that is POSIX.1 compatible" >&5
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3439 #include <sys/wait.h>
3441 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3444 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3449 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3454 ac_cv_header_sys_wait_h=yes
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 ac_cv_header_sys_wait_h=no
3463 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3464 if test $ac_cv_header_sys_wait_h = yes; then
3465 { test "$extra_verbose" = "yes" && cat << \EOF
3466 Defining HAVE_SYS_WAIT_H
3468 cat >> confdefs.h <<\EOF
3469 #define HAVE_SYS_WAIT_H 1
3475 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3476 echo "configure:3477: checking for ANSI C header files" >&5
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3487 { (eval echo configure:3488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3489 if test -z "$ac_err"; then
3491 ac_cv_header_stdc=yes
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 ac_cv_header_stdc=no
3501 if test $ac_cv_header_stdc = yes; then
3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 egrep "memchr" >/dev/null 2>&1; then
3513 ac_cv_header_stdc=no
3519 if test $ac_cv_header_stdc = yes; then
3520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 egrep "free" >/dev/null 2>&1; then
3531 ac_cv_header_stdc=no
3537 if test $ac_cv_header_stdc = yes; then
3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3543 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3544 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3546 int main () { int i; for (i = 0; i < 256; i++)
3547 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 ac_cv_header_stdc=no
3564 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3565 if test $ac_cv_header_stdc = yes; then
3566 { test "$extra_verbose" = "yes" && cat << \EOF
3567 Defining STDC_HEADERS
3569 cat >> confdefs.h <<\EOF
3570 #define STDC_HEADERS 1
3576 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3577 echo "configure:3578: checking whether time.h and sys/time.h may both be included" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3583 #include <sys/time.h>
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 ac_cv_header_time=yes
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 ac_cv_header_time=no
3600 echo "$ac_t""$ac_cv_header_time" 1>&6
3601 if test $ac_cv_header_time = yes; then
3602 { test "$extra_verbose" = "yes" && cat << \EOF
3603 Defining TIME_WITH_SYS_TIME
3605 cat >> confdefs.h <<\EOF
3606 #define TIME_WITH_SYS_TIME 1
3612 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3613 echo "configure:3614: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <sys/types.h>
3620 /* NetBSD declares sys_siglist in unistd.h. */
3621 #ifdef HAVE_UNISTD_H
3625 char *msg = *(sys_siglist + 1);
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 ac_cv_decl_sys_siglist=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 ac_cv_decl_sys_siglist=no
3639 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3640 if test $ac_cv_decl_sys_siglist = yes; then
3641 { test "$extra_verbose" = "yes" && cat << \EOF
3642 Defining SYS_SIGLIST_DECLARED
3644 cat >> confdefs.h <<\EOF
3645 #define SYS_SIGLIST_DECLARED 1
3652 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3653 echo "configure:3654: checking for struct utimbuf" >&5
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #ifdef TIME_WITH_SYS_TIME
3658 #include <sys/time.h>
3661 #ifdef HAVE_SYS_TIME_H
3662 #include <sys/time.h>
3671 static struct utimbuf x; x.actime = x.modtime;
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 echo "$ac_t""yes" 1>&6
3677 { test "$extra_verbose" = "yes" && cat << \EOF
3678 Defining HAVE_STRUCT_UTIMBUF
3680 cat >> confdefs.h <<\EOF
3681 #define HAVE_STRUCT_UTIMBUF 1
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3689 echo "$ac_t""no" 1>&6
3693 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3694 echo "configure:3695: checking return type of signal handlers" >&5
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <sys/types.h>
3705 extern "C" void (*signal (int, void (*)(int)))(int);
3707 void (*signal ()) ();
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 ac_cv_type_signal=void
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 ac_cv_type_signal=int
3725 echo "$ac_t""$ac_cv_type_signal" 1>&6
3726 { test "$extra_verbose" = "yes" && cat << EOF
3727 Defining RETSIGTYPE = $ac_cv_type_signal
3729 cat >> confdefs.h <<EOF
3730 #define RETSIGTYPE $ac_cv_type_signal
3735 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3736 echo "configure:3737: checking for size_t" >&5
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741 #include <sys/types.h>
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3750 ac_cv_type_size_t=yes
3753 ac_cv_type_size_t=no
3757 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3758 if test $ac_cv_type_size_t = no; then
3759 { test "$extra_verbose" = "yes" && cat << \EOF
3760 Defining size_t = unsigned
3762 cat >> confdefs.h <<\EOF
3763 #define size_t unsigned
3769 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3770 echo "configure:3771: checking for pid_t" >&5
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 #include <sys/types.h>
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3784 ac_cv_type_pid_t=yes
3791 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3792 if test $ac_cv_type_pid_t = no; then
3793 { test "$extra_verbose" = "yes" && cat << \EOF
3794 Defining pid_t = int
3796 cat >> confdefs.h <<\EOF
3803 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3804 echo "configure:3805: checking for uid_t in sys/types.h" >&5
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 #include <sys/types.h>
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "uid_t" >/dev/null 2>&1; then
3814 ac_cv_type_uid_t=yes
3822 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3823 if test $ac_cv_type_uid_t = no; then
3824 { test "$extra_verbose" = "yes" && cat << \EOF
3825 Defining uid_t = int
3827 cat >> confdefs.h <<\EOF
3832 { test "$extra_verbose" = "yes" && cat << \EOF
3833 Defining gid_t = int
3835 cat >> confdefs.h <<\EOF
3842 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3843 echo "configure:3844: checking for mode_t" >&5
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 #include <sys/types.h>
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3857 ac_cv_type_mode_t=yes
3860 ac_cv_type_mode_t=no
3864 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3865 if test $ac_cv_type_mode_t = no; then
3866 { test "$extra_verbose" = "yes" && cat << \EOF
3867 Defining mode_t = int
3869 cat >> confdefs.h <<\EOF
3876 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3877 echo "configure:3878: checking for off_t" >&5
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3882 #include <sys/types.h>
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3891 ac_cv_type_off_t=yes
3898 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3899 if test $ac_cv_type_off_t = no; then
3900 { test "$extra_verbose" = "yes" && cat << \EOF
3901 Defining off_t = long
3903 cat >> confdefs.h <<\EOF
3910 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3911 echo "configure:3912: checking for ssize_t" >&5
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 #include <sys/types.h>
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3925 ac_cv_type_ssize_t=yes
3928 ac_cv_type_ssize_t=no
3932 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3933 if test $ac_cv_type_ssize_t = no; then
3934 { test "$extra_verbose" = "yes" && cat << \EOF
3935 Defining ssize_t = int
3937 cat >> confdefs.h <<\EOF
3945 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3946 echo "configure:3947: checking for struct timeval" >&5
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #ifdef TIME_WITH_SYS_TIME
3951 #include <sys/time.h>
3954 #ifdef HAVE_SYS_TIME_H
3955 #include <sys/time.h>
3961 static struct timeval x; x.tv_sec = x.tv_usec;
3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3966 echo "$ac_t""yes" 1>&6
3968 { test "$extra_verbose" = "yes" && cat << \EOF
3969 Defining HAVE_TIMEVAL
3971 cat >> confdefs.h <<\EOF
3972 #define HAVE_TIMEVAL 1
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 echo "$ac_t""no" 1>&6
3985 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3986 echo "configure:3987: checking whether struct tm is in sys/time.h or time.h" >&5
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 #include <sys/types.h>
3994 struct tm *tp; tp->tm_sec;
3997 if { (eval echo configure:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3999 ac_cv_struct_tm=time.h
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 ac_cv_struct_tm=sys/time.h
4008 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4009 if test $ac_cv_struct_tm = sys/time.h; then
4010 { test "$extra_verbose" = "yes" && cat << \EOF
4011 Defining TM_IN_SYS_TIME
4013 cat >> confdefs.h <<\EOF
4014 #define TM_IN_SYS_TIME 1
4020 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4021 echo "configure:4022: checking for tm_zone in struct tm" >&5
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 #include <sys/types.h>
4027 #include <$ac_cv_struct_tm>
4029 struct tm tm; tm.tm_zone;
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 ac_cv_struct_tm_zone=yes
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 ac_cv_struct_tm_zone=no
4043 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4044 if test "$ac_cv_struct_tm_zone" = yes; then
4045 { test "$extra_verbose" = "yes" && cat << \EOF
4046 Defining HAVE_TM_ZONE
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_TM_ZONE 1
4054 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4055 echo "configure:4056: checking for tzname" >&5
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4061 #ifndef tzname /* For SGI. */
4062 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4070 ac_cv_var_tzname=yes
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4079 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4080 if test $ac_cv_var_tzname = yes; then
4081 { test "$extra_verbose" = "yes" && cat << \EOF
4082 Defining HAVE_TZNAME
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_TZNAME 1
4093 echo $ac_n "checking for working const""... $ac_c" 1>&6
4094 echo "configure:4095: checking for working const" >&5
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4102 /* Ultrix mips cc rejects this. */
4103 typedef int charset[2]; const charset x;
4104 /* SunOS 4.1.1 cc rejects this. */
4105 char const *const *ccp;
4107 /* NEC SVR4.0.2 mips cc rejects this. */
4108 struct point {int x, y;};
4109 static struct point const zero = {0,0};
4110 /* AIX XL C 1.02.0.0 rejects this.
4111 It does not let you subtract one const X* pointer from another in an arm
4112 of an if-expression whose if-part is not a constant expression */
4113 const char *g = "string";
4114 ccp = &g + (g ? g-g : 0);
4115 /* HPUX 7.0 cc rejects these. */
4118 ccp = (char const *const *) p;
4119 { /* SCO 3.2v4 cc rejects this. */
4121 char const *s = 0 ? (char *) 0 : (char const *) 0;
4125 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4127 const int *foo = &x[0];
4130 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4131 typedef const int *iptr;
4135 { /* AIX XL C 1.02.0.0 rejects this saying
4136 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4137 struct s { int j; const int *ap[3]; };
4138 struct s *b; b->j = 5;
4140 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4157 echo "$ac_t""$ac_cv_c_const" 1>&6
4158 if test $ac_cv_c_const = no; then
4159 { test "$extra_verbose" = "yes" && cat << \EOF
4162 cat >> confdefs.h <<\EOF
4170 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4171 echo "configure:4172: checking whether ${MAKE-make} sets \${MAKE}" >&5
4172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4174 cat > conftestmake <<\EOF
4176 @echo 'ac_maketemp="${MAKE}"'
4178 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4179 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4180 if test -n "$ac_maketemp"; then
4181 eval ac_cv_prog_make_${ac_make}_set=yes
4183 eval ac_cv_prog_make_${ac_make}_set=no
4186 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4190 echo "$ac_t""no" 1>&6
4191 SET_MAKE="MAKE=${MAKE-make}"
4195 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4196 echo "configure:4197: checking whether byte ordering is bigendian" >&5
4198 ac_cv_c_bigendian=unknown
4199 # See if sys/param.h defines the BYTE_ORDER macro.
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/types.h>
4204 #include <sys/param.h>
4207 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 # It does; now see whether it defined to BIG_ENDIAN or not.
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <sys/types.h>
4219 #include <sys/param.h>
4222 #if BYTE_ORDER != BIG_ENDIAN
4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4229 ac_cv_c_bigendian=yes
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 ac_cv_c_bigendian=no
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4242 if test $ac_cv_c_bigendian = unknown; then
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4247 /* Are we little or big endian? From Harbison&Steele. */
4251 char c[sizeof (long)];
4254 exit (u.c[sizeof (long) - 1] == 1);
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4259 ac_cv_c_bigendian=no
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 ac_cv_c_bigendian=yes
4270 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4271 if test $ac_cv_c_bigendian = yes; then
4272 { test "$extra_verbose" = "yes" && cat << \EOF
4273 Defining WORDS_BIGENDIAN
4275 cat >> confdefs.h <<\EOF
4276 #define WORDS_BIGENDIAN 1
4283 echo $ac_n "checking size of short""... $ac_c" 1>&6
4284 echo "configure:4285: checking size of short" >&5
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4292 FILE *f=fopen("conftestval", "w");
4294 fprintf(f, "%d\n", sizeof(short));
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4300 ac_cv_sizeof_short=`cat conftestval`
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 ac_cv_sizeof_short=0
4309 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4310 { test "$extra_verbose" = "yes" && cat << EOF
4311 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4313 cat >> confdefs.h <<EOF
4314 #define SIZEOF_SHORT $ac_cv_sizeof_short
4319 if test "$ac_cv_sizeof_short" = 0; then
4321 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4322 echo "*** PANIC *** Please examine config.log for compilation errors."
4325 echo $ac_n "checking size of int""... $ac_c" 1>&6
4326 echo "configure:4327: checking size of int" >&5
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4334 FILE *f=fopen("conftestval", "w");
4336 fprintf(f, "%d\n", sizeof(int));
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4342 ac_cv_sizeof_int=`cat conftestval`
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4351 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4352 { test "$extra_verbose" = "yes" && cat << EOF
4353 Defining SIZEOF_INT = $ac_cv_sizeof_int
4355 cat >> confdefs.h <<EOF
4356 #define SIZEOF_INT $ac_cv_sizeof_int
4361 echo $ac_n "checking size of long""... $ac_c" 1>&6
4362 echo "configure:4363: checking size of long" >&5
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4370 FILE *f=fopen("conftestval", "w");
4372 fprintf(f, "%d\n", sizeof(long));
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4378 ac_cv_sizeof_long=`cat conftestval`
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4387 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4388 { test "$extra_verbose" = "yes" && cat << EOF
4389 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4391 cat >> confdefs.h <<EOF
4392 #define SIZEOF_LONG $ac_cv_sizeof_long
4397 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4398 echo "configure:4399: checking size of long long" >&5
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4406 FILE *f=fopen("conftestval", "w");
4408 fprintf(f, "%d\n", sizeof(long long));
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4414 ac_cv_sizeof_long_long=`cat conftestval`
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 ac_cv_sizeof_long_long=0
4423 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4424 { test "$extra_verbose" = "yes" && cat << EOF
4425 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4427 cat >> confdefs.h <<EOF
4428 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4433 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4434 echo "configure:4435: checking size of void *" >&5
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4442 FILE *f=fopen("conftestval", "w");
4444 fprintf(f, "%d\n", sizeof(void *));
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4450 ac_cv_sizeof_void_p=`cat conftestval`
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 ac_cv_sizeof_void_p=0
4459 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4460 { test "$extra_verbose" = "yes" && cat << EOF
4461 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4463 cat >> confdefs.h <<EOF
4464 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4470 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4471 echo "configure:4472: checking for long file names" >&5
4473 ac_cv_sys_long_file_names=yes
4474 # Test for long file names in all the places we know might matter:
4475 # . the current directory, where building will happen
4476 # $prefix/lib where we will be installing things
4477 # $exec_prefix/lib likewise
4478 # eval it to expand exec_prefix.
4479 # $TMPDIR if set, where it might want to write temporary files
4480 # if $TMPDIR is not set:
4481 # /tmp where it might want to write temporary files
4484 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4485 ac_tmpdirs="$TMPDIR"
4487 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4489 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4490 test -d $ac_dir || continue
4491 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4492 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4493 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4494 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4495 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4496 ac_cv_sys_long_file_names=no
4497 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4500 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4503 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4504 if test $ac_cv_sys_long_file_names = yes; then
4505 { test "$extra_verbose" = "yes" && cat << \EOF
4506 Defining HAVE_LONG_FILE_NAMES
4508 cat >> confdefs.h <<\EOF
4509 #define HAVE_LONG_FILE_NAMES 1
4516 echo $ac_n "checking for sin""... $ac_c" 1>&6
4517 echo "configure:4518: checking for sin" >&5
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 /* System header to define __stub macros and hopefully few prototypes,
4523 which can conflict with char sin(); below. */
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4532 /* The GNU C library defines this for functions which it implements
4533 to always fail with ENOSYS. Some functions are actually named
4534 something starting with __ and the normal name is an alias. */
4535 #if defined (__stub_sin) || defined (__stub___sin)
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 eval "ac_cv_func_sin=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 eval "ac_cv_func_sin=no"
4554 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4558 echo "$ac_t""no" 1>&6
4560 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4561 echo "configure:4562: checking for sin in -lm" >&5
4562 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4564 xe_check_libs=" -lm "
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 eval "ac_cv_lib_$ac_lib_var=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 eval "ac_cv_lib_$ac_lib_var=no"
4589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4593 { test "$extra_verbose" = "yes" && cat << EOF
4596 cat >> confdefs.h <<EOF
4597 #define $ac_tr_lib 1
4601 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4604 echo "$ac_t""no" 1>&6
4611 { test "$extra_verbose" = "yes" && cat << \EOF
4612 Defining LISP_FLOAT_TYPE
4614 cat >> confdefs.h <<\EOF
4615 #define LISP_FLOAT_TYPE 1
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4630 { test "$extra_verbose" = "yes" && cat << \EOF
4631 Defining HAVE_INVERSE_HYPERBOLIC
4633 cat >> confdefs.h <<\EOF
4634 #define HAVE_INVERSE_HYPERBOLIC 1
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4644 echo "checking type of mail spool file locking" 1>&6
4645 echo "configure:4646: checking type of mail spool file locking" >&5
4646 for ac_func in lockf flock
4648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_func" >&5
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* System header to define __stub macros and hopefully few prototypes,
4655 which can conflict with char $ac_func(); below. */
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4677 eval "ac_cv_func_$ac_func=yes"
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 eval "ac_cv_func_$ac_func=no"
4686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4689 { test "$extra_verbose" = "yes" && cat << EOF
4690 Defining $ac_tr_func
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_func 1
4698 echo "$ac_t""no" 1>&6
4702 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4703 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4704 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4705 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4706 Defining MAIL_LOCK_LOCKF
4708 cat >> confdefs.h <<\EOF
4709 #define MAIL_LOCK_LOCKF 1
4713 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4714 Defining MAIL_LOCK_FLOCK
4716 cat >> confdefs.h <<\EOF
4717 #define MAIL_LOCK_FLOCK 1
4721 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4722 Defining MAIL_LOCK_LOCKING
4724 cat >> confdefs.h <<\EOF
4725 #define MAIL_LOCK_LOCKING 1
4729 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4730 Defining MAIL_LOCK_DOT
4732 cat >> confdefs.h <<\EOF
4733 #define MAIL_LOCK_DOT 1
4738 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4739 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4740 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4741 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4742 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4743 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4745 case "$opsys" in decosf*)
4747 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4748 echo "configure:4749: checking for cma_open in -lpthreads" >&5
4749 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4751 xe_check_libs=" -lpthreads "
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_lib_$ac_lib_var=no"
4776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4780 { test "$extra_verbose" = "yes" && cat << EOF
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_lib 1
4788 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
4791 echo "$ac_t""no" 1>&6
4795 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4796 c_switch_site="$c_switch_site -threads" ;;
4799 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4800 echo "configure:4801: checking whether the -xildoff compiler flag is required" >&5
4801 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4802 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4803 then echo "$ac_t""no" 1>&6;
4804 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
4806 else echo "$ac_t""no" 1>&6
4809 if test "$opsys" = "sol2" -a "$os_release" -ge 56; then
4810 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4811 echo "configure:4812: checking for \"-z ignore\" linker flag" >&5
4812 case "`ld -h 2>&1`" in
4813 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4814 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4815 *) echo "$ac_t""no" 1>&6 ;;
4820 echo "checking "for specified window system"" 1>&6
4821 echo "configure:4822: checking "for specified window system"" >&5
4823 if test "$with_x11" != "no"; then
4824 test "$x_includes $x_libraries" != "NONE NONE" && \
4825 window_system=x11 with_x11=yes
4828 if test "$x_includes $x_libraries" = "NONE NONE" \
4829 -a -n "$OPENWINHOME" \
4830 -a "$OPENWINHOME" != "/usr/openwin" \
4831 -a -d "$OPENWINHOME"; then
4832 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4833 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4834 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4837 if test "$x_includes" = "NONE"; then
4838 for dir in "/usr/X11" "/usr/X11R6"; do
4839 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4843 if test "$x_libraries" = "NONE"; then
4844 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4845 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4849 # If we find X, set shell vars x_includes and x_libraries to the
4850 # paths, otherwise set no_x=yes.
4851 # Uses ac_ vars as temps to allow command line to override cache and checks.
4852 # --without-x overrides everything else, but does not touch the cache.
4853 echo $ac_n "checking for X""... $ac_c" 1>&6
4854 echo "configure:4855: checking for X" >&5
4856 # Check whether --with-x or --without-x was given.
4857 if test "${with_x+set}" = set; then
4862 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4863 if test "x$with_x" = xno; then
4864 # The user explicitly disabled X.
4867 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4868 # Both variables are already set.
4872 # One or both of the vars are not set, and there is no cached value.
4873 ac_x_includes=NO ac_x_libraries=NO
4875 if mkdir conftestdir; then
4877 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4878 cat > Imakefile <<'EOF'
4880 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4882 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4884 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4886 for ac_extension in a so sl; do
4887 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4888 test -f $ac_im_libdir/libX11.$ac_extension; then
4889 ac_im_usrlibdir=$ac_im_libdir; break
4892 # Screen out bogus values from the imake configuration. They are
4893 # bogus both because they are the default anyway, and because
4894 # using them would break gcc on systems where it needs fixed includes.
4895 case "$ac_im_incroot" in
4897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4899 case "$ac_im_usrlibdir" in
4901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4908 if test "$ac_x_includes" = NO; then
4909 # Guess where to find include files, by looking for this one X11 .h file.
4910 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4912 # First, try using that file with no special directory specified.
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <$x_direct_test_include>
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4921 if test -z "$ac_err"; then
4923 # We can compile using X headers with no special include directory.
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 # Look for the header file in a standard set of common directories.
4931 # Check X11 before X11Rn because it is often a symlink to the current release.
4934 /usr/X11R6/include \
4935 /usr/X11R5/include \
4936 /usr/X11R4/include \
4939 /usr/include/X11R6 \
4940 /usr/include/X11R5 \
4941 /usr/include/X11R4 \
4943 /usr/local/X11/include \
4944 /usr/local/X11R6/include \
4945 /usr/local/X11R5/include \
4946 /usr/local/X11R4/include \
4948 /usr/local/include/X11 \
4949 /usr/local/include/X11R6 \
4950 /usr/local/include/X11R5 \
4951 /usr/local/include/X11R4 \
4955 /usr/XFree86/include/X11 \
4958 /usr/local/include \
4959 /usr/unsupported/include \
4960 /usr/athena/include \
4961 /usr/local/x11r5/include \
4962 /usr/lpp/Xamples/include \
4964 /usr/openwin/include \
4965 /usr/openwin/share/include \
4968 if test -r "$ac_dir/$x_direct_test_include"; then
4969 ac_x_includes=$ac_dir
4975 fi # $ac_x_includes = NO
4977 if test "$ac_x_libraries" = NO; then
4978 # Check for the libraries.
4980 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4981 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4983 # See if we find them without any special options.
4984 # Don't add to $LIBS permanently.
4985 ac_save_LIBS="$LIBS"
4986 LIBS="-l$x_direct_test_library $LIBS"
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4992 ${x_direct_test_function}()
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 LIBS="$ac_save_LIBS"
4998 # We can link X programs with no special library path.
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5004 LIBS="$ac_save_LIBS"
5005 # First see if replacing the include by lib works.
5006 # Check X11 before X11Rn because it is often a symlink to the current release.
5007 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5018 /usr/local/X11/lib \
5019 /usr/local/X11R6/lib \
5020 /usr/local/X11R5/lib \
5021 /usr/local/X11R4/lib \
5023 /usr/local/lib/X11 \
5024 /usr/local/lib/X11R6 \
5025 /usr/local/lib/X11R5 \
5026 /usr/local/lib/X11R4 \
5030 /usr/XFree86/lib/X11 \
5034 /usr/unsupported/lib \
5036 /usr/local/x11r5/lib \
5037 /usr/lpp/Xamples/lib \
5041 /usr/openwin/share/lib \
5044 for ac_extension in a so sl; do
5045 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5046 ac_x_libraries=$ac_dir
5053 fi # $ac_x_libraries = NO
5055 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5056 # Didn't find X anywhere. Cache the known absence of X.
5057 ac_cv_have_x="have_x=no"
5059 # Record where we found X for the cache.
5060 ac_cv_have_x="have_x=yes \
5061 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5064 eval "$ac_cv_have_x"
5067 if test "$have_x" != yes; then
5068 echo "$ac_t""$have_x" 1>&6
5071 # If each of the values was on the command line, it overrides each guess.
5072 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5073 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5074 # Update the cache value to reflect the command line values.
5075 ac_cv_have_x="have_x=yes \
5076 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5077 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5080 if test "$no_x" = yes; then
5081 # Not all programs may use this symbol, but it does not hurt to define it.
5082 { test "$extra_verbose" = "yes" && cat << \EOF
5083 Defining X_DISPLAY_MISSING
5085 cat >> confdefs.h <<\EOF
5086 #define X_DISPLAY_MISSING 1
5090 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5092 if test -n "$x_includes"; then
5093 X_CFLAGS="$X_CFLAGS -I$x_includes"
5096 # It would also be nice to do this for all -L options, not just this one.
5097 if test -n "$x_libraries"; then
5098 X_LIBS="$X_LIBS -L$x_libraries"
5099 # For Solaris; some versions of Sun CC require a space after -R and
5100 # others require no space. Words are not sufficient . . . .
5101 case "`(uname -sr) 2>/dev/null`" in
5103 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5104 echo "configure:5105: checking whether -R must be followed by a space" >&5
5105 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5124 if test $ac_R_nospace = yes; then
5125 echo "$ac_t""no" 1>&6
5126 X_LIBS="$X_LIBS -R$x_libraries"
5128 LIBS="$ac_xsave_LIBS -R $x_libraries"
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5147 if test $ac_R_space = yes; then
5148 echo "$ac_t""yes" 1>&6
5149 X_LIBS="$X_LIBS -R $x_libraries"
5151 echo "$ac_t""neither works" 1>&6
5154 LIBS="$ac_xsave_LIBS"
5158 # Check for system-dependent libraries X programs must link with.
5159 # Do this before checking for the system-independent R6 libraries
5160 # (-lICE), since we may need -lsocket or whatever for X linking.
5162 if test "$ISC" = yes; then
5163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5165 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5166 # libraries were built with DECnet support. And karl@cs.umb.edu says
5167 # the Alpha needs dnet_stub (dnet does not exist).
5168 if test "$with_dnet" = "no" ; then
5169 ac_cv_lib_dnet_dnet_ntoa=no
5172 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5173 echo "configure:5174: checking for dnet_ntoa in -ldnet" >&5
5174 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5176 xe_check_libs=" -ldnet "
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 eval "ac_cv_lib_$ac_lib_var=yes"
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 eval "ac_cv_lib_$ac_lib_var=no"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5202 echo "$ac_t""yes" 1>&6
5203 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5205 echo "$ac_t""no" 1>&6
5210 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5212 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5213 echo "configure:5214: checking for dnet_ntoa in -ldnet_stub" >&5
5214 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5216 xe_check_libs=" -ldnet_stub "
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 eval "ac_cv_lib_$ac_lib_var=yes"
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 eval "ac_cv_lib_$ac_lib_var=no"
5241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5242 echo "$ac_t""yes" 1>&6
5243 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5245 echo "$ac_t""no" 1>&6
5251 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5252 # to get the SysV transport functions.
5253 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5255 # The nsl library prevents programs from opening the X display
5256 # on Irix 5.2, according to dickey@clark.net.
5257 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5258 echo "configure:5259: checking for gethostbyname" >&5
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5263 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char gethostbyname(); below. */
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269 char gethostbyname();
5273 /* The GNU C library defines this for functions which it implements
5274 to always fail with ENOSYS. Some functions are actually named
5275 something starting with __ and the normal name is an alias. */
5276 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 eval "ac_cv_func_gethostbyname=yes"
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 eval "ac_cv_func_gethostbyname=no"
5295 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5299 echo "$ac_t""no" 1>&6
5302 if test $ac_cv_func_gethostbyname = no; then
5304 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5305 echo "configure:5306: checking for gethostbyname in -lnsl" >&5
5306 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5308 xe_check_libs=" -lnsl "
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5315 char gethostbyname();
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 eval "ac_cv_lib_$ac_lib_var=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 eval "ac_cv_lib_$ac_lib_var=no"
5333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5334 echo "$ac_t""yes" 1>&6
5335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5337 echo "$ac_t""no" 1>&6
5343 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5344 # socket/setsockopt and other routines are undefined under SCO ODT
5345 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5346 # on later versions), says simon@lia.di.epfl.ch: it contains
5347 # gethostby* variants that don't use the nameserver (or something).
5348 # -lsocket must be given before -lnsl if both are needed.
5349 # We assume that if connect needs -lnsl, so does gethostbyname.
5350 echo $ac_n "checking for connect""... $ac_c" 1>&6
5351 echo "configure:5352: checking for connect" >&5
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char connect(); below. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_connect) || defined (__stub___connect)
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 eval "ac_cv_func_connect=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_func_connect=no"
5388 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5392 echo "$ac_t""no" 1>&6
5395 if test $ac_cv_func_connect = no; then
5397 xe_msg_checking="for connect in -lsocket"
5398 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5399 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5400 echo "configure:5401: checking "$xe_msg_checking"" >&5
5401 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5403 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 /* Override any gcc2 internal prototype to avoid an error. */
5408 /* We use char because int might match the return type of a gcc2
5409 builtin and then its argument prototype would still apply. */
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 eval "ac_cv_lib_$ac_lib_var=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 eval "ac_cv_lib_$ac_lib_var=no"
5428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5429 echo "$ac_t""yes" 1>&6
5430 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5432 echo "$ac_t""no" 1>&6
5438 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5439 echo $ac_n "checking for remove""... $ac_c" 1>&6
5440 echo "configure:5441: checking for remove" >&5
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5445 /* System header to define __stub macros and hopefully few prototypes,
5446 which can conflict with char remove(); below. */
5448 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */
5455 /* The GNU C library defines this for functions which it implements
5456 to always fail with ENOSYS. Some functions are actually named
5457 something starting with __ and the normal name is an alias. */
5458 #if defined (__stub_remove) || defined (__stub___remove)
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 eval "ac_cv_func_remove=yes"
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 eval "ac_cv_func_remove=no"
5477 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5481 echo "$ac_t""no" 1>&6
5484 if test $ac_cv_func_remove = no; then
5486 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5487 echo "configure:5488: checking for remove in -lposix" >&5
5488 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5490 xe_check_libs=" -lposix "
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5505 eval "ac_cv_lib_$ac_lib_var=yes"
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 eval "ac_cv_lib_$ac_lib_var=no"
5515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5516 echo "$ac_t""yes" 1>&6
5517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5519 echo "$ac_t""no" 1>&6
5525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5526 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5527 echo "configure:5528: checking for shmat" >&5
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char shmat(); below. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_shmat) || defined (__stub___shmat)
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_func_shmat=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_func_shmat=no"
5564 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5565 echo "$ac_t""yes" 1>&6
5568 echo "$ac_t""no" 1>&6
5571 if test $ac_cv_func_shmat = no; then
5573 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5574 echo "configure:5575: checking for shmat in -lipc" >&5
5575 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5577 xe_check_libs=" -lipc "
5578 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 eval "ac_cv_lib_$ac_lib_var=yes"
5594 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5597 eval "ac_cv_lib_$ac_lib_var=no"
5602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5603 echo "$ac_t""yes" 1>&6
5604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5606 echo "$ac_t""no" 1>&6
5613 # Check for libraries that X11R6 Xt/Xaw programs need.
5614 ac_save_LDFLAGS="$LDFLAGS"
5615 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5616 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5617 # check for ICE first), but we must link in the order -lSM -lICE or
5618 # we get undefined symbols. So assume we have SM if we have ICE.
5619 # These have to be linked with before -lX11, unlike the other
5620 # libraries we check for below, so use a different variable.
5621 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5623 xe_msg_checking="for IceConnectionNumber in -lICE"
5624 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5625 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5626 echo "configure:5627: checking "$xe_msg_checking"" >&5
5627 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5629 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5636 char IceConnectionNumber();
5639 IceConnectionNumber()
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5644 eval "ac_cv_lib_$ac_lib_var=yes"
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5649 eval "ac_cv_lib_$ac_lib_var=no"
5654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5655 echo "$ac_t""yes" 1>&6
5656 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5658 echo "$ac_t""no" 1>&6
5662 LDFLAGS="$ac_save_LDFLAGS"
5665 # Autoconf claims to find X library and include dirs for us.
5666 if test "$no_x" = "yes"
5667 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5668 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5673 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5674 no ) window_system=none HAVE_X_WINDOWS=no ;;
5677 if test "$with_x11" = "yes"; then
5678 { test "$extra_verbose" = "yes" && cat << \EOF
5679 Defining HAVE_X_WINDOWS
5681 cat >> confdefs.h <<\EOF
5682 #define HAVE_X_WINDOWS 1
5686 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
5687 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
5689 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
5690 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
5691 if test -d "$lib_dir" -a -d "$inc_dir"; then
5692 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5693 x_libraries="$lib_dir $x_libraries"
5694 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
5696 case "$x_includes" in "$inc_dir"* ) ;; *)
5697 x_includes="$inc_dir $x_includes"
5698 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5703 for rel in "X11R6" "X11R5" "X11R4"; do
5704 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5705 if test -d "$lib_dir" -a -d "$inc_dir"; then
5706 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5707 x_libraries="$x_libraries $lib_dir"
5708 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5710 case "$x_includes" in "$inc_dir"* ) ;; *)
5711 x_includes="$x_includes $inc_dir"
5712 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5717 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
5719 ld_switch_x_site="$X_LIBS"
5722 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5723 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5724 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5726 runpath="" runpath_dirs=""
5727 if test -n "$LD_RUN_PATH"; then
5728 runpath="$LD_RUN_PATH"
5729 elif test "$GCC" = "yes"; then
5730 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5731 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5732 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5733 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5734 case "$arg" in P,* | -L* | -R* )
5735 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5737 xe_runpath_dir="$dir"
5738 test "$xe_runpath_dir" != "/lib" -a \
5739 "$xe_runpath_dir" != "/usr/lib" -a \
5740 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5741 eval "$xe_add_unique_runpath_dir"
5746 ld_switch_run="$ld_switch_run_save"
5749 for arg in $ld_switch_site $ld_switch_x_site; do
5750 case "$arg" in -L*) {
5751 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5752 test "$xe_runpath_dir" != "/lib" -a \
5753 "$xe_runpath_dir" != "/usr/lib" -a \
5754 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5755 eval "$xe_add_unique_runpath_dir"
5758 if test "$opsys $need_motif" = "sol2 yes"; then
5759 xe_runpath_dir="/opt/SUNWdt/lib";
5760 eval "$xe_add_unique_runpath_dir";
5763 if test -n "$runpath"; then
5764 ld_switch_run="${dash_r}${runpath}"
5766 if test "$GCC" = "yes"; then
5767 set x $ld_switch_run; shift; ld_switch_run=""
5768 while test -n "$1"; do
5770 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5771 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
5773 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5778 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5783 if test "$extra_verbose" = "yes"; then
5784 echo; echo "X11 compilation variables:"
5785 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5790 if test "$x_includes" != NONE; then
5791 for i in $x_includes; do
5792 if test -d "$i/bitmaps"; then
5793 bitmapdirs="$i/bitmaps:$bitmapdirs"
5795 if test -d "$i/X11/bitmaps"; then
5796 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5799 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5801 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5802 Defining BITMAPDIR = "$bitmapdirs"
5804 cat >> confdefs.h <<EOF
5805 #define BITMAPDIR "$bitmapdirs"
5810 echo "checking for X defines extracted by xmkmf" 1>&6
5811 echo "configure:5812: checking for X defines extracted by xmkmf" >&5
5813 if mkdir conftestdir; then
5815 cat > Imakefile <<'EOF'
5817 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5819 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5821 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5825 for word in $xmkmf_defines; do
5828 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5829 { test "$extra_verbose" = "yes" && cat << EOF
5832 cat >> confdefs.h <<EOF
5841 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for X11/Intrinsic.h" >&5
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 #include <X11/Intrinsic.h>
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5853 if test -z "$ac_err"; then
5855 eval "ac_cv_header_$ac_safe=yes"
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 eval "ac_cv_header_$ac_safe=no"
5864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5868 echo "$ac_t""no" 1>&6
5869 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5874 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5875 echo "configure:5876: checking for XOpenDisplay in -lX11" >&5
5876 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5878 xe_check_libs=" -lX11 "
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5885 char XOpenDisplay();
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 eval "ac_cv_lib_$ac_lib_var=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_lib_$ac_lib_var=no"
5903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5904 echo "$ac_t""yes" 1>&6
5907 echo "$ac_t""no" 1>&6
5911 if test "$have_lib_x11" != "yes"; then
5913 xe_msg_checking="for XGetFontProperty in -lX11"
5914 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5915 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5916 echo "configure:5917: checking "$xe_msg_checking"" >&5
5917 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5919 xe_check_libs=" -lX11 -b i486-linuxaout"
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5926 char XGetFontProperty();
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5934 eval "ac_cv_lib_$ac_lib_var=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 eval "ac_cv_lib_$ac_lib_var=no"
5944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5945 echo "$ac_t""yes" 1>&6
5946 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5948 echo "$ac_t""no" 1>&6
5949 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5955 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5958 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5959 echo "configure:5960: checking for XShapeSelectInput in -lXext" >&5
5960 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5962 xe_check_libs=" -lXext "
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */
5969 char XShapeSelectInput();
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5977 eval "ac_cv_lib_$ac_lib_var=yes"
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5982 eval "ac_cv_lib_$ac_lib_var=no"
5987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5988 echo "$ac_t""yes" 1>&6
5989 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5991 echo "$ac_t""no" 1>&6
5997 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5998 echo "configure:5999: checking for XtOpenDisplay in -lXt" >&5
5999 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6001 xe_check_libs=" -lXt "
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* Override any gcc2 internal prototype to avoid an error. */
6006 /* We use char because int might match the return type of a gcc2
6007 builtin and then its argument prototype would still apply. */
6008 char XtOpenDisplay();
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 eval "ac_cv_lib_$ac_lib_var=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_lib_$ac_lib_var=no"
6026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6027 echo "$ac_t""yes" 1>&6
6028 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6030 echo "$ac_t""no" 1>&6
6031 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6036 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6037 echo "configure:6038: checking the version of X11 being used" >&5
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 #include <X11/Intrinsic.h>
6042 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6046 ./conftest foobar; x11_release=$?
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6055 echo "$ac_t""R${x11_release}" 1>&6
6056 { test "$extra_verbose" = "yes" && cat << EOF
6057 Defining THIS_IS_X11R${x11_release}
6059 cat >> confdefs.h <<EOF
6060 #define THIS_IS_X11R${x11_release} 1
6065 for ac_func in XConvertCase
6067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_func" >&5
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6073 /* System header to define __stub macros and hopefully few prototypes,
6074 which can conflict with char $ac_func(); below. */
6076 /* Override any gcc2 internal prototype to avoid an error. */
6077 /* We use char because int might match the return type of a gcc2
6078 builtin and then its argument prototype would still apply. */
6083 /* The GNU C library defines this for functions which it implements
6084 to always fail with ENOSYS. Some functions are actually named
6085 something starting with __ and the normal name is an alias. */
6086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6094 if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6096 eval "ac_cv_func_$ac_func=yes"
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6101 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 { test "$extra_verbose" = "yes" && cat << EOF
6109 Defining $ac_tr_func
6111 cat >> confdefs.h <<EOF
6112 #define $ac_tr_func 1
6117 echo "$ac_t""no" 1>&6
6122 for ac_hdr in X11/Xlocale.h
6124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_hdr" >&5
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6134 { (eval echo configure:6135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6136 if test -z "$ac_err"; then
6138 eval "ac_cv_header_$ac_safe=yes"
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 eval "ac_cv_header_$ac_safe=no"
6147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6150 { test "$extra_verbose" = "yes" && cat << EOF
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_hdr 1
6159 echo "$ac_t""no" 1>&6
6164 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6165 echo "configure:6166: checking for XFree86" >&5
6166 if test -d "/usr/X386/include" -o \
6167 -f "/etc/XF86Config" -o \
6168 -f "/etc/X11/XF86Config" -o \
6169 -f "/usr/X11R6/lib/X11/XF86Config"; then
6170 echo "$ac_t""yes" 1>&6
6171 { test "$extra_verbose" = "yes" && cat << \EOF
6172 Defining HAVE_XFREE386
6174 cat >> confdefs.h <<\EOF
6175 #define HAVE_XFREE386 1
6180 echo "$ac_t""no" 1>&6
6183 test -z "$with_xmu" && {
6184 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6185 echo "configure:6186: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6186 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6188 xe_check_libs=" -lXmu "
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char XmuReadBitmapDataFromFile();
6198 XmuReadBitmapDataFromFile()
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_lib_$ac_lib_var=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_lib_$ac_lib_var=no"
6213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6214 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6222 if test "$with_xmu" = "no"; then
6223 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
6224 echo " xemacs will be linked with \"xmu.o\""
6227 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
6228 { test "$extra_verbose" = "yes" && cat << \EOF
6231 cat >> confdefs.h <<\EOF
6239 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6240 echo "configure:6241: checking for main in -lXbsd" >&5
6241 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6243 xe_check_libs=" -lXbsd "
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 eval "ac_cv_lib_$ac_lib_var=yes"
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 eval "ac_cv_lib_$ac_lib_var=no"
6264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6265 echo "$ac_t""yes" 1>&6
6266 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
6268 echo "$ac_t""no" 1>&6
6273 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
6274 if test "$GCC" = "yes"; then
6275 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
6276 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
6279 "xlc" ) CC="xlc_r" ;;
6280 "xlC" ) CC="xlC_r" ;;
6287 if test "$with_msw" != "no"; then
6288 echo "checking for MS-Windows" 1>&6
6289 echo "configure:6290: checking for MS-Windows" >&5
6291 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6292 echo "configure:6293: checking for main in -lgdi32" >&5
6293 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6295 xe_check_libs=" -lgdi32 "
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 eval "ac_cv_lib_$ac_lib_var=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_lib_$ac_lib_var=no"
6316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6317 echo "$ac_t""yes" 1>&6
6320 echo "$ac_t""no" 1>&6
6324 if test "$with_msw" = "yes"; then
6325 { test "$extra_verbose" = "yes" && cat << \EOF
6326 Defining HAVE_MS_WINDOWS
6328 cat >> confdefs.h <<\EOF
6329 #define HAVE_MS_WINDOWS 1
6333 install_pp="$blddir/lib-src/installexe.sh"
6334 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6335 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6336 if test "$window_system" != x11; then
6338 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6339 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6340 echo " xemacs will be linked with \"scrollbar-msw.o\""
6342 test "$with_menubars" != "no" && with_menubars=msw \
6343 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6344 echo " xemacs will be linked with \"menubar-msw.o\""
6346 test "$with_toolbars" != "no" && with_toolbars=msw \
6347 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6348 echo " xemacs will be linked with \"toolbar-msw.o\""
6350 test "$with_dialogs" != "no" && with_dialogs=msw \
6351 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6352 echo " xemacs will be linked with \"dialog-msw.o\""
6354 test "$with_widgets" != "no" && with_widgets=msw
6356 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6357 echo " xemacs will be linked with \"scrollbar-msw.o\""
6359 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6360 echo " xemacs will be linked with \"menubar-msw.o\""
6362 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6363 echo " xemacs will be linked with \"toolbar-msw.o\""
6365 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6366 echo " xemacs will be linked with \"dialog-msw.o\""
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6373 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6377 { test "$extra_verbose" = "yes" && cat << \EOF
6378 Defining HAVE_MSG_SELECT
6380 cat >> confdefs.h <<\EOF
6381 #define HAVE_MSG_SELECT 1
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6391 with_file_coding=yes
6392 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
6393 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\""
6400 test -z "$window_system" && window_system="none"
6402 if test "$window_system" = "none"; then
6403 for feature in menubars scrollbars toolbars dialogs dragndrop xface
6405 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6406 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
6408 eval "with_${feature}=no"
6411 test -z "$with_toolbars" && with_toolbars=yes
6414 if test "$with_msw" != "yes"; then
6415 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
6417 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6418 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
6420 eval "with_${feature}=no"
6426 if test "$with_x11" != "yes"; then
6427 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6429 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6430 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6432 eval "with_${feature}=no"
6438 case "$window_system" in
6439 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6440 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
6441 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6444 case "$x_libraries" in *X11R4* )
6445 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6446 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6449 echo "checking for WM_COMMAND option" 1>&6
6450 echo "configure:6451: checking for WM_COMMAND option" >&5;
6451 if test "$with_wmcommand" != "no"; then
6452 { test "$extra_verbose" = "yes" && cat << \EOF
6453 Defining HAVE_WMCOMMAND
6455 cat >> confdefs.h <<\EOF
6456 #define HAVE_WMCOMMAND 1
6462 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6463 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6464 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6465 echo "configure:6466: checking for X11/Xauth.h" >&5
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 #include <X11/Xauth.h>
6472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6473 { (eval echo configure:6474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6475 if test -z "$ac_err"; then
6477 eval "ac_cv_header_$ac_safe=yes"
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 eval "ac_cv_header_$ac_safe=no"
6486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6490 echo "$ac_t""no" 1>&6
6494 test -z "$with_xauth" && {
6495 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6496 echo "configure:6497: checking for XauGetAuthByAddr in -lXau" >&5
6497 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6499 xe_check_libs=" -lXau "
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506 char XauGetAuthByAddr();
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 eval "ac_cv_lib_$ac_lib_var=yes"
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 eval "ac_cv_lib_$ac_lib_var=no"
6524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6525 echo "$ac_t""yes" 1>&6
6528 echo "$ac_t""no" 1>&6
6533 test -z "$with_xauth" && with_xauth=yes
6534 if test "$with_xauth" = "yes"; then
6535 { test "$extra_verbose" = "yes" && cat << \EOF
6538 cat >> confdefs.h <<\EOF
6539 #define HAVE_XAUTH 1
6545 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
6553 if test "$with_tooltalk" != "no" ; then
6554 for dir in "" "Tt/" "desktop/" ; do
6555 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6556 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6557 echo "configure:6558: checking for ${dir}tt_c.h" >&5
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 #include <${dir}tt_c.h>
6564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6565 { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6567 if test -z "$ac_err"; then
6569 eval "ac_cv_header_$ac_safe=yes"
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 eval "ac_cv_header_$ac_safe=no"
6578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6579 echo "$ac_t""yes" 1>&6
6580 tt_c_h_path="${dir}tt_c.h"; break
6582 echo "$ac_t""no" 1>&6
6586 if test -z "$tt_c_h_path"; then
6587 if test "$with_tooltalk" = "yes"; then
6588 (echo "$progname: Usage error:"
6589 echo " " "Unable to find required tooltalk header files."
6590 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6595 if test "$with_tooltalk" != "no" ; then
6596 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6598 xe_msg_checking="for tt_message_create in -ltt"
6599 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6600 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6601 echo "configure:6602: checking "$xe_msg_checking"" >&5
6602 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6604 xe_check_libs=" -ltt $extra_libs"
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6611 char tt_message_create();
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 eval "ac_cv_lib_$ac_lib_var=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_lib_$ac_lib_var=no"
6629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6630 echo "$ac_t""yes" 1>&6
6631 tt_libs="-ltt $extra_libs"; break
6633 echo "$ac_t""no" 1>&6
6639 if test -z "$tt_libs"; then
6640 if test "$with_tooltalk" = "yes"; then
6641 (echo "$progname: Usage error:"
6642 echo " " "Unable to find required tooltalk libraries."
6643 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
6648 test -z "$with_tooltalk" && with_tooltalk=yes
6649 if test "$with_tooltalk" = "yes"; then
6650 { test "$extra_verbose" = "yes" && cat << \EOF
6653 cat >> confdefs.h <<\EOF
6658 { test "$extra_verbose" = "yes" && cat << EOF
6659 Defining TT_C_H_PATH = "$tt_c_h_path"
6661 cat >> confdefs.h <<EOF
6662 #define TT_C_H_PATH "$tt_c_h_path"
6666 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
6667 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
6668 echo " xemacs will be linked with \"tooltalk.o\""
6672 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6673 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6674 echo "configure:6675: checking for Dt/Dt.h" >&5
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6682 { (eval echo configure:6683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6684 if test -z "$ac_err"; then
6686 eval "ac_cv_header_$ac_safe=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 eval "ac_cv_header_$ac_safe=no"
6695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6696 echo "$ac_t""yes" 1>&6
6699 echo "$ac_t""no" 1>&6
6703 test -z "$with_cde" && {
6704 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6705 echo "configure:6706: checking for DtDndDragStart in -lDtSvc" >&5
6706 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6708 xe_check_libs=" -lDtSvc "
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6715 char DtDndDragStart();
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 eval "ac_cv_lib_$ac_lib_var=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 eval "ac_cv_lib_$ac_lib_var=no"
6733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6734 echo "$ac_t""yes" 1>&6
6737 echo "$ac_t""no" 1>&6
6742 test -z "$with_cde" && with_cde=yes
6743 if test "$with_dragndrop" = no; then
6744 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
6747 if test "$with_cde" = "yes" ; then
6748 { test "$extra_verbose" = "yes" && cat << \EOF
6751 cat >> confdefs.h <<\EOF
6756 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
6757 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
6758 with_tooltalk=yes # CDE requires Tooltalk
6759 need_motif=yes # CDE requires Motif
6762 test "$window_system" != "x11" && with_offix=no
6763 if test "$with_xmu" != yes -a "$with_x11" = yes; then
6764 echo "configure: warning: No OffiX without real Xmu support" 1>&2
6767 if test "$with_dragndrop" = no; then
6768 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
6771 if test "$with_cde" = yes; then
6772 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
6775 test -z "$with_offix" && with_offix=no
6776 if test "$with_offix" = "yes"; then
6777 { test "$extra_verbose" = "yes" && cat << \EOF
6778 Defining HAVE_OFFIX_DND
6780 cat >> confdefs.h <<\EOF
6781 #define HAVE_OFFIX_DND 1
6785 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6786 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6789 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6790 echo "configure:6791: checking if drag and drop API is needed" >&5
6791 if test "$with_dragndrop" != "no" ; then
6792 if test -n "$dragndrop_proto" ; then
6794 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6795 { test "$extra_verbose" = "yes" && cat << \EOF
6796 Defining HAVE_DRAGNDROP
6798 cat >> confdefs.h <<\EOF
6799 #define HAVE_DRAGNDROP 1
6803 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
6806 echo "$ac_t""no" 1>&6
6810 echo "checking for LDAP" 1>&6
6811 echo "configure:6812: checking for LDAP" >&5
6812 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6813 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6814 echo "configure:6815: checking for ldap.h" >&5
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6822 { (eval echo configure:6823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6824 if test -z "$ac_err"; then
6826 eval "ac_cv_header_$ac_safe=yes"
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6832 eval "ac_cv_header_$ac_safe=no"
6835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6839 echo "$ac_t""no" 1>&6
6843 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6844 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6845 echo "configure:6846: checking for lber.h" >&5
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6855 if test -z "$ac_err"; then
6857 eval "ac_cv_header_$ac_safe=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_header_$ac_safe=no"
6866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6870 echo "$ac_t""no" 1>&6
6874 if test "$with_ldap" != "no"; then
6876 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6877 echo "configure:6878: checking for ldap_search in -lldap" >&5
6878 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6880 xe_check_libs=" -lldap "
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6893 if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6895 eval "ac_cv_lib_$ac_lib_var=yes"
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6900 eval "ac_cv_lib_$ac_lib_var=no"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6906 echo "$ac_t""yes" 1>&6
6907 with_ldap_nolber=yes
6909 echo "$ac_t""no" 1>&6
6914 test "$with_ldap_nolber" = "no" && {
6915 xe_msg_checking="for ldap_open in -lldap"
6916 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6917 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6918 echo "configure:6919: checking "$xe_msg_checking"" >&5
6919 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6921 xe_check_libs=" -lldap -llber"
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_lib_$ac_lib_var=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_lib_$ac_lib_var=no"
6946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6947 echo "$ac_t""yes" 1>&6
6950 echo "$ac_t""no" 1>&6
6955 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6956 xe_msg_checking="for ldap_open in -lldap"
6957 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6958 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6959 echo "configure:6960: checking "$xe_msg_checking"" >&5
6960 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6962 xe_check_libs=" -lldap -llber -lkrb"
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6977 eval "ac_cv_lib_$ac_lib_var=yes"
6979 echo "configure: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6982 eval "ac_cv_lib_$ac_lib_var=no"
6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6988 echo "$ac_t""yes" 1>&6
6991 echo "$ac_t""no" 1>&6
6996 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6997 xe_msg_checking="for ldap_open in -lldap"
6998 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6999 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7000 echo "configure:7001: checking "$xe_msg_checking"" >&5
7001 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7003 xe_check_libs=" -lldap -llber -lkrb -ldes"
7004 cat > conftest.$ac_ext <<EOF
7005 #line 7006 "configure"
7006 #include "confdefs.h"
7007 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7018 eval "ac_cv_lib_$ac_lib_var=yes"
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7023 eval "ac_cv_lib_$ac_lib_var=no"
7028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7029 echo "$ac_t""yes" 1>&6
7030 with_ldap_krbdes=yes
7032 echo "$ac_t""no" 1>&6
7037 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
7039 if test "$with_ldap" = "yes"; then
7040 { test "$extra_verbose" = "yes" && cat << \EOF
7043 cat >> confdefs.h <<\EOF
7048 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7049 echo " xemacs will be linked with \"eldap.o\""
7051 if test "$with_ldap_nolber" = "yes" ; then
7052 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7054 if test "$with_ldap_krb" = "yes" ; then
7055 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7057 if test "$with_ldap_krbdes" = "yes" ; then
7058 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
7059 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7061 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
7062 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7064 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7067 echo "configure:7068: checking for $ac_func" >&5
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func(); below. */
7075 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7095 eval "ac_cv_func_$ac_func=yes"
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 eval "ac_cv_func_$ac_func=no"
7104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7105 echo "$ac_t""yes" 1>&6
7106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7107 { test "$extra_verbose" = "yes" && cat << EOF
7108 Defining $ac_tr_func
7110 cat >> confdefs.h <<EOF
7111 #define $ac_tr_func 1
7116 echo "$ac_t""no" 1>&6
7123 if test "$window_system" != "none"; then
7124 echo "checking for graphics libraries" 1>&6
7125 echo "configure:7126: checking for graphics libraries" >&5
7128 if test -z "$with_xpm"; then
7129 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7130 echo "configure:7131: checking for Xpm - no older than 3.4f" >&5
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7136 #include <X11/xpm.h>
7137 int main(int c, char **v) {
7139 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7140 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7144 ./conftest dummy_arg; xpm_status=$?;
7145 if test "$xpm_status" = "0"; then
7149 if test "$xpm_status" = "1"; then
7150 xpm_problem="Xpm library version and header file version don't match!"
7151 elif test "$xpm_status" = "2"; then
7152 xpm_problem="Xpm library version is too old!"
7154 xpm_problem="Internal xpm detection logic error!"
7157 *** WARNING *** $xpm_problem
7158 I'm not touching that with a 10-foot pole!
7159 If you really want to use the installed version of Xpm, rerun
7160 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7171 echo "$ac_t""$with_xpm" 1>&6
7173 if test "$with_xpm" = "yes"; then
7174 { test "$extra_verbose" = "yes" && cat << \EOF
7177 cat >> confdefs.h <<\EOF
7182 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7183 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7184 echo "configure:7185: checking for \"FOR_MSW\" xpm" >&5
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7191 XpmCreatePixmapFromData()
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7205 echo "$ac_t""$xpm_for_msw" 1>&6
7206 if test "$xpm_for_msw" = "yes"; then
7207 { test "$extra_verbose" = "yes" && cat << \EOF
7210 cat >> confdefs.h <<\EOF
7218 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7219 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7220 echo "configure:7221: checking for compface.h" >&5
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 #include <compface.h>
7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7230 if test -z "$ac_err"; then
7232 eval "ac_cv_header_$ac_safe=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 eval "ac_cv_header_$ac_safe=no"
7241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7245 echo "$ac_t""no" 1>&6
7249 test -z "$with_xface" && {
7250 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7251 echo "configure:7252: checking for UnGenFace in -lcompface" >&5
7252 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7254 xe_check_libs=" -lcompface "
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7269 eval "ac_cv_lib_$ac_lib_var=yes"
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7274 eval "ac_cv_lib_$ac_lib_var=no"
7279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7280 echo "$ac_t""yes" 1>&6
7283 echo "$ac_t""no" 1>&6
7288 test -z "$with_xface" && with_xface=yes
7289 if test "$with_xface" = "yes"; then
7290 { test "$extra_verbose" = "yes" && cat << \EOF
7293 cat >> confdefs.h <<\EOF
7294 #define HAVE_XFACE 1
7298 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7301 if test "$with_gif" != "no"; then
7303 { test "$extra_verbose" = "yes" && cat << \EOF
7306 cat >> confdefs.h <<\EOF
7311 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
7312 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
7316 if test "$with_png $with_tiff" != "no no"; then
7318 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7319 echo "configure:7320: checking for inflate in -lc" >&5
7320 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7322 xe_check_libs=" -lc "
7323 cat > conftest.$ac_ext <<EOF
7324 #line 7325 "configure"
7325 #include "confdefs.h"
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7337 eval "ac_cv_lib_$ac_lib_var=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_lib_$ac_lib_var=no"
7347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7348 echo "$ac_t""yes" 1>&6
7351 echo "$ac_t""no" 1>&6
7353 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7354 echo "configure:7355: checking for inflate in -lz" >&5
7355 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7357 xe_check_libs=" -lz "
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7372 eval "ac_cv_lib_$ac_lib_var=yes"
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7377 eval "ac_cv_lib_$ac_lib_var=no"
7382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7383 echo "$ac_t""yes" 1>&6
7384 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7386 echo "$ac_t""no" 1>&6
7388 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7389 echo "configure:7390: checking for inflate in -lgz" >&5
7390 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7392 xe_check_libs=" -lgz "
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7407 eval "ac_cv_lib_$ac_lib_var=yes"
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7412 eval "ac_cv_lib_$ac_lib_var=no"
7417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7418 echo "$ac_t""yes" 1>&6
7419 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
7421 echo "$ac_t""no" 1>&6
7433 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7434 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7435 echo "configure:7436: checking for jpeglib.h" >&5
7437 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 #include <jpeglib.h>
7442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7443 { (eval echo configure:7444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7445 if test -z "$ac_err"; then
7447 eval "ac_cv_header_$ac_safe=yes"
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7453 eval "ac_cv_header_$ac_safe=no"
7456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7457 echo "$ac_t""yes" 1>&6
7460 echo "$ac_t""no" 1>&6
7464 test -z "$with_jpeg" && {
7465 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7466 echo "configure:7467: checking for jpeg_destroy_decompress in -ljpeg" >&5
7467 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7469 xe_check_libs=" -ljpeg "
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7476 char jpeg_destroy_decompress();
7479 jpeg_destroy_decompress()
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7484 eval "ac_cv_lib_$ac_lib_var=yes"
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7489 eval "ac_cv_lib_$ac_lib_var=no"
7494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7495 echo "$ac_t""yes" 1>&6
7498 echo "$ac_t""no" 1>&6
7503 test -z "$with_jpeg" && with_jpeg=yes
7504 if test "$with_jpeg" = "yes"; then
7505 { test "$extra_verbose" = "yes" && cat << \EOF
7508 cat >> confdefs.h <<\EOF
7513 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7517 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7518 echo "configure:7519: checking for pow" >&5
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char pow(); below. */
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_pow) || defined (__stub___pow)
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7546 eval "ac_cv_func_pow=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_func_pow=no"
7555 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7559 echo "$ac_t""no" 1>&6
7563 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7564 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7565 echo "configure:7566: checking for png.h" >&5
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7573 { (eval echo configure:7574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7575 if test -z "$ac_err"; then
7577 eval "ac_cv_header_$ac_safe=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_header_$ac_safe=no"
7586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7587 echo "$ac_t""yes" 1>&6
7590 echo "$ac_t""no" 1>&6
7594 test -z "$with_png" && {
7595 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7596 echo "configure:7597: checking for png_read_image in -lpng" >&5
7597 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7599 xe_check_libs=" -lpng "
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606 char png_read_image();
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 eval "ac_cv_lib_$ac_lib_var=yes"
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 eval "ac_cv_lib_$ac_lib_var=no"
7624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7625 echo "$ac_t""yes" 1>&6
7628 echo "$ac_t""no" 1>&6
7633 if test -z "$with_png"; then
7634 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7635 echo "configure:7636: checking for workable png version information" >&5
7636 xe_check_libs="-lpng -lz"
7637 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7641 int main(int c, char **v) {
7642 if (c == 1) return 0;
7643 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7644 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7648 ./conftest dummy_arg; png_status=$?;
7649 if test "$png_status" = "0"; then
7653 if test "$png_status" = "1"; then
7654 png_problem="PNG library version and header file don't match!"
7655 elif test "$png_status" = "2"; then
7656 png_problem="PNG library version too old (pre 1.0.2)!"
7659 *** WARNING *** $png_problem
7660 I'm not touching that with a 10-foot pole!
7661 If you really want to use the installed version of libPNG, rerun
7662 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7673 echo "$ac_t""$with_png" 1>&6
7675 if test "$with_png" = "yes"; then
7676 { test "$extra_verbose" = "yes" && cat << \EOF
7679 cat >> confdefs.h <<\EOF
7684 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7687 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7688 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7689 echo "configure:7690: checking for tiffio.h" >&5
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7697 { (eval echo configure:7698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7699 if test -z "$ac_err"; then
7701 eval "ac_cv_header_$ac_safe=yes"
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7707 eval "ac_cv_header_$ac_safe=no"
7710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7714 echo "$ac_t""no" 1>&6
7718 test -z "$with_tiff" && {
7719 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7720 echo "configure:7721: checking for TIFFClientOpen in -ltiff" >&5
7721 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7723 xe_check_libs=" -ltiff "
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730 char TIFFClientOpen();
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738 eval "ac_cv_lib_$ac_lib_var=yes"
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 eval "ac_cv_lib_$ac_lib_var=no"
7748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7749 echo "$ac_t""yes" 1>&6
7752 echo "$ac_t""no" 1>&6
7757 test -z "$with_tiff" && with_tiff=yes
7758 if test "$with_tiff" = "yes"; then
7759 { test "$extra_verbose" = "yes" && cat << \EOF
7762 cat >> confdefs.h <<\EOF
7767 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
7772 if test "$with_x11" = "yes"; then
7774 echo "checking for X11 graphics libraries" 1>&6
7775 echo "configure:7776: checking for X11 graphics libraries" >&5
7777 echo "checking for the Athena widgets" 1>&6
7778 echo "configure:7779: checking for the Athena widgets" >&5
7780 case "$with_athena" in
7781 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7782 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7783 "next") athena_variant=neXtaw athena_3d=yes ;;
7784 "95") athena_variant=Xaw95 athena_3d=yes ;;
7785 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7786 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7789 if test "$athena_3d" = "no"; then
7791 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7792 echo "configure:7793: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7793 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7795 xe_check_libs=" -l$athena_variant "
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802 char XawScrollbarSetThumb();
7805 XawScrollbarSetThumb()
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7821 echo "$ac_t""yes" 1>&6
7823 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7824 echo "configure:7825: checking for threeDClassRec in -l$athena_variant" >&5
7825 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7827 xe_check_libs=" -l$athena_variant "
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char threeDClassRec();
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 eval "ac_cv_lib_$ac_lib_var=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_lib_$ac_lib_var=no"
7852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7853 echo "$ac_t""yes" 1>&6
7854 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7856 echo "$ac_t""no" 1>&6
7857 athena_lib=$athena_variant
7863 echo "$ac_t""no" 1>&6
7864 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7870 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7871 echo "configure:7872: checking for threeDClassRec in -l$athena_variant" >&5
7872 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7874 xe_check_libs=" -l$athena_variant "
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char threeDClassRec();
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7889 eval "ac_cv_lib_$ac_lib_var=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 eval "ac_cv_lib_$ac_lib_var=no"
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7900 echo "$ac_t""yes" 1>&6
7901 athena_lib=$athena_variant
7903 echo "$ac_t""no" 1>&6
7904 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7905 echo "configure:7906: checking for threeDClassRec in -lXaw" >&5
7906 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7908 xe_check_libs=" -lXaw "
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char threeDClassRec();
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 eval "ac_cv_lib_$ac_lib_var=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_lib_$ac_lib_var=no"
7933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7934 echo "$ac_t""yes" 1>&6
7936 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7939 echo "$ac_t""no" 1>&6
7940 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7949 if test "$athena_3d" = "no"; then
7950 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for X11/Xaw/ThreeD.h" >&5
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 #include <X11/Xaw/ThreeD.h>
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7964 eval "ac_cv_header_$ac_safe=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_header_$ac_safe=no"
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7977 echo "$ac_t""no" 1>&6
7978 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7979 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7980 echo "configure:7981: checking for X11/Xaw/XawInit.h" >&5
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7985 #include <X11/Xaw/XawInit.h>
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then
7992 eval "ac_cv_header_$ac_safe=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 eval "ac_cv_header_$ac_safe=no"
8001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 athena_h_path=X11/Xaw
8005 echo "$ac_t""no" 1>&6
8006 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8012 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8014 echo "configure:8015: checking for X11/$athena_variant/XawInit.h" >&5
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 #include <X11/$athena_variant/XawInit.h>
8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8024 if test -z "$ac_err"; then
8026 eval "ac_cv_header_$ac_safe=yes"
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 eval "ac_cv_header_$ac_safe=no"
8035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8038 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8039 echo "configure:8040: checking for X11/$athena_variant/ThreeD.h" >&5
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 #include <X11/$athena_variant/ThreeD.h>
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then
8051 eval "ac_cv_header_$ac_safe=yes"
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 eval "ac_cv_header_$ac_safe=no"
8060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8062 athena_h_path=X11/$athena_variant
8064 echo "$ac_t""no" 1>&6
8068 echo "$ac_t""no" 1>&6
8072 if test -z "$athena_h_path"; then
8073 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8074 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8075 echo "configure:8076: checking for $athena_variant/XawInit.h" >&5
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 #include <$athena_variant/XawInit.h>
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then
8087 eval "ac_cv_header_$ac_safe=yes"
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8093 eval "ac_cv_header_$ac_safe=no"
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8099 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $athena_variant/ThreeD.h" >&5
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <$athena_variant/ThreeD.h>
8107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8108 { (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8110 if test -z "$ac_err"; then
8112 eval "ac_cv_header_$ac_safe=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 eval "ac_cv_header_$ac_safe=no"
8121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8122 echo "$ac_t""yes" 1>&6
8123 athena_h_path=$athena_variant
8125 echo "$ac_t""no" 1>&6
8129 echo "$ac_t""no" 1>&6
8134 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8135 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8136 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8137 echo "configure:8138: checking for X11/Xaw3d/XawInit.h" >&5
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 #include <X11/Xaw3d/XawInit.h>
8144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8145 { (eval echo configure:8146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8147 if test -z "$ac_err"; then
8149 eval "ac_cv_header_$ac_safe=yes"
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8155 eval "ac_cv_header_$ac_safe=no"
8158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6
8160 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8161 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8162 echo "configure:8163: checking for X11/Xaw3d/ThreeD.h" >&5
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 #include <X11/Xaw3d/ThreeD.h>
8169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8170 { (eval echo configure:8171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8172 if test -z "$ac_err"; then
8174 eval "ac_cv_header_$ac_safe=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 eval "ac_cv_header_$ac_safe=no"
8183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8184 echo "$ac_t""yes" 1>&6
8186 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8187 athena_h_path=X11/Xaw3d
8190 echo "$ac_t""no" 1>&6
8194 echo "$ac_t""no" 1>&6
8199 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8200 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8201 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8202 echo "configure:8203: checking for Xaw3d/XawInit.h" >&5
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 #include <Xaw3d/XawInit.h>
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8214 eval "ac_cv_header_$ac_safe=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_header_$ac_safe=no"
8223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6
8225 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8226 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8227 echo "configure:8228: checking for Xaw3d/ThreeD.h" >&5
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 #include <Xaw3d/ThreeD.h>
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8239 eval "ac_cv_header_$ac_safe=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_header_$ac_safe=no"
8248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8251 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8255 echo "$ac_t""no" 1>&6
8259 echo "$ac_t""no" 1>&6
8264 if test -z "$athena_h_path"; then
8265 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8266 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8267 echo "configure:8268: checking for X11/Xaw/ThreeD.h" >&5
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 #include <X11/Xaw/ThreeD.h>
8274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8275 { (eval echo configure:8276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8277 if test -z "$ac_err"; then
8279 eval "ac_cv_header_$ac_safe=yes"
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8285 eval "ac_cv_header_$ac_safe=no"
8288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8291 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8292 athena_h_path=X11/Xaw
8295 echo "$ac_t""no" 1>&6
8296 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8302 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8308 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8310 echo "configure:8311: checking for Xm/Xm.h" >&5
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8320 if test -z "$ac_err"; then
8322 eval "ac_cv_header_$ac_safe=yes"
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 eval "ac_cv_header_$ac_safe=no"
8331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6
8334 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8335 echo "configure:8336: checking for XmStringFree in -lXm" >&5
8336 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8338 xe_check_libs=" -lXm "
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8345 char XmStringFree();
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 eval "ac_cv_lib_$ac_lib_var=yes"
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8358 eval "ac_cv_lib_$ac_lib_var=no"
8363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8364 echo "$ac_t""yes" 1>&6
8367 echo "$ac_t""no" 1>&6
8373 echo "$ac_t""no" 1>&6
8378 if test "$have_motif" = "yes"; then
8379 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8380 echo "configure:8381: checking for Lesstif" >&5
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8385 #ifdef LESSTIF_VERSION
8390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391 egrep "yes" >/dev/null 2>&1; then
8400 echo "$ac_t""$have_lesstif" 1>&6
8405 case "$with_menubars" in "" | "yes" | "athena" )
8406 with_menubars="lucid" ;;
8408 case "$with_dialogs" in "" | "yes" | "lucid" )
8409 if test "$have_motif" = "yes"; then with_dialogs="motif"
8410 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
8411 else with_dialogs=no
8414 case "$with_scrollbars" in "" | "yes" )
8415 with_scrollbars="lucid" ;;
8417 case "$with_widgets" in "" | "yes" | "lucid")
8418 if test "$have_motif" = "yes"; then with_widgets="motif"
8419 elif test "$have_xaw" = "yes"; then with_widgets="athena"
8420 else with_widgets=no
8424 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8426 case "$all_widgets" in
8428 if test "$have_xaw" != "yes"; then
8429 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8432 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8434 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8436 { test "$extra_verbose" = "yes" && cat << EOF
8437 Defining ATHENA_H_PATH = $athena_h_path
8439 cat >> confdefs.h <<EOF
8440 #define ATHENA_H_PATH $athena_h_path
8445 { test "$extra_verbose" = "yes" && cat << \EOF
8446 Defining LWLIB_USES_ATHENA
8448 cat >> confdefs.h <<\EOF
8449 #define LWLIB_USES_ATHENA 1
8453 { test "$extra_verbose" = "yes" && cat << \EOF
8454 Defining NEED_ATHENA
8456 cat >> confdefs.h <<\EOF
8457 #define NEED_ATHENA 1
8462 if test "$athena_3d" = "yes"; then
8463 { test "$extra_verbose" = "yes" && cat << \EOF
8464 Defining HAVE_ATHENA_3D
8466 cat >> confdefs.h <<\EOF
8467 #define HAVE_ATHENA_3D 1
8475 case "$all_widgets" in *motif* )
8476 { test "$extra_verbose" = "yes" && cat << \EOF
8477 Defining LWLIB_USES_MOTIF
8479 cat >> confdefs.h <<\EOF
8480 #define LWLIB_USES_MOTIF 1
8484 { test "$extra_verbose" = "yes" && cat << \EOF
8487 cat >> confdefs.h <<\EOF
8488 #define NEED_MOTIF 1
8492 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
8496 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8497 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
8498 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8499 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8500 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8501 case "$with_widgets" in athena* )
8502 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;;
8504 case "$all_widgets" in *lucid* )
8505 { test "$extra_verbose" = "yes" && cat << \EOF
8508 cat >> confdefs.h <<\EOF
8509 #define NEED_LUCID 1
8513 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
8518 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8519 Defining LWLIB_SCROLLBARS_ATHENA
8521 cat >> confdefs.h <<\EOF
8522 #define LWLIB_SCROLLBARS_ATHENA 1
8526 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8527 Defining LWLIB_DIALOGS_ATHENA
8529 cat >> confdefs.h <<\EOF
8530 #define LWLIB_DIALOGS_ATHENA 1
8535 if test "$athena_3d" = "yes"; then
8536 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8537 Defining LWLIB_SCROLLBARS_ATHENA3D
8539 cat >> confdefs.h <<\EOF
8540 #define LWLIB_SCROLLBARS_ATHENA3D 1
8544 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8545 Defining LWLIB_DIALOGS_ATHENA3D
8547 cat >> confdefs.h <<\EOF
8548 #define LWLIB_DIALOGS_ATHENA3D 1
8554 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8555 Defining LWLIB_WIDGETS_ATHENA
8557 cat >> confdefs.h <<\EOF
8558 #define LWLIB_WIDGETS_ATHENA 1
8562 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8563 { test "$extra_verbose" = "yes" && cat << \EOF
8564 Defining LWLIB_TABS_LUCID
8566 cat >> confdefs.h <<\EOF
8567 #define LWLIB_TABS_LUCID 1
8572 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8573 Defining HAVE_MENUBARS
8575 cat >> confdefs.h <<\EOF
8576 #define HAVE_MENUBARS 1
8580 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8581 Defining HAVE_SCROLLBARS
8583 cat >> confdefs.h <<\EOF
8584 #define HAVE_SCROLLBARS 1
8588 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8589 Defining HAVE_DIALOGS
8591 cat >> confdefs.h <<\EOF
8592 #define HAVE_DIALOGS 1
8596 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8597 Defining HAVE_TOOLBARS
8599 cat >> confdefs.h <<\EOF
8600 #define HAVE_TOOLBARS 1
8604 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8605 Defining HAVE_WIDGETS
8607 cat >> confdefs.h <<\EOF
8608 #define HAVE_WIDGETS 1
8613 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8614 Defining LWLIB_MENUBARS_LUCID
8616 cat >> confdefs.h <<\EOF
8617 #define LWLIB_MENUBARS_LUCID 1
8621 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
8622 Defining LWLIB_SCROLLBARS_LUCID
8624 cat >> confdefs.h <<\EOF
8625 #define LWLIB_SCROLLBARS_LUCID 1
8630 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8631 Defining LWLIB_MENUBARS_MOTIF
8633 cat >> confdefs.h <<\EOF
8634 #define LWLIB_MENUBARS_MOTIF 1
8638 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8639 Defining LWLIB_SCROLLBARS_MOTIF
8641 cat >> confdefs.h <<\EOF
8642 #define LWLIB_SCROLLBARS_MOTIF 1
8646 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8647 Defining LWLIB_DIALOGS_MOTIF
8649 cat >> confdefs.h <<\EOF
8650 #define LWLIB_DIALOGS_MOTIF 1
8654 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
8655 Defining LWLIB_WIDGETS_MOTIF
8657 cat >> confdefs.h <<\EOF
8658 #define LWLIB_WIDGETS_MOTIF 1
8663 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8664 echo " xemacs will be linked with \"menubar.o\""
8666 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8667 echo " xemacs will be linked with \"scrollbar.o\""
8669 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8670 echo " xemacs will be linked with \"dialog.o\""
8672 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8673 echo " xemacs will be linked with \"toolbar.o\""
8676 if test "$with_x11" = "yes"; then
8677 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8678 echo " xemacs will be linked with \"menubar-x.o\""
8680 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8681 echo " xemacs will be linked with \"scrollbar-x.o\""
8683 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8684 echo " xemacs will be linked with \"dialog-x.o\""
8686 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8687 echo " xemacs will be linked with \"toolbar-x.o\""
8689 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8690 echo " xemacs will be linked with \"gui-x.o\""
8695 test -z "$with_mule" && with_mule=no
8696 test -z "$with_file_coding" && with_file_coding=no
8699 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
8700 { test "$extra_verbose" = "yes" && cat << \EOF
8701 Defining FILE_CODING
8703 cat >> confdefs.h <<\EOF
8704 #define FILE_CODING 1
8708 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
8709 echo " xemacs will be linked with \"file-coding.o\""
8713 if test "$with_mule" = "yes" ; then
8714 echo "checking for Mule-related features" 1>&6
8715 echo "configure:8716: checking for Mule-related features" >&5
8716 { test "$extra_verbose" = "yes" && cat << \EOF
8719 cat >> confdefs.h <<\EOF
8724 { test "$extra_verbose" = "yes" && cat << \EOF
8725 Defining FILE_CODING
8727 cat >> confdefs.h <<\EOF
8728 #define FILE_CODING 1
8732 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
8733 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
8736 for ac_hdr in libintl.h
8738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_hdr" >&5
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8748 { (eval echo configure:8749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8750 if test -z "$ac_err"; then
8752 eval "ac_cv_header_$ac_safe=yes"
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 eval "ac_cv_header_$ac_safe=no"
8761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8762 echo "$ac_t""yes" 1>&6
8763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8764 { test "$extra_verbose" = "yes" && cat << EOF
8767 cat >> confdefs.h <<EOF
8768 #define $ac_tr_hdr 1
8773 echo "$ac_t""no" 1>&6
8778 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8779 echo "configure:8780: checking for strerror in -lintl" >&5
8780 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8782 xe_check_libs=" -lintl "
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* Override any gcc2 internal prototype to avoid an error. */
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8797 eval "ac_cv_lib_$ac_lib_var=yes"
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8802 eval "ac_cv_lib_$ac_lib_var=no"
8807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8808 echo "$ac_t""yes" 1>&6
8809 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8811 { test "$extra_verbose" = "yes" && cat << EOF
8814 cat >> confdefs.h <<EOF
8815 #define $ac_tr_lib 1
8819 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
8822 echo "$ac_t""no" 1>&6
8827 echo "checking for Mule input methods" 1>&6
8828 echo "configure:8829: checking for Mule input methods" >&5
8829 case "$with_xim" in "" | "yes" )
8830 echo "checking for XIM" 1>&6
8831 echo "configure:8832: checking for XIM" >&5
8833 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8834 echo "configure:8835: checking for XOpenIM in -lX11" >&5
8835 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8837 xe_check_libs=" -lX11 "
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8852 eval "ac_cv_lib_$ac_lib_var=yes"
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 eval "ac_cv_lib_$ac_lib_var=no"
8862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8863 echo "$ac_t""yes" 1>&6
8866 echo "$ac_t""no" 1>&6
8871 if test "$have_motif $have_lesstif" = "yes no"; then
8873 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8874 echo "configure:8875: checking for XmImMbLookupString in -lXm" >&5
8875 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8877 xe_check_libs=" -lXm "
8878 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure"
8880 #include "confdefs.h"
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884 char XmImMbLookupString();
8887 XmImMbLookupString()
8890 if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8892 eval "ac_cv_lib_$ac_lib_var=yes"
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8897 eval "ac_cv_lib_$ac_lib_var=no"
8902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8903 echo "$ac_t""yes" 1>&6
8906 echo "$ac_t""no" 1>&6
8912 if test "$with_xim" != "no"; then
8913 { test "$extra_verbose" = "yes" && cat << \EOF
8916 cat >> confdefs.h <<\EOF
8921 if test "$with_xim" = "xlib"; then
8922 { test "$extra_verbose" = "yes" && cat << \EOF
8925 cat >> confdefs.h <<\EOF
8930 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
8931 echo " xemacs will be linked with \"input-method-xlib.o\""
8934 if test "$with_xim" = "motif"; then
8935 { test "$extra_verbose" = "yes" && cat << \EOF
8938 cat >> confdefs.h <<\EOF
8944 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
8945 echo " xemacs will be linked with \"input-method-motif.o\""
8948 if test "$with_xim" = "motif"; then
8953 if test "$with_xfs" = "yes" ; then
8954 echo "checking for XFontSet" 1>&6
8955 echo "configure:8956: checking for XFontSet" >&5
8957 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8958 echo "configure:8959: checking for XmbDrawString in -lX11" >&5
8959 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8961 xe_check_libs=" -lX11 "
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char XmbDrawString();
8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8976 eval "ac_cv_lib_$ac_lib_var=yes"
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8981 eval "ac_cv_lib_$ac_lib_var=no"
8986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8987 echo "$ac_t""yes" 1>&6
8990 echo "$ac_t""no" 1>&6
8995 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
8996 { test "$extra_verbose" = "yes" && cat << \EOF
8997 Defining USE_XFONTSET
8999 cat >> confdefs.h <<\EOF
9000 #define USE_XFONTSET 1
9004 if test "$with_xim" = "no" ; then
9005 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
9006 echo " xemacs will be linked with \"input-method-xfs.o\""
9011 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9012 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9013 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9014 echo "configure:9015: checking for wnn/jllib.h" >&5
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 #include <wnn/jllib.h>
9021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9022 { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9024 if test -z "$ac_err"; then
9026 eval "ac_cv_header_$ac_safe=yes"
9029 echo "configure: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9032 eval "ac_cv_header_$ac_safe=no"
9035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9036 echo "$ac_t""yes" 1>&6
9039 echo "$ac_t""no" 1>&6
9043 if test "$with_wnn" != "no"; then
9044 for ac_func in crypt
9046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9047 echo "configure:9048: checking for $ac_func" >&5
9049 cat > conftest.$ac_ext <<EOF
9050 #line 9051 "configure"
9051 #include "confdefs.h"
9052 /* System header to define __stub macros and hopefully few prototypes,
9053 which can conflict with char $ac_func(); below. */
9055 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9062 /* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
9065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9075 eval "ac_cv_func_$ac_func=yes"
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9080 eval "ac_cv_func_$ac_func=no"
9084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9085 echo "$ac_t""yes" 1>&6
9086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9087 { test "$extra_verbose" = "yes" && cat << EOF
9088 Defining $ac_tr_func
9090 cat >> confdefs.h <<EOF
9091 #define $ac_tr_func 1
9096 echo "$ac_t""no" 1>&6
9100 test "$ac_cv_func_crypt" != "yes" && {
9101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9102 echo "configure:9103: checking for crypt in -lcrypt" >&5
9103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9105 xe_check_libs=" -lcrypt "
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* Override any gcc2 internal prototype to avoid an error. */
9110 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9120 eval "ac_cv_lib_$ac_lib_var=yes"
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9125 eval "ac_cv_lib_$ac_lib_var=no"
9130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9134 { test "$extra_verbose" = "yes" && cat << EOF
9137 cat >> confdefs.h <<EOF
9138 #define $ac_tr_lib 1
9142 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
9145 echo "$ac_t""no" 1>&6
9150 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9152 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9153 echo "configure:9154: checking for jl_dic_list_e in -lwnn" >&5
9154 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9156 xe_check_libs=" -lwnn "
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9160 /* Override any gcc2 internal prototype to avoid an error. */
9161 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9163 char jl_dic_list_e();
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9171 eval "ac_cv_lib_$ac_lib_var=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_lib_$ac_lib_var=no"
9181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9182 echo "$ac_t""yes" 1>&6
9185 echo "$ac_t""no" 1>&6
9186 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9187 echo "configure:9188: checking for jl_dic_list_e in -lwnn4" >&5
9188 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9190 xe_check_libs=" -lwnn4 "
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9194 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9197 char jl_dic_list_e();
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 eval "ac_cv_lib_$ac_lib_var=yes"
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 eval "ac_cv_lib_$ac_lib_var=no"
9215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9216 echo "$ac_t""yes" 1>&6
9219 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9221 echo "configure:9222: checking for jl_dic_list_e in -lwnn6" >&5
9222 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9224 xe_check_libs=" -lwnn6 "
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9231 char jl_dic_list_e();
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239 eval "ac_cv_lib_$ac_lib_var=yes"
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 eval "ac_cv_lib_$ac_lib_var=no"
9249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9250 echo "$ac_t""yes" 1>&6
9253 echo "$ac_t""no" 1>&6
9254 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9255 echo "configure:9256: checking for dic_list_e in -lwnn6_fromsrc" >&5
9256 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9258 xe_check_libs=" -lwnn6_fromsrc "
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9273 eval "ac_cv_lib_$ac_lib_var=yes"
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 eval "ac_cv_lib_$ac_lib_var=no"
9283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9284 echo "$ac_t""yes" 1>&6
9287 echo "$ac_t""no" 1>&6
9302 test -z "$with_wnn" && with_wnn=yes
9303 if test "$with_wnn" = "yes"; then
9304 { test "$extra_verbose" = "yes" && cat << \EOF
9307 cat >> confdefs.h <<\EOF
9312 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
9313 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
9314 echo " xemacs will be linked with \"mule-wnnfns.o\""
9316 if test "$with_wnn6" != "no"; then
9318 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9319 echo "configure:9320: checking for jl_fi_dic_list in -l$libwnn" >&5
9320 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9322 xe_check_libs=" -l$libwnn "
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char jl_fi_dic_list();
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9337 eval "ac_cv_lib_$ac_lib_var=yes"
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9342 eval "ac_cv_lib_$ac_lib_var=no"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9348 echo "$ac_t""yes" 1>&6
9351 echo "$ac_t""no" 1>&6
9355 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9358 cat >> confdefs.h <<\EOF
9366 canna_includes_found=no
9367 if test "$with_canna" != "no"; then
9368 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9369 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9370 echo "configure:9371: checking for canna/jrkanji.h" >&5
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 #include <canna/jrkanji.h>
9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9380 if test -z "$ac_err"; then
9382 eval "ac_cv_header_$ac_safe=yes"
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9388 eval "ac_cv_header_$ac_safe=no"
9391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9392 echo "$ac_t""yes" 1>&6
9393 canna_includes_found=yes
9395 echo "$ac_t""no" 1>&6
9399 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
9400 -d "/usr/local/canna/include"; then
9401 save_c_switch_site="$c_switch_site"
9402 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9403 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9404 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9405 echo "configure:9406: checking for canna/jrkanji.h" >&5
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410 #include <canna/jrkanji.h>
9412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9413 { (eval echo configure:9414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9415 if test -z "$ac_err"; then
9417 eval "ac_cv_header_$ac_safe=yes"
9420 echo "configure: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9423 eval "ac_cv_header_$ac_safe=no"
9426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9427 echo "$ac_t""yes" 1>&6
9428 canna_includes_found=yes
9430 echo "$ac_t""no" 1>&6
9433 if test "$canna_includes_found" != "yes"; then
9434 c_switch_site="$save_c_switch_site"
9439 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9440 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9441 echo "configure:9442: checking for canna/RK.h" >&5
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 #include <canna/RK.h>
9448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9449 { (eval echo configure:9450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9451 if test -z "$ac_err"; then
9453 eval "ac_cv_header_$ac_safe=yes"
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 eval "ac_cv_header_$ac_safe=no"
9462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9463 echo "$ac_t""yes" 1>&6
9466 echo "$ac_t""no" 1>&6
9470 test -z "$with_canna" && {
9471 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9472 echo "configure:9473: checking for RkBgnBun in -lRKC" >&5
9473 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9475 xe_check_libs=" -lRKC "
9476 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9488 if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9490 eval "ac_cv_lib_$ac_lib_var=yes"
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9495 eval "ac_cv_lib_$ac_lib_var=no"
9500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9501 echo "$ac_t""yes" 1>&6
9504 echo "$ac_t""no" 1>&6
9509 test -z "$with_canna" && {
9510 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9511 echo "configure:9512: checking for jrKanjiControl in -lcanna" >&5
9512 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9514 xe_check_libs=" -lcanna "
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char jrKanjiControl();
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9529 eval "ac_cv_lib_$ac_lib_var=yes"
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9534 eval "ac_cv_lib_$ac_lib_var=no"
9539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9540 echo "$ac_t""yes" 1>&6
9543 echo "$ac_t""no" 1>&6
9548 test -z "$with_canna" && with_canna=yes
9549 if test "$with_canna" = "yes"; then
9550 { test "$extra_verbose" = "yes" && cat << \EOF
9553 cat >> confdefs.h <<\EOF
9554 #define HAVE_CANNA 1
9558 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
9559 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
9560 echo " xemacs will be linked with \"mule-canna.o\""
9564 else for feature in xim canna wnn; do
9565 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
9566 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
9568 eval "with_${feature}=no"
9572 if test "$need_motif" = "yes" ; then
9573 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9575 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9576 echo "configure:9577: checking for layout_object_getvalue in -li18n" >&5
9577 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9579 xe_check_libs=" -li18n "
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 /* We use char because int might match the return type of a gcc2
9585 builtin and then its argument prototype would still apply. */
9586 char layout_object_getvalue();
9589 layout_object_getvalue()
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9594 eval "ac_cv_lib_$ac_lib_var=yes"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 eval "ac_cv_lib_$ac_lib_var=no"
9604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9605 echo "$ac_t""yes" 1>&6
9606 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
9608 echo "$ac_t""no" 1>&6
9613 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
9614 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9615 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
9617 runpath="" runpath_dirs=""
9618 if test -n "$LD_RUN_PATH"; then
9619 runpath="$LD_RUN_PATH"
9620 elif test "$GCC" = "yes"; then
9621 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
9622 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
9623 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
9624 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
9625 case "$arg" in P,* | -L* | -R* )
9626 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
9628 xe_runpath_dir="$dir"
9629 test "$xe_runpath_dir" != "/lib" -a \
9630 "$xe_runpath_dir" != "/usr/lib" -a \
9631 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9632 eval "$xe_add_unique_runpath_dir"
9637 ld_switch_run="$ld_switch_run_save"
9640 for arg in $ld_switch_site $ld_switch_x_site; do
9641 case "$arg" in -L*) {
9642 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
9643 test "$xe_runpath_dir" != "/lib" -a \
9644 "$xe_runpath_dir" != "/usr/lib" -a \
9645 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
9646 eval "$xe_add_unique_runpath_dir"
9649 if test "$opsys $need_motif" = "sol2 yes"; then
9650 xe_runpath_dir="/opt/SUNWdt/lib";
9651 eval "$xe_add_unique_runpath_dir";
9654 if test -n "$runpath"; then
9655 ld_switch_run="${dash_r}${runpath}"
9657 if test "$GCC" = "yes"; then
9658 set x $ld_switch_run; shift; ld_switch_run=""
9659 while test -n "$1"; do
9661 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
9662 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
9664 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
9669 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
9675 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 fsync ftruncate umask
9677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9678 echo "configure:9679: checking for $ac_func" >&5
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char $ac_func(); below. */
9686 /* Override any gcc2 internal prototype to avoid an error. */
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9693 /* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9706 eval "ac_cv_func_$ac_func=yes"
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9711 eval "ac_cv_func_$ac_func=no"
9715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9716 echo "$ac_t""yes" 1>&6
9717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9718 { test "$extra_verbose" = "yes" && cat << EOF
9719 Defining $ac_tr_func
9721 cat >> confdefs.h <<EOF
9722 #define $ac_tr_func 1
9727 echo "$ac_t""no" 1>&6
9732 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9733 echo " xemacs will be linked with \"realpath.o\""
9736 for ac_func in getloadavg
9738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9739 echo "configure:9740: checking for $ac_func" >&5
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char $ac_func(); below. */
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9754 /* The GNU C library defines this for functions which it implements
9755 to always fail with ENOSYS. Some functions are actually named
9756 something starting with __ and the normal name is an alias. */
9757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767 eval "ac_cv_func_$ac_func=yes"
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 eval "ac_cv_func_$ac_func=no"
9776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9777 echo "$ac_t""yes" 1>&6
9778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9779 { test "$extra_verbose" = "yes" && cat << EOF
9780 Defining $ac_tr_func
9782 cat >> confdefs.h <<EOF
9783 #define $ac_tr_func 1
9788 echo "$ac_t""no" 1>&6
9793 if test "$ac_cv_func_getloadavg" != "yes"
9795 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9796 echo " xemacs will be linked with \"getloadavg.o\""
9800 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9801 echo "configure:9802: checking for kstat_open in -lkstat" >&5
9802 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9804 xe_check_libs=" -lkstat "
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 eval "ac_cv_lib_$ac_lib_var=yes"
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 eval "ac_cv_lib_$ac_lib_var=no"
9829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9830 echo "$ac_t""yes" 1>&6
9831 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9833 { test "$extra_verbose" = "yes" && cat << EOF
9836 cat >> confdefs.h <<EOF
9837 #define $ac_tr_lib 1
9841 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9844 echo "$ac_t""no" 1>&6
9850 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9851 echo "configure:9852: checking for kvm_read in -lkvm" >&5
9852 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9854 xe_check_libs=" -lkvm "
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9869 eval "ac_cv_lib_$ac_lib_var=yes"
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9874 eval "ac_cv_lib_$ac_lib_var=no"
9879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9880 echo "$ac_t""yes" 1>&6
9881 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9883 { test "$extra_verbose" = "yes" && cat << EOF
9886 cat >> confdefs.h <<EOF
9887 #define $ac_tr_lib 1
9891 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9894 echo "$ac_t""no" 1>&6
9900 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9901 echo "configure:9902: checking whether netdb declares h_errno" >&5
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9912 echo "$ac_t""yes" 1>&6
9913 { test "$extra_verbose" = "yes" && cat << \EOF
9914 Defining HAVE_H_ERRNO
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_H_ERRNO 1
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 echo "$ac_t""no" 1>&6
9929 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9930 echo "configure:9931: checking for sigsetjmp" >&5
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9936 sigjmp_buf bar; sigsetjmp (bar, 0);
9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 echo "$ac_t""yes" 1>&6
9942 { test "$extra_verbose" = "yes" && cat << \EOF
9943 Defining HAVE_SIGSETJMP
9945 cat >> confdefs.h <<\EOF
9946 #define HAVE_SIGSETJMP 1
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9954 echo "$ac_t""no" 1>&6
9958 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9959 echo "configure:9960: checking whether localtime caches TZ" >&5
9961 if test "$ac_cv_func_tzset" = "yes"; then
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9967 # include <stdlib.h>
9969 extern char **environ;
9973 for (to = from = environ; (*to = *from); from++)
9974 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
9977 char TZ_GMT0[] = "TZ=GMT0";
9978 char TZ_PST8[] = "TZ=PST8";
9981 time_t now = time ((time_t *) 0);
9982 int hour_GMT0, hour_unset;
9983 if (putenv (TZ_GMT0) != 0)
9985 hour_GMT0 = localtime (&now)->tm_hour;
9987 hour_unset = localtime (&now)->tm_hour;
9988 if (putenv (TZ_PST8) != 0)
9990 if (localtime (&now)->tm_hour == hour_GMT0)
9993 if (localtime (&now)->tm_hour != hour_unset)
9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10000 emacs_cv_localtime_cache=no
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 emacs_cv_localtime_cache=yes
10010 # If we lack tzset, report that localtime does not cache TZ,
10011 # since we can't invalidate the cache if we don't have tzset.
10012 emacs_cv_localtime_cache=no
10014 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
10015 if test $emacs_cv_localtime_cache = yes; then
10016 { test "$extra_verbose" = "yes" && cat << \EOF
10017 Defining LOCALTIME_CACHE
10019 cat >> confdefs.h <<\EOF
10020 #define LOCALTIME_CACHE 1
10026 if test "$HAVE_TIMEVAL" = "yes"; then
10027 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10028 echo "configure:10029: checking whether gettimeofday accepts one or two arguments" >&5
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10033 #ifdef TIME_WITH_SYS_TIME
10034 #include <sys/time.h>
10037 #ifdef HAVE_SYS_TIME_H
10038 #include <sys/time.h>
10046 struct timeval time;
10047 gettimeofday (&time, 0);
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10053 echo "$ac_t""two" 1>&6
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 echo "$ac_t""one" 1>&6
10059 { test "$extra_verbose" = "yes" && cat << \EOF
10060 Defining GETTIMEOFDAY_ONE_ARGUMENT
10062 cat >> confdefs.h <<\EOF
10063 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10072 echo $ac_n "checking for inline""... $ac_c" 1>&6
10073 echo "configure:10074: checking for inline" >&5
10076 for ac_kw in inline __inline__ __inline; do
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10087 ac_cv_c_inline=$ac_kw; break
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10096 echo "$ac_t""$ac_cv_c_inline" 1>&6
10097 case "$ac_cv_c_inline" in
10099 no) { test "$extra_verbose" = "yes" && cat << \EOF
10102 cat >> confdefs.h <<\EOF
10107 *) { test "$extra_verbose" = "yes" && cat << EOF
10108 Defining inline = $ac_cv_c_inline
10110 cat >> confdefs.h <<EOF
10111 #define inline $ac_cv_c_inline
10117 if test "$ac_cv_c_inline" != "no"; then
10118 { test "$extra_verbose" = "yes" && cat << \EOF
10119 Defining HAVE_INLINE
10121 cat >> confdefs.h <<\EOF
10122 #define HAVE_INLINE 1
10126 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
10127 echo " xemacs will be linked with \"inline.o\""
10132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10133 # for constant arguments. Useless!
10134 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for working alloca.h" >&5
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <alloca.h>
10142 char *p = alloca(2 * sizeof(int));
10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147 ac_cv_header_alloca_h=yes
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 ac_cv_header_alloca_h=no
10156 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
10157 if test $ac_cv_header_alloca_h = yes; then
10158 { test "$extra_verbose" = "yes" && cat << \EOF
10159 Defining HAVE_ALLOCA_H
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_ALLOCA_H 1
10168 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10169 echo "configure:10170: checking for alloca" >&5
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10176 # define alloca __builtin_alloca
10179 # include <malloc.h>
10180 # define alloca _alloca
10183 # include <alloca.h>
10188 # ifndef alloca /* predefined by HP cc +Olibcalls */
10197 char *p = (char *) alloca(1);
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10202 ac_cv_func_alloca_works=yes
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10207 ac_cv_func_alloca_works=no
10211 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
10212 if test $ac_cv_func_alloca_works = yes; then
10213 { test "$extra_verbose" = "yes" && cat << \EOF
10214 Defining HAVE_ALLOCA
10216 cat >> confdefs.h <<\EOF
10217 #define HAVE_ALLOCA 1
10223 if test $ac_cv_func_alloca_works = no; then
10224 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10225 # that cause trouble. Some versions do not even contain alloca or
10226 # contain a buggy version. If you still want to use their alloca,
10227 # use ar to extract alloca.o from them instead of compiling alloca.c.
10228 ALLOCA=alloca.${ac_objext}
10229 { test "$extra_verbose" = "yes" && cat << \EOF
10232 cat >> confdefs.h <<\EOF
10238 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10239 echo "configure:10240: checking whether alloca needs Cray hooks" >&5
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 #if defined(CRAY) && ! defined(CRAY2)
10251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10252 egrep "webecray" >/dev/null 2>&1; then
10262 echo "$ac_t""$ac_cv_os_cray" 1>&6
10263 if test $ac_cv_os_cray = yes; then
10264 for ac_func in _getb67 GETB67 getb67; do
10265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10266 echo "configure:10267: checking for $ac_func" >&5
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char $ac_func(); below. */
10273 #include <assert.h>
10274 /* Override any gcc2 internal prototype to avoid an error. */
10275 /* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10281 /* The GNU C library defines this for functions which it implements
10282 to always fail with ENOSYS. Some functions are actually named
10283 something starting with __ and the normal name is an alias. */
10284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10294 eval "ac_cv_func_$ac_func=yes"
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10299 eval "ac_cv_func_$ac_func=no"
10303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10304 echo "$ac_t""yes" 1>&6
10305 { test "$extra_verbose" = "yes" && cat << EOF
10306 Defining CRAY_STACKSEG_END = $ac_func
10308 cat >> confdefs.h <<EOF
10309 #define CRAY_STACKSEG_END $ac_func
10315 echo "$ac_t""no" 1>&6
10321 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10322 echo "configure:10323: checking stack direction for C alloca" >&5
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 find_stack_direction ()
10329 static char *addr = 0;
10334 return find_stack_direction ();
10337 return (&dummy > addr) ? 1 : -1;
10341 exit (find_stack_direction() < 0);
10344 if { (eval echo configure:10345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10346 ac_cv_c_stack_direction=1
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 ac_cv_c_stack_direction=-1
10356 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
10357 { test "$extra_verbose" = "yes" && cat << EOF
10358 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
10360 cat >> confdefs.h <<EOF
10361 #define STACK_DIRECTION $ac_cv_c_stack_direction
10367 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
10368 echo " xemacs will be linked with \"$ALLOCA\""
10371 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10372 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10373 echo "configure:10374: checking for vfork.h" >&5
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10381 { (eval echo configure:10382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10383 if test -z "$ac_err"; then
10385 eval "ac_cv_header_$ac_safe=yes"
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 eval "ac_cv_header_$ac_safe=no"
10394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396 { test "$extra_verbose" = "yes" && cat << \EOF
10397 Defining HAVE_VFORK_H
10399 cat >> confdefs.h <<\EOF
10400 #define HAVE_VFORK_H 1
10405 echo "$ac_t""no" 1>&6
10408 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10409 echo "configure:10410: checking for working vfork" >&5
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 /* Thanks to Paul Eggert for this test. */
10416 #include <sys/types.h>
10417 #include <sys/stat.h>
10418 #ifdef HAVE_UNISTD_H
10419 #include <unistd.h>
10421 #ifdef HAVE_VFORK_H
10424 /* On some sparc systems, changes by the child to local and incoming
10425 argument registers are propagated back to the parent.
10426 The compiler is told about this with #include <vfork.h>,
10427 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
10428 Test for this by using a static variable whose address
10429 is put into a register that is clobbered by the vfork. */
10432 sparc_address_test (int arg)
10434 sparc_address_test (arg) int arg;
10437 static pid_t child;
10452 pid_t parent = getpid ();
10455 sparc_address_test ();
10460 /* Here is another test for sparc vfork register problems.
10461 This test uses lots of local variables, at least
10462 as many local variables as main has allocated so far
10463 including compiler temporaries. 4 locals are enough for
10464 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
10465 A buggy compiler should reuse the register of parent
10466 for one of the local variables, since it will think that
10467 parent can't possibly be used any more in this routine.
10468 Assigning to the local variable will thus munge parent
10469 in the parent process. */
10471 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10472 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10473 /* Convince the compiler that p..p7 are live; otherwise, it might
10474 use the same hardware register for all 8 local variables. */
10475 if (p != p1 || p != p2 || p != p3 || p != p4
10476 || p != p5 || p != p6 || p != p7)
10479 /* On some systems (e.g. IRIX 3.3),
10480 vfork doesn't separate parent from child file descriptors.
10481 If the child closes a descriptor before it execs or exits,
10482 this munges the parent's descriptor as well.
10483 Test for this by closing stdout in the child. */
10484 _exit(close(fileno(stdout)) != 0);
10489 while (wait(&status) != child)
10492 /* Was there some problem with vforking? */
10495 /* Did the child fail? (This shouldn't happen.) */
10498 /* Did the vfork/compiler bug occur? */
10499 || parent != getpid()
10501 /* Did the file descriptor bug occur? */
10502 || fstat(fileno(stdout), &st) != 0
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10509 ac_cv_func_vfork_works=yes
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10515 ac_cv_func_vfork_works=no
10519 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
10520 if test $ac_cv_func_vfork_works = no; then
10521 { test "$extra_verbose" = "yes" && cat << \EOF
10522 Defining vfork = fork
10524 cat >> confdefs.h <<\EOF
10532 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10533 echo "configure:10534: checking for working strcoll" >&5
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 #include <string.h>
10541 exit (strcoll ("abc", "def") >= 0 ||
10542 strcoll ("ABC", "DEF") >= 0 ||
10543 strcoll ("123", "456") >= 0);
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10548 ac_cv_func_strcoll_works=yes
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10554 ac_cv_func_strcoll_works=no
10558 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
10559 if test $ac_cv_func_strcoll_works = yes; then
10560 { test "$extra_verbose" = "yes" && cat << \EOF
10561 Defining HAVE_STRCOLL
10563 cat >> confdefs.h <<\EOF
10564 #define HAVE_STRCOLL 1
10571 for ac_func in getpgrp
10573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10574 echo "configure:10575: checking for $ac_func" >&5
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 /* System header to define __stub macros and hopefully few prototypes,
10580 which can conflict with char $ac_func(); below. */
10581 #include <assert.h>
10582 /* Override any gcc2 internal prototype to avoid an error. */
10583 /* We use char because int might match the return type of a gcc2
10584 builtin and then its argument prototype would still apply. */
10589 /* The GNU C library defines this for functions which it implements
10590 to always fail with ENOSYS. Some functions are actually named
10591 something starting with __ and the normal name is an alias. */
10592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10602 eval "ac_cv_func_$ac_func=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_func_$ac_func=no"
10611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10612 echo "$ac_t""yes" 1>&6
10613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10614 { test "$extra_verbose" = "yes" && cat << EOF
10615 Defining $ac_tr_func
10617 cat >> confdefs.h <<EOF
10618 #define $ac_tr_func 1
10623 echo "$ac_t""no" 1>&6
10627 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10628 echo "configure:10629: checking whether getpgrp takes no argument" >&5
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10635 * If this system has a BSD-style getpgrp(),
10636 * which takes a pid argument, exit unsuccessfully.
10638 * Snarfed from Chet Ramey's bash pgrp.c test program
10641 #include <sys/types.h>
10644 int pg1, pg2, pg3, pg4;
10645 int ng, np, s, child;
10652 pg3 = getpgrp(pid);
10656 * If all of these values are the same, it's pretty sure that
10657 * we're on a system that ignores getpgrp's first argument.
10659 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
10665 else if (child == 0) {
10668 * If this is Sys V, this will not work; pgrp will be
10669 * set to np because setpgrp just changes a pgrp to be
10670 * the same as the pid.
10673 ng = getpgrp(0); /* Same result for Sys V and BSD */
10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10688 ac_cv_func_getpgrp_void=yes
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10694 ac_cv_func_getpgrp_void=no
10699 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
10700 if test $ac_cv_func_getpgrp_void = yes; then
10701 { test "$extra_verbose" = "yes" && cat << \EOF
10702 Defining GETPGRP_VOID
10704 cat >> confdefs.h <<\EOF
10705 #define GETPGRP_VOID 1
10712 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10713 echo "configure:10714: checking for working mmap" >&5
10714 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10719 #include <unistd.h>
10721 #include <sys/mman.h>
10723 #ifndef MAP_VARIABLE
10724 #define MAP_VARIABLE 0
10728 #define MAP_FAILED -1
10731 int main (int argc, char *argv[])
10735 #ifndef MAP_ANONYMOUS
10736 fd = open ("/dev/zero", O_RDWR);
10739 #define MAP_ANONYMOUS 0
10741 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
10742 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
10743 fd, 0) != (void *) MAP_FAILED)
10745 perror ("conftest: mmap failed");
10749 if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10759 rm -fr conftest* ;;
10761 echo "$ac_t""$have_mmap" 1>&6
10762 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10765 cat >> confdefs.h <<\EOF
10766 #define HAVE_MMAP 1
10771 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10772 if test "$rel_alloc $have_mmap" = "default yes"; then
10773 if test "$doug_lea_malloc" = "yes"; then
10774 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
10775 echo "configure:10776: checking for M_MMAP_THRESHOLD" >&5
10776 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 #include <malloc.h>
10782 #ifndef M_MMAP_THRESHOLD
10783 #error No M_MMAP_THRESHOLD :-(
10784 !@+$%^&*_)(_ - unlikely to compile...
10789 if { (eval echo configure:10790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791 rel_alloc=no; echo "$ac_t""yes" 1>&6;
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 rel_alloc=yes; echo "$ac_t""no" 1>&6;
10803 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10806 cat >> confdefs.h <<\EOF
10807 #define REL_ALLOC 1
10812 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10813 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10814 echo "configure:10815: checking for termios.h" >&5
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 #include <termios.h>
10821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10822 { (eval echo configure:10823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10824 if test -z "$ac_err"; then
10826 eval "ac_cv_header_$ac_safe=yes"
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10832 eval "ac_cv_header_$ac_safe=no"
10835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10836 echo "$ac_t""yes" 1>&6
10837 { test "$extra_verbose" = "yes" && cat << \EOF
10838 Defining HAVE_TERMIOS
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_TERMIOS 1
10845 { test "$extra_verbose" = "yes" && cat << \EOF
10846 Defining SIGNALS_VIA_CHARACTERS
10848 cat >> confdefs.h <<\EOF
10849 #define SIGNALS_VIA_CHARACTERS 1
10853 { test "$extra_verbose" = "yes" && cat << \EOF
10856 cat >> confdefs.h <<\EOF
10857 #define NO_TERMIO 1
10862 echo "$ac_t""no" 1>&6
10863 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10864 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10865 echo "configure:10866: checking for termio.h" >&5
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <termio.h>
10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10875 if test -z "$ac_err"; then
10877 eval "ac_cv_header_$ac_safe=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_header_$ac_safe=no"
10886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 { test "$extra_verbose" = "yes" && cat << \EOF
10889 Defining HAVE_TERMIO
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_TERMIO 1
10897 echo "$ac_t""no" 1>&6
10904 echo $ac_n "checking for socket""... $ac_c" 1>&6
10905 echo "configure:10906: checking for socket" >&5
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 /* System header to define __stub macros and hopefully few prototypes,
10911 which can conflict with char socket(); below. */
10912 #include <assert.h>
10913 /* Override any gcc2 internal prototype to avoid an error. */
10914 /* We use char because int might match the return type of a gcc2
10915 builtin and then its argument prototype would still apply. */
10920 /* The GNU C library defines this for functions which it implements
10921 to always fail with ENOSYS. Some functions are actually named
10922 something starting with __ and the normal name is an alias. */
10923 #if defined (__stub_socket) || defined (__stub___socket)
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10933 eval "ac_cv_func_socket=yes"
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10938 eval "ac_cv_func_socket=no"
10942 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10943 echo "$ac_t""yes" 1>&6
10944 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10945 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10946 echo "configure:10947: checking for netinet/in.h" >&5
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 #include <netinet/in.h>
10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956 if test -z "$ac_err"; then
10958 eval "ac_cv_header_$ac_safe=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_header_$ac_safe=no"
10967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6
10969 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10970 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10971 echo "configure:10972: checking for arpa/inet.h" >&5
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 #include <arpa/inet.h>
10978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10979 { (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10981 if test -z "$ac_err"; then
10983 eval "ac_cv_header_$ac_safe=yes"
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10989 eval "ac_cv_header_$ac_safe=no"
10992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10993 echo "$ac_t""yes" 1>&6
10995 { test "$extra_verbose" = "yes" && cat << \EOF
10996 Defining HAVE_SOCKETS
10998 cat >> confdefs.h <<\EOF
10999 #define HAVE_SOCKETS 1
11003 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11004 echo "configure:11005: checking "for sun_len member in struct sockaddr_un"" >&5
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11009 #include <sys/types.h>
11010 #include <sys/socket.h>
11011 #include <sys/un.h>
11014 static struct sockaddr_un x; x.sun_len = 1;
11017 if { (eval echo configure:11018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11019 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11020 Defining HAVE_SOCKADDR_SUN_LEN
11022 cat >> confdefs.h <<\EOF
11023 #define HAVE_SOCKADDR_SUN_LEN 1
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11031 echo "$ac_t""no" 1>&6
11034 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11035 echo "configure:11036: checking "for ip_mreq struct in netinet/in.h"" >&5
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11040 #include <sys/types.h>
11041 #include <netinet/in.h>
11044 static struct ip_mreq x;
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11049 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11050 Defining HAVE_MULTICAST
11052 cat >> confdefs.h <<\EOF
11053 #define HAVE_MULTICAST 1
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 echo "$ac_t""no" 1>&6
11065 echo "$ac_t""no" 1>&6
11069 echo "$ac_t""no" 1>&6
11073 echo "$ac_t""no" 1>&6
11077 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11078 echo "configure:11079: checking for msgget" >&5
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char msgget(); below. */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11093 /* The GNU C library defines this for functions which it implements
11094 to always fail with ENOSYS. Some functions are actually named
11095 something starting with __ and the normal name is an alias. */
11096 #if defined (__stub_msgget) || defined (__stub___msgget)
11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106 eval "ac_cv_func_msgget=yes"
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11111 eval "ac_cv_func_msgget=no"
11115 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11118 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11119 echo "configure:11120: checking for sys/ipc.h" >&5
11121 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11124 #include <sys/ipc.h>
11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11129 if test -z "$ac_err"; then
11131 eval "ac_cv_header_$ac_safe=yes"
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11137 eval "ac_cv_header_$ac_safe=no"
11140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11143 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11144 echo "configure:11145: checking for sys/msg.h" >&5
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 #include <sys/msg.h>
11151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11152 { (eval echo configure:11153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11154 if test -z "$ac_err"; then
11156 eval "ac_cv_header_$ac_safe=yes"
11159 echo "configure: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11162 eval "ac_cv_header_$ac_safe=no"
11165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11166 echo "$ac_t""yes" 1>&6
11167 { test "$extra_verbose" = "yes" && cat << \EOF
11168 Defining HAVE_SYSVIPC
11170 cat >> confdefs.h <<\EOF
11171 #define HAVE_SYSVIPC 1
11176 echo "$ac_t""no" 1>&6
11180 echo "$ac_t""no" 1>&6
11184 echo "$ac_t""no" 1>&6
11188 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11189 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11190 echo "configure:11191: checking for dirent.h" >&5
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 #include <dirent.h>
11197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11198 { (eval echo configure:11199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11200 if test -z "$ac_err"; then
11202 eval "ac_cv_header_$ac_safe=yes"
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 eval "ac_cv_header_$ac_safe=no"
11211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213 { test "$extra_verbose" = "yes" && cat << \EOF
11214 Defining SYSV_SYSTEM_DIR
11216 cat >> confdefs.h <<\EOF
11217 #define SYSV_SYSTEM_DIR 1
11222 echo "$ac_t""no" 1>&6
11223 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11224 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11225 echo "configure:11226: checking for sys/dir.h" >&5
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11230 #include <sys/dir.h>
11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235 if test -z "$ac_err"; then
11237 eval "ac_cv_header_$ac_safe=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_header_$ac_safe=no"
11246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11247 echo "$ac_t""yes" 1>&6
11250 echo "$ac_t""no" 1>&6
11251 { test "$extra_verbose" = "yes" && cat << \EOF
11252 Defining NONSYSTEM_DIR_LIBRARY
11254 cat >> confdefs.h <<\EOF
11255 #define NONSYSTEM_DIR_LIBRARY 1
11264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11266 echo "configure:11267: checking for nlist.h" >&5
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then
11278 eval "ac_cv_header_$ac_safe=yes"
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 eval "ac_cv_header_$ac_safe=no"
11287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 { test "$extra_verbose" = "yes" && cat << \EOF
11290 Defining NLIST_STRUCT
11292 cat >> confdefs.h <<\EOF
11293 #define NLIST_STRUCT 1
11298 echo "$ac_t""no" 1>&6
11303 echo "checking "for sound support"" 1>&6
11304 echo "configure:11305: checking "for sound support"" >&5
11305 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11307 if test "$with_native_sound" != "no"; then
11308 if test -n "$native_sound_lib"; then
11309 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11310 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11311 echo "configure:11312: checking for multimedia/audio_device.h" >&5
11313 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316 #include <multimedia/audio_device.h>
11318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11319 { (eval echo configure:11320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11321 if test -z "$ac_err"; then
11323 eval "ac_cv_header_$ac_safe=yes"
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11329 eval "ac_cv_header_$ac_safe=no"
11332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11333 echo "$ac_t""yes" 1>&6
11334 sound_found=yes sound_cflags=""
11335 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11336 echo " xemacs will be linked with \"sunplay.o\""
11339 echo "$ac_t""no" 1>&6
11344 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
11346 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
11347 echo " xemacs will be linked with \"sunplay.o\""
11349 if test -d "/usr/demo/SOUND/include"
11350 then sound_cflags="-I/usr/demo/SOUND/include"
11351 else sound_cflags="-I/usr/demo/SOUND"
11353 if test -z "$native_sound_lib" ; then
11354 if test -r "/usr/demo/SOUND/lib/libaudio.a"
11355 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
11356 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
11361 if test -z "$sound_found"; then
11362 case "$canonical" in
11364 if test -z "$native_sound_lib"; then
11366 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11367 echo "configure:11368: checking for ALopenport in -laudio" >&5
11368 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11370 xe_check_libs=" -laudio "
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 /* We use char because int might match the return type of a gcc2
11376 builtin and then its argument prototype would still apply. */
11383 if { (eval echo configure:11384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11385 eval "ac_cv_lib_$ac_lib_var=yes"
11387 echo "configure: failed program was:" >&5
11388 cat conftest.$ac_ext >&5
11390 eval "ac_cv_lib_$ac_lib_var=no"
11395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11396 echo "$ac_t""yes" 1>&6
11397 native_sound_lib="-laudio"
11399 echo "$ac_t""no" 1>&6
11404 if test -n "$native_sound_lib"; then
11405 sound_found=yes sound_cflags=""
11406 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
11407 echo " xemacs will be linked with \"sgiplay.o\""
11411 if test -z "$native_sound_lib"; then
11413 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11414 echo "configure:11415: checking for AOpenAudio in -lAlib" >&5
11415 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11417 xe_check_libs=" -lAlib "
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* Override any gcc2 internal prototype to avoid an error. */
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 eval "ac_cv_lib_$ac_lib_var=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_lib_$ac_lib_var=no"
11442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11443 echo "$ac_t""yes" 1>&6
11444 native_sound_lib="-lAlib"
11446 echo "$ac_t""no" 1>&6
11451 if test -n "$native_sound_lib"; then
11453 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
11454 echo " xemacs will be linked with \"hpplay.o\""
11456 if test "$GCC" = "yes" # Kludge city
11457 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
11458 else sound_cflags="+e -I/usr/audio/examples"
11464 if test -z "$sound_found"; then
11465 for dir in "machine" "sys" "linux"; do
11466 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11467 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11468 echo "configure:11469: checking for ${dir}/soundcard.h" >&5
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 #include <${dir}/soundcard.h>
11475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11476 { (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11478 if test -z "$ac_err"; then
11480 eval "ac_cv_header_$ac_safe=yes"
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11486 eval "ac_cv_header_$ac_safe=no"
11489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11490 echo "$ac_t""yes" 1>&6
11493 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
11494 echo " xemacs will be linked with \"linuxplay.o\""
11496 { test "$extra_verbose" = "yes" && cat << EOF
11497 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
11499 cat >> confdefs.h <<EOF
11500 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
11506 echo "$ac_t""no" 1>&6
11512 test "$sound_found" = "yes" && with_native_sound=yes
11515 if test "$with_native_sound" = "yes"; then
11516 { test "$extra_verbose" = "yes" && cat << \EOF
11517 Defining HAVE_NATIVE_SOUND
11519 cat >> confdefs.h <<\EOF
11520 #define HAVE_NATIVE_SOUND 1
11524 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
11527 if test "$with_nas_sound" != "no"; then
11528 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11529 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11530 echo "configure:11531: checking for audio/audiolib.h" >&5
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 #include <audio/audiolib.h>
11537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11538 { (eval echo configure:11539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11540 if test -z "$ac_err"; then
11542 eval "ac_cv_header_$ac_safe=yes"
11545 echo "configure: failed program was:" >&5
11546 cat conftest.$ac_ext >&5
11548 eval "ac_cv_header_$ac_safe=no"
11551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11552 echo "$ac_t""yes" 1>&6
11555 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11556 echo "configure:11557: checking for AuOpenServer in -laudio" >&5
11557 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11559 xe_check_libs=" -laudio "
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 /* Override any gcc2 internal prototype to avoid an error. */
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char AuOpenServer();
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11574 eval "ac_cv_lib_$ac_lib_var=yes"
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11579 eval "ac_cv_lib_$ac_lib_var=no"
11584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11585 echo "$ac_t""yes" 1>&6
11588 echo "$ac_t""no" 1>&6
11593 echo "$ac_t""no" 1>&6
11596 if test "$have_nas_sound" = "yes"; then
11598 { test "$extra_verbose" = "yes" && cat << \EOF
11599 Defining HAVE_NAS_SOUND
11601 cat >> confdefs.h <<\EOF
11602 #define HAVE_NAS_SOUND 1
11606 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11607 echo " xemacs will be linked with \"nas.o\""
11609 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11613 #include <audio/Xtutil.h>
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11620 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
11621 Defining NAS_NO_ERROR_JUMP
11623 cat >> confdefs.h <<\EOF
11624 #define NAS_NO_ERROR_JUMP 1
11632 test "$with_nas_sound" = "yes" && \
11633 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11638 if test "$with_esd_sound" != "no"; then
11639 # Extract the first word of "esd-config", so it can be a program name with args.
11640 set dummy esd-config; ac_word=$2
11641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11642 echo "configure:11643: checking for $ac_word" >&5
11644 if test -n "$have_esd_config"; then
11645 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11649 for ac_dir in $ac_dummy; do
11650 test -z "$ac_dir" && ac_dir=.
11651 if test -f $ac_dir/$ac_word; then
11652 ac_cv_prog_have_esd_config="yes"
11657 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11659 have_esd_config="$ac_cv_prog_have_esd_config"
11660 if test -n "$have_esd_config"; then
11661 echo "$ac_t""$have_esd_config" 1>&6
11663 echo "$ac_t""no" 1>&6
11666 if test "$have_esd_config" = "yes"; then
11667 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11668 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
11669 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11670 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11671 echo "configure:11672: checking for esd_play_stream" >&5
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char esd_play_stream(); below. */
11678 #include <assert.h>
11679 /* Override any gcc2 internal prototype to avoid an error. */
11680 /* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11682 char esd_play_stream();
11686 /* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699 eval "ac_cv_func_esd_play_stream=yes"
11701 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11704 eval "ac_cv_func_esd_play_stream=no"
11708 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11709 echo "$ac_t""yes" 1>&6
11712 echo "$ac_t""no" 1>&6
11713 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11718 if test "$have_esd_sound" = "yes"; then
11721 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11722 echo " xemacs will be linked with \"esd.o\""
11724 { test "$extra_verbose" = "yes" && cat << \EOF
11725 Defining HAVE_ESD_SOUND
11727 cat >> confdefs.h <<\EOF
11728 #define HAVE_ESD_SOUND 1
11733 test "$with_esd_sound" = "yes" && \
11734 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11739 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11740 echo " xemacs will be linked with \"miscplay.o\""
11744 test -z "$with_tty" && with_tty=yes
11746 if test "$with_tty" = "yes" ; then
11747 echo "checking for TTY-related features" 1>&6
11748 echo "configure:11749: checking for TTY-related features" >&5
11749 { test "$extra_verbose" = "yes" && cat << \EOF
11752 cat >> confdefs.h <<\EOF
11757 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
11758 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\""
11761 if test -z "$with_ncurses"; then
11763 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11764 echo "configure:11765: checking for tgetent in -lncurses" >&5
11765 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11767 xe_check_libs=" -lncurses "
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11782 eval "ac_cv_lib_$ac_lib_var=yes"
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11787 eval "ac_cv_lib_$ac_lib_var=no"
11792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11793 echo "$ac_t""yes" 1>&6
11796 echo "$ac_t""no" 1>&6
11802 if test "$with_ncurses" = "yes"; then
11803 { test "$extra_verbose" = "yes" && cat << \EOF
11804 Defining HAVE_NCURSES
11806 cat >> confdefs.h <<\EOF
11807 #define HAVE_NCURSES 1
11811 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11812 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11813 echo "configure:11814: checking for ncurses/curses.h" >&5
11815 cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure"
11817 #include "confdefs.h"
11818 #include <ncurses/curses.h>
11820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11821 { (eval echo configure:11822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11823 if test -z "$ac_err"; then
11825 eval "ac_cv_header_$ac_safe=yes"
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11831 eval "ac_cv_header_$ac_safe=no"
11834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11835 echo "$ac_t""yes" 1>&6
11836 curses_h_path=ncurses/curses.h
11838 echo "$ac_t""no" 1>&6
11841 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11842 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11843 echo "configure:11844: checking for ncurses/term.h" >&5
11845 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure"
11847 #include "confdefs.h"
11848 #include <ncurses/term.h>
11850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11851 { (eval echo configure:11852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11853 if test -z "$ac_err"; then
11855 eval "ac_cv_header_$ac_safe=yes"
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11861 eval "ac_cv_header_$ac_safe=no"
11864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11865 echo "$ac_t""yes" 1>&6
11866 term_h_path=ncurses/term.h
11868 echo "$ac_t""no" 1>&6
11871 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11872 echo " xemacs will be linked with \"terminfo.o\""
11874 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
11876 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11877 save_c_switch_site="$c_switch_site"
11878 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11879 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11880 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11881 echo "configure:11882: checking for ncurses/curses.h" >&5
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11886 #include <ncurses/curses.h>
11888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11889 { (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11891 if test -z "$ac_err"; then
11893 eval "ac_cv_header_$ac_safe=yes"
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11899 eval "ac_cv_header_$ac_safe=no"
11902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11903 echo "$ac_t""yes" 1>&6
11904 curses_h_path=ncurses/curses.h
11906 echo "$ac_t""no" 1>&6
11909 if test "$ac_cv_header_ncurses_curses_h" = "yes"
11910 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
11911 else c_switch_site="$save_c_switch_site"
11914 else if test "$have_terminfo" = "yes"; then
11915 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
11916 echo " xemacs will be linked with \"terminfo.o\""
11918 if test -n "$libs_termcap"; then
11919 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11921 for lib in curses termlib termcap; do
11923 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11924 echo "configure:11925: checking for tgetent in -l$lib" >&5
11925 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11927 xe_check_libs=" -l$lib "
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11931 /* Override any gcc2 internal prototype to avoid an error. */
11932 /* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11940 if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11942 eval "ac_cv_lib_$ac_lib_var=yes"
11944 echo "configure: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11947 eval "ac_cv_lib_$ac_lib_var=no"
11952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11953 echo "$ac_t""yes" 1>&6
11954 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
11956 echo "$ac_t""no" 1>&6
11962 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
11963 echo " xemacs will be linked with \"tparam.o\""
11965 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
11966 if test -n "$libs_termcap"; then
11967 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11970 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11971 echo "configure:11972: checking for tgetent in -lcurses" >&5
11972 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11974 xe_check_libs=" -lcurses "
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 /* Override any gcc2 internal prototype to avoid an error. */
11979 /* We use char because int might match the return type of a gcc2
11980 builtin and then its argument prototype would still apply. */
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11989 eval "ac_cv_lib_$ac_lib_var=yes"
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11994 eval "ac_cv_lib_$ac_lib_var=no"
11999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12000 echo "$ac_t""yes" 1>&6
12001 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12003 echo "$ac_t""no" 1>&6
12004 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12005 echo "configure:12006: checking for tgetent in -ltermcap" >&5
12006 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12008 xe_check_libs=" -ltermcap "
12009 cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure"
12011 #include "confdefs.h"
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12023 eval "ac_cv_lib_$ac_lib_var=yes"
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12028 eval "ac_cv_lib_$ac_lib_var=no"
12033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12034 echo "$ac_t""yes" 1>&6
12035 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
12037 echo "$ac_t""no" 1>&6
12038 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
12039 echo " xemacs will be linked with \"termcap.o\""
12050 { test "$extra_verbose" = "yes" && cat << EOF
12051 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
12053 cat >> confdefs.h <<EOF
12054 #define CURSES_H_PATH "${curses_h_path-curses.h}"
12058 { test "$extra_verbose" = "yes" && cat << EOF
12059 Defining TERM_H_PATH = "${term_h_path-term.h}"
12061 cat >> confdefs.h <<EOF
12062 #define TERM_H_PATH "${term_h_path-term.h}"
12067 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12068 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12069 echo "configure:12070: checking for gpm.h" >&5
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12077 { (eval echo configure:12078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12079 if test -z "$ac_err"; then
12081 eval "ac_cv_header_$ac_safe=yes"
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12087 eval "ac_cv_header_$ac_safe=no"
12090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12094 echo "$ac_t""no" 1>&6
12098 test -z "$with_gpm" && {
12099 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12100 echo "configure:12101: checking for Gpm_Open in -lgpm" >&5
12101 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12103 xe_check_libs=" -lgpm "
12104 cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12116 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12118 eval "ac_cv_lib_$ac_lib_var=yes"
12120 echo "configure: failed program was:" >&5
12121 cat conftest.$ac_ext >&5
12123 eval "ac_cv_lib_$ac_lib_var=no"
12128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12129 echo "$ac_t""yes" 1>&6
12132 echo "$ac_t""no" 1>&6
12137 if test "$with_gpm" = "yes"; then
12138 { test "$extra_verbose" = "yes" && cat << \EOF
12141 cat >> confdefs.h <<\EOF
12146 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
12147 echo " xemacs will be linked with \"gpmevent.o\""
12149 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
12152 else for feature in ncurses gpm; do
12153 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
12154 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
12156 eval "with_${feature}=no"
12159 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
12160 echo " xemacs will be linked with \"event-unixoid.o\""
12164 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12165 != "no no no" && echo "checking for database support" 1>&6
12166 echo "configure:12167: checking for database support" >&5
12168 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12169 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12170 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12171 echo "configure:12172: checking for ndbm.h" >&5
12173 cat > conftest.$ac_ext <<EOF
12174 #line 12175 "configure"
12175 #include "confdefs.h"
12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12181 if test -z "$ac_err"; then
12183 eval "ac_cv_header_$ac_safe=yes"
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12189 eval "ac_cv_header_$ac_safe=no"
12192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12193 echo "$ac_t""yes" 1>&6
12196 echo "$ac_t""no" 1>&6
12198 test "$with_database_gdbm" = "yes" -o \
12199 "$with_database_dbm" = "yes" && \
12200 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12201 with_database_gdbm=no with_database_dbm=no
12206 if test "$with_database_gdbm" != "no"; then
12208 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12209 echo "configure:12210: checking for dbm_open in -lgdbm" >&5
12210 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12212 xe_check_libs=" -lgdbm "
12213 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12227 eval "ac_cv_lib_$ac_lib_var=yes"
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12232 eval "ac_cv_lib_$ac_lib_var=no"
12237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12238 echo "$ac_t""yes" 1>&6
12239 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
12241 echo "$ac_t""no" 1>&6
12242 if test "$with_database_gdbm" = "yes"; then
12243 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
12245 with_database_gdbm=no
12251 if test "$with_database_dbm" != "no"; then
12252 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12253 echo "configure:12254: checking for dbm_open" >&5
12255 cat > conftest.$ac_ext <<EOF
12256 #line 12257 "configure"
12257 #include "confdefs.h"
12258 /* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char dbm_open(); below. */
12260 #include <assert.h>
12261 /* Override any gcc2 internal prototype to avoid an error. */
12262 /* We use char because int might match the return type of a gcc2
12263 builtin and then its argument prototype would still apply. */
12268 /* The GNU C library defines this for functions which it implements
12269 to always fail with ENOSYS. Some functions are actually named
12270 something starting with __ and the normal name is an alias. */
12271 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12281 eval "ac_cv_func_dbm_open=yes"
12283 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12286 eval "ac_cv_func_dbm_open=no"
12290 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12291 echo "$ac_t""yes" 1>&6
12292 with_database_dbm=yes libdbm=
12294 echo "$ac_t""no" 1>&6
12297 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12298 echo "configure:12299: checking for dbm_open in -ldbm" >&5
12299 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12301 xe_check_libs=" -ldbm "
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316 eval "ac_cv_lib_$ac_lib_var=yes"
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12321 eval "ac_cv_lib_$ac_lib_var=no"
12326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12327 echo "$ac_t""yes" 1>&6
12328 with_database_dbm=yes libdbm=-ldbm
12330 echo "$ac_t""no" 1>&6
12331 test "$with_database_dbm" = "yes" && \
12332 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
12333 with_database_dbm=no
12341 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
12342 test "$with_database_gdbm" = "yes" -o \
12343 "$with_database_dbm" = "yes" && \
12344 { test "$extra_verbose" = "yes" && cat << \EOF
12347 cat >> confdefs.h <<\EOF
12353 if test "$with_database_berkdb" != "no"; then
12354 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12355 echo "configure:12356: checking for Berkeley db.h" >&5
12356 for path in "db/db.h" "db.h"; do
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12361 #include <stdlib.h>
12362 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12363 #ifdef HAVE_INTTYPES_H
12364 #define __BIT_TYPES_DEFINED__
12365 #include <inttypes.h>
12366 typedef uint8_t u_int8_t;
12367 typedef uint16_t u_int16_t;
12368 typedef uint32_t u_int32_t;
12369 #ifdef WE_DONT_NEED_QUADS
12370 typedef uint64_t u_int64_t;
12380 if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12382 db_h_path="$path"; break
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12389 if test -z "$db_h_path"
12390 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
12391 else echo "$ac_t""$db_h_path" 1>&6
12394 if test "$with_database_berkdb" != "no"; then
12395 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12396 echo "configure:12397: checking for Berkeley DB version" >&5
12397 cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12400 #include <$db_h_path>
12401 #if DB_VERSION_MAJOR > 1
12406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12407 egrep "yes" >/dev/null 2>&1; then
12409 echo "$ac_t""2" 1>&6; dbfunc=db_open
12412 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12416 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12417 echo "configure:12418: checking for $dbfunc" >&5
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure"
12421 #include "confdefs.h"
12422 /* System header to define __stub macros and hopefully few prototypes,
12423 which can conflict with char $dbfunc(); below. */
12424 #include <assert.h>
12425 /* Override any gcc2 internal prototype to avoid an error. */
12426 /* We use char because int might match the return type of a gcc2
12427 builtin and then its argument prototype would still apply. */
12432 /* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
12435 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
12443 if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445 eval "ac_cv_func_$dbfunc=yes"
12447 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12450 eval "ac_cv_func_$dbfunc=no"
12454 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
12455 echo "$ac_t""yes" 1>&6
12456 with_database_berkdb=yes need_libdb=no
12458 echo "$ac_t""no" 1>&6
12461 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12462 echo "configure:12463: checking for $dbfunc in -ldb" >&5
12463 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12465 xe_check_libs=" -ldb "
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480 eval "ac_cv_lib_$ac_lib_var=yes"
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12485 eval "ac_cv_lib_$ac_lib_var=no"
12490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12491 echo "$ac_t""yes" 1>&6
12492 with_database_berkdb=yes need_libdb=yes
12494 echo "$ac_t""no" 1>&6
12502 if test "$with_database_berkdb" = "yes"; then
12503 { test "$extra_verbose" = "yes" && cat << EOF
12504 Defining DB_H_PATH = "$db_h_path"
12506 cat >> confdefs.h <<EOF
12507 #define DB_H_PATH "$db_h_path"
12511 { test "$extra_verbose" = "yes" && cat << \EOF
12512 Defining HAVE_BERKELEY_DB
12514 cat >> confdefs.h <<\EOF
12515 #define HAVE_BERKELEY_DB 1
12519 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
12520 else with_database_berkdb=no
12524 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12525 != "no no no"; then
12526 { test "$extra_verbose" = "yes" && cat << \EOF
12527 Defining HAVE_DATABASE
12529 cat >> confdefs.h <<\EOF
12530 #define HAVE_DATABASE 1
12534 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
12535 echo " xemacs will be linked with \"database.o\""
12539 if test "$with_socks" = "yes"; then
12541 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12542 echo "configure:12543: checking for SOCKSinit in -lsocks" >&5
12543 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12545 xe_check_libs=" -lsocks "
12546 cat > conftest.$ac_ext <<EOF
12547 #line 12548 "configure"
12548 #include "confdefs.h"
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12560 eval "ac_cv_lib_$ac_lib_var=yes"
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12565 eval "ac_cv_lib_$ac_lib_var=no"
12570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12571 echo "$ac_t""yes" 1>&6
12572 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12574 { test "$extra_verbose" = "yes" && cat << EOF
12575 Defining $ac_tr_lib
12577 cat >> confdefs.h <<EOF
12578 #define $ac_tr_lib 1
12582 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
12585 echo "$ac_t""no" 1>&6
12589 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
12590 Defining HAVE_SOCKS
12592 cat >> confdefs.h <<\EOF
12593 #define HAVE_SOCKS 1
12599 if test "$usage_tracking" = "yes"; then
12600 { test "$extra_verbose" = "yes" && cat << \EOF
12601 Defining USAGE_TRACKING
12603 cat >> confdefs.h <<\EOF
12604 #define USAGE_TRACKING 1
12608 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12611 if test "$with_modules" != "no"; then
12612 echo "checking for module support" 1>&6
12613 echo "configure:12614: checking for module support" >&5
12615 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12616 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12617 echo "configure:12618: checking for dlfcn.h" >&5
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12625 { (eval echo configure:12626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12627 if test -z "$ac_err"; then
12629 eval "ac_cv_header_$ac_safe=yes"
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12635 eval "ac_cv_header_$ac_safe=no"
12638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12639 echo "$ac_t""yes" 1>&6
12642 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12643 echo "configure:12644: checking for dlopen in -ldl" >&5
12644 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12646 xe_check_libs=" -ldl "
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 /* Override any gcc2 internal prototype to avoid an error. */
12651 /* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 eval "ac_cv_lib_$ac_lib_var=yes"
12663 echo "configure: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12666 eval "ac_cv_lib_$ac_lib_var=no"
12671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12672 echo "$ac_t""yes" 1>&6
12673 have_dl=yes libdl=dl
12675 echo "$ac_t""no" 1>&6
12677 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12678 echo "configure:12679: checking for dlopen in -lc" >&5
12679 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12681 xe_check_libs=" -lc "
12682 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure"
12684 #include "confdefs.h"
12685 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12694 if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12696 eval "ac_cv_lib_$ac_lib_var=yes"
12698 echo "configure: failed program was:" >&5
12699 cat conftest.$ac_ext >&5
12701 eval "ac_cv_lib_$ac_lib_var=no"
12706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12707 echo "$ac_t""yes" 1>&6
12710 echo "$ac_t""no" 1>&6
12718 echo "$ac_t""no" 1>&6
12721 if test -n "$have_dl"; then
12722 { test "$extra_verbose" = "yes" && cat << \EOF
12723 Defining HAVE_DLOPEN
12725 cat >> confdefs.h <<\EOF
12726 #define HAVE_DLOPEN 1
12732 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12733 echo "configure:12734: checking for shl_load in -ldld" >&5
12734 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12736 xe_check_libs=" -ldld "
12737 cat > conftest.$ac_ext <<EOF
12738 #line 12739 "configure"
12739 #include "confdefs.h"
12740 /* Override any gcc2 internal prototype to avoid an error. */
12741 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12749 if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751 eval "ac_cv_lib_$ac_lib_var=yes"
12753 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12756 eval "ac_cv_lib_$ac_lib_var=no"
12761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12762 echo "$ac_t""yes" 1>&6
12763 libdl=dld have_dl=yes;
12764 { test "$extra_verbose" = "yes" && cat << \EOF
12765 Defining HAVE_SHL_LOAD
12767 cat >> confdefs.h <<\EOF
12768 #define HAVE_SHL_LOAD 1
12773 echo "$ac_t""no" 1>&6
12775 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12776 echo "configure:12777: checking for dld_init in -ldld" >&5
12777 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12779 xe_check_libs=" -ldld "
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12792 if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12794 eval "ac_cv_lib_$ac_lib_var=yes"
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12799 eval "ac_cv_lib_$ac_lib_var=no"
12804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12805 echo "$ac_t""yes" 1>&6
12806 libdl=dld have_dl=yes;
12807 { test "$extra_verbose" = "yes" && cat << \EOF
12808 Defining HAVE_DLD_INIT
12810 cat >> confdefs.h <<\EOF
12811 #define HAVE_DLD_INIT 1
12816 echo "$ac_t""no" 1>&6
12825 if test -n "$have_dl"; then
12832 ld_dynamic_link_flags=
12834 xealias=$internal_configuration
12836 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12837 echo "configure:12838: checking how to build dynamic libraries for ${xehost}" >&5
12838 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12841 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12844 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12845 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12846 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12848 case "$xehost_os" in
12850 # AIX sometimes has problems with the GCC collect2 program. For some
12851 # reason, if we set the COLLECT_NAMES environment variable, the problems
12852 # vanish in a puff of smoke.
12853 if test "${COLLECT_NAMES+set}" != set; then
12855 export COLLECT_NAMES
12860 # Now see if the compiler is really GCC.
12861 if test "$GCC" = "yes"; then
12864 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12865 echo "configure:12866: checking checking whether we are using GNU C" >&5
12866 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12876 egrep "yes" >/dev/null 2>&1; then
12885 echo "$ac_t""${XEGCC}" 1>&6
12888 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12889 echo "configure:12890: checking how to produce PIC code" >&5
12892 can_build_shared=yes
12893 if test "$XEGCC" = yes; then
12896 case "$xehost_os" in
12897 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
12898 # PIC is the default for these OSes.
12901 aix3* | aix4* | os2*)
12902 # We can build DLLs from non-PIC.
12905 # FIXME: we need at least 68020 code to build shared libraries, but
12906 # adding the `-m68020' flag to GCC prevents building anything better,
12908 dll_cflags='-m68020 -resident32 -malways-restore-a4'
12915 # PORTME Check for PIC flags for the system compiler.
12916 case "$xehost_os" in
12917 hpux9* | hpux1[0-9]*)
12918 # Is there a better link_static_flag that works with the bundled CC?
12925 # PIC (with -KPIC) is the default.
12929 # We can build DLLs from non-PIC.
12933 # All OSF/1 code is PIC.
12938 dll_cflags='-belf -Kpic'
12972 can_build_shared=no
12977 if test -n "$dll_cflags"; then
12978 echo "$ac_t""${dll_cflags}" 1>&6
12980 # Check to make sure the dll_cflags actually works.
12981 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12982 echo "configure:12983: checking if PIC flag ${dll_cflags} really works" >&5
12983 save_CFLAGS="$CFLAGS"
12984 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12985 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12993 if { (eval echo configure:12994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12996 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12997 # reports no error. So, we need to grep stderr for (Bundled).
12998 if grep '(Bundled)' config.log >/dev/null; then
12999 echo "$ac_t""no" 1>&6
13000 can_build_shared=no
13003 echo "$ac_t""yes" 1>&6
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13009 echo "$ac_t""no" 1>&6
13010 can_build_shared=no
13014 CFLAGS="$save_CFLAGS"
13016 echo "$ac_t""none" 1>&6
13019 if test "$can_build_shared" = "yes"; then
13023 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13024 echo "configure:13025: checking if C compiler can produce shared libraries" >&5
13025 if test "$XEGCC" = yes; then
13028 else # Not using GCC
13029 case "$xehost_os" in
13031 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
13032 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
13035 freebsd2* | netbsd* | openbsd*)
13037 xcldf="${wl}-Bshareable"
13046 xcldf="${wl}-b ${wl}+s"
13049 irix5* | irix6* | osf3* | osf4*)
13050 xcldf="${wl}-shared"
13054 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
13060 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
13061 xldf="-assert pure-text -Bstatic"
13064 fi # End if if we are using gcc
13066 if test -n "$xcldf"; then
13067 save_LDFLAGS=$LDFLAGS
13069 save_xe_libs=$xe_libs
13070 LDFLAGS="$xcldf $LDFLAGS"
13073 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13074 cat > conftest.$ac_ext <<EOF
13075 #line 13076 "configure"
13076 #include "confdefs.h"
13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13092 LDFLAGS=$save_LDFLAGS
13094 xe_libs=$save_xe_libs
13095 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13099 echo "$ac_t""${cc_produces_so}" 1>&6
13102 if test -z "$LTLD"; then
13104 if test "$XEGCC" = yes; then
13105 # Check if gcc -print-prog-name=ld gives a path.
13106 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13107 echo "configure:13108: checking for ld used by GCC" >&5
13108 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13110 # Accept absolute paths.
13112 if test -z "$LTLD"; then
13114 *gcc-lib*) LTLD="$CC"
13122 # If it fails, then pretend we aren't using GCC.
13126 # If it is relative, then search for the first ld in PATH.
13127 with_gnu_ld=unknown
13131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13132 echo "configure:13133: checking for GNU ld" >&5
13135 if test -z "$LTLD"; then
13136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13137 for ac_dir in $PATH; do
13138 test -z "$ac_dir" && ac_dir=.
13139 if test -f "$ac_dir/$ac_prog"; then
13140 LTLD="$ac_dir/$ac_prog"
13141 # Check to see if the program is GNU ld. I'd rather use --version,
13142 # but apparently some GNU ld's only accept -v.
13143 # Break only if it was the GNU/non-GNU ld that we prefer.
13144 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13154 if test -n "$LTLD"; then
13155 echo "$ac_t""${LTLD}" 1>&6
13157 echo "$ac_t""no" 1>&6
13160 if test -z "$LTLD" -a "$cc_produces_so" = no; then
13161 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
13166 ld_dynamic_link_flags=
13168 # Check to see if it really is or isn't GNU ld.
13169 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13170 echo "configure:13171: checking if the linker is GNU ld" >&5
13171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13172 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13177 echo "$ac_t""${xe_gnu_ld}" 1>&6
13179 case "$xehost_os" in
13180 amigaos* | sunos4*)
13181 # On these operating systems, we should treat GNU ld like the system ld.
13182 gnu_ld_acts_native=yes
13185 gnu_ld_acts_native=no
13189 if test "$cc_produces_so" = "yes"; then
13192 can_build_shared=yes
13194 # OK - only NOW do we futz about with ld.
13195 # See if the linker supports building shared libraries.
13196 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13197 echo "configure:13198: checking whether the linker supports shared libraries" >&5
13199 dll_ldflags=$LDFLAGS
13201 can_build_shared=yes
13202 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13203 # See if GNU ld supports shared libraries.
13204 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13206 dll_ldflags="-shared"
13212 # PORTME fill in a description of your system's linker (not GNU ld)
13213 case "$xehost_os" in
13223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13224 # support. Future versions do this automatically, but an explicit c++rt0.o
13225 # doesn't break anything, and helps significantly (at the cost of a little
13230 dll_post="/usr/lib/c++rt0.o"
13233 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
13236 dll_ldflags="-Bshareable"
13239 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
13241 dll_ldflags="-shared"
13255 # Tested with NetBSD 1.2 ld
13270 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
13271 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
13274 *gcc*) dll_ldflags="-shared"
13277 *) dll_ldflags="-G"
13283 if test "$XEGCC" = yes; then
13303 can_build_shared=no
13307 echo "$ac_t""${ld_shlibs}" 1>&6
13308 if test "$ld_shlibs" = "no"; then
13309 can_build_shared=no
13311 fi # End of if cc_produces_so = no
13314 if test "$xe_gnu_ld" = yes; then
13315 if test "$ld_shlibs" = yes; then
13316 ld_dynamic_link_flags="${wl}-export-dynamic"
13320 if test -z "$ld_dynamic_link_flags"; then
13321 case "$xehost_os" in
13323 ld_dynamic_link_flags=
13327 ld_dynamic_link_flags=
13331 ld_dynamic_link_flags=
13335 ld_dynamic_link_flags=
13339 ld_dynamic_link_flags=
13343 ld_dynamic_link_flags="${wl}-E"
13347 ld_dynamic_link_flags=
13351 ld_dynamic_link_flags=
13355 ld_dynamic_link_flags=
13359 ld_dynamic_link_flags=
13362 solaris2* | solaris7*)
13363 ld_dynamic_link_flags=
13366 sco3.2v5* | unixware* | sysv5* | sysv4*)
13367 ld_dynamic_link_flags="${wl}-Bexport"
13371 ld_dynamic_link_flags=
13375 ld_dynamic_link_flags=
13379 ld_dynamic_link_flags=
13383 fi # End of if -z ld_dynamic_link_flags
13384 fi # End of if test "$can_build_shared" = "yes"
13395 if test "$can_build_shared" = "yes"; then
13396 { test "$extra_verbose" = "yes" && cat << \EOF
13397 Defining HAVE_SHLIB
13399 cat >> confdefs.h <<\EOF
13400 #define HAVE_SHLIB 1
13404 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
13405 echo " xemacs will be linked with \"sysdll.o emodules.o\""
13407 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13408 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13409 for ac_func in dlerror _dlerror
13411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13412 echo "configure:13413: checking for $ac_func" >&5
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 /* System header to define __stub macros and hopefully few prototypes,
13418 which can conflict with char $ac_func(); below. */
13419 #include <assert.h>
13420 /* Override any gcc2 internal prototype to avoid an error. */
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13427 /* The GNU C library defines this for functions which it implements
13428 to always fail with ENOSYS. Some functions are actually named
13429 something starting with __ and the normal name is an alias. */
13430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13440 eval "ac_cv_func_$ac_func=yes"
13442 echo "configure: failed program was:" >&5
13443 cat conftest.$ac_ext >&5
13445 eval "ac_cv_func_$ac_func=no"
13449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13450 echo "$ac_t""yes" 1>&6
13451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13452 { test "$extra_verbose" = "yes" && cat << EOF
13453 Defining $ac_tr_func
13455 cat >> confdefs.h <<EOF
13456 #define $ac_tr_func 1
13461 echo "$ac_t""no" 1>&6
13467 if test "$with_modules" = "yes"; then
13468 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13470 echo "configure: warning: "Module support cannot be provided."" 1>&2
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 int main(int c,char *v[]){return 0;}
13481 if { (eval echo configure:13482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13491 echo "*** PANIC *** The C compiler can no longer build working executables."
13492 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
13493 echo "*** PANIC *** The most likely reason for this problem is that configure"
13494 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
13495 echo "*** PANIC *** found at run time."
13496 echo "*** PANIC ***"
13497 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
13498 echo "*** PANIC *** On other systems, try telling configure where to find the"
13499 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
13500 echo "*** PANIC ***"
13501 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
13502 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
13503 echo "*** PANIC *** on your system. Don't do that."
13508 if test "$win32_processes" = "yes"; then
13509 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13510 echo " xemacs will be linked with \"process-nt.o\""
13513 { test "$extra_verbose" = "yes" && cat << \EOF
13514 Defining HAVE_UNIX_PROCESSES
13516 cat >> confdefs.h <<\EOF
13517 #define HAVE_UNIX_PROCESSES 1
13521 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
13522 echo " xemacs will be linked with \"process-unix.o\""
13529 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13534 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13539 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
13540 c_switch_general="$T"
13544 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13545 c_switch_window_system="$T"
13549 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13554 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
13555 ld_switch_general="$T"
13559 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13560 ld_switch_window_system="$T"
13564 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13569 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13570 ld_libs_general="$T"
13574 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
13575 ld_libs_window_system="$T"
13579 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13584 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
13585 internal_makefile_list="Makefile.in"
13586 SUBDIR_MAKEFILES=''
13587 test -d lock || mkdir lock
13588 for dir in $MAKE_SUBDIR; do
13589 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
13590 test -d "$d" || mkdir "$d"; cd "$d"
13592 * ) test -d "$dir" || mkdir "$dir" ;;
13596 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13597 SUBDIR_MAKEFILES="$T"
13601 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13602 internal_makefile_list="$T"
13609 for dir in src/s src/m; do
13610 if test ! -d "$dir" ; then
13611 echo Making symbolic link to "$srcdir/$dir"
13612 ${LN_S} "$srcdir/$dir" "$dir"
13616 if test "$extra_verbose" = "yes"; then
13618 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
13623 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
13624 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13625 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13628 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13629 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13630 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13633 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13634 test "$extra_verbose" = "yes" && echo "creating TAGS"
13636 $srcdir/TAGS,include" > "TAGS"
13639 if test "$__SUNPRO_C" = "yes"; then
13640 test "$extra_verbose" = "yes" && echo "creating .sbinit"
13641 ( echo "# For use with Sun WorkShop's Source browser."
13642 echo "# See sbquery(1) and sbinit(4) for more information"
13643 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
13670 *\$* ) eval "PREFIX=$PREFIX" ;;
13678 EXEC_PREFIX=$exec_prefix
13680 case "$EXEC_PREFIX" in
13681 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
13692 *\$* ) eval "INFODIR=$INFODIR" ;;
13702 case "$INFOPATH" in
13703 *\$* ) eval "INFOPATH=$INFOPATH" ;;
13711 PACKAGE_PATH=$package_path
13713 case "$PACKAGE_PATH" in
13714 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
13725 *\$* ) eval "LISPDIR=$LISPDIR" ;;
13733 MODULEDIR=$moduledir
13735 case "$MODULEDIR" in
13736 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
13744 SITELISPDIR=$sitelispdir
13746 case "$SITELISPDIR" in
13747 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
13755 SITEMODULEDIR=$sitemoduledir
13757 case "$SITEMODULEDIR" in
13758 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
13769 *\$* ) eval "ETCDIR=$ETCDIR" ;;
13780 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
13791 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13799 ARCHLIBDIR=$archlibdir
13801 case "$ARCHLIBDIR" in
13802 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
13826 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
13834 : ${XEMACS_CC:=$CC}
13837 if test "$with_prefix" = "yes"; then
13838 { test "$extra_verbose" = "yes" && cat << \EOF
13839 Defining PREFIX_USER_DEFINED
13841 cat >> confdefs.h <<\EOF
13842 #define PREFIX_USER_DEFINED 1
13848 if test "$with_site_lisp" = "no"; then
13849 { test "$extra_verbose" = "yes" && cat << \EOF
13850 Defining INHIBIT_SITE_LISP
13852 cat >> confdefs.h <<\EOF
13853 #define INHIBIT_SITE_LISP 1
13858 if test "$with_site_modules" = "no"; then
13859 { test "$extra_verbose" = "yes" && cat << \EOF
13860 Defining INHIBIT_SITE_MODULES
13862 cat >> confdefs.h <<\EOF
13863 #define INHIBIT_SITE_MODULES 1
13871 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
13872 ac_configure_args="$T"
13874 { test "$extra_verbose" = "yes" && cat << EOF
13875 Defining EMACS_CONFIGURATION = "$configuration"
13877 cat >> confdefs.h <<EOF
13878 #define EMACS_CONFIGURATION "$configuration"
13882 { test "$extra_verbose" = "yes" && cat << EOF
13883 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
13885 cat >> confdefs.h <<EOF
13886 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
13890 { test "$extra_verbose" = "yes" && cat << EOF
13891 Defining config_machfile = "$machfile"
13893 cat >> confdefs.h <<EOF
13894 #define config_machfile "$machfile"
13898 { test "$extra_verbose" = "yes" && cat << EOF
13899 Defining config_opsysfile = "$opsysfile"
13901 cat >> confdefs.h <<EOF
13902 #define config_opsysfile "$opsysfile"
13909 { test "$extra_verbose" = "yes" && cat << EOF
13910 Defining LD_SWITCH_X_SITE = $null_string
13912 cat >> confdefs.h <<EOF
13913 #define LD_SWITCH_X_SITE $null_string
13917 { test "$extra_verbose" = "yes" && cat << EOF
13918 Defining LD_SWITCH_X_SITE_AUX = $null_string
13920 cat >> confdefs.h <<EOF
13921 #define LD_SWITCH_X_SITE_AUX $null_string
13925 { test "$extra_verbose" = "yes" && cat << EOF
13926 Defining C_SWITCH_X_SITE = $null_string
13928 cat >> confdefs.h <<EOF
13929 #define C_SWITCH_X_SITE $null_string
13933 { test "$extra_verbose" = "yes" && cat << EOF
13934 Defining LD_SWITCH_SITE = $null_string
13936 cat >> confdefs.h <<EOF
13937 #define LD_SWITCH_SITE $null_string
13941 { test "$extra_verbose" = "yes" && cat << EOF
13942 Defining C_SWITCH_SITE = $null_string
13944 cat >> confdefs.h <<EOF
13945 #define C_SWITCH_SITE $null_string
13951 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13952 Defining GNU_MALLOC
13954 cat >> confdefs.h <<\EOF
13955 #define GNU_MALLOC 1
13959 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13960 Defining USE_SYSTEM_MALLOC
13962 cat >> confdefs.h <<\EOF
13963 #define USE_SYSTEM_MALLOC 1
13967 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
13968 Defining USE_DEBUG_MALLOC
13970 cat >> confdefs.h <<\EOF
13971 #define USE_DEBUG_MALLOC 1
13975 { test "$extra_verbose" = "yes" && cat << \EOF
13976 Defining USE_SYSTEM_MALLOC
13978 cat >> confdefs.h <<\EOF
13979 #define USE_SYSTEM_MALLOC 1
13984 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13987 cat >> confdefs.h <<\EOF
13992 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13995 cat >> confdefs.h <<\EOF
14000 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14001 Defining EXTERNAL_WIDGET
14003 cat >> confdefs.h <<\EOF
14004 #define EXTERNAL_WIDGET 1
14008 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14009 Defining NO_DOC_FILE
14011 cat >> confdefs.h <<\EOF
14012 #define NO_DOC_FILE 1
14016 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14019 cat >> confdefs.h <<\EOF
14024 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14027 cat >> confdefs.h <<\EOF
14032 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14033 Defining MAIL_USE_POP
14035 cat >> confdefs.h <<\EOF
14036 #define MAIL_USE_POP 1
14040 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14043 cat >> confdefs.h <<\EOF
14048 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14051 cat >> confdefs.h <<\EOF
14056 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14057 Defining USE_UNION_TYPE
14059 cat >> confdefs.h <<\EOF
14060 #define USE_UNION_TYPE 1
14064 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14067 cat >> confdefs.h <<\EOF
14075 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
14077 echo "uname -a: `uname -a`"
14080 echo "$0 $quoted_arguments"
14083 if test ! -z ${emacs_beta_version} ; then
14084 if test -z "${emacs_is_beta}" ; then
14085 xemacs_betaname=".${emacs_beta_version}"
14087 xemacs_betaname="-b${emacs_beta_version}"
14096 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
14098 Where should the build process find the source code? $srcdir
14099 What installation prefix should install use? $prefix
14100 What operating system and machine description files should XEmacs use?
14101 \`$opsysfile' and \`$machfile'
14102 What compiler should XEmacs be built with? $CC $CFLAGS
14103 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14104 Should XEmacs use the relocating allocator for buffers? $rel_alloc
14105 What window system should XEmacs use? ${window_system}"
14106 if test "$with_x11" = "yes"; then
14107 echo " Where do we find X Windows header files? $x_includes"
14108 echo " Where do we find X Windows libraries? $x_libraries"
14110 if test -n "$site_includes"; then
14111 echo " Additional header files: $site_includes"
14113 if test -n "$site_libraries"; then
14114 echo " Additional libraries: $site_libraries"
14116 if test -n "$site_prefixes"; then
14117 echo " Additional prefixes: $site_prefixes"
14119 if test -n "$runpath"; then
14120 echo " Runtime library search path: $runpath"
14122 if test "$have_xaw" = "yes"; then
14123 echo " Athena library to link: $athena_lib"
14124 echo " Athena header include path: $athena_h_path"
14126 test "$with_dnet" = yes && echo " Compiling in support for DNET."
14127 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
14128 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
14129 if test "$with_xmu" != yes -a "$with_x11" = yes; then
14130 echo " No Xmu; substituting equivalent routines."
14133 if test "$with_xpm" = yes; then
14134 echo " Compiling in support for XPM images."
14135 elif test "$with_x11" = yes; then
14136 echo " --------------------------------------------------------------------"
14137 echo " WARNING: Compiling without XPM support."
14138 if test "$xpm_problem" != ""; then
14139 echo " Reason: $xpm_problem"
14141 echo " WARNING: You should strongly consider installing XPM."
14142 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
14143 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14144 echo " --------------------------------------------------------------------"
14146 if test "$with_png" = yes; then
14147 echo " Compiling in support for PNG image handling."
14148 elif test "$window_system" != "none"; then
14149 echo " --------------------------------------------------------------------"
14150 echo " WARNING: Compiling without PNG image support."
14151 if test "$png_problem" != ""; then
14152 echo " Reason: $png_problem"
14154 echo " WARNING: You should strongly consider installing the PNG libraries."
14155 echo " WARNING: Otherwise certain images and glyphs may not display."
14156 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
14157 echo " --------------------------------------------------------------------"
14159 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
14160 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
14161 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
14162 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
14164 test "$with_native_sound" = yes && echo " Compiling in native sound support."
14165 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
14166 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
14167 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
14169 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
14170 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
14171 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
14173 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
14175 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
14176 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
14178 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
14179 test "$with_file_coding" = yes && echo " Compiling in File coding support."
14180 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
14181 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
14182 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
14183 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
14184 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
14185 if test "$with_wnn" = yes; then
14186 echo " Compiling in support for the WNN input method on Mule."
14187 test "$with_wnn6" = yes && echo " Using WNN version 6."
14189 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
14191 test "$with_cde" = yes && echo " Compiling in support for CDE."
14192 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
14193 test "$with_offix" = yes && echo " Compiling in support for OffiX."
14194 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
14195 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
14196 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
14197 case "$with_menubars" in
14198 lucid ) echo " Using Lucid menubars." ;;
14199 motif ) echo " Using Motif menubars."
14200 echo " *WARNING* The Motif menubar implementation is currently buggy."
14201 echo " We recommend using the Lucid menubar instead."
14202 echo " Re-run configure with --with-menubars='lucid'." ;;
14203 msw ) echo " Using MS-Windows menubars." ;;
14205 case "$with_scrollbars" in
14206 lucid ) echo " Using Lucid scrollbars." ;;
14207 motif ) echo " Using Motif scrollbars." ;;
14208 athena ) echo " Using Athena scrollbars." ;;
14209 msw ) echo " Using MS-Windows scrollbars." ;;
14211 case "$with_widgets" in
14212 motif ) echo " Using Motif native widgets." ;;
14213 athena ) echo " Using Athena native widgets." ;;
14214 msw ) echo " Using MS-Windows native widgets." ;;
14216 case "$with_dialogs" in
14218 echo " Using Motif dialog boxes."
14219 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
14220 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
14221 echo " We recommend using the Athena dialog boxes instead."
14222 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
14223 echo " Read the PROBLEMS file for more information."
14226 athena ) echo " Using Athena dialog boxes." ;;
14227 msw ) echo " Using MS-Windows dialog boxes." ;;
14229 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
14230 test "$with_clash_detection" = yes && \
14231 echo " Clash detection will use \"$lockdir\" for locking files."
14232 echo " movemail will use \"$mail_locking\" for locking mail spool files."
14233 test "$with_pop" = yes && echo " Using POP for mail access."
14234 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
14235 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
14236 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
14237 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
14238 test "$debug" = yes && echo " Compiling in extra code for debugging."
14239 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
14240 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
14241 != "no no no no no"; then
14242 echo " WARNING: ---------------------------------------------------------"
14243 echo " WARNING: Compiling in support for runtime error checking."
14244 echo " WARNING: XEmacs will run noticeably more slowly as a result."
14245 echo " WARNING: Error checking is on by default for XEmacs beta releases."
14246 echo " WARNING: ---------------------------------------------------------"
14249 ) | tee -a Installation
14253 # Remove any trailing slashes in these variables.
14254 test -n "$prefix" &&
14255 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14256 test -n "$exec_prefix" &&
14257 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
14260 for file in $internal_makefile_list; do
14261 test "$file" = src/Makefile.in && \
14262 file="src/Makefile.in:src/Makefile.in.in:src/depend"
14263 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
14265 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
14266 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
14270 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14273 # Let make expand exec_prefix.
14274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14276 # Any assignment to VPATH causes Sun make to only execute
14277 # the first set of double-colon rules, so remove it if not needed.
14278 # If there is a colon in the path, we need to keep it.
14279 if test "x$srcdir" = x.; then
14280 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14283 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14285 DEFS=-DHAVE_CONFIG_H
14287 # Without the "./", some shells look in PATH for config.status.
14288 : ${CONFIG_STATUS=./config.status}
14290 echo creating $CONFIG_STATUS
14291 rm -f $CONFIG_STATUS
14292 cat > $CONFIG_STATUS <<EOF
14294 # Generated automatically by configure.
14295 # Run this file to recreate the current configuration.
14296 # This directory was configured as follows,
14297 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14299 # $0 $ac_configure_args
14301 # Compiler output produced by configure, useful for debugging
14302 # configure, is in ./config.log if it exists.
14304 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14307 case "\$ac_option" in
14308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14309 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14310 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14311 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14312 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14314 -help | --help | --hel | --he | --h)
14315 echo "\$ac_cs_usage"; exit 0 ;;
14316 *) echo "\$ac_cs_usage"; exit 1 ;;
14320 ac_given_srcdir=$srcdir
14321 ac_given_INSTALL="$INSTALL"
14323 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14325 cat >> $CONFIG_STATUS <<EOF
14327 # Protect against being on the right side of a sed subst in config.status.
14328 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14329 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14333 s%@CFLAGS@%$CFLAGS%g
14334 s%@CPPFLAGS@%$CPPFLAGS%g
14335 s%@CXXFLAGS@%$CXXFLAGS%g
14336 s%@FFLAGS@%$FFLAGS%g
14338 s%@LDFLAGS@%$LDFLAGS%g
14340 s%@exec_prefix@%$exec_prefix%g
14341 s%@prefix@%$prefix%g
14342 s%@program_transform_name@%$program_transform_name%g
14343 s%@bindir@%$bindir%g
14344 s%@sbindir@%$sbindir%g
14345 s%@libexecdir@%$libexecdir%g
14346 s%@datadir@%$datadir%g
14347 s%@sysconfdir@%$sysconfdir%g
14348 s%@sharedstatedir@%$sharedstatedir%g
14349 s%@localstatedir@%$localstatedir%g
14350 s%@libdir@%$libdir%g
14351 s%@includedir@%$includedir%g
14352 s%@oldincludedir@%$oldincludedir%g
14353 s%@infodir@%$infodir%g
14354 s%@mandir@%$mandir%g
14356 s%@blddir@%$blddir%g
14359 s%@start_flags@%$start_flags%g
14360 s%@ld_switch_shared@%$ld_switch_shared%g
14361 s%@start_files@%$start_files%g
14363 s%@lib_gcc@%$lib_gcc%g
14364 s%@RANLIB@%$RANLIB%g
14365 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14366 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14367 s%@INSTALL_DATA@%$INSTALL_DATA%g
14369 s%@SET_MAKE@%$SET_MAKE%g
14370 s%@X_CFLAGS@%$X_CFLAGS%g
14371 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14372 s%@X_LIBS@%$X_LIBS%g
14373 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14374 s%@install_pp@%$install_pp%g
14375 s%@libs_xauth@%$libs_xauth%g
14376 s%@dnd_objs@%$dnd_objs%g
14377 s%@lwlib_objs@%$lwlib_objs%g
14378 s%@ALLOCA@%$ALLOCA%g
14379 s%@have_esd_config@%$have_esd_config%g
14380 s%@dll_ld@%$dll_ld%g
14381 s%@dll_cflags@%$dll_cflags%g
14382 s%@dll_ldflags@%$dll_ldflags%g
14383 s%@dll_post@%$dll_post%g
14384 s%@dll_ldo@%$dll_ldo%g
14385 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
14386 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
14387 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
14388 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
14389 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
14390 s%@PROGNAME@%$PROGNAME%g
14391 s%@version@%$version%g
14392 s%@configuration@%$configuration%g
14393 s%@canonical@%$canonical%g
14394 s%@inststaticdir@%$inststaticdir%g
14395 s%@instvardir@%$instvardir%g
14396 s%@srcdir@%$srcdir%g
14397 s%@pkgdir@%$pkgdir%g
14398 s%@statedir@%$statedir%g
14399 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
14400 s%@PREFIX@%$PREFIX%g
14401 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
14402 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
14403 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
14404 s%@INFODIR@%$INFODIR%g
14405 s%@infopath@%$infopath%g
14406 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
14407 s%@INFOPATH@%$INFOPATH%g
14408 s%@package_path@%$package_path%g
14409 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
14410 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
14411 s%@lispdir@%$lispdir%g
14412 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
14413 s%@LISPDIR@%$LISPDIR%g
14414 s%@moduledir@%$moduledir%g
14415 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
14416 s%@MODULEDIR@%$MODULEDIR%g
14417 s%@sitelispdir@%$sitelispdir%g
14418 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
14419 s%@SITELISPDIR@%$SITELISPDIR%g
14420 s%@sitemoduledir@%$sitemoduledir%g
14421 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
14422 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
14423 s%@etcdir@%$etcdir%g
14424 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
14425 s%@ETCDIR@%$ETCDIR%g
14426 s%@lockdir@%$lockdir%g
14427 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
14428 s%@LOCKDIR@%$LOCKDIR%g
14429 s%@docdir@%$docdir%g
14430 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14431 s%@DOCDIR@%$DOCDIR%g
14432 s%@archlibdir@%$archlibdir%g
14433 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
14434 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
14435 s%@bitmapdir@%$bitmapdir%g
14436 s%@extra_objs@%$extra_objs%g
14437 s%@machfile@%$machfile%g
14438 s%@opsysfile@%$opsysfile%g
14439 s%@c_switch_general@%$c_switch_general%g
14440 s%@c_switch_window_system@%$c_switch_window_system%g
14441 s%@c_switch_all@%$c_switch_all%g
14442 s%@ld_switch_general@%$ld_switch_general%g
14443 s%@ld_switch_window_system@%$ld_switch_window_system%g
14444 s%@ld_switch_all@%$ld_switch_all%g
14445 s%@ld_libs_general@%$ld_libs_general%g
14446 s%@ld_libs_window_system@%$ld_libs_window_system%g
14447 s%@ld_libs_all@%$ld_libs_all%g
14448 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
14449 s%@native_sound_lib@%$native_sound_lib%g
14450 s%@sound_cflags@%$sound_cflags%g
14451 s%@dynodump_arch@%$dynodump_arch%g
14452 s%@XEMACS_CC@%$XEMACS_CC%g
14453 s%@internal_makefile_list@%$internal_makefile_list%g
14458 cat >> $CONFIG_STATUS <<\EOF
14460 # Split the substitutions into bite-sized pieces for seds with
14461 # small command number limits, like on Digital OSF/1 and HP-UX.
14462 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14463 ac_file=1 # Number of current file.
14464 ac_beg=1 # First line for current file.
14465 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14468 while $ac_more_lines; do
14469 if test $ac_beg -gt 1; then
14470 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14472 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14474 if test ! -s conftest.s$ac_file; then
14475 ac_more_lines=false
14476 rm -f conftest.s$ac_file
14478 if test -z "$ac_sed_cmds"; then
14479 ac_sed_cmds="sed -f conftest.s$ac_file"
14481 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14483 ac_file=`expr $ac_file + 1`
14485 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14488 if test -z "$ac_sed_cmds"; then
14493 cat >> $CONFIG_STATUS <<EOF
14495 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
14497 cat >> $CONFIG_STATUS <<\EOF
14498 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14501 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14502 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14503 *) ac_file_in="${ac_file}.in" ;;
14506 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14508 # Remove last slash and all that follows it. Not all systems have dirname.
14509 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14510 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14511 # The file is in a subdirectory.
14512 test ! -d "$ac_dir" && mkdir "$ac_dir"
14513 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14514 # A "../" for each directory in $ac_dir_suffix.
14515 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14517 ac_dir_suffix= ac_dots=
14520 case "$ac_given_srcdir" in
14522 if test -z "$ac_dots"; then top_srcdir=.
14523 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14524 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14525 *) # Relative path.
14526 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14527 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14530 case "$ac_given_INSTALL" in
14531 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14532 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14535 echo creating "$ac_file"
14537 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14539 *Makefile*) ac_comsub="1i\\
14540 # $configure_input" ;;
14544 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14546 s%@configure_input@%$configure_input%g
14547 s%@srcdir@%$srcdir%g
14548 s%@top_srcdir@%$top_srcdir%g
14549 s%@INSTALL@%$INSTALL%g
14550 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14557 # ac_d sets the value in "#define NAME VALUE" lines.
14558 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14559 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14562 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14563 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14564 ac_uB='\([ ]\)%\1#\2define\3'
14567 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14568 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14569 ac_eB='$%\1#\2define\3'
14573 if test "${CONFIG_HEADERS+set}" != set; then
14575 cat >> $CONFIG_STATUS <<EOF
14576 CONFIG_HEADERS="src/config.h lwlib/config.h"
14578 cat >> $CONFIG_STATUS <<\EOF
14580 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14585 *) ac_file_in="${ac_file}.in" ;;
14588 echo creating $ac_file
14590 rm -f conftest.frag conftest.in conftest.out
14591 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14592 cat $ac_file_inputs > conftest.in
14596 # Transform confdefs.h into a sed script conftest.vals that substitutes
14597 # the proper values into config.h.in to produce config.h. And first:
14598 # Protect against being on the right side of a sed subst in config.status.
14599 # Protect against being in an unquoted here document in config.status.
14600 rm -f conftest.vals
14601 cat > conftest.hdr <<\EOF
14604 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14608 sed -n -f conftest.hdr confdefs.h > conftest.vals
14611 # This sed command replaces #undef with comments. This is necessary, for
14612 # example, in the case of _POSIX_SOURCE, which is predefined and required
14613 # on some systems where configure will not decide to define it.
14614 cat >> conftest.vals <<\EOF
14615 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14618 # Break up conftest.vals because some shells have a limit on
14619 # the size of here documents, and old seds have small limits too.
14621 rm -f conftest.tail
14624 ac_lines=`grep -c . conftest.vals`
14625 # grep -c gives empty output for an empty file on some AIX systems.
14626 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14627 # Write a limited-size here document to conftest.frag.
14628 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14629 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14631 sed -f conftest.frag conftest.in > conftest.out
14633 mv conftest.out conftest.in
14634 ' >> $CONFIG_STATUS
14635 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14636 rm -f conftest.vals
14637 mv conftest.tail conftest.vals
14639 rm -f conftest.vals
14641 cat >> $CONFIG_STATUS <<\EOF
14642 rm -f conftest.frag conftest.h
14643 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14644 cat conftest.in >> conftest.h
14646 if cmp -s $ac_file conftest.h 2>/dev/null; then
14647 echo "$ac_file is unchanged"
14650 # Remove last slash and all that follows it. Not all systems have dirname.
14651 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14653 # The file is in a subdirectory.
14654 test ! -d "$ac_dir" && mkdir "$ac_dir"
14657 mv conftest.h $ac_file
14662 cat >> $CONFIG_STATUS <<EOF
14664 top_srcdir="$srcdir"
14665 MAKE_SUBDIR="$MAKE_SUBDIR"
14668 cat >> $CONFIG_STATUS <<\EOF
14669 for dir in . $MAKE_SUBDIR; do
14674 sed -e '/^# Generated/d' \
14675 -e 's%/\*\*/#.*%%' \
14690 echo creating $dir/Makefile
14691 $CPP -I. -I${top_srcdir}/src junk.c \
14692 | sed -e 's/^\#.*//' \
14693 -e 's/^[ ][ ]*$//'\
14695 | sed -n -e '/^..*$/p' \
14701 chmod 444 Makefile.new
14702 mv -f Makefile.new Makefile
14704 echo creating $dir/GNUmakefile
14705 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
14706 | sed -e 's/^\#.*//' \
14707 -e 's/^[ ][ ]*$//'\
14709 | sed -n -e '/^..*$/p' \
14715 chmod 444 Makefile.new
14716 mv -f Makefile.new GNUmakefile
14722 sed < config.status >> lib-src/config.values \
14723 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
14724 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
14725 -e 's/^\([^ ]*\) $/\1 ""/' \
14731 chmod +x $CONFIG_STATUS
14732 rm -fr confdefs* $ac_clean_files
14733 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1