3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
13 ### Don't edit this script!
14 ### This script was automatically generated by the `autoconf' program
15 ### from the file `./configure.in'.
16 ### To rebuild it, execute the command
18 ### in the this directory. You must have autoconf version 2.13 or later.
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
21 ### This file is part of XEmacs.
23 ### XEmacs is free software; you can redistribute it and/or modify it
24 ### under the terms of the GNU General Public License as published by
25 ### the Free Software Foundation; either version 2, or (at your
26 ### option) any later version.
28 ### XEmacs is distributed in the hope that it will be useful, but
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 ### General Public License for more details.
33 ### You should have received a copy of the GNU General Public License
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
38 ### For usage, run `./configure --help'
39 ### For more detailed information on building and installing XEmacs,
40 ### read the file `INSTALL'.
42 ### If configure succeeds, it leaves its status in config.status.
43 ### A log of configuration tests can be found in config.log.
44 ### If configure fails after disturbing the status quo,
45 ### config.status is removed.
48 --with-x use the X Window System"
52 if test -n "$ZSH_VERSION"; then
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
58 elif test -n "$BASH_VERSION"; then
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
73 program_transform_name=s,x,x,
84 SHELL=${CONFIG_SHELL-/bin/sh}
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
89 # File descriptor usage:
92 # 2 errors and warnings
93 # 3 some systems may open it to /dev/tty
94 # 4 used on the Kubota Titan
95 # 6 checking for... messages and results
96 # 5 compiler messages saved in config.log
97 if test "$silent" = yes; then
105 This file contains any messages produced by compilers while
106 running configure, to aid debugging if configure makes a mistake.
109 # Strip out --no-create and --no-recursion so they do not pile up.
110 # Also quote any args containing shell metacharacters.
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116 | --no-cr | --no-c) ;;
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
126 # Only set these to C if already set. These must not be set unconditionally
127 # because not all systems understand e.g. LANG=C (notably SCO).
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
129 # Non-C LC_CTYPE values break the ctype check.
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
136 rm -rf conftest* confdefs.h
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
140 # A filename unique to this package, relative to the directory that
141 # configure is in, which we can look for to find out if srcdir is correct.
142 ac_unique_file=src/lisp.h
144 # Find the source files, if location was not specified.
145 if test -z "$srcdir"; then
146 ac_srcdir_defaulted=yes
147 # Try the directory containing this script, then its parent.
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
152 if test ! -r $srcdir/$ac_unique_file; then
156 ac_srcdir_defaulted=no
158 if test ! -r $srcdir/$ac_unique_file; then
159 if test "$ac_srcdir_defaulted" = yes; then
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
167 # Prefer explicitly selected file to automatically selected ones.
168 if test -z "$CONFIG_SITE"; then
169 if test "x$prefix" != xNONE; then
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
175 for ac_site_file in $CONFIG_SITE; do
176 if test -r "$ac_site_file"; then
177 echo "loading site script $ac_site_file"
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
187 ac_cpp='$CPP '"$xe_cppflags"
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
203 ac_n= ac_c='\c' ac_t=
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
211 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
214 exec_prefix='${prefix}'
215 bindir='${exec_prefix}/bin'
216 datadir='${prefix}/lib'
217 statedir='${prefix}/lib'
218 libdir='${exec_prefix}/lib'
219 mandir='${prefix}/man/man1'
220 inststaticdir='${PROGNAME}'
221 instvardir='${PROGNAME}-${version}'
222 infodir='${datadir}/${instvardir}/info'
225 lispdir='${datadir}/${instvardir}/lisp'
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
229 pkgdir='${datadir}/${instvardir}/lisp'
231 etcdir='${datadir}/${instvardir}/etc'
232 archlibdir='${libdir}/${instvardir}/${configuration}'
233 docdir='${archlibdir}'
237 with_site_modules='yes'
243 cpp='' cppflags='' libs='' ldflags=''
249 with_system_malloc='default'
250 with_dlmalloc='default'
269 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c) ;;
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
278 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
279 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
283 while test $# != 0; do
286 --no-create|--no-recursion) ;;
290 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
291 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
296 val="yes" valomitted=yes
301 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
303 case "${valomitted}-${opt}" in yes-without_* )
304 opt=`echo $opt | sed 's/without/with/'`
305 valomitted="no" val="no" ;;
312 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 Option \`all' or \`none' must be first in the list.
474 The default is to autodetect native and NAS sound support."
475 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
476 elif test -n "$new_sdefault" ; then
477 with_native_sound=$new_sdefault
478 with_nas_sound=$new_sdefault
479 with_esd_sound=$new_sdefault
480 new_sdefault= # reset this
488 xa | xaw ) val=xaw ;;
489 3 | 3d | xaw3d ) val=3d ;;
490 ne | nex | next | naxtaw) val=next ;;
491 9 | 95 | xaw95 ) val=95 ;;
492 xp | xpm | xawxpm ) val=xpm ;;
493 * ) (echo "$progname: Usage error:"
494 echo " " "The \`--$optname' option must have one of these values:
495 \`xaw', \`3d', \`next', \`95', or \`xpm'."
496 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
503 y | ye | yes ) val=yes ;;
504 n | no | non | none ) val=no ;;
505 x | xl | xli | xlib ) val=xlib ;;
506 m | mo | mot | moti | motif ) val=motif ;;
507 * ) (echo "$progname: Usage error:"
508 echo " " "The \`--$optname' option must have one of these values:
509 \`motif', \`xlib', \`yes', or \`no'."
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
519 file | dot ) val=file ;;
520 locking ) val=locking ;;
521 * ) (echo "$progname: Usage error:"
522 echo " " "The \`--$optname' option must have one of these values:
523 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
531 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
533 n | no | non | none ) new_default=no ;;
534 a | al | all ) new_default=yes ;;
536 extents ) error_check_extents=yes ;;
537 noextents ) error_check_extents=no ;;
539 typecheck ) error_check_typecheck=yes ;;
540 notypecheck ) error_check_typecheck=no ;;
542 bufpos ) error_check_bufpos=yes ;;
543 nobufpos ) error_check_bufpos=no ;;
545 gc ) error_check_gc=yes ;;
546 nogc ) error_check_gc=no ;;
548 malloc ) error_check_malloc=yes ;;
549 nomalloc ) error_check_malloc=no ;;
551 byte_code ) error_check_byte_code=yes ;;
552 nobyte_code ) error_check_byte_code=no ;;
554 glyphs ) error_check_glyphs=yes ;;
555 noglyphs ) error_check_glyphs=no ;;
557 * ) bogus_error_check=yes ;;
559 if test "$bogus_error_check" -o \
560 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
561 if test "$error_check_default" = yes ; then
562 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
564 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
566 (echo "$progname: Usage error:"
567 echo " " "Valid types for the \`--$optname' option are:
569 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
570 elif test -n "$new_default" ; then
571 error_check_extents=$new_default
572 error_check_typecheck=$new_default
573 error_check_bufpos=$new_default
574 error_check_gc=$new_default
575 error_check_malloc=$new_default
576 error_check_byte_code=$new_default
577 error_check_glyphs=$new_default
578 new_default= # reset this
585 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
586 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
587 archlibdir | docdir | package_path | moduledir )
588 if test "$valomitted" = "yes"; then
589 if test "$#" = 0; then
590 (echo "$progname: Usage error:"
591 echo " " "The \`--$optname' option requires a value."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
599 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
600 Defining EXEC_PREFIX_USER_DEFINED
602 cat >> confdefs.h <<\EOF
603 #define EXEC_PREFIX_USER_DEFINED 1
607 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
608 Defining LISPDIR_USER_DEFINED
610 cat >> confdefs.h <<\EOF
611 #define LISPDIR_USER_DEFINED 1
615 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
616 Defining SITELISPDIR_USER_DEFINED
618 cat >> confdefs.h <<\EOF
619 #define SITELISPDIR_USER_DEFINED 1
623 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
624 Defining MODULEDIR_USER_DEFINED
626 cat >> confdefs.h <<\EOF
627 #define MODULEDIR_USER_DEFINED 1
631 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
632 Defining ETCDIR_USER_DEFINED
634 cat >> confdefs.h <<\EOF
635 #define ETCDIR_USER_DEFINED 1
639 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
640 Defining INFODIR_USER_DEFINED
642 cat >> confdefs.h <<\EOF
643 #define INFODIR_USER_DEFINED 1
647 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
648 Defining INFOPATH_USER_DEFINED
650 cat >> confdefs.h <<\EOF
651 #define INFOPATH_USER_DEFINED 1
655 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
656 Defining PACKAGE_PATH_USER_DEFINED
658 cat >> confdefs.h <<\EOF
659 #define PACKAGE_PATH_USER_DEFINED 1
664 { test "$extra_verbose" = "yes" && cat << \EOF
665 Defining INFODIR_USER_DEFINED
667 cat >> confdefs.h <<\EOF
668 #define INFODIR_USER_DEFINED 1
672 { test "$extra_verbose" = "yes" && cat << \EOF
673 Defining LISPDIR_USER_DEFINED
675 cat >> confdefs.h <<\EOF
676 #define LISPDIR_USER_DEFINED 1
680 { test "$extra_verbose" = "yes" && cat << \EOF
681 Defining MODULEDIR_USER_DEFINED
683 cat >> confdefs.h <<\EOF
684 #define MODULEDIR_USER_DEFINED 1
688 { test "$extra_verbose" = "yes" && cat << \EOF
689 Defining ETCDIR_USER_DEFINED
691 cat >> confdefs.h <<\EOF
692 #define ETCDIR_USER_DEFINED 1
696 { test "$extra_verbose" = "yes" && cat << \EOF
697 Defining DOCDIR_USER_DEFINED
699 cat >> confdefs.h <<\EOF
700 #define DOCDIR_USER_DEFINED 1
704 { test "$extra_verbose" = "yes" && cat << \EOF
705 Defining ARCHLIBDIR_USER_DEFINED
707 cat >> confdefs.h <<\EOF
708 #define ARCHLIBDIR_USER_DEFINED 1
712 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
713 Defining DOCDIR_USER_DEFINED
715 cat >> confdefs.h <<\EOF
716 #define DOCDIR_USER_DEFINED 1
720 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
721 Defining ARCHLIBDIR_USER_DEFINED
723 cat >> confdefs.h <<\EOF
724 #define ARCHLIBDIR_USER_DEFINED 1
733 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
736 "with_scrollbars" | \
740 l | lu | luc | luci | lucid ) val=lucid ;;
741 mo | mot | moti | motif ) val=motif ;;
742 a | at | ath | athe | athen | athena ) val=athena ;;
743 n | no | non | none ) val=no ;;
744 y | ye | yes ) val=yes ;;
746 g | gt | gtk ) val=gtk ;;
747 ms | msw ) val=msw ;;
748 * ) (echo "$progname: Usage error:"
749 echo " " "The \`--$optname' option must have one of these values:
750 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
756 "use_minimal_tagbits" | \
757 "use_indexed_lrecord_implementation" | \
759 "const_is_losing" | \
761 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
764 * ) (echo "$progname: Usage error:"
765 echo " " "Unrecognized option: $arg"
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
771 *-*-*) configuration="$arg" ;;
773 *) (echo "$progname: Usage error:"
774 echo " " "Unrecognized argument: $arg"
775 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
781 test -n "$cpp" && CPP="$cpp"
782 test -n "$cppflags" && CPPFLAGS="$cppflags"
783 test -n "$libs" && LIBS="$libs"
784 test -n "$ldflags" && LDFLAGS="$ldflags"
786 eval set x "$quoted_arguments"; shift
788 test "$extra_verbose" = "yes" && verbose=yes
790 test -n "$with_x" && with_x11="$with_x"
792 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
793 test "$with_system_malloc" = "default" && with_system_malloc=yes
798 if test "$with_cde $with_tooltalk" = "yes no"; then
799 (echo "$progname: Usage error:"
800 echo " " "--with-cde requires --with-tooltalk"
801 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
802 elif test "$with_tooltalk" = "no" ; then with_cde=no
803 elif test "$with_cde" = "yes"; then with_tooltalk=yes
810 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
811 if test -f "$dir/src/lisp.h" -a \
812 -f "$dir/lisp/version.el" ; then
817 if test -z "$srcdir" ; then
818 (echo "$progname: Usage error:"
819 echo " " "Neither the current directory nor its parent seem to
820 contain the XEmacs sources. If you do not want to build XEmacs in its
821 source tree, you should run \`$progname' in the directory in which
822 you wish to build XEmacs, using the \`--srcdir' option to say where the
823 sources may be found."
824 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 if test ! -f "$srcdir/src/lisp.h" -o \
830 ! -f "$srcdir/lisp/version.el" ; then
831 (echo "$progname: Usage error:"
832 echo " " "The directory specified with the \`--srcdir' option,
833 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
834 either run the \`$progname' script at the top of the XEmacs source
835 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
836 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
841 if test -z "$configuration"; then
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
843 if test -z "$configuration"; then
844 (echo "$progname: Usage error:"
845 echo " " "XEmacs has not been ported to this host type.
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
852 echo "configure:853: checking whether ln -s works" >&5
855 if ln -s X conftestdata 2>/dev/null
858 ac_cv_prog_LN_S="ln -s"
862 LN_S="$ac_cv_prog_LN_S"
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
864 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
870 for dir in lisp etc man info tests; do
871 if test ! -d "$dir" ; then
872 echo Making symbolic link to "$srcdir/$dir"
873 ${LN_S} "$srcdir/$dir" "$dir"
878 absolute_pwd="`pwd`";
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
881 else blddir="$absolute_pwd"; if test -d "/net"; then
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
883 blddir=`echo "$blddir" | \
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
891 . ) srcdir="$blddir" ;;
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
894 srcdir=`echo "$srcdir" | \
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
900 && test -f "$srcdir/src/config.h"; then
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
902 echo " as a build directory right now; it has been configured in its own"
903 echo " right. To configure in another directory as well, you MUST"
904 echo " use GNU make. If you do not have GNU make, then you must"
905 echo " now do \`make distclean' in $srcdir,"
906 echo " and then run $progname again.") >&2
907 extrasub='/^VPATH[ ]*=/c\
913 vpath %.in $(srcdir)'
916 . "$srcdir/version.sh" || exit 1;
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
918 : "${extra_verbose=$beta}"
919 version="${emacs_major_version}.${emacs_minor_version}"
920 { test "$extra_verbose" = "yes" && cat << EOF
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
923 cat >> confdefs.h <<EOF
924 #define EMACS_MAJOR_VERSION $emacs_major_version
928 { test "$extra_verbose" = "yes" && cat << EOF
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
931 cat >> confdefs.h <<EOF
932 #define EMACS_MINOR_VERSION $emacs_minor_version
936 if test -n "$emacs_beta_version" ; then
937 if test "$beta" = "yes"; then
938 version="${version}-b${emacs_beta_version}"
939 { test "$extra_verbose" = "yes" && cat << EOF
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
942 cat >> confdefs.h <<EOF
943 #define EMACS_BETA_VERSION $emacs_beta_version
948 version="${version}.${emacs_beta_version}"
949 { test "$extra_verbose" = "yes" && cat << EOF
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
952 cat >> confdefs.h <<EOF
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
959 { test "$extra_verbose" = "yes" && cat << EOF
960 Defining XEMACS_CODENAME = "$xemacs_codename"
962 cat >> confdefs.h <<EOF
963 #define XEMACS_CODENAME "$xemacs_codename"
967 { test "$extra_verbose" = "yes" && cat << EOF
968 Defining EMACS_VERSION = "$version"
970 cat >> confdefs.h <<EOF
971 #define EMACS_VERSION "$version"
976 if test "$with_infodock" = "yes"; then
977 if test ! -f ../../ID-INSTALL; then
978 echo "Cannot build InfoDock without InfoDock sources"
983 if test "$with_infodock" = "yes"; then
984 { test "$extra_verbose" = "yes" && cat << EOF
985 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
987 cat >> confdefs.h <<EOF
988 #define INFODOCK_MAJOR_VERSION $infodock_major_version
992 { test "$extra_verbose" = "yes" && cat << EOF
993 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
995 cat >> confdefs.h <<EOF
996 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1000 { test "$extra_verbose" = "yes" && cat << EOF
1001 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1003 cat >> confdefs.h <<EOF
1004 #define INFODOCK_BUILD_VERSION $infodock_build_version
1008 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1010 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1015 { test "$extra_verbose" = "yes" && cat << EOF
1016 Defining EMACS_PROGNAME = "$PROGNAME"
1018 cat >> confdefs.h <<EOF
1019 #define EMACS_PROGNAME "$PROGNAME"
1024 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1025 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1026 Defining ERROR_CHECK_EXTENTS
1028 cat >> confdefs.h <<\EOF
1029 #define ERROR_CHECK_EXTENTS 1
1033 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1034 Defining ERROR_CHECK_TYPECHECK
1036 cat >> confdefs.h <<\EOF
1037 #define ERROR_CHECK_TYPECHECK 1
1041 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1042 Defining ERROR_CHECK_BUFPOS
1044 cat >> confdefs.h <<\EOF
1045 #define ERROR_CHECK_BUFPOS 1
1049 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1050 Defining ERROR_CHECK_GC
1052 cat >> confdefs.h <<\EOF
1053 #define ERROR_CHECK_GC 1
1057 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1058 Defining ERROR_CHECK_MALLOC
1060 cat >> confdefs.h <<\EOF
1061 #define ERROR_CHECK_MALLOC 1
1065 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1066 Defining ERROR_CHECK_BYTE_CODE
1068 cat >> confdefs.h <<\EOF
1069 #define ERROR_CHECK_BYTE_CODE 1
1073 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1074 Defining ERROR_CHECK_GLYPHS
1076 cat >> confdefs.h <<\EOF
1077 #define ERROR_CHECK_GLYPHS 1
1081 if test "${debug:=$beta}" = "yes"; then
1082 use_assertions=yes memory_usage_stats=yes
1083 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1084 echo " xemacs will be linked with \"debug.o\""
1086 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1087 echo " xemacs will be linked with \"tests.o\""
1089 { test "$extra_verbose" = "yes" && cat << \EOF
1090 Defining DEBUG_XEMACS
1092 cat >> confdefs.h <<\EOF
1093 #define DEBUG_XEMACS 1
1098 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1099 Defining USE_ASSERTIONS
1101 cat >> confdefs.h <<\EOF
1102 #define USE_ASSERTIONS 1
1106 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1107 Defining MEMORY_USAGE_STATS
1109 cat >> confdefs.h <<\EOF
1110 #define MEMORY_USAGE_STATS 1
1116 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1117 echo "configure:1118: checking "host system type"" >&5
1118 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1119 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1120 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1121 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1122 echo "$ac_t""$configuration" 1>&6
1130 case "$canonical" in
1131 sparc-*-* ) machine=sparc ;;
1132 alpha*-*-* ) machine=alpha ;;
1133 vax-*-* ) machine=vax ;;
1134 mips-dec-* ) machine=pmax ;;
1135 mips-sgi-irix6* ) machine=iris6d ;;
1136 mips-sgi-* ) machine=iris4d ;;
1137 mips*-linux ) machine=mips ;;
1138 romp-ibm-* ) machine=ibmrt ;;
1139 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1140 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1141 powerpc*-* ) machine=powerpc ;;
1142 hppa-*-* ) machine=hp800 ;;
1143 m88k-dg-* ) machine=aviion ;;
1144 m68*-sony-* ) machine=news ;;
1145 mips-sony-* ) machine=news-risc ;;
1146 clipper-* ) machine=clipper ;;
1147 arm* ) machine=arm ;;
1148 ns32k-* ) machine=ns32000 ;;
1151 case "$canonical" in
1152 *-*-linux* ) opsys=linux ;;
1153 *-*-netbsd* ) opsys=netbsd ;;
1154 *-*-openbsd* ) opsys=openbsd ;;
1155 *-*-nextstep* ) opsys=nextstep ;;
1156 *-*-vms ) opsys=vms ;;
1158 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1159 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1160 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1161 *-dec-osf3* ) opsys=decosf3-1 ;;
1162 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1164 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1165 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1166 *-*-ultrix* ) opsys=ultrix4-3 ;;
1168 *-*-aix3.1* ) opsys=aix3-1 ;;
1169 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1170 *-*-aix3* ) opsys=aix3-2 ;;
1171 *-*-aix4.0* ) opsys=aix4 ;;
1172 *-*-aix4.1* ) opsys=aix4-1 ;;
1173 *-*-aix[4-9]* ) opsys=aix4-2 ;;
1175 *-gnu* ) opsys=gnu ;;
1176 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1177 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1178 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1179 *-*-aos4.2 ) opsys=bsd4-2 ;;
1180 *-*-aos* ) opsys=bsd4-3 ;;
1181 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1182 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1183 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1184 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1185 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1186 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1187 if test -z "$NON_GNU_CPP" ; then
1188 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1189 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1193 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1194 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1197 case "$canonical" in
1200 case "$canonical" in
1201 i[3-9]86-*-netbsd*) machine=intel386 ;;
1202 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1203 machine=hp9000s300 ;;
1204 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1205 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1210 case "${canonical}" in
1211 i386-*-openbsd*) machine=intel386 ;;
1212 m68k-*-openbsd*) machine=hp9000s300 ;;
1213 mipsel-*-openbsd*) machine=pmax ;;
1217 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1218 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1220 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1221 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1223 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1225 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1227 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1229 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1231 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1233 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1234 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1235 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1238 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1240 *-convex-bsd* | *-convex-convexos* )
1241 machine=convex opsys=bsd4-3
1242 NON_GNU_CPP="cc -E -P"
1245 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1249 RANLIB="ranlib -c" ;;
1251 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1252 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1253 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1254 m88k-dg-dgux* ) opsys=dgux ;;
1256 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1257 m88k-motorola-sysv4* )
1258 machine=delta88k opsys=usg5-4-2
1260 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1262 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1263 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1265 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1267 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1268 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1269 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1272 case "`uname -r`" in
1273 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1274 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1276 NON_GNU_CPP="/lib/cpp"
1278 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1279 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1281 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1283 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1286 case "$canonical" in
1287 m68* ) machine=hp9000s300 ;;
1288 hppa* ) machine=hp800 ;;
1291 case "$canonical" in
1292 *-hp-hpux7* ) opsys=hpux ;;
1293 *-hp-hpux8* ) opsys=hpux8 ;;
1294 *-hp-hpux9* ) opsys=hpux9 ;;
1295 *-hp-hpux10* ) opsys=hpux10 ;;
1296 *-hp-hpux11* ) opsys=hpux11 ;;
1300 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1301 echo " xemacs will be linked with \"strcat.o\""
1304 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1305 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1306 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1308 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1311 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1312 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1314 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1315 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1316 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1317 romp-ibm-aos* ) opsys=bsd4-3 ;;
1318 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1319 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1321 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1322 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1324 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1326 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1328 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1330 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1332 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1334 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1336 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1338 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1340 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1342 mips-mips-usg* ) machine=mips4 ;;
1345 NON_GNU_CC="cc -systype bsd43"
1346 NON_GNU_CPP="cc -systype bsd43 -E"
1347 case "$canonical" in
1348 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1349 mips-mips-riscos5* ) opsys=riscos5 ;;
1352 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1353 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1355 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1357 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1359 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1360 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1362 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1364 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1366 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1368 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1370 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1371 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1373 mips-siemens-sysv* | mips-sni-sysv*)
1374 machine=mips-siemens opsys=usg5-4
1375 NON_GNU_CC=/usr/ccs/bin/cc
1376 NON_GNU_CPP=/usr/ccs/lib/cpp
1381 NON_GNU_CC=/usr/ccs/bin/cc
1382 NON_GNU_CPP=/usr/ccs/lib/cpp
1385 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1386 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1387 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1388 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1389 mips-sgi-irix6* ) opsys=irix6-0 ;;
1390 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1391 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1392 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1393 mips-sgi-irix* ) opsys=irix5-0 ;;
1395 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1396 *-sony-news* ) opsys=newsos5 ;;
1398 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1400 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1401 case "$canonical" in
1402 m68*-sunos1* ) machine=sun1 ;;
1403 m68*-sunos2* ) machine=sun2 ;;
1404 m68* ) machine=sun3 ;;
1405 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1406 i*86-*-* ) machine=intel386 ;;
1407 rs6000* ) machine=rs6000 ;;
1410 case "$canonical" in *-sunos5*)
1411 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1414 case "$canonical" in
1416 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1419 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1423 case "$canonical" in
1426 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1427 { test "$extra_verbose" = "yes" && cat << EOF
1428 Defining OS_RELEASE = $os_release
1430 cat >> confdefs.h <<EOF
1431 #define OS_RELEASE $os_release
1436 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1437 *-sunos4.0* ) opsys=sunos4-0 ;;
1438 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1439 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1440 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1441 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1442 *-mach* ) opsys=mach-bsd4-3 ;;
1446 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1448 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1451 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1453 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1454 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1456 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1458 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1460 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1461 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1463 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1465 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1468 case "$canonical" in
1469 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1470 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1471 *-mach* ) opsys=mach-bsd4-3 ;;
1475 ns16k-whitechapel-* ) machine=mg1 ;;
1477 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1481 case "$canonical" in
1482 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1483 *-isc2.2* ) opsys=isc2-2 ;;
1484 *-isc4.0* ) opsys=isc4-0 ;;
1485 *-isc4.* ) opsys=isc4-1
1486 GCC_TEST_OPTIONS=-posix
1487 NON_GCC_TEST_OPTIONS=-Xp
1489 *-isc* ) opsys=isc3-0 ;;
1490 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1491 *-esix* ) opsys=esix ;;
1492 *-mach* ) opsys=mach-bsd4-3 ;;
1493 *-xenix* ) opsys=xenix ;;
1494 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1495 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1496 *-bsdi4* ) opsys=bsdos4 ;;
1497 *-bsdi3* ) opsys=bsdos3 ;;
1498 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1499 *-bsdi2* ) opsys=bsdos2 ;;
1500 *-sco3.2v5* ) opsys=sco5 ;;
1501 *-sysv5* ) opsys=sco7 ;;
1502 *-386bsd* ) opsys=386bsd ;;
1503 *-freebsd* ) opsys=freebsd ;;
1504 *-nextstep* ) opsys=nextstep ;;
1505 *-pc-cygwin* ) opsys=cygwin32 ;;
1506 *-pc-mingw* ) opsys=mingw32 ;
1507 test -z "$with_tty" && with_tty="no";;
1511 m68k-*-linux* ) machine=m68k opsys=linux ;;
1515 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1517 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1519 if test -r "${srcdir}/src/m/${machine}.h"; then
1520 machfile="m/${machine}.h"
1521 { test "$extra_verbose" = "yes" && cat << EOF
1522 Defining config_machfile = "$machfile"
1524 cat >> confdefs.h <<EOF
1525 #define config_machfile "$machfile"
1530 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1531 echo "Using configure-time autodetection only."
1534 if test -r "${srcdir}/src/s/${opsys}.h"; then
1535 opsysfile="s/${opsys}.h"
1536 { test "$extra_verbose" = "yes" && cat << EOF
1537 Defining config_opsysfile = "$opsysfile"
1539 cat >> confdefs.h <<EOF
1540 #define config_opsysfile "$opsysfile"
1545 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1546 echo "Using configure-time autodetection only."
1550 if test -z "$pdump"; then
1552 linux* ) pdump=yes ;; darwin ) pdump=yes ;; *) pdump=no ;;
1556 if test -z "$dynamic"; then
1558 hpux* | sunos4* ) dynamic=no ;;
1562 if test "$dynamic" = "yes"; then
1564 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1565 decosf* ) ld_call_shared="-call_shared" ;;
1566 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
1567 Defining DLSYM_NEEDS_UNDERSCORE
1569 cat >> confdefs.h <<\EOF
1570 #define DLSYM_NEEDS_UNDERSCORE 1
1575 else case "$opsys" in
1577 echo "Static linking is not supported on Solaris 2."
1578 echo "Rerun configure without specifying --dynamic=no."
1580 linux ) ld_call_shared="-Bstatic" ;;
1581 decosf* ) ld_call_shared="-non_shared" ;;
1585 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1587 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1588 { test "$extra_verbose" = "yes" && cat << EOF
1589 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1591 cat >> confdefs.h <<EOF
1592 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1598 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1599 if test "$with_workshop $with_tooltalk" = "yes no"; then
1600 (echo "$progname: Usage error:"
1601 echo " " "--with-workshop requires --with-tooltalk"
1602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1603 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1604 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1607 if test "$with_workshop" = "yes"; then
1608 { test "$extra_verbose" = "yes" && cat << \EOF
1611 cat >> confdefs.h <<\EOF
1616 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1617 echo " xemacs will be linked with \"sunpro.o\""
1621 if test "$with_clash_detection" != "no"; then
1622 { test "$extra_verbose" = "yes" && cat << \EOF
1623 Defining CLASH_DETECTION
1625 cat >> confdefs.h <<\EOF
1626 #define CLASH_DETECTION 1
1630 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1631 echo " xemacs will be linked with \"filelock.o\""
1635 test -n "$compiler" && CC="$compiler"
1636 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1639 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1640 if test "${CFLAGS-unset}" != unset
1641 then cflags_specified=yes;
1642 else cflags_specified=no;
1645 xe_save_CFLAGS="$CFLAGS"
1647 # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2
1649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1650 echo "configure:1651: checking for $ac_word" >&5
1652 if test -n "$CC"; then
1653 ac_cv_prog_CC="$CC" # Let the user override the test.
1655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1657 for ac_dir in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir=.
1659 if test -f $ac_dir/$ac_word; then
1667 if test -n "$CC"; then
1668 echo "$ac_t""$CC" 1>&6
1670 echo "$ac_t""no" 1>&6
1673 if test -z "$CC"; then
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1685 for ac_dir in $ac_dummy; do
1686 test -z "$ac_dir" && ac_dir=.
1687 if test -f $ac_dir/$ac_word; then
1688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1689 ac_prog_rejected=yes
1697 if test $ac_prog_rejected = yes; then
1698 # We found a bogon in the path, so make sure we never use it.
1699 set dummy $ac_cv_prog_CC
1701 if test $# -gt 0; then
1702 # We chose a different compiler from the bogus one.
1703 # However, it has the same basename, so the bogon will be chosen
1704 # first if we set CC to just the basename; use the full file name.
1706 set dummy "$ac_dir/$ac_word" "$@"
1713 if test -n "$CC"; then
1714 echo "$ac_t""$CC" 1>&6
1716 echo "$ac_t""no" 1>&6
1719 if test -z "$CC"; then
1720 case "`uname -s`" in
1722 # Extract the first word of "cl", so it can be a program name with args.
1723 set dummy cl; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1727 if test -n "$CC"; then
1728 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1732 for ac_dir in $ac_dummy; do
1733 test -z "$ac_dir" && ac_dir=.
1734 if test -f $ac_dir/$ac_word; then
1742 if test -n "$CC"; then
1743 echo "$ac_t""$CC" 1>&6
1745 echo "$ac_t""no" 1>&6
1750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1754 echo "configure:1755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1757 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1758 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1759 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1760 ac_cpp='$CPP '"$xe_cppflags"
1761 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1762 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1765 cat > conftest.$ac_ext << EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 ac_cv_prog_cc_works=yes
1774 # If we can't run a trivial program, we are probably using a cross compiler.
1775 if (./conftest; exit) 2>/dev/null; then
1776 ac_cv_prog_cc_cross=no
1778 ac_cv_prog_cc_cross=yes
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 ac_cv_prog_cc_works=no
1787 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1788 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1789 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1790 ac_cpp='$CPP '"$xe_cppflags"
1791 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1792 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1796 if test $ac_cv_prog_cc_works = no; then
1797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1802 cross_compiling=$ac_cv_prog_cc_cross
1804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether we are using GNU C" >&5
1807 cat > conftest.c <<EOF
1812 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1818 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1820 if test $ac_cv_prog_gcc = yes; then
1826 ac_test_CFLAGS="${CFLAGS+set}"
1827 ac_save_CFLAGS="$CFLAGS"
1829 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether ${CC-cc} accepts -g" >&5
1832 echo 'void f(){}' > conftest.c
1833 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1842 if test "$ac_test_CFLAGS" = set; then
1843 CFLAGS="$ac_save_CFLAGS"
1844 elif test $ac_cv_prog_cc_g = yes; then
1845 if test "$GCC" = yes; then
1851 if test "$GCC" = yes; then
1858 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_word" >&5
1865 if test -n "$CC"; then
1866 ac_cv_prog_CC="$CC" # Let the user override the test.
1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 for ac_dir in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir=.
1872 if test -f $ac_dir/$ac_word; then
1880 if test -n "$CC"; then
1881 echo "$ac_t""$CC" 1>&6
1883 echo "$ac_t""no" 1>&6
1886 if test -z "$CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 for ac_dir in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1902 ac_prog_rejected=yes
1910 if test $ac_prog_rejected = yes; then
1911 # We found a bogon in the path, so make sure we never use it.
1912 set dummy $ac_cv_prog_CC
1914 if test $# -gt 0; then
1915 # We chose a different compiler from the bogus one.
1916 # However, it has the same basename, so the bogon will be chosen
1917 # first if we set CC to just the basename; use the full file name.
1919 set dummy "$ac_dir/$ac_word" "$@"
1926 if test -n "$CC"; then
1927 echo "$ac_t""$CC" 1>&6
1929 echo "$ac_t""no" 1>&6
1932 if test -z "$CC"; then
1933 case "`uname -s`" in
1935 # Extract the first word of "cl", so it can be a program name with args.
1936 set dummy cl; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1955 if test -n "$CC"; then
1956 echo "$ac_t""$CC" 1>&6
1958 echo "$ac_t""no" 1>&6
1963 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1966 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1967 echo "configure:1968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1970 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1971 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1972 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1973 ac_cpp='$CPP '"$xe_cppflags"
1974 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1975 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1978 cat > conftest.$ac_ext << EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 ac_cv_prog_cc_works=yes
1987 # If we can't run a trivial program, we are probably using a cross compiler.
1988 if (./conftest; exit) 2>/dev/null; then
1989 ac_cv_prog_cc_cross=no
1991 ac_cv_prog_cc_cross=yes
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 ac_cv_prog_cc_works=no
2000 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2001 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2002 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2003 ac_cpp='$CPP '"$xe_cppflags"
2004 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2005 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2008 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2009 if test $ac_cv_prog_cc_works = no; then
2010 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2013 echo "configure:2014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2014 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2015 cross_compiling=$ac_cv_prog_cc_cross
2017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether we are using GNU C" >&5
2020 cat > conftest.c <<EOF
2025 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2033 if test $ac_cv_prog_gcc = yes; then
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2045 echo 'void f(){}' > conftest.c
2046 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2054 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS="$ac_save_CFLAGS"
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2064 if test "$GCC" = yes; then
2071 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_word" >&5
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2093 if test -n "$CC"; then
2094 echo "$ac_t""$CC" 1>&6
2096 echo "$ac_t""no" 1>&6
2099 if test -z "$CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_word" >&5
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 for ac_dir in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir=.
2113 if test -f $ac_dir/$ac_word; then
2114 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2115 ac_prog_rejected=yes
2123 if test $ac_prog_rejected = yes; then
2124 # We found a bogon in the path, so make sure we never use it.
2125 set dummy $ac_cv_prog_CC
2127 if test $# -gt 0; then
2128 # We chose a different compiler from the bogus one.
2129 # However, it has the same basename, so the bogon will be chosen
2130 # first if we set CC to just the basename; use the full file name.
2132 set dummy "$ac_dir/$ac_word" "$@"
2139 if test -n "$CC"; then
2140 echo "$ac_t""$CC" 1>&6
2142 echo "$ac_t""no" 1>&6
2145 if test -z "$CC"; then
2146 case "`uname -s`" in
2148 # Extract the first word of "cl", so it can be a program name with args.
2149 set dummy cl; ac_word=$2
2150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_word" >&5
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2158 for ac_dir in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir=.
2160 if test -f $ac_dir/$ac_word; then
2168 if test -n "$CC"; then
2169 echo "$ac_t""$CC" 1>&6
2171 echo "$ac_t""no" 1>&6
2176 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2179 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2180 echo "configure:2181: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2186 ac_cpp='$CPP '"$xe_cppflags"
2187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2191 cat > conftest.$ac_ext << EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199 ac_cv_prog_cc_works=yes
2200 # If we can't run a trivial program, we are probably using a cross compiler.
2201 if (./conftest; exit) 2>/dev/null; then
2202 ac_cv_prog_cc_cross=no
2204 ac_cv_prog_cc_cross=yes
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 ac_cv_prog_cc_works=no
2213 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2214 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2215 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2216 ac_cpp='$CPP '"$xe_cppflags"
2217 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2218 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2221 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2222 if test $ac_cv_prog_cc_works = no; then
2223 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2225 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2226 echo "configure:2227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2227 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2228 cross_compiling=$ac_cv_prog_cc_cross
2230 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether we are using GNU C" >&5
2233 cat > conftest.c <<EOF
2238 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2244 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2246 if test $ac_cv_prog_gcc = yes; then
2252 ac_test_CFLAGS="${CFLAGS+set}"
2253 ac_save_CFLAGS="$CFLAGS"
2255 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2256 echo "configure:2257: checking whether ${CC-cc} accepts -g" >&5
2258 echo 'void f(){}' > conftest.c
2259 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2267 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2268 if test "$ac_test_CFLAGS" = set; then
2269 CFLAGS="$ac_save_CFLAGS"
2270 elif test $ac_cv_prog_cc_g = yes; then
2271 if test "$GCC" = yes; then
2277 if test "$GCC" = yes; then
2285 CFLAGS="$xe_save_CFLAGS"
2288 test -n "$CPP" -a -d "$CPP" && CPP=
2290 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2292 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2293 echo "configure:2294: checking how to run the C preprocessor" >&5
2294 # On Suns, sometimes $CPP names a directory.
2295 if test -n "$CPP" && test -d "$CPP"; then
2298 if test -z "$CPP"; then
2300 # This must be in double quotes, not single quotes, because CPP may get
2301 # substituted into the Makefile and "${CC-cc}" will confuse make.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp.
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 CPP="${CC-cc} -E -traditional-cpp"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 CPP="${CC-cc} -nologo -E"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2346 { (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2348 if test -z "$ac_err"; then
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2362 ac_cv_prog_CPP="$CPP"
2363 CPP="$ac_cv_prog_CPP"
2365 ac_cv_prog_CPP="$CPP"
2367 echo "$ac_t""$CPP" 1>&6
2371 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2372 echo "configure:2373: checking for AIX" >&5
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2382 egrep "yes" >/dev/null 2>&1; then
2384 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2385 Defining _ALL_SOURCE
2387 cat >> confdefs.h <<\EOF
2388 #define _ALL_SOURCE 1
2394 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2401 echo "configure:2402: checking for GNU libc" >&5
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <features.h>
2408 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2409 #error Not a GNU libc system :-(
2410 ******* ======= ******** &&&&&&&&
2415 if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2425 echo "$ac_t""$have_glibc" 1>&6
2426 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2427 Defining _GNU_SOURCE
2429 cat >> confdefs.h <<\EOF
2430 #define _GNU_SOURCE 1
2437 { test "$extra_verbose" = "yes" && cat << \EOF
2438 Defining __EXTENSIONS__
2440 cat >> confdefs.h <<\EOF
2441 #define __EXTENSIONS__ 1
2445 if test "$os_release" -ge 55; then
2446 { test "$extra_verbose" = "yes" && cat << \EOF
2447 Defining _XOPEN_SOURCE = 500
2449 cat >> confdefs.h <<\EOF
2450 #define _XOPEN_SOURCE 500
2454 { test "$extra_verbose" = "yes" && cat << \EOF
2455 Defining _XOPEN_SOURCE_EXTENDED
2457 cat >> confdefs.h <<\EOF
2458 #define _XOPEN_SOURCE_EXTENDED 1
2464 { test "$extra_verbose" = "yes" && cat << \EOF
2465 Defining _POSIX_C_SOURCE = 199506L
2467 cat >> confdefs.h <<\EOF
2468 #define _POSIX_C_SOURCE 199506L
2472 { test "$extra_verbose" = "yes" && cat << \EOF
2473 Defining _XOPEN_SOURCE = 500
2475 cat >> confdefs.h <<\EOF
2476 #define _XOPEN_SOURCE 500
2480 { test "$extra_verbose" = "yes" && cat << \EOF
2481 Defining _XOPEN_SOURCE_EXTENDED
2483 cat >> confdefs.h <<\EOF
2484 #define _XOPEN_SOURCE_EXTENDED 1
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2495 #if defined __SUNPRO_C
2497 #elif defined __DECC
2499 #elif defined __USLC__ && defined __SCO_VERSION__
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 case "$conftest_rc" in
2515 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2516 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2517 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2525 echo "Extracting information from the machine- and system-dependent headers..."
2527 tempcname="conftest.c"
2531 cat > $tempcname < confdefs.h
2532 cat >> $tempcname <<EOF
2534 #define C_SWITCH_SITE
2535 #define C_SWITCH_X_SITE
2536 #define LD_SWITCH_SITE
2537 #define LD_SWITCH_X_SITE
2538 #define LD_SWITCH_X_SITE_AUX
2539 #define OS_RELEASE $os_release
2541 #ifdef config_opsysfile
2542 #include "$srcdir/src/$opsysfile"
2545 #ifdef config_machfile
2546 #include "$srcdir/src/$machfile"
2549 #ifndef LIBS_MACHINE
2550 #define LIBS_MACHINE
2552 configure___ libs_machine=LIBS_MACHINE
2557 configure___ libs_system=LIBS_SYSTEM
2559 #ifndef LIBS_TERMCAP
2560 #define LIBS_TERMCAP
2562 configure___ libs_termcap=LIBS_TERMCAP
2564 #ifndef LIB_STANDARD
2565 #define LIB_STANDARD
2567 configure___ libs_standard=LIB_STANDARD
2570 #ifndef OBJECTS_MACHINE
2571 #define OBJECTS_MACHINE
2573 configure___ objects_machine=OBJECTS_MACHINE
2575 #ifndef OBJECTS_SYSTEM
2576 #define OBJECTS_SYSTEM
2578 configure___ objects_system=OBJECTS_SYSTEM
2581 #ifndef C_SWITCH_MACHINE
2582 #define C_SWITCH_MACHINE
2584 configure___ c_switch_machine=C_SWITCH_MACHINE
2586 #ifndef C_SWITCH_SYSTEM
2587 #define C_SWITCH_SYSTEM
2589 configure___ c_switch_system=C_SWITCH_SYSTEM
2592 #ifndef LD_SWITCH_MACHINE
2593 #define LD_SWITCH_MACHINE
2595 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2597 #ifndef LD_SWITCH_SYSTEM
2598 #define LD_SWITCH_SYSTEM
2600 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2604 #define UNEXEC "unexec.o"
2606 configure___ unexec=UNEXEC
2609 #ifndef LD_SWITCH_SHARED
2610 #define LD_SWITCH_SHARED "-c"
2612 configure___ ld_switch_shared=LD_SWITCH_SHARED
2615 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2616 configure___ ordinary_ld=ORDINARY_LD
2618 #ifdef ORDINARY_LINK
2619 #define LD ORDINARY_LD
2620 #else /* no ORDINARY LINK */
2621 #ifdef COFF_ENCAPSULATE
2622 #define LD "\$(CC) -nostdlib"
2623 #else /* not COFF_ENCAPSULATE */
2626 #else /* ! defined (LINKER) */
2628 #endif /* ! defined (LINKER) */
2629 #endif /* ! defined (COFF_ENCAPSULATE) */
2630 #endif /* not ORDINARY_LINK */
2636 configure___ lib_gcc=LIB_GCC
2638 #ifndef LD_TEXT_START_ADDR
2639 #define LD_TEXT_START_ADDR
2641 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2644 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2646 #ifdef COFF_ENCAPSULATE
2647 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2648 #else /* ! defined (COFF_ENCAPSULATE) */
2649 #define START_FILES "pre-crt0.o /lib/crt0.o"
2650 #endif /* ! defined (COFF_ENCAPSULATE) */
2651 #else /* ! defined (NO_REMAP) */
2652 #define START_FILES "ecrt0.o"
2653 #endif /* ! defined (NO_REMAP) */
2654 #endif /* no ORDINARY_LINK */
2658 configure___ start_files=START_FILES
2660 #ifdef ORDINARY_LINK
2661 configure___ ordinary_link=yes
2663 configure___ ordinary_link=no
2666 #ifdef SYSTEM_MALLOC
2667 configure___ system_malloc=yes
2669 configure___ system_malloc=no
2673 configure___ have_terminfo=yes
2675 configure___ have_terminfo=no
2678 #ifdef MAIL_USE_FLOCK
2679 configure___ mail_use_flock=yes
2681 configure___ mail_use_flock=no
2684 #ifdef MAIL_USE_LOCKF
2685 configure___ mail_use_lockf=yes
2687 configure___ mail_use_lockf=no
2690 #ifdef MAIL_USE_LOCKING
2691 configure___ mail_use_locking=yes
2693 configure___ mail_use_locking=no
2696 #ifdef HAVE_WIN32_PROCESSES
2697 configure___ win32_processes=yes
2699 configure___ win32_processes=no
2704 CPP=`eval "echo $CPP $CPPFLAGS"`
2705 eval `$CPP -Isrc $tempcname \
2706 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2710 if test "$pdump" = "yes"; then
2719 test "$extra_verbose" = "yes" && \
2720 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 ""
2722 case "$opsys" in mingw* | cygwin*)
2723 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2724 cygwin_include=`eval "dirname $cygwin_include"` ;
2725 cygwin_include="-I$cygwin_include/../include" ;
2726 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2727 case "$opsys" in mingw*)
2728 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2733 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2736 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2738 if test "$__USLC__" = yes; then
2739 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2740 echo "configure:2741: checking for whether the -Kalloca compiler flag is needed" >&5
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2747 void *x = alloca(4);
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2758 xe_save_c_switch_system="$c_switch_system"
2759 c_switch_system="$c_switch_system -Kalloca"
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2765 void *x = alloca(4);
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2776 c_switch_system="$xe_save_c_switch_system"
2779 echo "$ac_t""$need_kalloca" 1>&6
2780 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2783 if test "$cflags_specified" = "no"; then
2784 if test "$GCC" = "yes"; then
2785 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2786 CFLAGS="$CFLAGS -Wsign-compare"
2787 if test "$xemacs_compiler" != "g++"; then
2788 CFLAGS="$CFLAGS -Wshadow"
2790 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2791 elif test "$__SUNPRO_C" = "yes"; then
2793 sol2 ) CFLAGS="-v -xO4" ;;
2794 sunos4* ) CFLAGS="-xO2";;
2796 elif test "$__DECC" = "yes"; then
2798 elif test "$CC" = "xlc"; then
2799 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2804 if test "$GCC" = "yes"; then
2805 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2806 echo "configure:2807: checking for buggy gcc versions" >&5
2807 GCC_VERSION=`$CC --version`
2808 case `uname -s`:`uname -m`:$GCC_VERSION in
2809 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2813 *-fno-schedule-insns*) ;;
2815 echo "$ac_t""yes" 1>&6
2816 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2817 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2818 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2824 Linux:alpha:egcs-2.91.*)
2825 echo "$ac_t""yes" 1>&6
2826 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2827 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2828 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2833 case "$GCC_VERSION" in
2836 *-fno-strength-reduce*) ;;
2838 echo "$ac_t""yes" 1>&6
2839 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2840 echo "configure: warning: -fno-strength-reduce." 1>&2
2841 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2847 *-fno-caller-saves*) ;;
2849 echo "$ac_t""yes" 1>&6
2850 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2851 echo "configure: warning: -fno-caller-saves." 1>&2
2852 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2859 echo "$ac_t""no" 1>&6
2862 if test "$pdump" != "yes"; then
2863 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2864 echo "configure:2865: checking for \"-z nocombreloc\" linker flag" >&5
2865 case "`ld --help 2>&1`" in
2866 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2867 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2868 *) echo "$ac_t""no" 1>&6 ;;
2874 if test "$GCC" = "yes"; then
2875 set x $ld_switch_system; shift; ld_switch_system=""
2876 while test -n "$1"; do
2878 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2879 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2881 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2887 if test "$GCC" = "yes"; then
2888 set x $ld_switch_machine; shift; ld_switch_machine=""
2889 while test -n "$1"; do
2891 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2892 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2894 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2900 if test "$GCC" = "yes"; then
2901 set x $ld_switch_site; shift; ld_switch_site=""
2902 while test -n "$1"; do
2904 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2905 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2907 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2913 if test "$GCC" = "yes"; then
2914 set x $LDFLAGS; shift; LDFLAGS=""
2915 while test -n "$1"; do
2917 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2918 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2920 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2926 if test "$GCC" = "yes"; then
2927 set x $ld_call_shared; shift; ld_call_shared=""
2928 while test -n "$1"; do
2930 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2931 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2933 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2939 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2940 echo " xemacs will be linked with \"$objects_machine\""
2942 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2943 echo " xemacs will be linked with \"$objects_system\""
2945 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2946 echo " xemacs will be linked with \"$unexec\""
2948 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2949 echo " xemacs will be linked with \"dumper.o\""
2952 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2953 echo "configure:2954: checking for dynodump" >&5
2954 if test "$unexec" != "unexsol2.o"; then
2955 echo "$ac_t""no" 1>&6
2957 echo "$ac_t""yes" 1>&6
2958 { test "$extra_verbose" = "yes" && cat << \EOF
2961 cat >> confdefs.h <<\EOF
2966 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2967 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2969 sparc ) dynodump_arch=sparc ;;
2970 *86* ) dynodump_arch=i386 ;;
2971 powerpc ) dynodump_arch=ppc ;;
2973 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
2977 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2979 if test "$unexec" = "unexaix.o"; then
2980 if test "$dynamic" = "no"; then
2981 start_flags="-Wl,-bnso,-bnodelcsect"
2982 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2983 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2984 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2986 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2987 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2990 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2991 echo "configure:2992: checking for terminateAndUnload in -lC" >&5
2992 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2994 xe_check_libs=" -lC "
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 /* Override any gcc2 internal prototype to avoid an error. */
2999 /* We use char because int might match the return type of a gcc2
3000 builtin and then its argument prototype would still apply. */
3001 char terminateAndUnload();
3004 terminateAndUnload()
3007 if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3009 eval "ac_cv_lib_$ac_lib_var=yes"
3011 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3014 eval "ac_cv_lib_$ac_lib_var=no"
3019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3020 echo "$ac_t""yes" 1>&6
3021 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3023 echo "$ac_t""no" 1>&6
3028 elif test -n "$ld_text_start_addr"; then
3029 start_flags="-T $ld_text_start_addr -e __start"
3035 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3036 test -z "$linker" && linker='$(CC) -nostdlib'
3037 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3039 test "$GCC" != "yes" && lib_gcc=
3045 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3046 if test -n "$site_libraries"; then
3047 for arg in $site_libraries; do
3050 * ) test -d "$arg" || \
3051 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3054 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3058 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3059 if test -n "$site_includes"; then
3060 for arg in $site_includes; do
3063 * ) test -d "$arg" || \
3064 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3067 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3071 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3072 if test -n "$site_prefixes"; then
3073 for dir in $site_prefixes; do
3074 lib_dir="${dir}/lib"
3075 inc_dir="${dir}/include"
3076 if test ! -d "$dir"; then
3077 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3078 elif test ! -d "$lib_dir"; then
3079 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3081 if test -d "$inc_dir"; then
3082 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
3084 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
3090 for dir in "/usr/ccs/lib"; do
3091 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
3094 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3095 if test -n "$site_runtime_libraries"; then
3096 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3104 if test -n "$add_runtime_path"; then :;
3105 elif test "$dynamic" = "no"; then add_runtime_path=no
3106 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3107 else case "$opsys" in
3108 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3109 * ) add_runtime_path=no ;;
3113 if test "$add_runtime_path" = "yes"; then
3114 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3115 echo "configure:3116: checking "for runtime libraries flag"" >&5
3117 sol2 ) dash_r="-R" ;;
3118 decosf* | linux* | irix*) dash_r="-rpath " ;;
3121 for try_dash_r in "-R" "-R " "-rpath "; do
3122 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3124 if test "$GCC" = "yes"; then
3125 set x $xe_check_libs; shift; xe_check_libs=""
3126 while test -n "$1"; do
3128 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3129 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3131 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 dash_r="$try_dash_r"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3153 test -n "$dash_r" && break
3156 if test -n "$dash_r";
3157 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3158 else echo "$ac_t""NONE" 1>&6
3162 xe_add_unique_runpath_dir='
3164 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3166 if test "$xe_add_p" = "yes"; then
3167 test -n "$runpath" && runpath="${runpath}:"
3168 runpath="${runpath}${xe_runpath_dir}"
3169 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3175 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3176 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3177 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3179 runpath="" runpath_dirs=""
3180 if test -n "$LD_RUN_PATH"; then
3181 runpath="$LD_RUN_PATH"
3182 elif test "$GCC" = "yes"; then
3183 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3184 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3185 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3186 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3187 case "$arg" in P,* | -L* | -R* )
3188 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3190 xe_runpath_dir="$dir"
3191 test "$xe_runpath_dir" != "/lib" -a \
3192 "$xe_runpath_dir" != "/usr/lib" -a \
3193 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3194 eval "$xe_add_unique_runpath_dir"
3199 ld_switch_run="$ld_switch_run_save"
3202 for arg in $ld_switch_site $ld_switch_x_site; do
3203 case "$arg" in -L*) {
3204 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3205 test "$xe_runpath_dir" != "/lib" -a \
3206 "$xe_runpath_dir" != "/usr/lib" -a \
3207 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3208 eval "$xe_add_unique_runpath_dir"
3211 if test "$opsys $need_motif" = "sol2 yes"; then
3212 xe_runpath_dir="/opt/SUNWdt/lib";
3213 eval "$xe_add_unique_runpath_dir";
3216 if test -n "$runpath"; then
3217 ld_switch_run="${dash_r}${runpath}"
3219 if test "$GCC" = "yes"; then
3220 set x $ld_switch_run; shift; ld_switch_run=""
3221 while test -n "$1"; do
3223 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3224 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3226 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3231 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3238 if test "$with_dlmalloc" != "no"; then
3243 after_morecore_hook_exists=yes
3244 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3245 echo "configure:3246: checking for malloc_set_state" >&5
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* System header to define __stub macros and hopefully few prototypes,
3251 which can conflict with char malloc_set_state(); below. */
3253 /* Override any gcc2 internal prototype to avoid an error. */
3254 /* We use char because int might match the return type of a gcc2
3255 builtin and then its argument prototype would still apply. */
3256 char malloc_set_state();
3260 /* The GNU C library defines this for functions which it implements
3261 to always fail with ENOSYS. Some functions are actually named
3262 something starting with __ and the normal name is an alias. */
3263 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3273 eval "ac_cv_func_malloc_set_state=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 eval "ac_cv_func_malloc_set_state=no"
3282 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3286 echo "$ac_t""no" 1>&6
3290 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3291 echo "configure:3292: checking whether __after_morecore_hook exists" >&5
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 extern void (* __after_morecore_hook)();
3297 __after_morecore_hook = 0
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3302 echo "$ac_t""yes" 1>&6
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 echo "$ac_t""no" 1>&6
3308 after_morecore_hook_exists=no
3311 if test "$system_malloc" = "yes" ; then
3314 - The GNU allocators don't work with this system configuration."
3315 elif test "$with_system_malloc" = "yes" ; then
3318 - User chose not to use GNU allocators."
3319 elif test "$with_debug_malloc" = "yes" ; then
3322 - User chose to use Debugging Malloc."
3325 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3327 - Using Doug Lea's new malloc from the GNU C Library."
3328 { test "$extra_verbose" = "yes" && cat << \EOF
3329 Defining DOUG_LEA_MALLOC
3331 cat >> confdefs.h <<\EOF
3332 #define DOUG_LEA_MALLOC 1
3336 if test "$after_morecore_hook_exists" = "no" ; then
3338 - Using Doug Lea's new malloc from the Linux C Library."
3339 { test "$extra_verbose" = "yes" && cat << \EOF
3340 Defining _NO_MALLOC_WARNING_
3342 cat >> confdefs.h <<\EOF
3343 #define _NO_MALLOC_WARNING_ 1
3353 # Extract the first word of "ranlib", so it can be a program name with args.
3354 set dummy ranlib; ac_word=$2
3355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3356 echo "configure:3357: checking for $ac_word" >&5
3358 if test -n "$RANLIB"; then
3359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3363 for ac_dir in $ac_dummy; do
3364 test -z "$ac_dir" && ac_dir=.
3365 if test -f $ac_dir/$ac_word; then
3366 ac_cv_prog_RANLIB="ranlib"
3371 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3373 RANLIB="$ac_cv_prog_RANLIB"
3374 if test -n "$RANLIB"; then
3375 echo "$ac_t""$RANLIB" 1>&6
3377 echo "$ac_t""no" 1>&6
3381 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3382 if test -f $ac_dir/install-sh; then
3384 ac_install_sh="$ac_aux_dir/install-sh -c"
3386 elif test -f $ac_dir/install.sh; then
3388 ac_install_sh="$ac_aux_dir/install.sh -c"
3392 if test -z "$ac_aux_dir"; then
3393 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3395 ac_config_guess=$ac_aux_dir/config.guess
3396 ac_config_sub=$ac_aux_dir/config.sub
3397 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3399 # Find a good install program. We prefer a C program (faster),
3400 # so one script is as good as another. But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3406 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3407 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3408 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3409 # ./install, which can be erroneously created by make from ./install.sh.
3410 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3411 echo "configure:3412: checking for a BSD compatible install" >&5
3412 if test -z "$INSTALL"; then
3414 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3415 for ac_dir in $PATH; do
3416 # Account for people who put trailing slashes in PATH elements.
3418 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3420 # OSF1 and SCO ODT 3.0 have their own names for install.
3421 # Don't use installbsd from OSF since it installs stuff as root
3423 for ac_prog in ginstall scoinst install; do
3424 if test -f $ac_dir/$ac_prog; then
3425 if test $ac_prog = install &&
3426 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3427 # AIX install. It has an incompatible calling convention.
3430 ac_cv_path_install="$ac_dir/$ac_prog -c"
3440 if test "${ac_cv_path_install+set}" = set; then
3441 INSTALL="$ac_cv_path_install"
3443 # As a last resort, use the slow shell script. We don't cache a
3444 # path for INSTALL within a source directory, because that will
3445 # break other packages using the cache if that directory is
3446 # removed, or if the path is relative.
3447 INSTALL="$ac_install_sh"
3450 echo "$ac_t""$INSTALL" 1>&6
3452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3453 # It thinks the first close brace ends the variable substitution.
3454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3460 for ac_prog in 'bison -y' byacc
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3465 echo "configure:3466: checking for $ac_word" >&5
3467 if test -n "$YACC"; then
3468 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3472 for ac_dir in $ac_dummy; do
3473 test -z "$ac_dir" && ac_dir=.
3474 if test -f $ac_dir/$ac_word; then
3475 ac_cv_prog_YACC="$ac_prog"
3481 YACC="$ac_cv_prog_YACC"
3482 if test -n "$YACC"; then
3483 echo "$ac_t""$YACC" 1>&6
3485 echo "$ac_t""no" 1>&6
3488 test -n "$YACC" && break
3490 test -n "$YACC" || YACC="yacc"
3493 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_hdr" >&5
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3505 { (eval echo configure:3506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3507 if test -z "$ac_err"; then
3509 eval "ac_cv_header_$ac_safe=yes"
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3515 eval "ac_cv_header_$ac_safe=no"
3518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3521 { test "$extra_verbose" = "yes" && cat << EOF
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_hdr 1
3530 echo "$ac_t""no" 1>&6
3534 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3535 echo "configure:3536: checking for sys/wait.h that is POSIX.1 compatible" >&5
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <sys/types.h>
3541 #include <sys/wait.h>
3543 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3546 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3554 if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556 ac_cv_header_sys_wait_h=yes
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3561 ac_cv_header_sys_wait_h=no
3565 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3566 if test $ac_cv_header_sys_wait_h = yes; then
3567 { test "$extra_verbose" = "yes" && cat << \EOF
3568 Defining HAVE_SYS_WAIT_H
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_SYS_WAIT_H 1
3577 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3578 echo "configure:3579: checking for ANSI C header files" >&5
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3593 ac_cv_header_stdc=yes
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 ac_cv_header_stdc=no
3603 if test $ac_cv_header_stdc = yes; then
3604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "memchr" >/dev/null 2>&1; then
3615 ac_cv_header_stdc=no
3621 if test $ac_cv_header_stdc = yes; then
3622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 egrep "free" >/dev/null 2>&1; then
3633 ac_cv_header_stdc=no
3639 if test $ac_cv_header_stdc = yes; then
3640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3645 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3646 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 int main () { int i; for (i = 0; i < 256; i++)
3649 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 ac_cv_header_stdc=no
3666 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3667 if test $ac_cv_header_stdc = yes; then
3668 { test "$extra_verbose" = "yes" && cat << \EOF
3669 Defining STDC_HEADERS
3671 cat >> confdefs.h <<\EOF
3672 #define STDC_HEADERS 1
3678 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3679 echo "configure:3680: checking whether time.h and sys/time.h may both be included" >&5
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <sys/types.h>
3685 #include <sys/time.h>
3691 if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3693 ac_cv_header_time=yes
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 ac_cv_header_time=no
3702 echo "$ac_t""$ac_cv_header_time" 1>&6
3703 if test $ac_cv_header_time = yes; then
3704 { test "$extra_verbose" = "yes" && cat << \EOF
3705 Defining TIME_WITH_SYS_TIME
3707 cat >> confdefs.h <<\EOF
3708 #define TIME_WITH_SYS_TIME 1
3714 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3715 echo "configure:3716: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 #include <sys/types.h>
3722 /* NetBSD declares sys_siglist in unistd.h. */
3723 #ifdef HAVE_UNISTD_H
3727 char *msg = *(sys_siglist + 1);
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 ac_cv_decl_sys_siglist=yes
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 ac_cv_decl_sys_siglist=no
3741 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3742 if test $ac_cv_decl_sys_siglist = yes; then
3743 { test "$extra_verbose" = "yes" && cat << \EOF
3744 Defining SYS_SIGLIST_DECLARED
3746 cat >> confdefs.h <<\EOF
3747 #define SYS_SIGLIST_DECLARED 1
3755 echo $ac_n "checking for utime""... $ac_c" 1>&6
3756 echo "configure:3757: checking for utime" >&5
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <sys/types.h>
3763 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3766 if { (eval echo configure:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 echo "$ac_t""yes" 1>&6
3769 { test "$extra_verbose" = "yes" && cat << \EOF
3772 cat >> confdefs.h <<\EOF
3773 #define HAVE_UTIME 1
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3781 echo "$ac_t""no" 1>&6
3782 for ac_func in utimes
3784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3785 echo "configure:3786: checking for $ac_func" >&5
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 /* System header to define __stub macros and hopefully few prototypes,
3791 which can conflict with char $ac_func(); below. */
3793 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3800 /* The GNU C library defines this for functions which it implements
3801 to always fail with ENOSYS. Some functions are actually named
3802 something starting with __ and the normal name is an alias. */
3803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 eval "ac_cv_func_$ac_func=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_func_$ac_func=no"
3822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3825 { test "$extra_verbose" = "yes" && cat << EOF
3826 Defining $ac_tr_func
3828 cat >> confdefs.h <<EOF
3829 #define $ac_tr_func 1
3834 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3843 echo "configure:3844: checking return type of signal handlers" >&5
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 #include <sys/types.h>
3854 extern "C" void (*signal (int, void (*)(int)))(int);
3856 void (*signal ()) ();
3863 if { (eval echo configure:3864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3865 ac_cv_type_signal=void
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 ac_cv_type_signal=int
3874 echo "$ac_t""$ac_cv_type_signal" 1>&6
3875 { test "$extra_verbose" = "yes" && cat << EOF
3876 Defining RETSIGTYPE = $ac_cv_type_signal
3878 cat >> confdefs.h <<EOF
3879 #define RETSIGTYPE $ac_cv_type_signal
3884 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3885 echo "configure:3886: checking for size_t" >&5
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 #include <sys/types.h>
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3899 ac_cv_type_size_t=yes
3902 ac_cv_type_size_t=no
3906 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3907 if test $ac_cv_type_size_t = no; then
3908 { test "$extra_verbose" = "yes" && cat << \EOF
3909 Defining size_t = unsigned
3911 cat >> confdefs.h <<\EOF
3912 #define size_t unsigned
3918 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3919 echo "configure:3920: checking for pid_t" >&5
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include <sys/types.h>
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3933 ac_cv_type_pid_t=yes
3940 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3941 if test $ac_cv_type_pid_t = no; then
3942 { test "$extra_verbose" = "yes" && cat << \EOF
3943 Defining pid_t = int
3945 cat >> confdefs.h <<\EOF
3952 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3953 echo "configure:3954: checking for uid_t in sys/types.h" >&5
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 #include <sys/types.h>
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 egrep "uid_t" >/dev/null 2>&1; then
3963 ac_cv_type_uid_t=yes
3971 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3972 if test $ac_cv_type_uid_t = no; then
3973 { test "$extra_verbose" = "yes" && cat << \EOF
3974 Defining uid_t = int
3976 cat >> confdefs.h <<\EOF
3981 { test "$extra_verbose" = "yes" && cat << \EOF
3982 Defining gid_t = int
3984 cat >> confdefs.h <<\EOF
3991 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3992 echo "configure:3993: checking for mode_t" >&5
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <sys/types.h>
4003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4004 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4006 ac_cv_type_mode_t=yes
4009 ac_cv_type_mode_t=no
4013 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4014 if test $ac_cv_type_mode_t = no; then
4015 { test "$extra_verbose" = "yes" && cat << \EOF
4016 Defining mode_t = int
4018 cat >> confdefs.h <<\EOF
4025 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4026 echo "configure:4027: checking for off_t" >&5
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 #include <sys/types.h>
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4040 ac_cv_type_off_t=yes
4047 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4048 if test $ac_cv_type_off_t = no; then
4049 { test "$extra_verbose" = "yes" && cat << \EOF
4050 Defining off_t = long
4052 cat >> confdefs.h <<\EOF
4059 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4060 echo "configure:4061: checking for ssize_t" >&5
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 #include <sys/types.h>
4071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4074 ac_cv_type_ssize_t=yes
4077 ac_cv_type_ssize_t=no
4081 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4082 if test $ac_cv_type_ssize_t = no; then
4083 { test "$extra_verbose" = "yes" && cat << \EOF
4084 Defining ssize_t = int
4086 cat >> confdefs.h <<\EOF
4094 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4095 echo "configure:4096: checking for socklen_t" >&5
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4100 #include <sys/socket.h>
4107 if { (eval echo configure:4108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 echo "$ac_t""yes" 1>&6
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 #include <sys/types.h>
4119 #include <sys/socket.h>
4120 int accept (int, struct sockaddr *, size_t *);
4126 if { (eval echo configure:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4129 echo "$ac_t""size_t" 1>&6
4130 { test "$extra_verbose" = "yes" && cat << \EOF
4131 Defining socklen_t = size_t
4133 cat >> confdefs.h <<\EOF
4134 #define socklen_t size_t
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4143 echo "$ac_t""int" 1>&6
4144 { test "$extra_verbose" = "yes" && cat << \EOF
4145 Defining socklen_t = int
4147 cat >> confdefs.h <<\EOF
4148 #define socklen_t int
4157 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4158 echo "configure:4159: checking for struct timeval" >&5
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #ifdef TIME_WITH_SYS_TIME
4163 #include <sys/time.h>
4166 #ifdef HAVE_SYS_TIME_H
4167 #include <sys/time.h>
4173 static struct timeval x; x.tv_sec = x.tv_usec;
4176 if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4178 echo "$ac_t""yes" 1>&6
4180 { test "$extra_verbose" = "yes" && cat << \EOF
4181 Defining HAVE_TIMEVAL
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE_TIMEVAL 1
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 echo "$ac_t""no" 1>&6
4197 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4198 echo "configure:4199: checking whether struct tm is in sys/time.h or time.h" >&5
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/types.h>
4206 struct tm *tp; tp->tm_sec;
4209 if { (eval echo configure:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4211 ac_cv_struct_tm=time.h
4213 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4216 ac_cv_struct_tm=sys/time.h
4220 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4221 if test $ac_cv_struct_tm = sys/time.h; then
4222 { test "$extra_verbose" = "yes" && cat << \EOF
4223 Defining TM_IN_SYS_TIME
4225 cat >> confdefs.h <<\EOF
4226 #define TM_IN_SYS_TIME 1
4232 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4233 echo "configure:4234: checking for tm_zone in struct tm" >&5
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include <sys/types.h>
4239 #include <$ac_cv_struct_tm>
4241 struct tm tm; tm.tm_zone;
4244 if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4246 ac_cv_struct_tm_zone=yes
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4251 ac_cv_struct_tm_zone=no
4255 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4256 if test "$ac_cv_struct_tm_zone" = yes; then
4257 { test "$extra_verbose" = "yes" && cat << \EOF
4258 Defining HAVE_TM_ZONE
4260 cat >> confdefs.h <<\EOF
4261 #define HAVE_TM_ZONE 1
4266 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4267 echo "configure:4268: checking for tzname" >&5
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4273 #ifndef tzname /* For SGI. */
4274 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4282 ac_cv_var_tzname=yes
4284 echo "configure: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4291 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4292 if test $ac_cv_var_tzname = yes; then
4293 { test "$extra_verbose" = "yes" && cat << \EOF
4294 Defining HAVE_TZNAME
4296 cat >> confdefs.h <<\EOF
4297 #define HAVE_TZNAME 1
4305 echo $ac_n "checking for working const""... $ac_c" 1>&6
4306 echo "configure:4307: checking for working const" >&5
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4314 /* Ultrix mips cc rejects this. */
4315 typedef int charset[2]; const charset x;
4316 /* SunOS 4.1.1 cc rejects this. */
4317 char const *const *ccp;
4319 /* NEC SVR4.0.2 mips cc rejects this. */
4320 struct point {int x, y;};
4321 static struct point const zero = {0,0};
4322 /* AIX XL C 1.02.0.0 rejects this.
4323 It does not let you subtract one const X* pointer from another in an arm
4324 of an if-expression whose if-part is not a constant expression */
4325 const char *g = "string";
4326 ccp = &g + (g ? g-g : 0);
4327 /* HPUX 7.0 cc rejects these. */
4330 ccp = (char const *const *) p;
4331 { /* SCO 3.2v4 cc rejects this. */
4333 char const *s = 0 ? (char *) 0 : (char const *) 0;
4337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4339 const int *foo = &x[0];
4342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4343 typedef const int *iptr;
4347 { /* AIX XL C 1.02.0.0 rejects this saying
4348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4349 struct s { int j; const int *ap[3]; };
4350 struct s *b; b->j = 5;
4352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4358 if { (eval echo configure:4359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4369 echo "$ac_t""$ac_cv_c_const" 1>&6
4370 if test $ac_cv_c_const = no; then
4371 { test "$extra_verbose" = "yes" && cat << \EOF
4374 cat >> confdefs.h <<\EOF
4382 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4383 echo "configure:4384: checking whether ${MAKE-make} sets \${MAKE}" >&5
4384 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4386 cat > conftestmake <<\EOF
4388 @echo 'ac_maketemp="${MAKE}"'
4390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4391 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4392 if test -n "$ac_maketemp"; then
4393 eval ac_cv_prog_make_${ac_make}_set=yes
4395 eval ac_cv_prog_make_${ac_make}_set=no
4398 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4402 echo "$ac_t""no" 1>&6
4403 SET_MAKE="MAKE=${MAKE-make}"
4407 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether byte ordering is bigendian" >&5
4410 ac_cv_c_bigendian=unknown
4411 # See if sys/param.h defines the BYTE_ORDER macro.
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 #include <sys/types.h>
4416 #include <sys/param.h>
4419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4424 if { (eval echo configure:4425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4426 # It does; now see whether it defined to BIG_ENDIAN or not.
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 #include <sys/types.h>
4431 #include <sys/param.h>
4434 #if BYTE_ORDER != BIG_ENDIAN
4439 if { (eval echo configure:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4441 ac_cv_c_bigendian=yes
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 ac_cv_c_bigendian=no
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4454 if test $ac_cv_c_bigendian = unknown; then
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4459 /* Are we little or big endian? From Harbison&Steele. */
4463 char c[sizeof (long)];
4466 exit (u.c[sizeof (long) - 1] == 1);
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4471 ac_cv_c_bigendian=no
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 ac_cv_c_bigendian=yes
4482 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4483 if test $ac_cv_c_bigendian = yes; then
4484 { test "$extra_verbose" = "yes" && cat << \EOF
4485 Defining WORDS_BIGENDIAN
4487 cat >> confdefs.h <<\EOF
4488 #define WORDS_BIGENDIAN 1
4495 echo $ac_n "checking size of short""... $ac_c" 1>&6
4496 echo "configure:4497: checking size of short" >&5
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4504 FILE *f=fopen("conftestval", "w");
4506 fprintf(f, "%d\n", sizeof(short));
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4512 ac_cv_sizeof_short=`cat conftestval`
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 ac_cv_sizeof_short=0
4521 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4522 { test "$extra_verbose" = "yes" && cat << EOF
4523 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4525 cat >> confdefs.h <<EOF
4526 #define SIZEOF_SHORT $ac_cv_sizeof_short
4531 if test "$ac_cv_sizeof_short" = 0; then
4533 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4534 echo "*** PANIC *** Please examine config.log for compilation errors."
4537 echo $ac_n "checking size of int""... $ac_c" 1>&6
4538 echo "configure:4539: checking size of int" >&5
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4546 FILE *f=fopen("conftestval", "w");
4548 fprintf(f, "%d\n", sizeof(int));
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4554 ac_cv_sizeof_int=`cat conftestval`
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4563 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4564 { test "$extra_verbose" = "yes" && cat << EOF
4565 Defining SIZEOF_INT = $ac_cv_sizeof_int
4567 cat >> confdefs.h <<EOF
4568 #define SIZEOF_INT $ac_cv_sizeof_int
4573 echo $ac_n "checking size of long""... $ac_c" 1>&6
4574 echo "configure:4575: checking size of long" >&5
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4582 FILE *f=fopen("conftestval", "w");
4584 fprintf(f, "%d\n", sizeof(long));
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4590 ac_cv_sizeof_long=`cat conftestval`
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4599 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4600 { test "$extra_verbose" = "yes" && cat << EOF
4601 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4603 cat >> confdefs.h <<EOF
4604 #define SIZEOF_LONG $ac_cv_sizeof_long
4609 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4610 echo "configure:4611: checking size of long long" >&5
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4618 FILE *f=fopen("conftestval", "w");
4620 fprintf(f, "%d\n", sizeof(long long));
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4626 ac_cv_sizeof_long_long=`cat conftestval`
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4632 ac_cv_sizeof_long_long=0
4635 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4636 { test "$extra_verbose" = "yes" && cat << EOF
4637 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4639 cat >> confdefs.h <<EOF
4640 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4645 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4646 echo "configure:4647: checking size of void *" >&5
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4654 FILE *f=fopen("conftestval", "w");
4656 fprintf(f, "%d\n", sizeof(void *));
4660 if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4662 ac_cv_sizeof_void_p=`cat conftestval`
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 ac_cv_sizeof_void_p=0
4671 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4672 { test "$extra_verbose" = "yes" && cat << EOF
4673 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4675 cat >> confdefs.h <<EOF
4676 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4683 cygwin* ) cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <cygwin/types.h>
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4691 echo "$ac_t""yes" 1>&6
4692 { test "$extra_verbose" = "yes" && cat << \EOF
4693 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4695 cat >> confdefs.h <<\EOF
4696 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4702 echo "$ac_t""no" 1>&6
4708 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4709 echo "configure:4710: checking for long file names" >&5
4711 ac_cv_sys_long_file_names=yes
4712 # Test for long file names in all the places we know might matter:
4713 # . the current directory, where building will happen
4714 # $prefix/lib where we will be installing things
4715 # $exec_prefix/lib likewise
4716 # eval it to expand exec_prefix.
4717 # $TMPDIR if set, where it might want to write temporary files
4718 # if $TMPDIR is not set:
4719 # /tmp where it might want to write temporary files
4722 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4723 ac_tmpdirs="$TMPDIR"
4725 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4727 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4728 test -d $ac_dir || continue
4729 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4730 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4731 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4732 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4733 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4734 ac_cv_sys_long_file_names=no
4735 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4738 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4741 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4742 if test $ac_cv_sys_long_file_names = yes; then
4743 { test "$extra_verbose" = "yes" && cat << \EOF
4744 Defining HAVE_LONG_FILE_NAMES
4746 cat >> confdefs.h <<\EOF
4747 #define HAVE_LONG_FILE_NAMES 1
4754 echo $ac_n "checking for sin""... $ac_c" 1>&6
4755 echo "configure:4756: checking for sin" >&5
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char sin(); below. */
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4770 /* The GNU C library defines this for functions which it implements
4771 to always fail with ENOSYS. Some functions are actually named
4772 something starting with __ and the normal name is an alias. */
4773 #if defined (__stub_sin) || defined (__stub___sin)
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 eval "ac_cv_func_sin=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_func_sin=no"
4792 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4796 echo "$ac_t""no" 1>&6
4798 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4799 echo "configure:4800: checking for sin in -lm" >&5
4800 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4802 xe_check_libs=" -lm "
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 eval "ac_cv_lib_$ac_lib_var=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 eval "ac_cv_lib_$ac_lib_var=no"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4831 { test "$extra_verbose" = "yes" && cat << EOF
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_lib 1
4839 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4842 echo "$ac_t""no" 1>&6
4849 { test "$extra_verbose" = "yes" && cat << \EOF
4850 Defining LISP_FLOAT_TYPE
4852 cat >> confdefs.h <<\EOF
4853 #define LISP_FLOAT_TYPE 1
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4863 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 { test "$extra_verbose" = "yes" && cat << \EOF
4869 Defining HAVE_INVERSE_HYPERBOLIC
4871 cat >> confdefs.h <<\EOF
4872 #define HAVE_INVERSE_HYPERBOLIC 1
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4882 echo "checking type of mail spool file locking" 1>&6
4883 echo "configure:4884: checking type of mail spool file locking" >&5
4884 for ac_func in lockf flock
4886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4887 echo "configure:4888: checking for $ac_func" >&5
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 eval "ac_cv_func_$ac_func=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_func_$ac_func=no"
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 { test "$extra_verbose" = "yes" && cat << EOF
4928 Defining $ac_tr_func
4930 cat >> confdefs.h <<EOF
4931 #define $ac_tr_func 1
4936 echo "$ac_t""no" 1>&6
4940 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4941 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4942 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4943 if test -z "$mail_locking"; then
4944 case "$opsys" in cygwin* | mingw*)
4949 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4950 Defining MAIL_LOCK_LOCKF
4952 cat >> confdefs.h <<\EOF
4953 #define MAIL_LOCK_LOCKF 1
4957 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4958 Defining MAIL_LOCK_FLOCK
4960 cat >> confdefs.h <<\EOF
4961 #define MAIL_LOCK_FLOCK 1
4965 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4966 Defining MAIL_LOCK_LOCKING
4968 cat >> confdefs.h <<\EOF
4969 #define MAIL_LOCK_LOCKING 1
4973 elif test "$mail_locking" = "pop"; then
4976 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4977 Defining MAIL_LOCK_DOT
4979 cat >> confdefs.h <<\EOF
4980 #define MAIL_LOCK_DOT 1
4985 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4986 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4987 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4988 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4989 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4990 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4992 case "$opsys" in decosf*)
4994 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4995 echo "configure:4996: checking for cma_open in -lpthreads" >&5
4996 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4998 xe_check_libs=" -lpthreads "
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 eval "ac_cv_lib_$ac_lib_var=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_lib_$ac_lib_var=no"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 { test "$extra_verbose" = "yes" && cat << EOF
5030 cat >> confdefs.h <<EOF
5031 #define $ac_tr_lib 1
5035 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5038 echo "$ac_t""no" 1>&6
5042 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5043 c_switch_site="$c_switch_site -threads" ;;
5047 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5048 echo "configure:5049: checking whether the -xildoff compiler flag is required" >&5
5049 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5050 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5051 then echo "$ac_t""no" 1>&6;
5052 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
5054 else echo "$ac_t""no" 1>&6
5057 if test "$opsys" = "sol2"; then
5058 if test "$os_release" -ge 56; then
5059 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5060 echo "configure:5061: checking for \"-z ignore\" linker flag" >&5
5061 case "`ld -h 2>&1`" in
5062 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5063 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5064 *) echo "$ac_t""no" 1>&6 ;;
5070 echo "checking "for specified window system"" 1>&6
5071 echo "configure:5072: checking "for specified window system"" >&5
5077 if test "$with_gnome" != "no"; then
5078 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5079 echo "configure:5080: checking for GNOME configuration script" >&5
5080 for possible in gnome-config
5082 possible_version=`${possible} --version 2> /dev/null`
5083 if test "x${possible_version}" != "x"; then
5084 GNOME_CONFIG="${possible}"
5090 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5093 if test "${GNOME_CONFIG}" != "no"; then
5094 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5095 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5096 { test "$extra_verbose" = "yes" && cat << \EOF
5099 cat >> confdefs.h <<\EOF
5100 #define HAVE_GNOME 1
5104 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5105 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5108 if test "$with_gtk" != "no";then
5109 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5110 echo "configure:5111: checking for GTK configuration script" >&5
5111 for possible in gtk12-config gtk14-config gtk-config
5113 possible_version=`${possible} --version 2> /dev/null`
5114 if test "x${possible_version}" != "x"; then
5115 GTK_CONFIG="${possible}"
5117 case "${possible_version}" in
5118 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5119 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5124 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5127 echo "$ac_t""${GTK_CONFIG}" 1>&6
5130 if test "${GTK_CONFIG}" != "no"; then
5131 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5132 echo "configure:5133: checking gtk version" >&5
5133 GTK_VERSION=`${GTK_CONFIG} --version`
5134 echo "$ac_t""${GTK_VERSION}" 1>&6
5136 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5137 echo "configure:5138: checking gtk libs" >&5
5138 GTK_LIBS=`${GTK_CONFIG} --libs`
5139 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5140 echo "$ac_t""${GTK_LIBS}" 1>&6
5142 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5143 echo "configure:5144: checking gtk cflags" >&5
5144 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5145 if test "$GCC" = "yes"; then
5146 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5148 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5149 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5152 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5153 echo "configure:5154: checking for main in -lgdk_imlib" >&5
5154 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5156 xe_check_libs=" -lgdk_imlib "
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 eval "ac_cv_lib_$ac_lib_var=yes"
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 eval "ac_cv_lib_$ac_lib_var=no"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5178 echo "$ac_t""yes" 1>&6
5179 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5181 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5187 echo "configure:5188: checking for Imlib_init in -lImlib" >&5
5188 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5190 xe_check_libs=" -lImlib "
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 eval "ac_cv_lib_$ac_lib_var=yes"
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 eval "ac_cv_lib_$ac_lib_var=no"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5216 echo "$ac_t""yes" 1>&6
5217 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5219 echo "$ac_t""no" 1>&6
5223 for ac_func in gdk_imlib_init
5225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5226 echo "configure:5227: checking for $ac_func" >&5
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 /* System header to define __stub macros and hopefully few prototypes,
5232 which can conflict with char $ac_func(); below. */
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5241 /* The GNU C library defines this for functions which it implements
5242 to always fail with ENOSYS. Some functions are actually named
5243 something starting with __ and the normal name is an alias. */
5244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 eval "ac_cv_func_$ac_func=yes"
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5259 eval "ac_cv_func_$ac_func=no"
5263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5266 { test "$extra_verbose" = "yes" && cat << EOF
5267 Defining $ac_tr_func
5269 cat >> confdefs.h <<EOF
5270 #define $ac_tr_func 1
5275 echo "$ac_t""no" 1>&6
5280 { test "$extra_verbose" = "yes" && cat << \EOF
5283 cat >> confdefs.h <<\EOF
5288 { test "$extra_verbose" = "yes" && cat << \EOF
5291 cat >> confdefs.h <<\EOF
5302 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5303 test "${with_toolbars}" != no && with_toolbars=gtk
5304 test "${with_menubars}" != "no" && with_menubars=gtk
5305 test "${with_dialogs}" != "no" && with_dialogs=gtk
5306 test "${with_widgets}" != "no" && with_widgets=gtk
5308 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5309 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5311 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5312 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5314 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5315 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5317 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5318 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5321 OLD_CFLAGS="${CFLAGS}"
5322 OLD_CPPFLAGS="${CPPFLAGS}"
5323 OLD_LDFLAGS="${LDFLAGS}"
5324 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5325 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5326 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5327 for ac_hdr in glade/glade.h glade.h
5329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_hdr" >&5
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5339 { (eval echo configure:5340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5341 if test -z "$ac_err"; then
5343 eval "ac_cv_header_$ac_safe=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_header_$ac_safe=no"
5352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5355 { test "$extra_verbose" = "yes" && cat << EOF
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_hdr 1
5364 echo "$ac_t""no" 1>&6
5369 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5370 echo "configure:5371: checking for main in -lxml" >&5
5371 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5373 xe_check_libs=" -lxml "
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5384 eval "ac_cv_lib_$ac_lib_var=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5389 eval "ac_cv_lib_$ac_lib_var=no"
5394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5395 echo "$ac_t""yes" 1>&6
5396 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5398 echo "$ac_t""no" 1>&6
5403 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5404 echo "configure:5405: checking for main in -lglade" >&5
5405 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5407 xe_check_libs=" -lglade "
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
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 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5432 echo "$ac_t""no" 1>&6
5437 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5438 echo "configure:5439: checking for main in -lglade-gnome" >&5
5439 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5441 xe_check_libs=" -lglade-gnome "
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 eval "ac_cv_lib_$ac_lib_var=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 eval "ac_cv_lib_$ac_lib_var=no"
5462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5463 echo "$ac_t""yes" 1>&6
5464 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5466 echo "$ac_t""no" 1>&6
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 #include <glade/glade-xml.h>
5475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5476 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5478 echo "$ac_t""yes" 1>&6
5479 { test "$extra_verbose" = "yes" && cat << \EOF
5480 Defining LIBGLADE_XML_TXTDOMAIN = 1
5482 cat >> confdefs.h <<\EOF
5483 #define LIBGLADE_XML_TXTDOMAIN 1
5489 echo "$ac_t""no" 1>&6
5493 CFLAGS="${OLD_CFLAGS}"
5494 CPPFLAGS="${OLD_CPPFLAGS}"
5495 LDFLAGS="${OLD_LDFLAGS}"
5499 if test "$with_x11" != "no"; then
5500 test "$x_includes $x_libraries" != "NONE NONE" && \
5501 window_system=x11 with_x11=yes
5504 if test "$x_includes $x_libraries" = "NONE NONE" \
5505 -a -n "$OPENWINHOME" \
5506 -a "$OPENWINHOME" != "/usr/openwin" \
5507 -a -d "$OPENWINHOME"; then
5508 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5509 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5510 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5513 if test "$x_includes" = "NONE"; then
5514 for dir in "/usr/X11" "/usr/X11R6"; do
5515 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5519 if test "$x_libraries" = "NONE"; then
5520 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5521 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5525 # If we find X, set shell vars x_includes and x_libraries to the
5526 # paths, otherwise set no_x=yes.
5527 # Uses ac_ vars as temps to allow command line to override cache and checks.
5528 # --without-x overrides everything else, but does not touch the cache.
5529 echo $ac_n "checking for X""... $ac_c" 1>&6
5530 echo "configure:5531: checking for X" >&5
5532 # Check whether --with-x or --without-x was given.
5533 if test "${with_x+set}" = set; then
5538 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5539 if test "x$with_x" = xno; then
5540 # The user explicitly disabled X.
5543 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5544 # Both variables are already set.
5548 # One or both of the vars are not set, and there is no cached value.
5549 ac_x_includes=NO ac_x_libraries=NO
5551 if mkdir conftestdir; then
5553 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5554 cat > Imakefile <<'EOF'
5556 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5558 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5560 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5561 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5562 for ac_extension in a so sl; do
5563 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5564 test -f $ac_im_libdir/libX11.$ac_extension; then
5565 ac_im_usrlibdir=$ac_im_libdir; break
5568 # Screen out bogus values from the imake configuration. They are
5569 # bogus both because they are the default anyway, and because
5570 # using them would break gcc on systems where it needs fixed includes.
5571 case "$ac_im_incroot" in
5573 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5575 case "$ac_im_usrlibdir" in
5577 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5584 if test "$ac_x_includes" = NO; then
5585 # Guess where to find include files, by looking for this one X11 .h file.
5586 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5588 # First, try using that file with no special directory specified.
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 #include <$x_direct_test_include>
5594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5595 { (eval echo configure:5596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5597 if test -z "$ac_err"; then
5599 # We can compile using X headers with no special include directory.
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 # Look for the header file in a standard set of common directories.
5607 # Check X11 before X11Rn because it is often a symlink to the current release.
5610 /usr/X11R6/include \
5611 /usr/X11R5/include \
5612 /usr/X11R4/include \
5615 /usr/include/X11R6 \
5616 /usr/include/X11R5 \
5617 /usr/include/X11R4 \
5619 /usr/local/X11/include \
5620 /usr/local/X11R6/include \
5621 /usr/local/X11R5/include \
5622 /usr/local/X11R4/include \
5624 /usr/local/include/X11 \
5625 /usr/local/include/X11R6 \
5626 /usr/local/include/X11R5 \
5627 /usr/local/include/X11R4 \
5631 /usr/XFree86/include/X11 \
5634 /usr/local/include \
5635 /usr/unsupported/include \
5636 /usr/athena/include \
5637 /usr/local/x11r5/include \
5638 /usr/lpp/Xamples/include \
5640 /usr/openwin/include \
5641 /usr/openwin/share/include \
5644 if test -r "$ac_dir/$x_direct_test_include"; then
5645 ac_x_includes=$ac_dir
5651 fi # $ac_x_includes = NO
5653 if test "$ac_x_libraries" = NO; then
5654 # Check for the libraries.
5656 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5657 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5659 # See if we find them without any special options.
5660 # Don't add to $LIBS permanently.
5661 ac_save_LIBS="$LIBS"
5662 LIBS="-l$x_direct_test_library $LIBS"
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5668 ${x_direct_test_function}()
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 LIBS="$ac_save_LIBS"
5674 # We can link X programs with no special library path.
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 LIBS="$ac_save_LIBS"
5681 # First see if replacing the include by lib works.
5682 # Check X11 before X11Rn because it is often a symlink to the current release.
5683 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5694 /usr/local/X11/lib \
5695 /usr/local/X11R6/lib \
5696 /usr/local/X11R5/lib \
5697 /usr/local/X11R4/lib \
5699 /usr/local/lib/X11 \
5700 /usr/local/lib/X11R6 \
5701 /usr/local/lib/X11R5 \
5702 /usr/local/lib/X11R4 \
5706 /usr/XFree86/lib/X11 \
5710 /usr/unsupported/lib \
5712 /usr/local/x11r5/lib \
5713 /usr/lpp/Xamples/lib \
5717 /usr/openwin/share/lib \
5720 for ac_extension in a so sl; do
5721 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5722 ac_x_libraries=$ac_dir
5729 fi # $ac_x_libraries = NO
5731 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5732 # Didn't find X anywhere. Cache the known absence of X.
5733 ac_cv_have_x="have_x=no"
5735 # Record where we found X for the cache.
5736 ac_cv_have_x="have_x=yes \
5737 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5740 eval "$ac_cv_have_x"
5743 if test "$have_x" != yes; then
5744 echo "$ac_t""$have_x" 1>&6
5747 # If each of the values was on the command line, it overrides each guess.
5748 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5749 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5750 # Update the cache value to reflect the command line values.
5751 ac_cv_have_x="have_x=yes \
5752 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5753 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5756 if test "$no_x" = yes; then
5757 # Not all programs may use this symbol, but it does not hurt to define it.
5758 { test "$extra_verbose" = "yes" && cat << \EOF
5759 Defining X_DISPLAY_MISSING
5761 cat >> confdefs.h <<\EOF
5762 #define X_DISPLAY_MISSING 1
5766 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5768 if test -n "$x_includes"; then
5769 X_CFLAGS="$X_CFLAGS -I$x_includes"
5772 # It would also be nice to do this for all -L options, not just this one.
5773 if test -n "$x_libraries"; then
5774 X_LIBS="$X_LIBS -L$x_libraries"
5775 # For Solaris; some versions of Sun CC require a space after -R and
5776 # others require no space. Words are not sufficient . . . .
5777 case "`(uname -sr) 2>/dev/null`" in
5779 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5780 echo "configure:5781: checking whether -R must be followed by a space" >&5
5781 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5800 if test $ac_R_nospace = yes; then
5801 echo "$ac_t""no" 1>&6
5802 X_LIBS="$X_LIBS -R$x_libraries"
5804 LIBS="$ac_xsave_LIBS -R $x_libraries"
5805 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5823 if test $ac_R_space = yes; then
5824 echo "$ac_t""yes" 1>&6
5825 X_LIBS="$X_LIBS -R $x_libraries"
5827 echo "$ac_t""neither works" 1>&6
5830 LIBS="$ac_xsave_LIBS"
5834 # Check for system-dependent libraries X programs must link with.
5835 # Do this before checking for the system-independent R6 libraries
5836 # (-lICE), since we may need -lsocket or whatever for X linking.
5838 if test "$ISC" = yes; then
5839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5841 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5842 # libraries were built with DECnet support. And karl@cs.umb.edu says
5843 # the Alpha needs dnet_stub (dnet does not exist).
5844 if test "$with_dnet" = "no" ; then
5845 ac_cv_lib_dnet_dnet_ntoa=no
5848 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5849 echo "configure:5850: checking for dnet_ntoa in -ldnet" >&5
5850 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5852 xe_check_libs=" -ldnet "
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5867 eval "ac_cv_lib_$ac_lib_var=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_lib_$ac_lib_var=no"
5877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5878 echo "$ac_t""yes" 1>&6
5879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5881 echo "$ac_t""no" 1>&6
5886 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5888 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5889 echo "configure:5890: checking for dnet_ntoa in -ldnet_stub" >&5
5890 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5892 xe_check_libs=" -ldnet_stub "
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5907 eval "ac_cv_lib_$ac_lib_var=yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5912 eval "ac_cv_lib_$ac_lib_var=no"
5917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5918 echo "$ac_t""yes" 1>&6
5919 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5921 echo "$ac_t""no" 1>&6
5927 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5928 # to get the SysV transport functions.
5929 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5931 # The nsl library prevents programs from opening the X display
5932 # on Irix 5.2, according to dickey@clark.net.
5933 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5934 echo "configure:5935: checking for gethostbyname" >&5
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* System header to define __stub macros and hopefully few prototypes,
5940 which can conflict with char gethostbyname(); below. */
5942 /* Override any gcc2 internal prototype to avoid an error. */
5943 /* We use char because int might match the return type of a gcc2
5944 builtin and then its argument prototype would still apply. */
5945 char gethostbyname();
5949 /* The GNU C library defines this for functions which it implements
5950 to always fail with ENOSYS. Some functions are actually named
5951 something starting with __ and the normal name is an alias. */
5952 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_func_gethostbyname=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_func_gethostbyname=no"
5971 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5975 echo "$ac_t""no" 1>&6
5978 if test $ac_cv_func_gethostbyname = no; then
5980 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5981 echo "configure:5982: checking for gethostbyname in -lnsl" >&5
5982 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5984 xe_check_libs=" -lnsl "
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 /* Override any gcc2 internal prototype to avoid an error. */
5989 /* We use char because int might match the return type of a gcc2
5990 builtin and then its argument prototype would still apply. */
5991 char gethostbyname();
5997 if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5999 eval "ac_cv_lib_$ac_lib_var=yes"
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6004 eval "ac_cv_lib_$ac_lib_var=no"
6009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6010 echo "$ac_t""yes" 1>&6
6011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6013 echo "$ac_t""no" 1>&6
6019 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6020 # socket/setsockopt and other routines are undefined under SCO ODT
6021 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6022 # on later versions), says simon@lia.di.epfl.ch: it contains
6023 # gethostby* variants that don't use the nameserver (or something).
6024 # -lsocket must be given before -lnsl if both are needed.
6025 # We assume that if connect needs -lnsl, so does gethostbyname.
6026 echo $ac_n "checking for connect""... $ac_c" 1>&6
6027 echo "configure:6028: checking for connect" >&5
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 /* System header to define __stub macros and hopefully few prototypes,
6033 which can conflict with char connect(); below. */
6035 /* Override any gcc2 internal prototype to avoid an error. */
6036 /* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */
6042 /* The GNU C library defines this for functions which it implements
6043 to always fail with ENOSYS. Some functions are actually named
6044 something starting with __ and the normal name is an alias. */
6045 #if defined (__stub_connect) || defined (__stub___connect)
6053 if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 eval "ac_cv_func_connect=yes"
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6060 eval "ac_cv_func_connect=no"
6064 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6068 echo "$ac_t""no" 1>&6
6071 if test $ac_cv_func_connect = no; then
6073 xe_msg_checking="for connect in -lsocket"
6074 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6075 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6076 echo "configure:6077: checking "$xe_msg_checking"" >&5
6077 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6079 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 /* Override any gcc2 internal prototype to avoid an error. */
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 eval "ac_cv_lib_$ac_lib_var=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_lib_$ac_lib_var=no"
6104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6105 echo "$ac_t""yes" 1>&6
6106 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6108 echo "$ac_t""no" 1>&6
6114 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6115 echo $ac_n "checking for remove""... $ac_c" 1>&6
6116 echo "configure:6117: checking for remove" >&5
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* System header to define __stub macros and hopefully few prototypes,
6122 which can conflict with char remove(); below. */
6124 /* Override any gcc2 internal prototype to avoid an error. */
6125 /* We use char because int might match the return type of a gcc2
6126 builtin and then its argument prototype would still apply. */
6131 /* The GNU C library defines this for functions which it implements
6132 to always fail with ENOSYS. Some functions are actually named
6133 something starting with __ and the normal name is an alias. */
6134 #if defined (__stub_remove) || defined (__stub___remove)
6142 if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 eval "ac_cv_func_remove=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6149 eval "ac_cv_func_remove=no"
6153 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6157 echo "$ac_t""no" 1>&6
6160 if test $ac_cv_func_remove = no; then
6162 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6163 echo "configure:6164: checking for remove in -lposix" >&5
6164 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6166 xe_check_libs=" -lposix "
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6170 /* Override any gcc2 internal prototype to avoid an error. */
6171 /* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6181 eval "ac_cv_lib_$ac_lib_var=yes"
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 eval "ac_cv_lib_$ac_lib_var=no"
6191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6192 echo "$ac_t""yes" 1>&6
6193 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6195 echo "$ac_t""no" 1>&6
6201 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6202 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6203 echo "configure:6204: checking for shmat" >&5
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char shmat(); below. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 /* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_shmat) || defined (__stub___shmat)
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_func_shmat=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_func_shmat=no"
6240 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6241 echo "$ac_t""yes" 1>&6
6244 echo "$ac_t""no" 1>&6
6247 if test $ac_cv_func_shmat = no; then
6249 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6250 echo "configure:6251: checking for shmat in -lipc" >&5
6251 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6253 xe_check_libs=" -lipc "
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6266 if { (eval echo configure:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6268 eval "ac_cv_lib_$ac_lib_var=yes"
6270 echo "configure: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6273 eval "ac_cv_lib_$ac_lib_var=no"
6278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6279 echo "$ac_t""yes" 1>&6
6280 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6282 echo "$ac_t""no" 1>&6
6289 # Check for libraries that X11R6 Xt/Xaw programs need.
6290 ac_save_LDFLAGS="$LDFLAGS"
6291 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6292 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6293 # check for ICE first), but we must link in the order -lSM -lICE or
6294 # we get undefined symbols. So assume we have SM if we have ICE.
6295 # These have to be linked with before -lX11, unlike the other
6296 # libraries we check for below, so use a different variable.
6297 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6299 xe_msg_checking="for IceConnectionNumber in -lICE"
6300 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6301 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6302 echo "configure:6303: checking "$xe_msg_checking"" >&5
6303 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6305 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6312 char IceConnectionNumber();
6315 IceConnectionNumber()
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 eval "ac_cv_lib_$ac_lib_var=yes"
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 eval "ac_cv_lib_$ac_lib_var=no"
6330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6331 echo "$ac_t""yes" 1>&6
6332 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6334 echo "$ac_t""no" 1>&6
6338 LDFLAGS="$ac_save_LDFLAGS"
6341 # Autoconf claims to find X library and include dirs for us.
6342 if test "$no_x" = "yes"
6343 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6344 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6349 if test "$with_x11" = "yes"; then
6350 { test "$extra_verbose" = "yes" && cat << \EOF
6351 Defining HAVE_X_WINDOWS
6353 cat >> confdefs.h <<\EOF
6354 #define HAVE_X_WINDOWS 1
6358 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6359 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6362 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6363 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6364 echo "configure:6365: checking for Xm/Xm.h" >&5
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6372 { (eval echo configure:6373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6374 if test -z "$ac_err"; then
6376 eval "ac_cv_header_$ac_safe=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_header_$ac_safe=no"
6385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6388 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6389 echo "configure:6390: checking for XmStringFree in -lXm" >&5
6390 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6392 xe_check_libs=" -lXm "
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399 char XmStringFree();
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 eval "ac_cv_lib_$ac_lib_var=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_lib_$ac_lib_var=no"
6417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6418 echo "$ac_t""yes" 1>&6
6421 echo "$ac_t""no" 1>&6
6426 echo "$ac_t""no" 1>&6
6430 if test "$got_motif" != "yes"; then
6431 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6432 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6433 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6434 if test -d "$lib_dir" -a -d "$inc_dir"; then
6435 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6436 x_libraries="$lib_dir $x_libraries"
6437 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6439 case "$x_includes" in "$inc_dir"* ) ;; *)
6440 x_includes="$inc_dir $x_includes"
6441 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6447 for rel in "X11R6" "X11R5" "X11R4"; do
6448 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6449 if test -d "$lib_dir" -a -d "$inc_dir"; then
6450 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6451 x_libraries="$x_libraries $lib_dir"
6452 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6454 case "$x_includes" in "$inc_dir"* ) ;; *)
6455 x_includes="$x_includes $inc_dir"
6456 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6462 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
6465 ld_switch_x_site="$X_LIBS"
6468 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6469 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6470 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6472 runpath="" runpath_dirs=""
6473 if test -n "$LD_RUN_PATH"; then
6474 runpath="$LD_RUN_PATH"
6475 elif test "$GCC" = "yes"; then
6476 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6477 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6478 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6479 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6480 case "$arg" in P,* | -L* | -R* )
6481 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6483 xe_runpath_dir="$dir"
6484 test "$xe_runpath_dir" != "/lib" -a \
6485 "$xe_runpath_dir" != "/usr/lib" -a \
6486 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6487 eval "$xe_add_unique_runpath_dir"
6492 ld_switch_run="$ld_switch_run_save"
6495 for arg in $ld_switch_site $ld_switch_x_site; do
6496 case "$arg" in -L*) {
6497 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6498 test "$xe_runpath_dir" != "/lib" -a \
6499 "$xe_runpath_dir" != "/usr/lib" -a \
6500 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6501 eval "$xe_add_unique_runpath_dir"
6504 if test "$opsys $need_motif" = "sol2 yes"; then
6505 xe_runpath_dir="/opt/SUNWdt/lib";
6506 eval "$xe_add_unique_runpath_dir";
6509 if test -n "$runpath"; then
6510 ld_switch_run="${dash_r}${runpath}"
6512 if test "$GCC" = "yes"; then
6513 set x $ld_switch_run; shift; ld_switch_run=""
6514 while test -n "$1"; do
6516 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6517 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6519 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6524 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6529 if test "$extra_verbose" = "yes"; then
6530 echo; echo "X11 compilation variables:"
6531 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6536 if test "$x_includes" != NONE; then
6537 for i in $x_includes; do
6538 if test -d "$i/bitmaps"; then
6539 bitmapdirs="$i/bitmaps:$bitmapdirs"
6541 if test -d "$i/X11/bitmaps"; then
6542 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6545 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6547 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6548 Defining BITMAPDIR = "$bitmapdirs"
6550 cat >> confdefs.h <<EOF
6551 #define BITMAPDIR "$bitmapdirs"
6556 echo "checking for X defines extracted by xmkmf" 1>&6
6557 echo "configure:6558: checking for X defines extracted by xmkmf" >&5
6559 if mkdir conftestdir; then
6561 cat > Imakefile <<'EOF'
6563 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6565 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6567 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6571 for word in $xmkmf_defines; do
6575 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6577 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6580 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6581 if test "$val" = "1"
6582 then { test "$extra_verbose" = "yes" && cat << EOF
6585 cat >> confdefs.h <<EOF
6590 else { test "$extra_verbose" = "yes" && cat << EOF
6591 Defining $sym = $val
6593 cat >> confdefs.h <<EOF
6604 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6605 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6606 echo "configure:6607: checking for X11/Intrinsic.h" >&5
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 #include <X11/Intrinsic.h>
6613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6614 { (eval echo configure:6615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6616 if test -z "$ac_err"; then
6618 eval "ac_cv_header_$ac_safe=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_header_$ac_safe=no"
6627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6631 echo "$ac_t""no" 1>&6
6632 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6637 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6638 echo "configure:6639: checking for XOpenDisplay in -lX11" >&5
6639 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6641 xe_check_libs=" -lX11 "
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648 char XOpenDisplay();
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 eval "ac_cv_lib_$ac_lib_var=yes"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_lib_$ac_lib_var=no"
6666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6667 echo "$ac_t""yes" 1>&6
6670 echo "$ac_t""no" 1>&6
6674 if test "$have_lib_x11" != "yes"; then
6676 xe_msg_checking="for XGetFontProperty in -lX11"
6677 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6678 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6679 echo "configure:6680: checking "$xe_msg_checking"" >&5
6680 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6682 xe_check_libs=" -lX11 -b i486-linuxaout"
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6689 char XGetFontProperty();
6695 if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 eval "ac_cv_lib_$ac_lib_var=yes"
6699 echo "configure: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6702 eval "ac_cv_lib_$ac_lib_var=no"
6707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6708 echo "$ac_t""yes" 1>&6
6709 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6711 echo "$ac_t""no" 1>&6
6712 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6718 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6721 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6722 echo "configure:6723: checking for XShapeSelectInput in -lXext" >&5
6723 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6725 xe_check_libs=" -lXext "
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char XShapeSelectInput();
6738 if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6740 eval "ac_cv_lib_$ac_lib_var=yes"
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 eval "ac_cv_lib_$ac_lib_var=no"
6750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6751 echo "$ac_t""yes" 1>&6
6752 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6754 echo "$ac_t""no" 1>&6
6760 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6761 echo "configure:6762: checking for XtOpenDisplay in -lXt" >&5
6762 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6764 xe_check_libs=" -lXt "
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 /* Override any gcc2 internal prototype to avoid an error. */
6769 /* We use char because int might match the return type of a gcc2
6770 builtin and then its argument prototype would still apply. */
6771 char XtOpenDisplay();
6777 if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6779 eval "ac_cv_lib_$ac_lib_var=yes"
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 eval "ac_cv_lib_$ac_lib_var=no"
6789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6790 echo "$ac_t""yes" 1>&6
6791 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6793 echo "$ac_t""no" 1>&6
6794 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6799 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6800 echo "configure:6801: checking the version of X11 being used" >&5
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 #include <X11/Intrinsic.h>
6805 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6809 ./conftest foobar; x11_release=$?
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6818 echo "$ac_t""R${x11_release}" 1>&6
6819 { test "$extra_verbose" = "yes" && cat << EOF
6820 Defining THIS_IS_X11R${x11_release}
6822 cat >> confdefs.h <<EOF
6823 #define THIS_IS_X11R${x11_release} 1
6828 if test "${x11_release}" = "4"; then
6829 case "$with_widgets" in
6830 "" | "no") with_widgets=no ;;
6831 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6835 for ac_func in XConvertCase
6837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6838 echo "configure:6839: checking for $ac_func" >&5
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 /* System header to define __stub macros and hopefully few prototypes,
6844 which can conflict with char $ac_func(); below. */
6846 /* Override any gcc2 internal prototype to avoid an error. */
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6853 /* The GNU C library defines this for functions which it implements
6854 to always fail with ENOSYS. Some functions are actually named
6855 something starting with __ and the normal name is an alias. */
6856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 eval "ac_cv_func_$ac_func=yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 eval "ac_cv_func_$ac_func=no"
6875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6876 echo "$ac_t""yes" 1>&6
6877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6878 { test "$extra_verbose" = "yes" && cat << EOF
6879 Defining $ac_tr_func
6881 cat >> confdefs.h <<EOF
6882 #define $ac_tr_func 1
6887 echo "$ac_t""no" 1>&6
6892 for ac_hdr in X11/Xlocale.h
6894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6896 echo "configure:6897: checking for $ac_hdr" >&5
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6904 { (eval echo configure:6905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6906 if test -z "$ac_err"; then
6908 eval "ac_cv_header_$ac_safe=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6914 eval "ac_cv_header_$ac_safe=no"
6917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6918 echo "$ac_t""yes" 1>&6
6919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6920 { test "$extra_verbose" = "yes" && cat << EOF
6923 cat >> confdefs.h <<EOF
6924 #define $ac_tr_hdr 1
6929 echo "$ac_t""no" 1>&6
6934 for ac_func in XRegisterIMInstantiateCallback
6936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_func" >&5
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func(); below. */
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 eval "ac_cv_func_$ac_func=yes"
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 eval "ac_cv_func_$ac_func=no"
6974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6977 { test "$extra_verbose" = "yes" && cat << EOF
6978 Defining $ac_tr_func
6980 cat >> confdefs.h <<EOF
6981 #define $ac_tr_func 1
6986 echo "$ac_t""no" 1>&6
6990 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6991 echo "configure:6992: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6992 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6996 #define NeedFunctionPrototypes 1
6997 #include <X11/Xlib.h>
6998 extern Bool XRegisterIMInstantiateCallback(
6999 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7005 if { (eval echo configure:7006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7007 echo "$ac_t""yes" 1>&6
7009 echo "configure: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7012 echo "$ac_t""no" 1>&6
7013 { test "$extra_verbose" = "yes" && cat << \EOF
7014 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7016 cat >> confdefs.h <<\EOF
7017 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7024 test -z "$with_xmu" && {
7025 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7026 echo "configure:7027: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7027 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7029 xe_check_libs=" -lXmu "
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char XmuReadBitmapDataFromFile();
7039 XmuReadBitmapDataFromFile()
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_lib_$ac_lib_var=no"
7054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7055 echo "$ac_t""yes" 1>&6
7058 echo "$ac_t""no" 1>&6
7063 if test "$with_xmu" = "no"; then
7064 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7065 echo " xemacs will be linked with \"xmu.o\""
7068 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7069 { test "$extra_verbose" = "yes" && cat << \EOF
7072 cat >> confdefs.h <<\EOF
7080 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7081 echo "configure:7082: checking for main in -lXbsd" >&5
7082 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7084 xe_check_libs=" -lXbsd "
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
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_lib_$ac_lib_var=yes"
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 eval "ac_cv_lib_$ac_lib_var=no"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7106 echo "$ac_t""yes" 1>&6
7107 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7109 echo "$ac_t""no" 1>&6
7114 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7115 if test "$GCC" = "yes"; then
7116 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7117 echo "configure:7118: checking for name of AIX gcc threads option" >&5
7118 case `$CC -v --help 2>&1` in
7119 *-mthreads*) aix_threads=-mthreads ;;
7120 *) aix_threads=-pthread ;;
7122 echo "$ac_t""$aix_threads" 1>&6
7123 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7124 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7126 case "$CC" in *_r) : ;;
7130 echo $ac_n "checking size of short""... $ac_c" 1>&6
7131 echo "configure:7132: checking size of short" >&5
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7139 FILE *f=fopen("conftestval", "w");
7141 fprintf(f, "%d\n", sizeof(short));
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7147 ac_cv_sizeof_short=`cat conftestval`
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 ac_cv_sizeof_short=0
7156 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7157 { test "$extra_verbose" = "yes" && cat << EOF
7158 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7160 cat >> confdefs.h <<EOF
7161 #define SIZEOF_SHORT $ac_cv_sizeof_short
7166 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7172 if test "$with_msw" != "no"; then
7173 echo "checking for MS-Windows" 1>&6
7174 echo "configure:7175: checking for MS-Windows" >&5
7176 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7177 echo "configure:7178: checking for main in -lgdi32" >&5
7178 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7180 xe_check_libs=" -lgdi32 "
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7189 if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7191 eval "ac_cv_lib_$ac_lib_var=yes"
7193 echo "configure: failed program was:" >&5
7194 cat conftest.$ac_ext >&5
7196 eval "ac_cv_lib_$ac_lib_var=no"
7201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7202 echo "$ac_t""yes" 1>&6
7205 echo "$ac_t""no" 1>&6
7209 if test "$with_msw" = "yes"; then
7210 { test "$extra_verbose" = "yes" && cat << \EOF
7211 Defining HAVE_MS_WINDOWS
7213 cat >> confdefs.h <<\EOF
7214 #define HAVE_MS_WINDOWS 1
7219 if test "$with_netinstall" = "yes"; then
7220 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7221 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7222 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7225 install_pp="$blddir/lib-src/installexe.sh"
7226 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lkernel32 -lwinspool\" to \$libs_system"; fi
7227 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7228 if test "$window_system" != x11; then
7230 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7231 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7232 echo " xemacs will be linked with \"scrollbar-msw.o\""
7234 test "$with_menubars" != "no" && with_menubars=msw \
7235 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7236 echo " xemacs will be linked with \"menubar-msw.o\""
7238 test "$with_toolbars" != "no" && with_toolbars=msw \
7239 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7240 echo " xemacs will be linked with \"toolbar-msw.o\""
7242 test "$with_dialogs" != "no" && with_dialogs=msw \
7243 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7244 echo " xemacs will be linked with \"dialog-msw.o\""
7246 test "$with_widgets" != "no" && with_widgets=msw
7248 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7249 echo " xemacs will be linked with \"scrollbar-msw.o\""
7251 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7252 echo " xemacs will be linked with \"menubar-msw.o\""
7254 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7255 echo " xemacs will be linked with \"toolbar-msw.o\""
7257 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7258 echo " xemacs will be linked with \"dialog-msw.o\""
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7265 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7269 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7270 Defining HAVE_MSG_SELECT
7272 cat >> confdefs.h <<\EOF
7273 #define HAVE_MSG_SELECT 1
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7283 with_file_coding=yes
7284 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
7285 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\""
7292 test -z "$window_system" && window_system="none"
7294 if test "$window_system" = "none"; then
7295 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7297 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7298 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7300 eval "with_${feature}=no"
7303 test -z "$with_toolbars" && with_toolbars=yes
7306 if test "$with_msw" != "yes"; then
7307 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7309 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7310 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7312 eval "with_${feature}=no"
7318 if test "$with_x11" != "yes"; then
7319 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7321 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7322 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7324 eval "with_${feature}=no"
7328 if test "$with_x11" = "yes"; then
7329 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7330 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7331 echo "configure:7332: checking for X11/extensions/shape.h" >&5
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 #include <X11/extensions/shape.h>
7338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7339 { (eval echo configure:7340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7341 if test -z "$ac_err"; then
7343 eval "ac_cv_header_$ac_safe=yes"
7346 echo "configure: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7349 eval "ac_cv_header_$ac_safe=no"
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7355 { test "$extra_verbose" = "yes" && cat << \EOF
7356 Defining HAVE_BALLOON_HELP
7358 cat >> confdefs.h <<\EOF
7359 #define HAVE_BALLOON_HELP 1
7363 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7364 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7367 echo "$ac_t""no" 1>&6
7374 case "$window_system" in
7375 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7376 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7379 test "$with_gnome" = "yes" && echo " Using GNOME."
7380 test "$with_gnome" = "no" && echo " Using GTK."
7382 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7385 case "$x_libraries" in *X11R4* )
7386 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7387 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7390 echo "checking for WM_COMMAND option" 1>&6
7391 echo "configure:7392: checking for WM_COMMAND option" >&5;
7392 if test "$with_wmcommand" != "no"; then
7393 { test "$extra_verbose" = "yes" && cat << \EOF
7394 Defining HAVE_WMCOMMAND
7396 cat >> confdefs.h <<\EOF
7397 #define HAVE_WMCOMMAND 1
7403 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7404 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7405 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7406 echo "configure:7407: checking for X11/Xauth.h" >&5
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 #include <X11/Xauth.h>
7413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7414 { (eval echo configure:7415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7416 if test -z "$ac_err"; then
7418 eval "ac_cv_header_$ac_safe=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_header_$ac_safe=no"
7427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6
7431 echo "$ac_t""no" 1>&6
7435 test -z "$with_xauth" && {
7436 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7437 echo "configure:7438: checking for XauGetAuthByAddr in -lXau" >&5
7438 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7440 xe_check_libs=" -lXau "
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7447 char XauGetAuthByAddr();
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7455 eval "ac_cv_lib_$ac_lib_var=yes"
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 eval "ac_cv_lib_$ac_lib_var=no"
7465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7466 echo "$ac_t""yes" 1>&6
7469 echo "$ac_t""no" 1>&6
7474 test -z "$with_xauth" && with_xauth=yes
7475 if test "$with_xauth" = "yes"; then
7476 { test "$extra_verbose" = "yes" && cat << \EOF
7479 cat >> confdefs.h <<\EOF
7480 #define HAVE_XAUTH 1
7486 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
7494 if test "$with_tooltalk" != "no" ; then
7495 for dir in "" "Tt/" "desktop/" ; do
7496 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7497 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7498 echo "configure:7499: checking for ${dir}tt_c.h" >&5
7500 cat > conftest.$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 #include <${dir}tt_c.h>
7505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7506 { (eval echo configure:7507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7508 if test -z "$ac_err"; then
7510 eval "ac_cv_header_$ac_safe=yes"
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7516 eval "ac_cv_header_$ac_safe=no"
7519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7520 echo "$ac_t""yes" 1>&6
7521 tt_c_h_file="${dir}tt_c.h"; break
7523 echo "$ac_t""no" 1>&6
7527 if test -z "$tt_c_h_file"; then
7528 if test "$with_tooltalk" = "yes"; then
7529 (echo "$progname: Usage error:"
7530 echo " " "Unable to find required tooltalk header files."
7531 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7536 if test "$with_tooltalk" != "no" ; then
7537 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7539 xe_msg_checking="for tt_message_create in -ltt"
7540 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7541 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7542 echo "configure:7543: checking "$xe_msg_checking"" >&5
7543 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7545 xe_check_libs=" -ltt $extra_libs"
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7549 /* Override any gcc2 internal prototype to avoid an error. */
7550 /* We use char because int might match the return type of a gcc2
7551 builtin and then its argument prototype would still apply. */
7552 char tt_message_create();
7558 if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7560 eval "ac_cv_lib_$ac_lib_var=yes"
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 eval "ac_cv_lib_$ac_lib_var=no"
7570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7571 echo "$ac_t""yes" 1>&6
7572 tt_libs="-ltt $extra_libs"; break
7574 echo "$ac_t""no" 1>&6
7580 if test -z "$tt_libs"; then
7581 if test "$with_tooltalk" = "yes"; then
7582 (echo "$progname: Usage error:"
7583 echo " " "Unable to find required tooltalk libraries."
7584 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7589 test -z "$with_tooltalk" && with_tooltalk=yes
7590 if test "$with_tooltalk" = "yes"; then
7591 { test "$extra_verbose" = "yes" && cat << \EOF
7594 cat >> confdefs.h <<\EOF
7599 { test "$extra_verbose" = "yes" && cat << EOF
7600 Defining TT_C_H_FILE = "$tt_c_h_file"
7602 cat >> confdefs.h <<EOF
7603 #define TT_C_H_FILE "$tt_c_h_file"
7607 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7608 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7609 echo " xemacs will be linked with \"tooltalk.o\""
7613 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7614 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7615 echo "configure:7616: checking for Dt/Dt.h" >&5
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7623 { (eval echo configure:7624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7625 if test -z "$ac_err"; then
7627 eval "ac_cv_header_$ac_safe=yes"
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7640 echo "$ac_t""no" 1>&6
7644 test -z "$with_cde" && {
7645 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7646 echo "configure:7647: checking for DtDndDragStart in -lDtSvc" >&5
7647 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7649 xe_check_libs=" -lDtSvc "
7650 cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char DtDndDragStart();
7662 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 eval "ac_cv_lib_$ac_lib_var=yes"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 eval "ac_cv_lib_$ac_lib_var=no"
7674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7675 echo "$ac_t""yes" 1>&6
7678 echo "$ac_t""no" 1>&6
7683 test -z "$with_cde" && with_cde=yes
7684 if test "$with_dragndrop" = no; then
7685 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7688 if test "$with_cde" = "yes" ; then
7689 { test "$extra_verbose" = "yes" && cat << \EOF
7692 cat >> confdefs.h <<\EOF
7697 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7698 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7699 with_tooltalk=yes # CDE requires Tooltalk
7700 need_motif=yes # CDE requires Motif
7703 test "$window_system" != "x11" && with_offix=no
7704 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7705 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7708 if test "$with_dragndrop" = no; then
7709 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7712 if test "$with_cde" = yes; then
7713 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7716 test -z "$with_offix" && with_offix=no
7717 if test "$with_offix" = "yes"; then
7718 { test "$extra_verbose" = "yes" && cat << \EOF
7719 Defining HAVE_OFFIX_DND
7721 cat >> confdefs.h <<\EOF
7722 #define HAVE_OFFIX_DND 1
7726 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7727 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7729 if test "$with_gtk" = "yes"; then
7730 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7733 if test "$with_dragndrop" != "no" ; then
7734 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7735 echo "configure:7736: checking if drag and drop API is needed" >&5
7736 if test -n "$dragndrop_proto" ; then
7738 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7739 { test "$extra_verbose" = "yes" && cat << \EOF
7740 Defining HAVE_DRAGNDROP
7742 cat >> confdefs.h <<\EOF
7743 #define HAVE_DRAGNDROP 1
7747 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7750 echo "$ac_t""no" 1>&6
7754 echo "checking for LDAP" 1>&6
7755 echo "configure:7756: checking for LDAP" >&5
7756 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7757 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7758 echo "configure:7759: checking for ldap.h" >&5
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7766 { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7768 if test -z "$ac_err"; then
7770 eval "ac_cv_header_$ac_safe=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 eval "ac_cv_header_$ac_safe=no"
7779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7780 echo "$ac_t""yes" 1>&6
7783 echo "$ac_t""no" 1>&6
7787 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7788 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7789 echo "configure:7790: checking for lber.h" >&5
7791 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7797 { (eval echo configure:7798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7799 if test -z "$ac_err"; then
7801 eval "ac_cv_header_$ac_safe=yes"
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7807 eval "ac_cv_header_$ac_safe=no"
7810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7814 echo "$ac_t""no" 1>&6
7818 if test "$with_ldap" != "no"; then
7820 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7821 echo "configure:7822: checking for ldap_search in -lldap" >&5
7822 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7824 xe_check_libs=" -lldap "
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7837 if { (eval echo configure:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7839 eval "ac_cv_lib_$ac_lib_var=yes"
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7844 eval "ac_cv_lib_$ac_lib_var=no"
7849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7850 echo "$ac_t""yes" 1>&6
7851 with_ldap_nolber=yes
7853 echo "$ac_t""no" 1>&6
7858 test "$with_ldap_nolber" = "no" && {
7859 xe_msg_checking="for ldap_open in -lldap"
7860 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7861 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7862 echo "configure:7863: checking "$xe_msg_checking"" >&5
7863 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7865 xe_check_libs=" -lldap -llber"
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7880 eval "ac_cv_lib_$ac_lib_var=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_lib_$ac_lib_var=no"
7890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7891 echo "$ac_t""yes" 1>&6
7894 echo "$ac_t""no" 1>&6
7899 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7900 xe_msg_checking="for ldap_open in -lldap"
7901 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7902 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7903 echo "configure:7904: checking "$xe_msg_checking"" >&5
7904 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7906 xe_check_libs=" -lldap -llber -lkrb"
7907 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 /* Override any gcc2 internal prototype to avoid an error. */
7911 /* We use char because int might match the return type of a gcc2
7912 builtin and then its argument prototype would still apply. */
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 eval "ac_cv_lib_$ac_lib_var=yes"
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 eval "ac_cv_lib_$ac_lib_var=no"
7931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7932 echo "$ac_t""yes" 1>&6
7935 echo "$ac_t""no" 1>&6
7940 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7941 xe_msg_checking="for ldap_open in -lldap"
7942 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7943 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7944 echo "configure:7945: checking "$xe_msg_checking"" >&5
7945 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7947 xe_check_libs=" -lldap -llber -lkrb -ldes"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7973 echo "$ac_t""yes" 1>&6
7974 with_ldap_krbdes=yes
7976 echo "$ac_t""no" 1>&6
7981 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
7983 if test "$with_ldap" = "yes"; then
7984 { test "$extra_verbose" = "yes" && cat << \EOF
7987 cat >> confdefs.h <<\EOF
7992 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7993 echo " xemacs will be linked with \"eldap.o\""
7995 if test "$with_ldap_nolber" = "yes" ; then
7996 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7998 if test "$with_ldap_krb" = "yes" ; then
7999 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8001 if test "$with_ldap_krbdes" = "yes" ; then
8002 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
8003 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8005 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
8006 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8008 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8011 echo "configure:8012: checking for $ac_func" >&5
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char $ac_func(); below. */
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 eval "ac_cv_func_$ac_func=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_func_$ac_func=no"
8048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8051 { test "$extra_verbose" = "yes" && cat << EOF
8052 Defining $ac_tr_func
8054 cat >> confdefs.h <<EOF
8055 #define $ac_tr_func 1
8060 echo "$ac_t""no" 1>&6
8066 if test "$with_postgresql" != "no"; then
8067 echo "checking for PostgreSQL" 1>&6
8068 echo "configure:8069: checking for PostgreSQL" >&5
8070 for header_dir in "" "pgsql/" "postgresql/"; do
8071 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8072 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8073 echo "configure:8074: checking for ${header_dir}libpq-fe.h" >&5
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 #include <${header_dir}libpq-fe.h>
8080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8081 { (eval echo configure:8082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8083 if test -z "$ac_err"; then
8085 eval "ac_cv_header_$ac_safe=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_header_$ac_safe=no"
8094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8098 echo "$ac_t""no" 1>&6
8103 test -n "$libpq_fe_h_file" && {
8104 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8105 echo "configure:8106: checking for PQconnectdb in -lpq" >&5
8106 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8108 xe_check_libs=" -lpq "
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8123 eval "ac_cv_lib_$ac_lib_var=yes"
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 eval "ac_cv_lib_$ac_lib_var=no"
8133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8134 echo "$ac_t""yes" 1>&6
8137 echo "$ac_t""no" 1>&6
8142 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8144 { test "$extra_verbose" = "yes" && cat << \EOF
8145 Defining HAVE_POSTGRESQL
8147 cat >> confdefs.h <<\EOF
8148 #define HAVE_POSTGRESQL 1
8153 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8154 echo "configure:8155: checking for PQconnectStart in -lpq" >&5
8155 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8157 xe_check_libs=" -lpq "
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8164 char PQconnectStart();
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 eval "ac_cv_lib_$ac_lib_var=yes"
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8177 eval "ac_cv_lib_$ac_lib_var=no"
8182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8183 echo "$ac_t""yes" 1>&6
8184 with_postgresqlv7=yes;
8185 { test "$extra_verbose" = "yes" && cat << \EOF
8186 Defining HAVE_POSTGRESQLV7
8188 cat >> confdefs.h <<\EOF
8189 #define HAVE_POSTGRESQLV7 1
8194 echo "$ac_t""no" 1>&6
8198 { test "$extra_verbose" = "yes" && cat << EOF
8199 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8201 cat >> confdefs.h <<EOF
8202 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8206 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8207 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8208 echo " xemacs will be linked with \"postgresql.o\""
8210 elif test "$with_postgresql" = "yes"; then
8211 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8216 if test "$window_system" != "none"; then
8217 echo "checking for graphics libraries" 1>&6
8218 echo "configure:8219: checking for graphics libraries" >&5
8224 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8225 cygwin_top=`eval "dirname ${cygwin_top}"`;
8226 cygwin_top="${cygwin_top}/..";
8227 case "$window_system" in
8229 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8230 incpath_xpm="-I${cygwin_top}/include/noX"
8240 if test -z "$with_xpm"; then
8241 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8242 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8243 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8244 echo "configure:8245: checking for Xpm - no older than 3.4f" >&5
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8250 #include <X11/xpm.h>
8251 int main(int c, char **v) {
8253 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8254 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8258 ./conftest dummy_arg; xpm_status=$?;
8259 if test "$xpm_status" = "0"; then
8263 if test "$xpm_status" = "1"; then
8264 xpm_problem="Xpm library version and header file version don't match!"
8265 elif test "$xpm_status" = "2"; then
8266 xpm_problem="Xpm library version is too old!"
8268 xpm_problem="Internal xpm detection logic error!"
8271 *** WARNING *** $xpm_problem
8272 I'm not touching that with a 10-foot pole!
8273 If you really want to use the installed version of Xpm, rerun
8274 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8285 echo "$ac_t""$with_xpm" 1>&6
8287 if test "$with_xpm" = "yes"; then
8288 { test "$extra_verbose" = "yes" && cat << \EOF
8291 cat >> confdefs.h <<\EOF
8296 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8297 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8298 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8299 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8300 echo "configure:8301: checking for \"FOR_MSW\" xpm" >&5
8302 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure"
8304 #include "confdefs.h"
8307 XpmCreatePixmapFromData()
8310 if { (eval echo configure:8311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8314 echo "configure: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8321 echo "$ac_t""$xpm_for_msw" 1>&6
8322 if test "$xpm_for_msw" = "yes"; then
8323 { test "$extra_verbose" = "yes" && cat << \EOF
8326 cat >> confdefs.h <<\EOF
8334 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8335 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8336 echo "configure:8337: checking for compface.h" >&5
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 #include <compface.h>
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346 if test -z "$ac_err"; then
8348 eval "ac_cv_header_$ac_safe=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 eval "ac_cv_header_$ac_safe=no"
8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8361 echo "$ac_t""no" 1>&6
8365 test -z "$with_xface" && {
8366 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8367 echo "configure:8368: checking for UnGenFace in -lcompface" >&5
8368 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8370 xe_check_libs=" -lcompface "
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385 eval "ac_cv_lib_$ac_lib_var=yes"
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 eval "ac_cv_lib_$ac_lib_var=no"
8395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8396 echo "$ac_t""yes" 1>&6
8399 echo "$ac_t""no" 1>&6
8404 test -z "$with_xface" && with_xface=yes
8405 if test "$with_xface" = "yes"; then
8406 { test "$extra_verbose" = "yes" && cat << \EOF
8409 cat >> confdefs.h <<\EOF
8410 #define HAVE_XFACE 1
8414 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8417 if test "$with_gif" != "no"; then
8419 { test "$extra_verbose" = "yes" && cat << \EOF
8422 cat >> confdefs.h <<\EOF
8427 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8428 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8432 if test "$with_png $with_tiff" != "no no"; then
8434 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8435 echo "configure:8436: checking for inflate in -lc" >&5
8436 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8438 xe_check_libs=" -lc "
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8453 eval "ac_cv_lib_$ac_lib_var=yes"
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 eval "ac_cv_lib_$ac_lib_var=no"
8463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8464 echo "$ac_t""yes" 1>&6
8467 echo "$ac_t""no" 1>&6
8469 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8470 echo "configure:8471: checking for inflate in -lz" >&5
8471 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8473 xe_check_libs=" -lz "
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8488 eval "ac_cv_lib_$ac_lib_var=yes"
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8493 eval "ac_cv_lib_$ac_lib_var=no"
8498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8499 echo "$ac_t""yes" 1>&6
8500 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8502 echo "$ac_t""no" 1>&6
8504 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8505 echo "configure:8506: checking for inflate in -lgz" >&5
8506 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8508 xe_check_libs=" -lgz "
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 /* Override any gcc2 internal prototype to avoid an error. */
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 eval "ac_cv_lib_$ac_lib_var=yes"
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 eval "ac_cv_lib_$ac_lib_var=no"
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8534 echo "$ac_t""yes" 1>&6
8535 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8537 echo "$ac_t""no" 1>&6
8549 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8550 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8551 echo "configure:8552: checking for jpeglib.h" >&5
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 #include <jpeglib.h>
8558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8559 { (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8561 if test -z "$ac_err"; then
8563 eval "ac_cv_header_$ac_safe=yes"
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8569 eval "ac_cv_header_$ac_safe=no"
8572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8573 echo "$ac_t""yes" 1>&6
8576 echo "$ac_t""no" 1>&6
8580 test -z "$with_jpeg" && {
8581 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8582 echo "configure:8583: checking for jpeg_destroy_decompress in -ljpeg" >&5
8583 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8585 xe_check_libs=" -ljpeg "
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8592 char jpeg_destroy_decompress();
8595 jpeg_destroy_decompress()
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600 eval "ac_cv_lib_$ac_lib_var=yes"
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8605 eval "ac_cv_lib_$ac_lib_var=no"
8610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8611 echo "$ac_t""yes" 1>&6
8614 echo "$ac_t""no" 1>&6
8619 test -z "$with_jpeg" && with_jpeg=yes
8620 if test "$with_jpeg" = "yes"; then
8621 { test "$extra_verbose" = "yes" && cat << \EOF
8624 cat >> confdefs.h <<\EOF
8629 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8633 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8634 echo "configure:8635: checking for pow" >&5
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char pow(); below. */
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_pow) || defined (__stub___pow)
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 eval "ac_cv_func_pow=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 eval "ac_cv_func_pow=no"
8671 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8672 echo "$ac_t""yes" 1>&6
8675 echo "$ac_t""no" 1>&6
8679 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8681 echo "configure:8682: checking for png.h" >&5
8683 cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8689 { (eval echo configure:8690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8691 if test -z "$ac_err"; then
8693 eval "ac_cv_header_$ac_safe=yes"
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8699 eval "ac_cv_header_$ac_safe=no"
8702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8706 echo "$ac_t""no" 1>&6
8710 test -z "$with_png" && {
8711 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8712 echo "configure:8713: checking for png_read_image in -lpng" >&5
8713 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8715 xe_check_libs=" -lpng "
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8722 char png_read_image();
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_lib_$ac_lib_var=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_lib_$ac_lib_var=no"
8740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8741 echo "$ac_t""yes" 1>&6
8744 echo "$ac_t""no" 1>&6
8749 if test -z "$with_png"; then
8750 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8751 echo "configure:8752: checking for workable png version information" >&5
8752 xe_check_libs="-lpng -lz"
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8757 int main(int c, char **v) {
8758 if (c == 1) return 0;
8759 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8760 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8764 ./conftest dummy_arg; png_status=$?;
8765 if test "$png_status" = "0"; then
8769 if test "$png_status" = "1"; then
8770 png_problem="PNG library version and header file don't match!"
8771 elif test "$png_status" = "2"; then
8772 png_problem="PNG library version too old (pre 1.0.2)!"
8775 *** WARNING *** $png_problem
8776 I'm not touching that with a 10-foot pole!
8777 If you really want to use the installed version of libPNG, rerun
8778 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8789 echo "$ac_t""$with_png" 1>&6
8791 if test "$with_png" = "yes"; then
8792 { test "$extra_verbose" = "yes" && cat << \EOF
8795 cat >> confdefs.h <<\EOF
8800 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8803 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8804 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8805 echo "configure:8806: checking for tiffio.h" >&5
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8813 { (eval echo configure:8814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8815 if test -z "$ac_err"; then
8817 eval "ac_cv_header_$ac_safe=yes"
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8823 eval "ac_cv_header_$ac_safe=no"
8826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
8830 echo "$ac_t""no" 1>&6
8834 test -z "$with_tiff" && {
8835 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8836 echo "configure:8837: checking for TIFFClientOpen in -ltiff" >&5
8837 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8839 xe_check_libs=" -ltiff "
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 /* Override any gcc2 internal prototype to avoid an error. */
8844 /* We use char because int might match the return type of a gcc2
8845 builtin and then its argument prototype would still apply. */
8846 char TIFFClientOpen();
8852 if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8854 eval "ac_cv_lib_$ac_lib_var=yes"
8856 echo "configure: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8859 eval "ac_cv_lib_$ac_lib_var=no"
8864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8865 echo "$ac_t""yes" 1>&6
8868 echo "$ac_t""no" 1>&6
8873 test -z "$with_tiff" && with_tiff=yes
8874 if test "$with_tiff" = "yes"; then
8875 { test "$extra_verbose" = "yes" && cat << \EOF
8878 cat >> confdefs.h <<\EOF
8883 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8888 if test "$with_gtk" = "yes"; then
8889 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8890 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8891 echo "configure:8892: checking for compface.h" >&5
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 #include <compface.h>
8898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8899 { (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8901 if test -z "$ac_err"; then
8903 eval "ac_cv_header_$ac_safe=yes"
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 eval "ac_cv_header_$ac_safe=no"
8912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8916 echo "$ac_t""no" 1>&6
8920 test -z "$with_xface" && {
8921 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8922 echo "configure:8923: checking for UnGenFace in -lcompface" >&5
8923 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8925 xe_check_libs=" -lcompface "
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 eval "ac_cv_lib_$ac_lib_var=yes"
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 eval "ac_cv_lib_$ac_lib_var=no"
8950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8951 echo "$ac_t""yes" 1>&6
8954 echo "$ac_t""no" 1>&6
8959 test -z "$with_xface" && with_xface=yes
8960 if test "$with_xface" = "yes"; then
8961 { test "$extra_verbose" = "yes" && cat << \EOF
8964 cat >> confdefs.h <<\EOF
8965 #define HAVE_XFACE 1
8969 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8975 if test "$with_x11" = "yes"; then
8976 echo "checking for X11 graphics libraries" 1>&6
8977 echo "configure:8978: checking for X11 graphics libraries" >&5
8980 if test "$with_x11" = "yes"; then
8981 echo "checking for the Athena widgets" 1>&6
8982 echo "configure:8983: checking for the Athena widgets" >&5
8984 case "$with_athena" in
8985 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8986 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8987 "next") athena_variant=neXtaw athena_3d=yes ;;
8988 "95") athena_variant=Xaw95 athena_3d=yes ;;
8989 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8990 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8993 athena_3d_function=Xaw3dComputeBottomShadowRGB
8995 if test "$athena_3d" = "no"; then
8997 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8998 echo "configure:8999: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8999 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9001 xe_check_libs=" -l$athena_variant "
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 /* Override any gcc2 internal prototype to avoid an error. */
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008 char XawScrollbarSetThumb();
9011 XawScrollbarSetThumb()
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9016 eval "ac_cv_lib_$ac_lib_var=yes"
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 eval "ac_cv_lib_$ac_lib_var=no"
9026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9027 echo "$ac_t""yes" 1>&6
9029 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9030 echo "configure:9031: checking for $athena_3d_function in -l$athena_variant" >&5
9031 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9033 xe_check_libs=" -l$athena_variant "
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9037 /* Override any gcc2 internal prototype to avoid an error. */
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040 char $athena_3d_function();
9043 $athena_3d_function()
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9048 eval "ac_cv_lib_$ac_lib_var=yes"
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9053 eval "ac_cv_lib_$ac_lib_var=no"
9058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9059 echo "$ac_t""yes" 1>&6
9060 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9062 echo "$ac_t""no" 1>&6
9063 athena_lib=$athena_variant
9069 echo "$ac_t""no" 1>&6
9070 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9076 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9077 echo "configure:9078: checking for $athena_3d_function in -l$athena_variant" >&5
9078 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9080 xe_check_libs=" -l$athena_variant "
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9087 char $athena_3d_function();
9090 $athena_3d_function()
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 eval "ac_cv_lib_$ac_lib_var=yes"
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 eval "ac_cv_lib_$ac_lib_var=no"
9105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9106 echo "$ac_t""yes" 1>&6
9107 athena_lib=$athena_variant
9109 echo "$ac_t""no" 1>&6
9110 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9111 echo "configure:9112: checking for $athena_3d_function in -lXaw" >&5
9112 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9114 xe_check_libs=" -lXaw "
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char $athena_3d_function();
9124 $athena_3d_function()
9127 if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 eval "ac_cv_lib_$ac_lib_var=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_lib_$ac_lib_var=no"
9139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9140 echo "$ac_t""yes" 1>&6
9142 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9145 echo "$ac_t""no" 1>&6
9146 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9155 if test "$athena_3d" = "no"; then
9156 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9157 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9158 echo "configure:9159: checking for X11/Xaw/ThreeD.h" >&5
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 #include <X11/Xaw/ThreeD.h>
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9170 eval "ac_cv_header_$ac_safe=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_header_$ac_safe=no"
9179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9183 echo "$ac_t""no" 1>&6
9184 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for X11/Xaw/XawInit.h" >&5
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 #include <X11/Xaw/XawInit.h>
9193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9196 if test -z "$ac_err"; then
9198 eval "ac_cv_header_$ac_safe=yes"
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9204 eval "ac_cv_header_$ac_safe=no"
9207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 athena_h_path=X11/Xaw
9211 echo "$ac_t""no" 1>&6
9212 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9218 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9219 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9220 echo "configure:9221: checking for X11/$athena_variant/XawInit.h" >&5
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 #include <X11/$athena_variant/XawInit.h>
9227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9228 { (eval echo configure:9229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9230 if test -z "$ac_err"; then
9232 eval "ac_cv_header_$ac_safe=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_header_$ac_safe=no"
9241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9244 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9245 echo "configure:9246: checking for X11/$athena_variant/ThreeD.h" >&5
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 #include <X11/$athena_variant/ThreeD.h>
9252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9253 { (eval echo configure:9254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9255 if test -z "$ac_err"; then
9257 eval "ac_cv_header_$ac_safe=yes"
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9263 eval "ac_cv_header_$ac_safe=no"
9266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9267 echo "$ac_t""yes" 1>&6
9268 athena_h_path=X11/$athena_variant
9270 echo "$ac_t""no" 1>&6
9274 echo "$ac_t""no" 1>&6
9278 if test -z "$athena_h_path"; then
9279 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9280 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9281 echo "configure:9282: checking for $athena_variant/XawInit.h" >&5
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <$athena_variant/XawInit.h>
9288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9289 { (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9291 if test -z "$ac_err"; then
9293 eval "ac_cv_header_$ac_safe=yes"
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9299 eval "ac_cv_header_$ac_safe=no"
9302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9303 echo "$ac_t""yes" 1>&6
9304 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9305 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9306 echo "configure:9307: checking for $athena_variant/ThreeD.h" >&5
9308 cat > conftest.$ac_ext <<EOF
9309 #line 9310 "configure"
9310 #include "confdefs.h"
9311 #include <$athena_variant/ThreeD.h>
9313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9314 { (eval echo configure:9315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9316 if test -z "$ac_err"; then
9318 eval "ac_cv_header_$ac_safe=yes"
9321 echo "configure: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9324 eval "ac_cv_header_$ac_safe=no"
9327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9328 echo "$ac_t""yes" 1>&6
9329 athena_h_path=$athena_variant
9331 echo "$ac_t""no" 1>&6
9335 echo "$ac_t""no" 1>&6
9340 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9341 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9342 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9343 echo "configure:9344: checking for X11/Xaw3d/XawInit.h" >&5
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9348 #include <X11/Xaw3d/XawInit.h>
9350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9351 { (eval echo configure:9352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9353 if test -z "$ac_err"; then
9355 eval "ac_cv_header_$ac_safe=yes"
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9361 eval "ac_cv_header_$ac_safe=no"
9364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9365 echo "$ac_t""yes" 1>&6
9366 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9367 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9368 echo "configure:9369: checking for X11/Xaw3d/ThreeD.h" >&5
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <X11/Xaw3d/ThreeD.h>
9375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9376 { (eval echo configure:9377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9378 if test -z "$ac_err"; then
9380 eval "ac_cv_header_$ac_safe=yes"
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 eval "ac_cv_header_$ac_safe=no"
9389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9390 echo "$ac_t""yes" 1>&6
9392 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9393 athena_h_path=X11/Xaw3d
9396 echo "$ac_t""no" 1>&6
9400 echo "$ac_t""no" 1>&6
9405 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9406 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9407 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9408 echo "configure:9409: checking for Xaw3d/XawInit.h" >&5
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9413 #include <Xaw3d/XawInit.h>
9415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9416 { (eval echo configure:9417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9418 if test -z "$ac_err"; then
9420 eval "ac_cv_header_$ac_safe=yes"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9426 eval "ac_cv_header_$ac_safe=no"
9429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9430 echo "$ac_t""yes" 1>&6
9431 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9432 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9433 echo "configure:9434: checking for Xaw3d/ThreeD.h" >&5
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <Xaw3d/ThreeD.h>
9440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9441 { (eval echo configure:9442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9443 if test -z "$ac_err"; then
9445 eval "ac_cv_header_$ac_safe=yes"
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9451 eval "ac_cv_header_$ac_safe=no"
9454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9455 echo "$ac_t""yes" 1>&6
9457 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9461 echo "$ac_t""no" 1>&6
9465 echo "$ac_t""no" 1>&6
9470 if test -z "$athena_h_path"; then
9471 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9472 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9473 echo "configure:9474: checking for X11/Xaw/ThreeD.h" >&5
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 #include <X11/Xaw/ThreeD.h>
9480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9481 { (eval echo configure:9482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9483 if test -z "$ac_err"; then
9485 eval "ac_cv_header_$ac_safe=yes"
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9491 eval "ac_cv_header_$ac_safe=no"
9494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9495 echo "$ac_t""yes" 1>&6
9497 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9498 athena_h_path=X11/Xaw
9501 echo "$ac_t""no" 1>&6
9502 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9508 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9517 if test "$with_x11" = "yes"; then
9518 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9519 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9520 echo "configure:9521: checking for Xm/Xm.h" >&5
9522 cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9528 { (eval echo configure:9529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9530 if test -z "$ac_err"; then
9532 eval "ac_cv_header_$ac_safe=yes"
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9538 eval "ac_cv_header_$ac_safe=no"
9541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9542 echo "$ac_t""yes" 1>&6
9544 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9545 echo "configure:9546: checking for XmStringFree in -lXm" >&5
9546 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9548 xe_check_libs=" -lXm "
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9555 char XmStringFree();
9561 if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563 eval "ac_cv_lib_$ac_lib_var=yes"
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9568 eval "ac_cv_lib_$ac_lib_var=no"
9573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9574 echo "$ac_t""yes" 1>&6
9577 echo "$ac_t""no" 1>&6
9583 echo "$ac_t""no" 1>&6
9588 if test "$have_motif" = "yes"; then
9589 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9590 echo "configure:9591: checking for Lesstif" >&5
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9595 #ifdef LESSTIF_VERSION
9600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9601 egrep "yes" >/dev/null 2>&1; then
9610 echo "$ac_t""$have_lesstif" 1>&6
9615 case "$with_menubars" in "" | "yes" | "athena" )
9616 with_menubars="lucid" ;;
9618 case "$with_dialogs" in "" | "yes" | "lucid" )
9619 if test "$have_motif" = "yes"; then with_dialogs="motif"
9620 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9621 else with_dialogs=no
9624 case "$with_scrollbars" in "" | "yes" )
9625 with_scrollbars="lucid" ;;
9627 case "$with_widgets" in "" | "yes" | "lucid")
9628 if test "$have_motif" = "yes"; then with_widgets="motif"
9629 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9630 else with_widgets=no
9634 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9636 case "$all_widgets" in
9638 if test "$have_xaw" != "yes"; then
9639 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9642 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9644 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9646 { test "$extra_verbose" = "yes" && cat << EOF
9647 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9649 cat >> confdefs.h <<EOF
9650 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9654 { test "$extra_verbose" = "yes" && cat << EOF
9655 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9657 cat >> confdefs.h <<EOF
9658 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9662 { test "$extra_verbose" = "yes" && cat << EOF
9663 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9665 cat >> confdefs.h <<EOF
9666 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9670 { test "$extra_verbose" = "yes" && cat << EOF
9671 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9673 cat >> confdefs.h <<EOF
9674 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9678 { test "$extra_verbose" = "yes" && cat << EOF
9679 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9681 cat >> confdefs.h <<EOF
9682 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9686 { test "$extra_verbose" = "yes" && cat << EOF
9687 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9689 cat >> confdefs.h <<EOF
9690 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9694 { test "$extra_verbose" = "yes" && cat << EOF
9695 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9697 cat >> confdefs.h <<EOF
9698 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9702 { test "$extra_verbose" = "yes" && cat << EOF
9703 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9705 cat >> confdefs.h <<EOF
9706 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9710 { test "$extra_verbose" = "yes" && cat << EOF
9711 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9713 cat >> confdefs.h <<EOF
9714 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9718 { test "$extra_verbose" = "yes" && cat << EOF
9719 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9721 cat >> confdefs.h <<EOF
9722 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9727 { test "$extra_verbose" = "yes" && cat << \EOF
9728 Defining LWLIB_USES_ATHENA
9730 cat >> confdefs.h <<\EOF
9731 #define LWLIB_USES_ATHENA 1
9735 { test "$extra_verbose" = "yes" && cat << \EOF
9736 Defining NEED_ATHENA
9738 cat >> confdefs.h <<\EOF
9739 #define NEED_ATHENA 1
9745 if test "$athena_3d" = "yes"; then
9746 { test "$extra_verbose" = "yes" && cat << \EOF
9747 Defining HAVE_ATHENA_3D
9749 cat >> confdefs.h <<\EOF
9750 #define HAVE_ATHENA_3D 1
9758 case "$all_widgets" in *motif* )
9759 { test "$extra_verbose" = "yes" && cat << \EOF
9760 Defining LWLIB_USES_MOTIF
9762 cat >> confdefs.h <<\EOF
9763 #define LWLIB_USES_MOTIF 1
9767 { test "$extra_verbose" = "yes" && cat << \EOF
9770 cat >> confdefs.h <<\EOF
9771 #define NEED_MOTIF 1
9775 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9779 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9780 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9781 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9782 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9783 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9784 case "$with_widgets" in athena* )
9785 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;;
9787 case "$all_widgets" in *lucid* )
9788 { test "$extra_verbose" = "yes" && cat << \EOF
9791 cat >> confdefs.h <<\EOF
9792 #define NEED_LUCID 1
9796 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9801 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9802 Defining LWLIB_SCROLLBARS_ATHENA
9804 cat >> confdefs.h <<\EOF
9805 #define LWLIB_SCROLLBARS_ATHENA 1
9809 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9810 Defining LWLIB_DIALOGS_ATHENA
9812 cat >> confdefs.h <<\EOF
9813 #define LWLIB_DIALOGS_ATHENA 1
9818 if test "$athena_3d" = "yes"; then
9819 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9820 Defining LWLIB_SCROLLBARS_ATHENA3D
9822 cat >> confdefs.h <<\EOF
9823 #define LWLIB_SCROLLBARS_ATHENA3D 1
9827 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9828 Defining LWLIB_DIALOGS_ATHENA3D
9830 cat >> confdefs.h <<\EOF
9831 #define LWLIB_DIALOGS_ATHENA3D 1
9837 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9838 Defining LWLIB_WIDGETS_ATHENA
9840 cat >> confdefs.h <<\EOF
9841 #define LWLIB_WIDGETS_ATHENA 1
9845 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9846 { test "$extra_verbose" = "yes" && cat << \EOF
9847 Defining LWLIB_TABS_LUCID
9849 cat >> confdefs.h <<\EOF
9850 #define LWLIB_TABS_LUCID 1
9855 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9856 Defining HAVE_MENUBARS
9858 cat >> confdefs.h <<\EOF
9859 #define HAVE_MENUBARS 1
9863 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9864 Defining HAVE_SCROLLBARS
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_SCROLLBARS 1
9871 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9872 Defining HAVE_DIALOGS
9874 cat >> confdefs.h <<\EOF
9875 #define HAVE_DIALOGS 1
9879 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9880 Defining HAVE_TOOLBARS
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_TOOLBARS 1
9887 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9888 Defining HAVE_WIDGETS
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_WIDGETS 1
9896 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9897 Defining LWLIB_MENUBARS_LUCID
9899 cat >> confdefs.h <<\EOF
9900 #define LWLIB_MENUBARS_LUCID 1
9904 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9905 Defining LWLIB_SCROLLBARS_LUCID
9907 cat >> confdefs.h <<\EOF
9908 #define LWLIB_SCROLLBARS_LUCID 1
9913 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9914 Defining LWLIB_MENUBARS_MOTIF
9916 cat >> confdefs.h <<\EOF
9917 #define LWLIB_MENUBARS_MOTIF 1
9921 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9922 Defining LWLIB_SCROLLBARS_MOTIF
9924 cat >> confdefs.h <<\EOF
9925 #define LWLIB_SCROLLBARS_MOTIF 1
9929 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9930 Defining LWLIB_DIALOGS_MOTIF
9932 cat >> confdefs.h <<\EOF
9933 #define LWLIB_DIALOGS_MOTIF 1
9937 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9938 Defining LWLIB_WIDGETS_MOTIF
9940 cat >> confdefs.h <<\EOF
9941 #define LWLIB_WIDGETS_MOTIF 1
9946 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9947 echo " xemacs will be linked with \"menubar.o\""
9949 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9950 echo " xemacs will be linked with \"scrollbar.o\""
9952 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9953 echo " xemacs will be linked with \"dialog.o\""
9955 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9956 echo " xemacs will be linked with \"toolbar.o\""
9959 if test "$with_gtk" = "yes"; then
9960 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9961 echo " xemacs will be linked with \"menubar-gtk.o\""
9963 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9964 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9966 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9967 echo " xemacs will be linked with \"dialog-gtk.o\""
9969 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9970 echo " xemacs will be linked with \"toolbar-gtk.o\""
9972 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9973 echo " xemacs will be linked with \"gui-gtk.o\""
9977 if test "$with_x11" = "yes"; then
9978 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9979 echo " xemacs will be linked with \"menubar-x.o\""
9981 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9982 echo " xemacs will be linked with \"scrollbar-x.o\""
9984 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9985 echo " xemacs will be linked with \"dialog-x.o\""
9987 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9988 echo " xemacs will be linked with \"toolbar-x.o\""
9990 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9991 echo " xemacs will be linked with \"gui-x.o\""
9996 test -z "$with_mule" && with_mule=no
9997 test -z "$with_file_coding" && with_file_coding=no
10000 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10001 { test "$extra_verbose" = "yes" && cat << \EOF
10002 Defining FILE_CODING
10004 cat >> confdefs.h <<\EOF
10005 #define FILE_CODING 1
10009 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10010 echo " xemacs will be linked with \"file-coding.o\""
10014 if test "$with_mule" = "yes" ; then
10015 echo "checking for Mule-related features" 1>&6
10016 echo "configure:10017: checking for Mule-related features" >&5
10017 { test "$extra_verbose" = "yes" && cat << \EOF
10020 cat >> confdefs.h <<\EOF
10025 { test "$extra_verbose" = "yes" && cat << \EOF
10026 Defining FILE_CODING
10028 cat >> confdefs.h <<\EOF
10029 #define FILE_CODING 1
10033 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
10034 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
10037 for ac_hdr in libintl.h
10039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10041 echo "configure:10042: checking for $ac_hdr" >&5
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10049 { (eval echo configure:10050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10051 if test -z "$ac_err"; then
10053 eval "ac_cv_header_$ac_safe=yes"
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10059 eval "ac_cv_header_$ac_safe=no"
10062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10063 echo "$ac_t""yes" 1>&6
10064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10065 { test "$extra_verbose" = "yes" && cat << EOF
10066 Defining $ac_tr_hdr
10068 cat >> confdefs.h <<EOF
10069 #define $ac_tr_hdr 1
10074 echo "$ac_t""no" 1>&6
10079 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10080 echo "configure:10081: checking for strerror in -lintl" >&5
10081 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10083 xe_check_libs=" -lintl "
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 /* We use char because int might match the return type of a gcc2
10089 builtin and then its argument prototype would still apply. */
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10098 eval "ac_cv_lib_$ac_lib_var=yes"
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 eval "ac_cv_lib_$ac_lib_var=no"
10108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10109 echo "$ac_t""yes" 1>&6
10110 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10112 { test "$extra_verbose" = "yes" && cat << EOF
10113 Defining $ac_tr_lib
10115 cat >> confdefs.h <<EOF
10116 #define $ac_tr_lib 1
10120 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10123 echo "$ac_t""no" 1>&6
10128 echo "checking for Mule input methods" 1>&6
10129 echo "configure:10130: checking for Mule input methods" >&5
10130 case "$with_xim" in "" | "yes" )
10131 echo "checking for XIM" 1>&6
10132 echo "configure:10133: checking for XIM" >&5
10134 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10135 echo "configure:10136: checking for XOpenIM in -lX11" >&5
10136 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10138 xe_check_libs=" -lX11 "
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 /* Override any gcc2 internal prototype to avoid an error. */
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10151 if { (eval echo configure:10152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10153 eval "ac_cv_lib_$ac_lib_var=yes"
10155 echo "configure: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10158 eval "ac_cv_lib_$ac_lib_var=no"
10163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10164 echo "$ac_t""yes" 1>&6
10167 echo "$ac_t""no" 1>&6
10172 if test "$have_motif $have_lesstif" = "yes no"; then
10174 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10175 echo "configure:10176: checking for XmImMbLookupString in -lXm" >&5
10176 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10178 xe_check_libs=" -lXm "
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 /* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10185 char XmImMbLookupString();
10188 XmImMbLookupString()
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10193 eval "ac_cv_lib_$ac_lib_var=yes"
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 eval "ac_cv_lib_$ac_lib_var=no"
10203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10204 echo "$ac_t""yes" 1>&6
10207 echo "$ac_t""no" 1>&6
10213 if test "$with_xim" != "no"; then
10214 { test "$extra_verbose" = "yes" && cat << \EOF
10217 cat >> confdefs.h <<\EOF
10222 if test "$with_xim" = "xlib"; then
10223 { test "$extra_verbose" = "yes" && cat << \EOF
10226 cat >> confdefs.h <<\EOF
10231 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10232 echo " xemacs will be linked with \"input-method-xlib.o\""
10235 if test "$with_xim" = "motif"; then
10236 { test "$extra_verbose" = "yes" && cat << \EOF
10239 cat >> confdefs.h <<\EOF
10240 #define XIM_MOTIF 1
10245 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10246 echo " xemacs will be linked with \"input-method-motif.o\""
10249 if test "$with_xim" = "motif"; then
10254 if test "$with_xfs" = "yes" ; then
10255 echo "checking for XFontSet" 1>&6
10256 echo "configure:10257: checking for XFontSet" >&5
10258 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10259 echo "configure:10260: checking for XmbDrawString in -lX11" >&5
10260 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10262 xe_check_libs=" -lX11 "
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10269 char XmbDrawString();
10275 if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10277 eval "ac_cv_lib_$ac_lib_var=yes"
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10282 eval "ac_cv_lib_$ac_lib_var=no"
10287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10288 echo "$ac_t""yes" 1>&6
10291 echo "$ac_t""no" 1>&6
10296 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10297 { test "$extra_verbose" = "yes" && cat << \EOF
10298 Defining USE_XFONTSET
10300 cat >> confdefs.h <<\EOF
10301 #define USE_XFONTSET 1
10305 if test "$with_xim" = "no" ; then
10306 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10307 echo " xemacs will be linked with \"input-method-xlib.o\""
10312 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10313 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10314 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10315 echo "configure:10316: checking for wnn/jllib.h" >&5
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10319 "configure"
10319 #include "confdefs.h"
10320 #include <wnn/jllib.h>
10322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10323 { (eval echo configure:10324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10325 if test -z "$ac_err"; then
10327 eval "ac_cv_header_$ac_safe=yes"
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10333 eval "ac_cv_header_$ac_safe=no"
10336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10337 echo "$ac_t""yes" 1>&6
10340 echo "$ac_t""no" 1>&6
10344 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10345 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10346 echo "configure:10347: checking for wnn/commonhd.h" >&5
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 #include <wnn/commonhd.h>
10353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10354 { (eval echo configure:10355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10356 if test -z "$ac_err"; then
10358 eval "ac_cv_header_$ac_safe=yes"
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10364 eval "ac_cv_header_$ac_safe=no"
10367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10368 echo "$ac_t""yes" 1>&6
10371 echo "$ac_t""no" 1>&6
10375 if test "$with_wnn" != "no"; then
10376 for ac_func in crypt
10378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_func" >&5
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func(); below. */
10386 #include <assert.h>
10387 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 eval "ac_cv_func_$ac_func=yes"
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 eval "ac_cv_func_$ac_func=no"
10416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10417 echo "$ac_t""yes" 1>&6
10418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10419 { test "$extra_verbose" = "yes" && cat << EOF
10420 Defining $ac_tr_func
10422 cat >> confdefs.h <<EOF
10423 #define $ac_tr_func 1
10428 echo "$ac_t""no" 1>&6
10432 test "$ac_cv_func_crypt" != "yes" && {
10433 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10434 echo "configure:10435: checking for crypt in -lcrypt" >&5
10435 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10437 xe_check_libs=" -lcrypt "
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10441 /* Override any gcc2 internal prototype to avoid an error. */
10442 /* We use char because int might match the return type of a gcc2
10443 builtin and then its argument prototype would still apply. */
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10452 eval "ac_cv_lib_$ac_lib_var=yes"
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 eval "ac_cv_lib_$ac_lib_var=no"
10462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10463 echo "$ac_t""yes" 1>&6
10464 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10466 { test "$extra_verbose" = "yes" && cat << EOF
10467 Defining $ac_tr_lib
10469 cat >> confdefs.h <<EOF
10470 #define $ac_tr_lib 1
10474 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10477 echo "$ac_t""no" 1>&6
10482 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10484 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10485 echo "configure:10486: checking for jl_dic_list_e in -lwnn" >&5
10486 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10488 xe_check_libs=" -lwnn "
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 /* Override any gcc2 internal prototype to avoid an error. */
10493 /* We use char because int might match the return type of a gcc2
10494 builtin and then its argument prototype would still apply. */
10495 char jl_dic_list_e();
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10503 eval "ac_cv_lib_$ac_lib_var=yes"
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 eval "ac_cv_lib_$ac_lib_var=no"
10513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10514 echo "$ac_t""yes" 1>&6
10517 echo "$ac_t""no" 1>&6
10518 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10519 echo "configure:10520: checking for jl_dic_list_e in -lwnn4" >&5
10520 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10522 xe_check_libs=" -lwnn4 "
10523 cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10526 /* Override any gcc2 internal prototype to avoid an error. */
10527 /* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10529 char jl_dic_list_e();
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10537 eval "ac_cv_lib_$ac_lib_var=yes"
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10542 eval "ac_cv_lib_$ac_lib_var=no"
10547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10548 echo "$ac_t""yes" 1>&6
10551 echo "$ac_t""no" 1>&6
10552 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10553 echo "configure:10554: checking for jl_dic_list_e in -lwnn6" >&5
10554 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10556 xe_check_libs=" -lwnn6 "
10557 cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 /* Override any gcc2 internal prototype to avoid an error. */
10561 /* We use char because int might match the return type of a gcc2
10562 builtin and then its argument prototype would still apply. */
10563 char jl_dic_list_e();
10569 if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10571 eval "ac_cv_lib_$ac_lib_var=yes"
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10576 eval "ac_cv_lib_$ac_lib_var=no"
10581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10582 echo "$ac_t""yes" 1>&6
10585 echo "$ac_t""no" 1>&6
10586 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10587 echo "configure:10588: checking for dic_list_e in -lwnn6_fromsrc" >&5
10588 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10590 xe_check_libs=" -lwnn6_fromsrc "
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 /* Override any gcc2 internal prototype to avoid an error. */
10595 /* We use char because int might match the return type of a gcc2
10596 builtin and then its argument prototype would still apply. */
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10605 eval "ac_cv_lib_$ac_lib_var=yes"
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10610 eval "ac_cv_lib_$ac_lib_var=no"
10615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10616 echo "$ac_t""yes" 1>&6
10617 libwnn=wnn6_fromsrc
10619 echo "$ac_t""no" 1>&6
10634 test -z "$with_wnn" && with_wnn=yes
10635 if test "$with_wnn" = "yes"; then
10636 { test "$extra_verbose" = "yes" && cat << \EOF
10639 cat >> confdefs.h <<\EOF
10644 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10645 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10646 echo " xemacs will be linked with \"mule-wnnfns.o\""
10648 if test "$with_wnn6" != "no"; then
10650 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10651 echo "configure:10652: checking for jl_fi_dic_list in -l$libwnn" >&5
10652 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10654 xe_check_libs=" -l$libwnn "
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661 char jl_fi_dic_list();
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10669 eval "ac_cv_lib_$ac_lib_var=yes"
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10674 eval "ac_cv_lib_$ac_lib_var=no"
10679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10680 echo "$ac_t""yes" 1>&6
10683 echo "$ac_t""no" 1>&6
10687 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10690 cat >> confdefs.h <<\EOF
10698 canna_includes_found=no
10699 if test "$with_canna" != "no"; then
10700 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10701 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10702 echo "configure:10703: checking for canna/jrkanji.h" >&5
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <canna/jrkanji.h>
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10712 if test -z "$ac_err"; then
10714 eval "ac_cv_header_$ac_safe=yes"
10717 echo "configure: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10720 eval "ac_cv_header_$ac_safe=no"
10723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
10725 canna_includes_found=yes
10727 echo "$ac_t""no" 1>&6
10731 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10732 -d "/usr/local/canna/include"; then
10733 save_c_switch_site="$c_switch_site"
10734 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10735 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10736 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10737 echo "configure:10738: checking for canna/jrkanji.h" >&5
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 #include <canna/jrkanji.h>
10744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10745 { (eval echo configure:10746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10747 if test -z "$ac_err"; then
10749 eval "ac_cv_header_$ac_safe=yes"
10752 echo "configure: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10755 eval "ac_cv_header_$ac_safe=no"
10758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10759 echo "$ac_t""yes" 1>&6
10760 canna_includes_found=yes
10762 echo "$ac_t""no" 1>&6
10765 if test "$canna_includes_found" != "yes"; then
10766 c_switch_site="$save_c_switch_site"
10771 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10772 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10773 echo "configure:10774: checking for canna/RK.h" >&5
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10778 #include <canna/RK.h>
10780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10781 { (eval echo configure:10782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10783 if test -z "$ac_err"; then
10785 eval "ac_cv_header_$ac_safe=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_header_$ac_safe=no"
10794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10795 echo "$ac_t""yes" 1>&6
10798 echo "$ac_t""no" 1>&6
10802 test -z "$with_canna" && {
10803 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10804 echo "configure:10805: checking for RkBgnBun in -lRKC" >&5
10805 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10807 xe_check_libs=" -lRKC "
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 /* Override any gcc2 internal prototype to avoid an error. */
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10820 if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10822 eval "ac_cv_lib_$ac_lib_var=yes"
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10827 eval "ac_cv_lib_$ac_lib_var=no"
10832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10833 echo "$ac_t""yes" 1>&6
10836 echo "$ac_t""no" 1>&6
10841 test -z "$with_canna" && {
10842 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10843 echo "configure:10844: checking for jrKanjiControl in -lcanna" >&5
10844 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10846 xe_check_libs=" -lcanna "
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10850 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853 char jrKanjiControl();
10859 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10861 eval "ac_cv_lib_$ac_lib_var=yes"
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10866 eval "ac_cv_lib_$ac_lib_var=no"
10871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10872 echo "$ac_t""yes" 1>&6
10875 echo "$ac_t""no" 1>&6
10880 test -z "$with_canna" && with_canna=yes
10881 if test "$with_canna" = "yes"; then
10882 { test "$extra_verbose" = "yes" && cat << \EOF
10883 Defining HAVE_CANNA
10885 cat >> confdefs.h <<\EOF
10886 #define HAVE_CANNA 1
10890 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10891 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10892 echo " xemacs will be linked with \"mule-canna.o\""
10896 else for feature in xim canna wnn; do
10897 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10898 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10900 eval "with_${feature}=no"
10904 if test "$need_motif" = "yes" ; then
10905 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10907 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10908 echo "configure:10909: checking for layout_object_getvalue in -li18n" >&5
10909 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10911 xe_check_libs=" -li18n "
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10918 char layout_object_getvalue();
10921 layout_object_getvalue()
10924 if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926 eval "ac_cv_lib_$ac_lib_var=yes"
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10931 eval "ac_cv_lib_$ac_lib_var=no"
10936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10937 echo "$ac_t""yes" 1>&6
10938 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10940 echo "$ac_t""no" 1>&6
10945 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10946 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10947 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10949 runpath="" runpath_dirs=""
10950 if test -n "$LD_RUN_PATH"; then
10951 runpath="$LD_RUN_PATH"
10952 elif test "$GCC" = "yes"; then
10953 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10954 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10955 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10956 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10957 case "$arg" in P,* | -L* | -R* )
10958 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10960 xe_runpath_dir="$dir"
10961 test "$xe_runpath_dir" != "/lib" -a \
10962 "$xe_runpath_dir" != "/usr/lib" -a \
10963 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10964 eval "$xe_add_unique_runpath_dir"
10969 ld_switch_run="$ld_switch_run_save"
10972 for arg in $ld_switch_site $ld_switch_x_site; do
10973 case "$arg" in -L*) {
10974 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10975 test "$xe_runpath_dir" != "/lib" -a \
10976 "$xe_runpath_dir" != "/usr/lib" -a \
10977 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10978 eval "$xe_add_unique_runpath_dir"
10981 if test "$opsys $need_motif" = "sol2 yes"; then
10982 xe_runpath_dir="/opt/SUNWdt/lib";
10983 eval "$xe_add_unique_runpath_dir";
10986 if test -n "$runpath"; then
10987 ld_switch_run="${dash_r}${runpath}"
10989 if test "$GCC" = "yes"; then
10990 set x $ld_switch_run; shift; ld_switch_run=""
10991 while test -n "$1"; do
10993 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
10994 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
10996 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11001 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11008 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
11010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11011 echo "configure:11012: checking for $ac_func" >&5
11013 cat > conftest.$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func(); below. */
11018 #include <assert.h>
11019 /* Override any gcc2 internal prototype to avoid an error. */
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11026 /* The GNU C library defines this for functions which it implements
11027 to always fail with ENOSYS. Some functions are actually named
11028 something starting with __ and the normal name is an alias. */
11029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11037 if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11039 eval "ac_cv_func_$ac_func=yes"
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11044 eval "ac_cv_func_$ac_func=no"
11048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11051 { test "$extra_verbose" = "yes" && cat << EOF
11052 Defining $ac_tr_func
11054 cat >> confdefs.h <<EOF
11055 #define $ac_tr_func 1
11060 echo "$ac_t""no" 1>&6
11065 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11068 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11069 ac_cv_func_getaddrinfo=no
11075 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11078 echo "configure:11079: checking for $ac_func" >&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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11111 eval "ac_cv_func_$ac_func=no"
11115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11118 { test "$extra_verbose" = "yes" && cat << EOF
11119 Defining $ac_tr_func
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_func 1
11127 echo "$ac_t""no" 1>&6
11132 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11133 echo "configure:11134: checking for openpty" >&5
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 /* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char openpty(); below. */
11140 #include <assert.h>
11141 /* Override any gcc2 internal prototype to avoid an error. */
11142 /* We use char because int might match the return type of a gcc2
11143 builtin and then its argument prototype would still apply. */
11148 /* The GNU C library defines this for functions which it implements
11149 to always fail with ENOSYS. Some functions are actually named
11150 something starting with __ and the normal name is an alias. */
11151 #if defined (__stub_openpty) || defined (__stub___openpty)
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11161 eval "ac_cv_func_openpty=yes"
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11166 eval "ac_cv_func_openpty=no"
11170 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11174 echo "$ac_t""no" 1>&6
11177 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11178 echo "configure:11179: checking for openpty in -lutil" >&5
11179 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11181 xe_check_libs=" -lutil "
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11185 /* Override any gcc2 internal prototype to avoid an error. */
11186 /* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11196 eval "ac_cv_lib_$ac_lib_var=yes"
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 eval "ac_cv_lib_$ac_lib_var=no"
11206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11207 echo "$ac_t""yes" 1>&6
11208 have_openpty=yes need_libutil=yes
11210 echo "$ac_t""no" 1>&6
11216 if test "$have_openpty" = "yes"; then
11217 { test "$extra_verbose" = "yes" && cat << \EOF
11218 Defining HAVE_OPENPTY
11220 cat >> confdefs.h <<\EOF
11221 #define HAVE_OPENPTY 1
11225 for ac_hdr in pty.h libutil.h util.h
11227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11229 echo "configure:11230: checking for $ac_hdr" >&5
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11237 { (eval echo configure:11238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11239 if test -z "$ac_err"; then
11241 eval "ac_cv_header_$ac_safe=yes"
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 eval "ac_cv_header_$ac_safe=no"
11250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11251 echo "$ac_t""yes" 1>&6
11252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11253 { test "$extra_verbose" = "yes" && cat << EOF
11254 Defining $ac_tr_hdr
11256 cat >> confdefs.h <<EOF
11257 #define $ac_tr_hdr 1
11262 echo "$ac_t""no" 1>&6
11266 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11269 for ac_hdr in stropts.h
11271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11273 echo "configure:11274: checking for $ac_hdr" >&5
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11281 { (eval echo configure:11282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11283 if test -z "$ac_err"; then
11285 eval "ac_cv_header_$ac_safe=yes"
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11291 eval "ac_cv_header_$ac_safe=no"
11294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11295 echo "$ac_t""yes" 1>&6
11296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11297 { test "$extra_verbose" = "yes" && cat << EOF
11298 Defining $ac_tr_hdr
11300 cat >> confdefs.h <<EOF
11301 #define $ac_tr_hdr 1
11306 echo "$ac_t""no" 1>&6
11310 if test "$ac_cv_header_stropts_h" = "yes"; then
11311 for ac_func in isastream
11313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11314 echo "configure:11315: checking for $ac_func" >&5
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char $ac_func(); below. */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11329 /* The GNU C library defines this for functions which it implements
11330 to always fail with ENOSYS. Some functions are actually named
11331 something starting with __ and the normal name is an alias. */
11332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11342 eval "ac_cv_func_$ac_func=yes"
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11347 eval "ac_cv_func_$ac_func=no"
11351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11354 { test "$extra_verbose" = "yes" && cat << EOF
11355 Defining $ac_tr_func
11357 cat >> confdefs.h <<EOF
11358 #define $ac_tr_func 1
11363 echo "$ac_t""no" 1>&6
11367 for ac_hdr in strtio.h
11369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11371 echo "configure:11372: checking for $ac_hdr" >&5
11373 cat > conftest.$ac_ext <<EOF
11374 #line 11375 "configure"
11375 #include "confdefs.h"
11378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11379 { (eval echo configure:11380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11381 if test -z "$ac_err"; then
11383 eval "ac_cv_header_$ac_safe=yes"
11386 echo "configure: failed program was:" >&5
11387 cat conftest.$ac_ext >&5
11389 eval "ac_cv_header_$ac_safe=no"
11392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11393 echo "$ac_t""yes" 1>&6
11394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11395 { test "$extra_verbose" = "yes" && cat << EOF
11396 Defining $ac_tr_hdr
11398 cat >> confdefs.h <<EOF
11399 #define $ac_tr_hdr 1
11404 echo "$ac_t""no" 1>&6
11409 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11410 echo " xemacs will be linked with \"realpath.o\""
11413 for ac_func in getloadavg
11415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11416 echo "configure:11417: checking for $ac_func" >&5
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char $ac_func(); below. */
11423 #include <assert.h>
11424 /* Override any gcc2 internal prototype to avoid an error. */
11425 /* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11431 /* The GNU C library defines this for functions which it implements
11432 to always fail with ENOSYS. Some functions are actually named
11433 something starting with __ and the normal name is an alias. */
11434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11444 eval "ac_cv_func_$ac_func=yes"
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11449 eval "ac_cv_func_$ac_func=no"
11453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11454 echo "$ac_t""yes" 1>&6
11455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11456 { test "$extra_verbose" = "yes" && cat << EOF
11457 Defining $ac_tr_func
11459 cat >> confdefs.h <<EOF
11460 #define $ac_tr_func 1
11465 echo "$ac_t""no" 1>&6
11470 if test "$ac_cv_func_getloadavg" = "yes"; then
11471 for ac_hdr in sys/loadavg.h
11473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11475 echo "configure:11476: checking for $ac_hdr" >&5
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11483 { (eval echo configure:11484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11485 if test -z "$ac_err"; then
11487 eval "ac_cv_header_$ac_safe=yes"
11490 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11493 eval "ac_cv_header_$ac_safe=no"
11496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11497 echo "$ac_t""yes" 1>&6
11498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11499 { test "$extra_verbose" = "yes" && cat << EOF
11500 Defining $ac_tr_hdr
11502 cat >> confdefs.h <<EOF
11503 #define $ac_tr_hdr 1
11508 echo "$ac_t""no" 1>&6
11513 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11514 echo " xemacs will be linked with \"getloadavg.o\""
11518 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11519 echo "configure:11520: checking for kstat_open in -lkstat" >&5
11520 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11522 xe_check_libs=" -lkstat "
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11537 eval "ac_cv_lib_$ac_lib_var=yes"
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11542 eval "ac_cv_lib_$ac_lib_var=no"
11547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11548 echo "$ac_t""yes" 1>&6
11549 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11551 { test "$extra_verbose" = "yes" && cat << EOF
11552 Defining $ac_tr_lib
11554 cat >> confdefs.h <<EOF
11555 #define $ac_tr_lib 1
11559 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11562 echo "$ac_t""no" 1>&6
11566 for ac_hdr in kstat.h
11568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11570 echo "configure:11571: checking for $ac_hdr" >&5
11572 cat > conftest.$ac_ext <<EOF
11573 #line 11574 "configure"
11574 #include "confdefs.h"
11577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11578 { (eval echo configure:11579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11580 if test -z "$ac_err"; then
11582 eval "ac_cv_header_$ac_safe=yes"
11585 echo "configure: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11588 eval "ac_cv_header_$ac_safe=no"
11591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11592 echo "$ac_t""yes" 1>&6
11593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11594 { test "$extra_verbose" = "yes" && cat << EOF
11595 Defining $ac_tr_hdr
11597 cat >> confdefs.h <<EOF
11598 #define $ac_tr_hdr 1
11603 echo "$ac_t""no" 1>&6
11609 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11610 echo "configure:11611: checking for kvm_read in -lkvm" >&5
11611 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11613 xe_check_libs=" -lkvm "
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11617 /* Override any gcc2 internal prototype to avoid an error. */
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11626 if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11628 eval "ac_cv_lib_$ac_lib_var=yes"
11630 echo "configure: failed program was:" >&5
11631 cat conftest.$ac_ext >&5
11633 eval "ac_cv_lib_$ac_lib_var=no"
11638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11639 echo "$ac_t""yes" 1>&6
11640 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11641 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11642 { test "$extra_verbose" = "yes" && cat << EOF
11643 Defining $ac_tr_lib
11645 cat >> confdefs.h <<EOF
11646 #define $ac_tr_lib 1
11650 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11653 echo "$ac_t""no" 1>&6
11659 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11660 echo "configure:11661: checking whether netdb declares h_errno" >&5
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11671 echo "$ac_t""yes" 1>&6
11672 { test "$extra_verbose" = "yes" && cat << \EOF
11673 Defining HAVE_H_ERRNO
11675 cat >> confdefs.h <<\EOF
11676 #define HAVE_H_ERRNO 1
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11684 echo "$ac_t""no" 1>&6
11688 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11689 echo "configure:11690: checking for sigsetjmp" >&5
11690 cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11693 #include <setjmp.h>
11695 sigjmp_buf bar; sigsetjmp (bar, 0);
11698 if { (eval echo configure:11699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11700 echo "$ac_t""yes" 1>&6
11701 { test "$extra_verbose" = "yes" && cat << \EOF
11702 Defining HAVE_SIGSETJMP
11704 cat >> confdefs.h <<\EOF
11705 #define HAVE_SIGSETJMP 1
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11713 echo "$ac_t""no" 1>&6
11717 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11718 echo "configure:11719: checking whether localtime caches TZ" >&5
11720 if test "$ac_cv_func_tzset" = "yes"; then
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11726 # include <stdlib.h>
11728 extern char **environ;
11732 for (to = from = environ; (*to = *from); from++)
11733 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11736 char TZ_GMT0[] = "TZ=GMT0";
11737 char TZ_PST8[] = "TZ=PST8";
11740 time_t now = time ((time_t *) 0);
11741 int hour_GMT0, hour_unset;
11742 if (putenv (TZ_GMT0) != 0)
11744 hour_GMT0 = localtime (&now)->tm_hour;
11746 hour_unset = localtime (&now)->tm_hour;
11747 if (putenv (TZ_PST8) != 0)
11749 if (localtime (&now)->tm_hour == hour_GMT0)
11752 if (localtime (&now)->tm_hour != hour_unset)
11757 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11759 emacs_cv_localtime_cache=no
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11765 emacs_cv_localtime_cache=yes
11769 # If we lack tzset, report that localtime does not cache TZ,
11770 # since we can't invalidate the cache if we don't have tzset.
11771 emacs_cv_localtime_cache=no
11773 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11774 if test $emacs_cv_localtime_cache = yes; then
11775 { test "$extra_verbose" = "yes" && cat << \EOF
11776 Defining LOCALTIME_CACHE
11778 cat >> confdefs.h <<\EOF
11779 #define LOCALTIME_CACHE 1
11785 if test "$HAVE_TIMEVAL" = "yes"; then
11786 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11787 echo "configure:11788: checking whether gettimeofday accepts one or two arguments" >&5
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11792 #ifdef TIME_WITH_SYS_TIME
11793 #include <sys/time.h>
11796 #ifdef HAVE_SYS_TIME_H
11797 #include <sys/time.h>
11805 struct timeval time;
11806 gettimeofday (&time, 0);
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11812 echo "$ac_t""two" 1>&6
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11817 echo "$ac_t""one" 1>&6
11818 { test "$extra_verbose" = "yes" && cat << \EOF
11819 Defining GETTIMEOFDAY_ONE_ARGUMENT
11821 cat >> confdefs.h <<\EOF
11822 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11831 echo $ac_n "checking for inline""... $ac_c" 1>&6
11832 echo "configure:11833: checking for inline" >&5
11835 for ac_kw in inline __inline__ __inline; do
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11846 ac_cv_c_inline=$ac_kw; break
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11855 echo "$ac_t""$ac_cv_c_inline" 1>&6
11856 case "$ac_cv_c_inline" in
11858 no) { test "$extra_verbose" = "yes" && cat << \EOF
11861 cat >> confdefs.h <<\EOF
11866 *) { test "$extra_verbose" = "yes" && cat << EOF
11867 Defining inline = $ac_cv_c_inline
11869 cat >> confdefs.h <<EOF
11870 #define inline $ac_cv_c_inline
11876 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11877 echo " xemacs will be linked with \"inline.o\""
11881 if test "$__DECC" != "yes"; then
11882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11883 # for constant arguments. Useless!
11884 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11885 echo "configure:11886: checking for working alloca.h" >&5
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 #include <alloca.h>
11892 char *p = alloca(2 * sizeof(int));
11895 if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 ac_cv_header_alloca_h=yes
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11902 ac_cv_header_alloca_h=no
11906 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11907 if test $ac_cv_header_alloca_h = yes; then
11908 { test "$extra_verbose" = "yes" && cat << \EOF
11909 Defining HAVE_ALLOCA_H
11911 cat >> confdefs.h <<\EOF
11912 #define HAVE_ALLOCA_H 1
11918 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11919 echo "configure:11920: checking for alloca" >&5
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11926 # define alloca __builtin_alloca
11929 # include <malloc.h>
11930 # define alloca _alloca
11933 # include <alloca.h>
11938 # ifndef alloca /* predefined by HP cc +Olibcalls */
11947 char *p = (char *) alloca(1);
11950 if { (eval echo configure:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11952 ac_cv_func_alloca_works=yes
11954 echo "configure: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11957 ac_cv_func_alloca_works=no
11961 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11962 if test $ac_cv_func_alloca_works = yes; then
11963 { test "$extra_verbose" = "yes" && cat << \EOF
11964 Defining HAVE_ALLOCA
11966 cat >> confdefs.h <<\EOF
11967 #define HAVE_ALLOCA 1
11973 if test $ac_cv_func_alloca_works = no; then
11974 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11975 # that cause trouble. Some versions do not even contain alloca or
11976 # contain a buggy version. If you still want to use their alloca,
11977 # use ar to extract alloca.o from them instead of compiling alloca.c.
11978 ALLOCA=alloca.${ac_objext}
11979 { test "$extra_verbose" = "yes" && cat << \EOF
11982 cat >> confdefs.h <<\EOF
11988 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11989 echo "configure:11990: checking whether alloca needs Cray hooks" >&5
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 #if defined(CRAY) && ! defined(CRAY2)
12001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12002 egrep "webecray" >/dev/null 2>&1; then
12012 echo "$ac_t""$ac_cv_os_cray" 1>&6
12013 if test $ac_cv_os_cray = yes; then
12014 for ac_func in _getb67 GETB67 getb67; do
12015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12016 echo "configure:12017: checking for $ac_func" >&5
12018 cat > conftest.$ac_ext <<EOF
12019 #line 12020 "configure"
12020 #include "confdefs.h"
12021 /* System header to define __stub macros and hopefully few prototypes,
12022 which can conflict with char $ac_func(); below. */
12023 #include <assert.h>
12024 /* Override any gcc2 internal prototype to avoid an error. */
12025 /* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12031 /* The GNU C library defines this for functions which it implements
12032 to always fail with ENOSYS. Some functions are actually named
12033 something starting with __ and the normal name is an alias. */
12034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044 eval "ac_cv_func_$ac_func=yes"
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12049 eval "ac_cv_func_$ac_func=no"
12053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12054 echo "$ac_t""yes" 1>&6
12055 { test "$extra_verbose" = "yes" && cat << EOF
12056 Defining CRAY_STACKSEG_END = $ac_func
12058 cat >> confdefs.h <<EOF
12059 #define CRAY_STACKSEG_END $ac_func
12065 echo "$ac_t""no" 1>&6
12071 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12072 echo "configure:12073: checking stack direction for C alloca" >&5
12074 cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure"
12076 #include "confdefs.h"
12077 find_stack_direction ()
12079 static char *addr = 0;
12084 return find_stack_direction ();
12087 return (&dummy > addr) ? 1 : -1;
12091 exit (find_stack_direction() < 0);
12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12096 ac_cv_c_stack_direction=1
12099 echo "configure: failed program was:" >&5
12100 cat conftest.$ac_ext >&5
12102 ac_cv_c_stack_direction=-1
12106 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12107 { test "$extra_verbose" = "yes" && cat << EOF
12108 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12110 cat >> confdefs.h <<EOF
12111 #define STACK_DIRECTION $ac_cv_c_stack_direction
12117 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12118 echo " xemacs will be linked with \"$ALLOCA\""
12122 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12123 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12124 echo "configure:12125: checking for vfork.h" >&5
12126 cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12132 { (eval echo configure:12133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12134 if test -z "$ac_err"; then
12136 eval "ac_cv_header_$ac_safe=yes"
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12142 eval "ac_cv_header_$ac_safe=no"
12145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12146 echo "$ac_t""yes" 1>&6
12147 { test "$extra_verbose" = "yes" && cat << \EOF
12148 Defining HAVE_VFORK_H
12150 cat >> confdefs.h <<\EOF
12151 #define HAVE_VFORK_H 1
12156 echo "$ac_t""no" 1>&6
12159 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12160 echo "configure:12161: checking for working vfork" >&5
12162 cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 /* Thanks to Paul Eggert for this test. */
12167 #include <sys/types.h>
12168 #include <sys/stat.h>
12169 #ifdef HAVE_UNISTD_H
12170 #include <unistd.h>
12172 #ifdef HAVE_VFORK_H
12175 /* On some sparc systems, changes by the child to local and incoming
12176 argument registers are propagated back to the parent.
12177 The compiler is told about this with #include <vfork.h>,
12178 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12179 Test for this by using a static variable whose address
12180 is put into a register that is clobbered by the vfork. */
12183 sparc_address_test (int arg)
12185 sparc_address_test (arg) int arg;
12188 static pid_t child;
12203 pid_t parent = getpid ();
12206 sparc_address_test ();
12211 /* Here is another test for sparc vfork register problems.
12212 This test uses lots of local variables, at least
12213 as many local variables as main has allocated so far
12214 including compiler temporaries. 4 locals are enough for
12215 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12216 A buggy compiler should reuse the register of parent
12217 for one of the local variables, since it will think that
12218 parent can't possibly be used any more in this routine.
12219 Assigning to the local variable will thus munge parent
12220 in the parent process. */
12222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12224 /* Convince the compiler that p..p7 are live; otherwise, it might
12225 use the same hardware register for all 8 local variables. */
12226 if (p != p1 || p != p2 || p != p3 || p != p4
12227 || p != p5 || p != p6 || p != p7)
12230 /* On some systems (e.g. IRIX 3.3),
12231 vfork doesn't separate parent from child file descriptors.
12232 If the child closes a descriptor before it execs or exits,
12233 this munges the parent's descriptor as well.
12234 Test for this by closing stdout in the child. */
12235 _exit(close(fileno(stdout)) != 0);
12240 while (wait(&status) != child)
12243 /* Was there some problem with vforking? */
12246 /* Did the child fail? (This shouldn't happen.) */
12249 /* Did the vfork/compiler bug occur? */
12250 || parent != getpid()
12252 /* Did the file descriptor bug occur? */
12253 || fstat(fileno(stdout), &st) != 0
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12260 ac_cv_func_vfork_works=yes
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12266 ac_cv_func_vfork_works=no
12270 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12271 if test $ac_cv_func_vfork_works = no; then
12272 { test "$extra_verbose" = "yes" && cat << \EOF
12273 Defining vfork = fork
12275 cat >> confdefs.h <<\EOF
12283 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12284 echo "configure:12285: checking for working strcoll" >&5
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 #include <string.h>
12292 exit (strcoll ("abc", "def") >= 0 ||
12293 strcoll ("ABC", "DEF") >= 0 ||
12294 strcoll ("123", "456") >= 0);
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12299 ac_cv_func_strcoll_works=yes
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12305 ac_cv_func_strcoll_works=no
12309 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12310 if test $ac_cv_func_strcoll_works = yes; then
12311 { test "$extra_verbose" = "yes" && cat << \EOF
12312 Defining HAVE_STRCOLL
12314 cat >> confdefs.h <<\EOF
12315 #define HAVE_STRCOLL 1
12322 for ac_func in getpgrp
12324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12325 echo "configure:12326: checking for $ac_func" >&5
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330 /* System header to define __stub macros and hopefully few prototypes,
12331 which can conflict with char $ac_func(); below. */
12332 #include <assert.h>
12333 /* Override any gcc2 internal prototype to avoid an error. */
12334 /* We use char because int might match the return type of a gcc2
12335 builtin and then its argument prototype would still apply. */
12340 /* The GNU C library defines this for functions which it implements
12341 to always fail with ENOSYS. Some functions are actually named
12342 something starting with __ and the normal name is an alias. */
12343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12351 if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12353 eval "ac_cv_func_$ac_func=yes"
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12358 eval "ac_cv_func_$ac_func=no"
12362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12363 echo "$ac_t""yes" 1>&6
12364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12365 { test "$extra_verbose" = "yes" && cat << EOF
12366 Defining $ac_tr_func
12368 cat >> confdefs.h <<EOF
12369 #define $ac_tr_func 1
12374 echo "$ac_t""no" 1>&6
12378 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12379 echo "configure:12380: checking whether getpgrp takes no argument" >&5
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12386 * If this system has a BSD-style getpgrp(),
12387 * which takes a pid argument, exit unsuccessfully.
12389 * Snarfed from Chet Ramey's bash pgrp.c test program
12392 #include <sys/types.h>
12395 int pg1, pg2, pg3, pg4;
12396 int ng, np, s, child;
12403 pg3 = getpgrp(pid);
12407 * If all of these values are the same, it's pretty sure that
12408 * we're on a system that ignores getpgrp's first argument.
12410 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12416 else if (child == 0) {
12419 * If this is Sys V, this will not work; pgrp will be
12420 * set to np because setpgrp just changes a pgrp to be
12421 * the same as the pid.
12424 ng = getpgrp(0); /* Same result for Sys V and BSD */
12437 if { (eval echo configure:12438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12439 ac_cv_func_getpgrp_void=yes
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 ac_cv_func_getpgrp_void=no
12450 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12451 if test $ac_cv_func_getpgrp_void = yes; then
12452 { test "$extra_verbose" = "yes" && cat << \EOF
12453 Defining GETPGRP_VOID
12455 cat >> confdefs.h <<\EOF
12456 #define GETPGRP_VOID 1
12463 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12464 echo "configure:12465: checking for working mmap" >&5
12465 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12470 #include <unistd.h>
12472 #include <sys/mman.h>
12474 #ifndef MAP_VARIABLE
12475 #define MAP_VARIABLE 0
12479 #define MAP_FAILED -1
12482 int main (int argc, char *argv[])
12486 #ifndef MAP_ANONYMOUS
12487 fd = open ("/dev/zero", O_RDWR);
12490 #define MAP_ANONYMOUS 0
12492 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12493 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12494 fd, 0) != (void *) MAP_FAILED)
12496 perror ("conftest: mmap failed");
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12505 echo "configure: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12510 rm -fr conftest* ;;
12512 echo "$ac_t""$have_mmap" 1>&6
12513 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12516 cat >> confdefs.h <<\EOF
12517 #define HAVE_MMAP 1
12522 case "$opsys" in cygwin*)
12523 test "$rel_alloc" = "default" && rel_alloc=no ;;
12525 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12526 if test "$rel_alloc $have_mmap" = "default yes"; then
12527 if test "$doug_lea_malloc" = "yes"; then
12528 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12529 echo "configure:12530: checking for M_MMAP_THRESHOLD" >&5
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 #include <malloc.h>
12536 #ifndef M_MMAP_THRESHOLD
12537 #error No M_MMAP_THRESHOLD :-(
12538 !@+$%^&*_)(_ - unlikely to compile...
12543 if { (eval echo configure:12544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12545 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12547 echo "configure: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12550 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12557 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12560 cat >> confdefs.h <<\EOF
12561 #define REL_ALLOC 1
12566 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12567 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12568 echo "configure:12569: checking for termios.h" >&5
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 #include <termios.h>
12575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12576 { (eval echo configure:12577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12578 if test -z "$ac_err"; then
12580 eval "ac_cv_header_$ac_safe=yes"
12583 echo "configure: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12586 eval "ac_cv_header_$ac_safe=no"
12589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 { test "$extra_verbose" = "yes" && cat << \EOF
12592 Defining HAVE_TERMIOS
12594 cat >> confdefs.h <<\EOF
12595 #define HAVE_TERMIOS 1
12599 { test "$extra_verbose" = "yes" && cat << \EOF
12600 Defining SIGNALS_VIA_CHARACTERS
12602 cat >> confdefs.h <<\EOF
12603 #define SIGNALS_VIA_CHARACTERS 1
12607 { test "$extra_verbose" = "yes" && cat << \EOF
12610 cat >> confdefs.h <<\EOF
12611 #define NO_TERMIO 1
12616 echo "$ac_t""no" 1>&6
12617 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12618 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12619 echo "configure:12620: checking for termio.h" >&5
12621 cat > conftest.$ac_ext <<EOF
12622 #line 12623 "configure"
12623 #include "confdefs.h"
12624 #include <termio.h>
12626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12627 { (eval echo configure:12628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12629 if test -z "$ac_err"; then
12631 eval "ac_cv_header_$ac_safe=yes"
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 eval "ac_cv_header_$ac_safe=no"
12640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 { test "$extra_verbose" = "yes" && cat << \EOF
12643 Defining HAVE_TERMIO
12645 cat >> confdefs.h <<\EOF
12646 #define HAVE_TERMIO 1
12651 echo "$ac_t""no" 1>&6
12658 echo $ac_n "checking for socket""... $ac_c" 1>&6
12659 echo "configure:12660: checking for socket" >&5
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char socket(); below. */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12674 /* The GNU C library defines this for functions which it implements
12675 to always fail with ENOSYS. Some functions are actually named
12676 something starting with __ and the normal name is an alias. */
12677 #if defined (__stub_socket) || defined (__stub___socket)
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12687 eval "ac_cv_func_socket=yes"
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12692 eval "ac_cv_func_socket=no"
12696 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12697 echo "$ac_t""yes" 1>&6
12698 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12699 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12700 echo "configure:12701: checking for netinet/in.h" >&5
12702 cat > conftest.$ac_ext <<EOF
12703 #line 12704 "configure"
12704 #include "confdefs.h"
12705 #include <netinet/in.h>
12707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12708 { (eval echo configure:12709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12710 if test -z "$ac_err"; then
12712 eval "ac_cv_header_$ac_safe=yes"
12715 echo "configure: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12718 eval "ac_cv_header_$ac_safe=no"
12721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12722 echo "$ac_t""yes" 1>&6
12723 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12724 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12725 echo "configure:12726: checking for arpa/inet.h" >&5
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 #include <arpa/inet.h>
12732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12733 { (eval echo configure:12734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12735 if test -z "$ac_err"; then
12737 eval "ac_cv_header_$ac_safe=yes"
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12743 eval "ac_cv_header_$ac_safe=no"
12746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12747 echo "$ac_t""yes" 1>&6
12749 { test "$extra_verbose" = "yes" && cat << \EOF
12750 Defining HAVE_SOCKETS
12752 cat >> confdefs.h <<\EOF
12753 #define HAVE_SOCKETS 1
12757 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12758 echo "configure:12759: checking "for sun_len member in struct sockaddr_un"" >&5
12759 cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12763 #include <sys/types.h>
12764 #include <sys/socket.h>
12765 #include <sys/un.h>
12768 static struct sockaddr_un x; x.sun_len = 1;
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12774 Defining HAVE_SOCKADDR_SUN_LEN
12776 cat >> confdefs.h <<\EOF
12777 #define HAVE_SOCKADDR_SUN_LEN 1
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12785 echo "$ac_t""no" 1>&6
12788 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12789 echo "configure:12790: checking "for ip_mreq struct in netinet/in.h"" >&5
12790 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12794 #include <sys/types.h>
12795 #include <netinet/in.h>
12798 static struct ip_mreq x;
12801 if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12803 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12804 Defining HAVE_MULTICAST
12806 cat >> confdefs.h <<\EOF
12807 #define HAVE_MULTICAST 1
12812 echo "configure: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12815 echo "$ac_t""no" 1>&6
12819 echo "$ac_t""no" 1>&6
12823 echo "$ac_t""no" 1>&6
12827 echo "$ac_t""no" 1>&6
12831 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12832 echo "configure:12833: checking for msgget" >&5
12834 cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837 /* System header to define __stub macros and hopefully few prototypes,
12838 which can conflict with char msgget(); below. */
12839 #include <assert.h>
12840 /* Override any gcc2 internal prototype to avoid an error. */
12841 /* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12847 /* The GNU C library defines this for functions which it implements
12848 to always fail with ENOSYS. Some functions are actually named
12849 something starting with __ and the normal name is an alias. */
12850 #if defined (__stub_msgget) || defined (__stub___msgget)
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12860 eval "ac_cv_func_msgget=yes"
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12865 eval "ac_cv_func_msgget=no"
12869 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12870 echo "$ac_t""yes" 1>&6
12871 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12872 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12873 echo "configure:12874: checking for sys/ipc.h" >&5
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12878 #include <sys/ipc.h>
12880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12881 { (eval echo configure:12882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12883 if test -z "$ac_err"; then
12885 eval "ac_cv_header_$ac_safe=yes"
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12891 eval "ac_cv_header_$ac_safe=no"
12894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12897 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12898 echo "configure:12899: checking for sys/msg.h" >&5
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 #include <sys/msg.h>
12905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12906 { (eval echo configure:12907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12908 if test -z "$ac_err"; then
12910 eval "ac_cv_header_$ac_safe=yes"
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 eval "ac_cv_header_$ac_safe=no"
12919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12920 echo "$ac_t""yes" 1>&6
12921 { test "$extra_verbose" = "yes" && cat << \EOF
12922 Defining HAVE_SYSVIPC
12924 cat >> confdefs.h <<\EOF
12925 #define HAVE_SYSVIPC 1
12930 echo "$ac_t""no" 1>&6
12934 echo "$ac_t""no" 1>&6
12938 echo "$ac_t""no" 1>&6
12942 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12943 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12944 echo "configure:12945: checking for dirent.h" >&5
12946 cat > conftest.$ac_ext <<EOF
12947 #line 12948 "configure"
12948 #include "confdefs.h"
12949 #include <dirent.h>
12951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12952 { (eval echo configure:12953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12954 if test -z "$ac_err"; then
12956 eval "ac_cv_header_$ac_safe=yes"
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12962 eval "ac_cv_header_$ac_safe=no"
12965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 { test "$extra_verbose" = "yes" && cat << \EOF
12968 Defining SYSV_SYSTEM_DIR
12970 cat >> confdefs.h <<\EOF
12971 #define SYSV_SYSTEM_DIR 1
12976 echo "$ac_t""no" 1>&6
12977 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12978 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12979 echo "configure:12980: checking for sys/dir.h" >&5
12981 cat > conftest.$ac_ext <<EOF
12982 #line 12983 "configure"
12983 #include "confdefs.h"
12984 #include <sys/dir.h>
12986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12987 { (eval echo configure:12988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12989 if test -z "$ac_err"; then
12991 eval "ac_cv_header_$ac_safe=yes"
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12997 eval "ac_cv_header_$ac_safe=no"
13000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13001 echo "$ac_t""yes" 1>&6
13004 echo "$ac_t""no" 1>&6
13005 { test "$extra_verbose" = "yes" && cat << \EOF
13006 Defining NONSYSTEM_DIR_LIBRARY
13008 cat >> confdefs.h <<\EOF
13009 #define NONSYSTEM_DIR_LIBRARY 1
13018 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13019 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13020 echo "configure:13021: checking for nlist.h" >&5
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13028 { (eval echo configure:13029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13030 if test -z "$ac_err"; then
13032 eval "ac_cv_header_$ac_safe=yes"
13035 echo "configure: failed program was:" >&5
13036 cat conftest.$ac_ext >&5
13038 eval "ac_cv_header_$ac_safe=no"
13041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 { test "$extra_verbose" = "yes" && cat << \EOF
13044 Defining NLIST_STRUCT
13046 cat >> confdefs.h <<\EOF
13047 #define NLIST_STRUCT 1
13052 echo "$ac_t""no" 1>&6
13057 echo "checking "for sound support"" 1>&6
13058 echo "configure:13059: checking "for sound support"" >&5
13059 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13061 if test "$with_native_sound" != "no"; then
13062 if test -n "$native_sound_lib"; then
13063 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13064 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13065 echo "configure:13066: checking for multimedia/audio_device.h" >&5
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 #include <multimedia/audio_device.h>
13072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13073 { (eval echo configure:13074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13075 if test -z "$ac_err"; then
13077 eval "ac_cv_header_$ac_safe=yes"
13080 echo "configure: failed program was:" >&5
13081 cat conftest.$ac_ext >&5
13083 eval "ac_cv_header_$ac_safe=no"
13086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13087 echo "$ac_t""yes" 1>&6
13088 sound_found=yes sound_cflags=""
13089 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13090 echo " xemacs will be linked with \"sunplay.o\""
13093 echo "$ac_t""no" 1>&6
13098 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13100 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13101 echo " xemacs will be linked with \"sunplay.o\""
13103 if test -d "/usr/demo/SOUND/include"
13104 then sound_cflags="-I/usr/demo/SOUND/include"
13105 else sound_cflags="-I/usr/demo/SOUND"
13107 if test -z "$native_sound_lib" ; then
13108 if test -r "/usr/demo/SOUND/lib/libaudio.a"
13109 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13110 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
13115 if test -z "$sound_found"; then
13116 case "$canonical" in
13118 if test -z "$native_sound_lib"; then
13120 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13121 echo "configure:13122: checking for ALopenport in -laudio" >&5
13122 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13124 xe_check_libs=" -laudio "
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 /* Override any gcc2 internal prototype to avoid an error. */
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13137 if { (eval echo configure:13138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13139 eval "ac_cv_lib_$ac_lib_var=yes"
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13144 eval "ac_cv_lib_$ac_lib_var=no"
13149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13150 echo "$ac_t""yes" 1>&6
13151 native_sound_lib="-laudio"
13153 echo "$ac_t""no" 1>&6
13158 if test -n "$native_sound_lib"; then
13159 sound_found=yes sound_cflags=""
13160 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13161 echo " xemacs will be linked with \"sgiplay.o\""
13165 if test -z "$native_sound_lib"; then
13167 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13168 echo "configure:13169: checking for AOpenAudio in -lAlib" >&5
13169 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13171 xe_check_libs=" -lAlib "
13172 cat > conftest.$ac_ext <<EOF
13173 #line 13174 "configure"
13174 #include "confdefs.h"
13175 /* Override any gcc2 internal prototype to avoid an error. */
13176 /* We use char because int might match the return type of a gcc2
13177 builtin and then its argument prototype would still apply. */
13184 if { (eval echo configure:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13186 eval "ac_cv_lib_$ac_lib_var=yes"
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13191 eval "ac_cv_lib_$ac_lib_var=no"
13196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13197 echo "$ac_t""yes" 1>&6
13198 native_sound_lib="-lAlib"
13200 echo "$ac_t""no" 1>&6
13205 if test -n "$native_sound_lib"; then
13207 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13208 echo " xemacs will be linked with \"hpplay.o\""
13210 if test "$GCC" = "yes" # Kludge city
13211 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13212 else sound_cflags="+e -I/usr/audio/examples"
13218 if test -z "$sound_found"; then
13219 if test "$with_msw" = "yes"; then
13225 if test -z "$sound_found"; then
13226 for dir in "machine" "sys" "linux"; do
13227 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13228 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13229 echo "configure:13230: checking for ${dir}/soundcard.h" >&5
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13234 #include <${dir}/soundcard.h>
13236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13237 { (eval echo configure:13238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13239 if test -z "$ac_err"; then
13241 eval "ac_cv_header_$ac_safe=yes"
13244 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13247 eval "ac_cv_header_$ac_safe=no"
13250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13251 echo "$ac_t""yes" 1>&6
13254 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13255 echo " xemacs will be linked with \"linuxplay.o\""
13257 { test "$extra_verbose" = "yes" && cat << EOF
13258 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13260 cat >> confdefs.h <<EOF
13261 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13267 echo "$ac_t""no" 1>&6
13273 test "$sound_found" = "yes" && with_native_sound=yes
13276 if test "$with_native_sound" = "yes"; then
13277 { test "$extra_verbose" = "yes" && cat << \EOF
13278 Defining HAVE_NATIVE_SOUND
13280 cat >> confdefs.h <<\EOF
13281 #define HAVE_NATIVE_SOUND 1
13285 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13288 if test "$with_nas_sound" != "no"; then
13289 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13290 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13291 echo "configure:13292: checking for audio/audiolib.h" >&5
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 #include <audio/audiolib.h>
13298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13299 { (eval echo configure:13300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13301 if test -z "$ac_err"; then
13303 eval "ac_cv_header_$ac_safe=yes"
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13309 eval "ac_cv_header_$ac_safe=no"
13312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13316 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13317 echo "configure:13318: checking for AuOpenServer in -laudio" >&5
13318 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13320 xe_check_libs=" -laudio "
13321 cat > conftest.$ac_ext <<EOF
13322 #line 13323 "configure"
13323 #include "confdefs.h"
13324 /* Override any gcc2 internal prototype to avoid an error. */
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13327 char AuOpenServer();
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13335 eval "ac_cv_lib_$ac_lib_var=yes"
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13340 eval "ac_cv_lib_$ac_lib_var=no"
13345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13346 echo "$ac_t""yes" 1>&6
13349 echo "$ac_t""no" 1>&6
13354 echo "$ac_t""no" 1>&6
13357 if test "$have_nas_sound" = "yes"; then
13359 { test "$extra_verbose" = "yes" && cat << \EOF
13360 Defining HAVE_NAS_SOUND
13362 cat >> confdefs.h <<\EOF
13363 #define HAVE_NAS_SOUND 1
13367 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13368 echo " xemacs will be linked with \"nas.o\""
13370 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 #include <audio/Xtutil.h>
13376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13377 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13381 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13382 Defining NAS_NO_ERROR_JUMP
13384 cat >> confdefs.h <<\EOF
13385 #define NAS_NO_ERROR_JUMP 1
13393 test "$with_nas_sound" = "yes" && \
13394 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13399 if test "$with_esd_sound" != "no"; then
13400 # Extract the first word of "esd-config", so it can be a program name with args.
13401 set dummy esd-config; ac_word=$2
13402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13403 echo "configure:13404: checking for $ac_word" >&5
13405 if test -n "$have_esd_config"; then
13406 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13410 for ac_dir in $ac_dummy; do
13411 test -z "$ac_dir" && ac_dir=.
13412 if test -f $ac_dir/$ac_word; then
13413 ac_cv_prog_have_esd_config="yes"
13418 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13420 have_esd_config="$ac_cv_prog_have_esd_config"
13421 if test -n "$have_esd_config"; then
13422 echo "$ac_t""$have_esd_config" 1>&6
13424 echo "$ac_t""no" 1>&6
13427 if test "$have_esd_config" = "yes"; then
13428 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13429 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
13430 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13431 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13432 echo "configure:13433: checking for esd_play_stream" >&5
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 /* System header to define __stub macros and hopefully few prototypes,
13438 which can conflict with char esd_play_stream(); below. */
13439 #include <assert.h>
13440 /* Override any gcc2 internal prototype to avoid an error. */
13441 /* We use char because int might match the return type of a gcc2
13442 builtin and then its argument prototype would still apply. */
13443 char esd_play_stream();
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13458 if { (eval echo configure:13459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13460 eval "ac_cv_func_esd_play_stream=yes"
13462 echo "configure: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13465 eval "ac_cv_func_esd_play_stream=no"
13469 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13470 echo "$ac_t""yes" 1>&6
13473 echo "$ac_t""no" 1>&6
13474 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13479 if test "$have_esd_sound" = "yes"; then
13482 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13483 echo " xemacs will be linked with \"esd.o\""
13485 { test "$extra_verbose" = "yes" && cat << \EOF
13486 Defining HAVE_ESD_SOUND
13488 cat >> confdefs.h <<\EOF
13489 #define HAVE_ESD_SOUND 1
13494 test "$with_esd_sound" = "yes" && \
13495 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13500 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13501 echo " xemacs will be linked with \"miscplay.o\""
13505 test -z "$with_tty" && with_tty=yes
13507 if test "$with_tty" = "yes" ; then
13508 echo "checking for TTY-related features" 1>&6
13509 echo "configure:13510: checking for TTY-related features" >&5
13510 { test "$extra_verbose" = "yes" && cat << \EOF
13513 cat >> confdefs.h <<\EOF
13518 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
13519 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\""
13522 if test -z "$with_ncurses"; then
13524 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13525 echo "configure:13526: checking for tgetent in -lncurses" >&5
13526 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13528 xe_check_libs=" -lncurses "
13529 cat > conftest.$ac_ext <<EOF
13530 #line 13531 "configure"
13531 #include "confdefs.h"
13532 /* Override any gcc2 internal prototype to avoid an error. */
13533 /* We use char because int might match the return type of a gcc2
13534 builtin and then its argument prototype would still apply. */
13541 if { (eval echo configure:13542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13543 eval "ac_cv_lib_$ac_lib_var=yes"
13545 echo "configure: failed program was:" >&5
13546 cat conftest.$ac_ext >&5
13548 eval "ac_cv_lib_$ac_lib_var=no"
13553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13554 echo "$ac_t""yes" 1>&6
13557 echo "$ac_t""no" 1>&6
13563 if test "$with_ncurses" = "yes"; then
13564 { test "$extra_verbose" = "yes" && cat << \EOF
13565 Defining HAVE_NCURSES
13567 cat >> confdefs.h <<\EOF
13568 #define HAVE_NCURSES 1
13572 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13573 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13574 echo "configure:13575: checking for ncurses/curses.h" >&5
13576 cat > conftest.$ac_ext <<EOF
13577 #line 13578 "configure"
13578 #include "confdefs.h"
13579 #include <ncurses/curses.h>
13581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13582 { (eval echo configure:13583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13584 if test -z "$ac_err"; then
13586 eval "ac_cv_header_$ac_safe=yes"
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13592 eval "ac_cv_header_$ac_safe=no"
13595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13596 echo "$ac_t""yes" 1>&6
13597 curses_h_file=ncurses/curses.h
13599 echo "$ac_t""no" 1>&6
13602 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13603 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13604 echo "configure:13605: checking for ncurses/term.h" >&5
13606 cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure"
13608 #include "confdefs.h"
13609 #include <ncurses/term.h>
13611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13612 { (eval echo configure:13613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13614 if test -z "$ac_err"; then
13616 eval "ac_cv_header_$ac_safe=yes"
13619 echo "configure: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13622 eval "ac_cv_header_$ac_safe=no"
13625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13626 echo "$ac_t""yes" 1>&6
13627 term_h_file=ncurses/term.h
13629 echo "$ac_t""no" 1>&6
13632 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13633 echo " xemacs will be linked with \"terminfo.o\""
13635 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13637 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13638 save_c_switch_site="$c_switch_site"
13639 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13640 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13641 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13642 echo "configure:13643: checking for ncurses/curses.h" >&5
13644 cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 #include <ncurses/curses.h>
13649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13650 { (eval echo configure:13651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13652 if test -z "$ac_err"; then
13654 eval "ac_cv_header_$ac_safe=yes"
13657 echo "configure: failed program was:" >&5
13658 cat conftest.$ac_ext >&5
13660 eval "ac_cv_header_$ac_safe=no"
13663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13664 echo "$ac_t""yes" 1>&6
13665 curses_h_file=ncurses/curses.h
13667 echo "$ac_t""no" 1>&6
13670 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13671 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13672 else c_switch_site="$save_c_switch_site"
13675 else if test "$have_terminfo" = "yes"; then
13676 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13677 echo " xemacs will be linked with \"terminfo.o\""
13679 if test -n "$libs_termcap"; then
13680 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13682 for lib in curses termlib termcap; do
13684 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13685 echo "configure:13686: checking for tgetent in -l$lib" >&5
13686 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13688 xe_check_libs=" -l$lib "
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* Override any gcc2 internal prototype to avoid an error. */
13693 /* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13701 if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 eval "ac_cv_lib_$ac_lib_var=yes"
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 eval "ac_cv_lib_$ac_lib_var=no"
13713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13714 echo "$ac_t""yes" 1>&6
13715 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13717 echo "$ac_t""no" 1>&6
13723 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13725 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13726 echo "configure:13727: checking for tgoto in -ltermcap" >&5
13727 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13729 xe_check_libs=" -ltermcap "
13730 cat > conftest.$ac_ext <<EOF
13731 #line 13732 "configure"
13732 #include "confdefs.h"
13733 /* Override any gcc2 internal prototype to avoid an error. */
13734 /* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 eval "ac_cv_lib_$ac_lib_var=yes"
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 eval "ac_cv_lib_$ac_lib_var=no"
13754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13755 echo "$ac_t""yes" 1>&6
13756 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13758 { test "$extra_verbose" = "yes" && cat << EOF
13759 Defining $ac_tr_lib
13761 cat >> confdefs.h <<EOF
13762 #define $ac_tr_lib 1
13766 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13769 echo "$ac_t""no" 1>&6
13770 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13771 echo " xemacs will be linked with \"tparam.o\""
13777 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13778 echo " xemacs will be linked with \"tparam.o\""
13781 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13782 if test -n "$libs_termcap"; then
13783 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13786 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13787 echo "configure:13788: checking for tgetent in -lcurses" >&5
13788 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13790 xe_check_libs=" -lcurses "
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13794 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13803 if { (eval echo configure:13804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 eval "ac_cv_lib_$ac_lib_var=yes"
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13810 eval "ac_cv_lib_$ac_lib_var=no"
13815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13816 echo "$ac_t""yes" 1>&6
13817 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13819 echo "$ac_t""no" 1>&6
13820 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13821 echo "configure:13822: checking for tgetent in -ltermcap" >&5
13822 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13824 xe_check_libs=" -ltermcap "
13825 cat > conftest.$ac_ext <<EOF
13826 #line 13827 "configure"
13827 #include "confdefs.h"
13828 /* Override any gcc2 internal prototype to avoid an error. */
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13837 if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13839 eval "ac_cv_lib_$ac_lib_var=yes"
13841 echo "configure: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13844 eval "ac_cv_lib_$ac_lib_var=no"
13849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13850 echo "$ac_t""yes" 1>&6
13851 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13853 echo "$ac_t""no" 1>&6
13854 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13855 echo " xemacs will be linked with \"termcap.o\""
13866 { test "$extra_verbose" = "yes" && cat << EOF
13867 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13869 cat >> confdefs.h <<EOF
13870 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13874 { test "$extra_verbose" = "yes" && cat << EOF
13875 Defining TERM_H_FILE = "${term_h_file-term.h}"
13877 cat >> confdefs.h <<EOF
13878 #define TERM_H_FILE "${term_h_file-term.h}"
13883 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13884 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13885 echo "configure:13886: checking for gpm.h" >&5
13887 cat > conftest.$ac_ext <<EOF
13888 #line 13889 "configure"
13889 #include "confdefs.h"
13892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13893 { (eval echo configure:13894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13895 if test -z "$ac_err"; then
13897 eval "ac_cv_header_$ac_safe=yes"
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13903 eval "ac_cv_header_$ac_safe=no"
13906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13910 echo "$ac_t""no" 1>&6
13914 test -z "$with_gpm" && {
13915 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13916 echo "configure:13917: checking for Gpm_Open in -lgpm" >&5
13917 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13919 xe_check_libs=" -lgpm "
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 /* Override any gcc2 internal prototype to avoid an error. */
13924 /* We use char because int might match the return type of a gcc2
13925 builtin and then its argument prototype would still apply. */
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 eval "ac_cv_lib_$ac_lib_var=yes"
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13939 eval "ac_cv_lib_$ac_lib_var=no"
13944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13945 echo "$ac_t""yes" 1>&6
13948 echo "$ac_t""no" 1>&6
13953 if test "$with_gpm" = "yes"; then
13954 { test "$extra_verbose" = "yes" && cat << \EOF
13957 cat >> confdefs.h <<\EOF
13962 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13963 echo " xemacs will be linked with \"gpmevent.o\""
13965 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13968 else for feature in ncurses gpm; do
13969 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13970 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13972 eval "with_${feature}=no"
13975 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13976 echo " xemacs will be linked with \"event-unixoid.o\""
13980 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13981 != "no no no" && echo "checking for database support" 1>&6
13982 echo "configure:13983: checking for database support" >&5
13984 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13985 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13986 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13987 echo "configure:13988: checking for ndbm.h" >&5
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13995 { (eval echo configure:13996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13997 if test -z "$ac_err"; then
13999 eval "ac_cv_header_$ac_safe=yes"
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14005 eval "ac_cv_header_$ac_safe=no"
14008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14009 echo "$ac_t""yes" 1>&6
14012 echo "$ac_t""no" 1>&6
14014 test "$with_database_gdbm" = "yes" -o \
14015 "$with_database_dbm" = "yes" && \
14016 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14017 with_database_gdbm=no with_database_dbm=no
14022 if test "$with_database_gdbm" != "no"; then
14024 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14025 echo "configure:14026: checking for dbm_open in -lgdbm" >&5
14026 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14028 xe_check_libs=" -lgdbm "
14029 cat > conftest.$ac_ext <<EOF
14030 #line 14031 "configure"
14031 #include "confdefs.h"
14032 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14041 if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14043 eval "ac_cv_lib_$ac_lib_var=yes"
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14048 eval "ac_cv_lib_$ac_lib_var=no"
14053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14054 echo "$ac_t""yes" 1>&6
14055 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14057 echo "$ac_t""no" 1>&6
14058 if test "$with_database_gdbm" = "yes"; then
14059 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14061 with_database_gdbm=no
14067 if test "$with_database_dbm" != "no"; then
14068 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14069 echo "configure:14070: checking for dbm_open" >&5
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char dbm_open(); below. */
14076 #include <assert.h>
14077 /* Override any gcc2 internal prototype to avoid an error. */
14078 /* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14084 /* The GNU C library defines this for functions which it implements
14085 to always fail with ENOSYS. Some functions are actually named
14086 something starting with __ and the normal name is an alias. */
14087 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14095 if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14097 eval "ac_cv_func_dbm_open=yes"
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14102 eval "ac_cv_func_dbm_open=no"
14106 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14107 echo "$ac_t""yes" 1>&6
14108 with_database_dbm=yes libdbm=
14110 echo "$ac_t""no" 1>&6
14113 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14114 echo "configure:14115: checking for dbm_open in -ldbm" >&5
14115 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14117 xe_check_libs=" -ldbm "
14118 cat > conftest.$ac_ext <<EOF
14119 #line 14120 "configure"
14120 #include "confdefs.h"
14121 /* Override any gcc2 internal prototype to avoid an error. */
14122 /* We use char because int might match the return type of a gcc2
14123 builtin and then its argument prototype would still apply. */
14130 if { (eval echo configure:14131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14132 eval "ac_cv_lib_$ac_lib_var=yes"
14134 echo "configure: failed program was:" >&5
14135 cat conftest.$ac_ext >&5
14137 eval "ac_cv_lib_$ac_lib_var=no"
14142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14143 echo "$ac_t""yes" 1>&6
14144 with_database_dbm=yes libdbm=-ldbm
14146 echo "$ac_t""no" 1>&6
14147 test "$with_database_dbm" = "yes" && \
14148 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14149 with_database_dbm=no
14157 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14158 test "$with_database_gdbm" = "yes" -o \
14159 "$with_database_dbm" = "yes" && \
14160 { test "$extra_verbose" = "yes" && cat << \EOF
14163 cat >> confdefs.h <<\EOF
14169 if test "$with_database_berkdb" != "no"; then
14170 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14171 echo "configure:14172: checking for Berkeley db.h" >&5
14172 for header in "db/db.h" "db.h"; do
14175 cat > conftest.$ac_ext <<EOF
14176 #line 14177 "configure"
14177 #include "confdefs.h"
14179 #include <stdlib.h>
14180 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14181 #ifdef HAVE_INTTYPES_H
14182 #define __BIT_TYPES_DEFINED__
14183 #include <inttypes.h>
14192 if { (eval echo configure:14193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14194 db_h_file="$header"; break
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14202 cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14206 #include <stdlib.h>
14207 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14208 #ifdef HAVE_INTTYPES_H
14209 #define __BIT_TYPES_DEFINED__
14210 #include <inttypes.h>
14211 typedef uint8_t u_int8_t;
14212 typedef uint16_t u_int16_t;
14213 typedef uint32_t u_int32_t;
14214 #ifdef WE_DONT_NEED_QUADS
14215 typedef uint64_t u_int64_t;
14225 if { (eval echo configure:14226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14227 db_h_file="$header"; break
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14236 if test -z "$db_h_file"
14237 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14238 else echo "$ac_t""$db_h_file" 1>&6
14241 if test "$with_database_berkdb" != "no"; then
14242 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14243 echo "configure:14244: checking for Berkeley DB version" >&5
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 #include <$db_h_file>
14248 #if DB_VERSION_MAJOR > 1
14253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14254 egrep "yes" >/dev/null 2>&1; then
14256 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 #include <$db_h_file>
14260 #if DB_VERSION_MAJOR > 2
14265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14266 egrep "yes" >/dev/null 2>&1; then
14268 echo "$ac_t""3" 1>&6; dbfunc=db_create
14272 echo "$ac_t""2" 1>&6; dbfunc=db_open
14279 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14283 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14284 echo "configure:14285: checking for $dbfunc" >&5
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 /* System header to define __stub macros and hopefully few prototypes,
14290 which can conflict with char $dbfunc(); below. */
14291 #include <assert.h>
14292 /* Override any gcc2 internal prototype to avoid an error. */
14293 /* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14299 /* The GNU C library defines this for functions which it implements
14300 to always fail with ENOSYS. Some functions are actually named
14301 something starting with __ and the normal name is an alias. */
14302 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14312 eval "ac_cv_func_$dbfunc=yes"
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 eval "ac_cv_func_$dbfunc=no"
14321 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14322 echo "$ac_t""yes" 1>&6
14323 with_database_berkdb=yes need_libdb=no
14325 echo "$ac_t""no" 1>&6
14328 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14329 echo "configure:14330: checking for $dbfunc in -ldb" >&5
14330 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14332 xe_check_libs=" -ldb "
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347 eval "ac_cv_lib_$ac_lib_var=yes"
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14352 eval "ac_cv_lib_$ac_lib_var=no"
14357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14358 echo "$ac_t""yes" 1>&6
14359 with_database_berkdb=yes need_libdb=yes
14361 echo "$ac_t""no" 1>&6
14369 if test "$with_database_berkdb" = "yes"; then
14370 { test "$extra_verbose" = "yes" && cat << EOF
14371 Defining DB_H_FILE = "$db_h_file"
14373 cat >> confdefs.h <<EOF
14374 #define DB_H_FILE "$db_h_file"
14378 { test "$extra_verbose" = "yes" && cat << \EOF
14379 Defining HAVE_BERKELEY_DB
14381 cat >> confdefs.h <<\EOF
14382 #define HAVE_BERKELEY_DB 1
14386 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14387 else with_database_berkdb=no
14391 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14392 != "no no no"; then
14393 { test "$extra_verbose" = "yes" && cat << \EOF
14394 Defining HAVE_DATABASE
14396 cat >> confdefs.h <<\EOF
14397 #define HAVE_DATABASE 1
14401 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14402 echo " xemacs will be linked with \"database.o\""
14406 if test "$with_socks" = "yes"; then
14408 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14409 echo "configure:14410: checking for SOCKSinit in -lsocks" >&5
14410 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14412 xe_check_libs=" -lsocks "
14413 cat > conftest.$ac_ext <<EOF
14414 #line 14415 "configure"
14415 #include "confdefs.h"
14416 /* Override any gcc2 internal prototype to avoid an error. */
14417 /* We use char because int might match the return type of a gcc2
14418 builtin and then its argument prototype would still apply. */
14425 if { (eval echo configure:14426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14427 eval "ac_cv_lib_$ac_lib_var=yes"
14429 echo "configure: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
14432 eval "ac_cv_lib_$ac_lib_var=no"
14437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14438 echo "$ac_t""yes" 1>&6
14439 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14441 { test "$extra_verbose" = "yes" && cat << EOF
14442 Defining $ac_tr_lib
14444 cat >> confdefs.h <<EOF
14445 #define $ac_tr_lib 1
14449 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14452 echo "$ac_t""no" 1>&6
14456 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14457 Defining HAVE_SOCKS
14459 cat >> confdefs.h <<\EOF
14460 #define HAVE_SOCKS 1
14466 if test "$usage_tracking" = "yes"; then
14467 { test "$extra_verbose" = "yes" && cat << \EOF
14468 Defining USAGE_TRACKING
14470 cat >> confdefs.h <<\EOF
14471 #define USAGE_TRACKING 1
14475 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14478 if test "$with_modules" != "no"; then
14479 echo "checking for module support" 1>&6
14480 echo "configure:14481: checking for module support" >&5
14482 if test "$with_msw" = "yes"; then
14485 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14486 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14487 echo "configure:14488: checking for dlfcn.h" >&5
14489 cat > conftest.$ac_ext <<EOF
14490 #line 14491 "configure"
14491 #include "confdefs.h"
14494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14495 { (eval echo configure:14496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14497 if test -z "$ac_err"; then
14499 eval "ac_cv_header_$ac_safe=yes"
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14505 eval "ac_cv_header_$ac_safe=no"
14508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14509 echo "$ac_t""yes" 1>&6
14511 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14512 echo "configure:14513: checking for dlopen in -lc" >&5
14513 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14521 if { (eval echo configure:14522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14529 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14530 echo "configure:14531: checking for dlopen in -ldl" >&5
14531 ac_save_LIBS="$LIBS"
14533 cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14541 if { (eval echo configure:14542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14545 echo "configure: failed program was:" >&5
14546 cat conftest.$ac_ext >&5
14548 LIBS="$ac_save_LIBS"
14555 echo "$ac_t""no" 1>&6
14558 if test -n "$have_dl"; then
14559 { test "$extra_verbose" = "yes" && cat << \EOF
14560 Defining HAVE_DLOPEN
14562 cat >> confdefs.h <<\EOF
14563 #define HAVE_DLOPEN 1
14569 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14570 echo "configure:14571: checking for shl_load in -ldld" >&5
14571 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14573 xe_check_libs=" -ldld "
14574 cat > conftest.$ac_ext <<EOF
14575 #line 14576 "configure"
14576 #include "confdefs.h"
14577 /* Override any gcc2 internal prototype to avoid an error. */
14578 /* We use char because int might match the return type of a gcc2
14579 builtin and then its argument prototype would still apply. */
14586 if { (eval echo configure:14587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14588 eval "ac_cv_lib_$ac_lib_var=yes"
14590 echo "configure: failed program was:" >&5
14591 cat conftest.$ac_ext >&5
14593 eval "ac_cv_lib_$ac_lib_var=no"
14598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14599 echo "$ac_t""yes" 1>&6
14600 libdl=dld have_dl=yes;
14601 { test "$extra_verbose" = "yes" && cat << \EOF
14602 Defining HAVE_SHL_LOAD
14604 cat >> confdefs.h <<\EOF
14605 #define HAVE_SHL_LOAD 1
14610 echo "$ac_t""no" 1>&6
14612 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14613 echo "configure:14614: checking for dld_init in -ldld" >&5
14614 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14616 xe_check_libs=" -ldld "
14617 cat > conftest.$ac_ext <<EOF
14618 #line 14619 "configure"
14619 #include "confdefs.h"
14620 /* Override any gcc2 internal prototype to avoid an error. */
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14629 if { (eval echo configure:14630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14631 eval "ac_cv_lib_$ac_lib_var=yes"
14633 echo "configure: failed program was:" >&5
14634 cat conftest.$ac_ext >&5
14636 eval "ac_cv_lib_$ac_lib_var=no"
14641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14642 echo "$ac_t""yes" 1>&6
14643 libdl=dld have_dl=yes;
14644 { test "$extra_verbose" = "yes" && cat << \EOF
14645 Defining HAVE_DLD_INIT
14647 cat >> confdefs.h <<\EOF
14648 #define HAVE_DLD_INIT 1
14653 echo "$ac_t""no" 1>&6
14662 if test -n "$have_dl"; then
14669 ld_dynamic_link_flags=
14671 xealias=$internal_configuration
14673 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14674 echo "configure:14675: checking how to build dynamic libraries for ${xehost}" >&5
14675 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14678 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14681 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14682 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14683 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14685 case "$xehost_os" in
14687 # AIX sometimes has problems with the GCC collect2 program. For some
14688 # reason, if we set the COLLECT_NAMES environment variable, the problems
14689 # vanish in a puff of smoke.
14690 if test "${COLLECT_NAMES+set}" != set; then
14692 export COLLECT_NAMES
14697 # Now see if the compiler is really GCC.
14698 if test "$GCC" = "yes"; then
14701 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14702 echo "configure:14703: checking checking whether we are using GNU C" >&5
14703 cat > conftest.$ac_ext <<EOF
14704 #line 14705 "configure"
14705 #include "confdefs.h"
14712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14713 egrep "yes" >/dev/null 2>&1; then
14722 echo "$ac_t""${XEGCC}" 1>&6
14725 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14726 echo "configure:14727: checking how to produce PIC code" >&5
14729 can_build_shared=yes
14730 if test "$XEGCC" = yes; then
14733 case "$xehost_os" in
14734 aix[3-9]* | irix[5-9]* | osf[3-9])
14735 # PIC is the default for these OSes.
14739 # We can build DLLs from non-PIC.
14742 # FIXME: we need at least 68020 code to build shared libraries, but
14743 # adding the `-m68020' flag to GCC prevents building anything better,
14745 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14747 *cygwin* | *mingw* )
14748 # PIC is the default
14755 # PORTME Check for PIC flags for the system compiler.
14756 case "$xehost_os" in
14757 hpux9* | hpux1[0-9]*)
14758 # Is there a better link_static_flag that works with the bundled CC?
14765 # PIC (with -KPIC) is the default.
14769 # We can build DLLs from non-PIC.
14773 # All OSF/1 code is PIC.
14778 # All AIX code is PIC.
14783 dll_cflags='-belf -Kpic'
14817 can_build_shared=no
14822 if test -n "$dll_cflags"; then
14823 echo "$ac_t""${dll_cflags}" 1>&6
14825 # Check to make sure the dll_cflags actually works.
14826 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14827 echo "configure:14828: checking if PIC flag ${dll_cflags} really works" >&5
14828 save_CFLAGS="$CFLAGS"
14829 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14830 cat > conftest.$ac_ext <<EOF
14831 #line 14832 "configure"
14832 #include "confdefs.h"
14838 if { (eval echo configure:14839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14841 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14842 # reports no error. So, we need to grep stderr for (Bundled).
14843 if grep '(Bundled)' config.log >/dev/null; then
14844 echo "$ac_t""no" 1>&6
14845 can_build_shared=no
14848 echo "$ac_t""yes" 1>&6
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14854 echo "$ac_t""no" 1>&6
14855 can_build_shared=no
14859 CFLAGS="$save_CFLAGS"
14861 echo "$ac_t""none" 1>&6
14864 if test "$can_build_shared" = "yes"; then
14868 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14869 echo "configure:14870: checking if C compiler can produce shared libraries" >&5
14870 if test "$XEGCC" = yes; then
14873 else # Not using GCC
14874 case "$xehost_os" in
14876 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14877 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14880 freebsd2* | netbsd* | openbsd*)
14882 xcldf="${wl}-Bshareable"
14891 xcldf="${wl}-b ${wl}+s"
14894 irix[5-9]* | osf[3-9]*)
14895 xcldf="${wl}-shared"
14899 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14905 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14906 xldf="-assert pure-text -Bstatic"
14909 fi # End if if we are using gcc
14911 if test -n "$xcldf"; then
14912 save_LDFLAGS=$LDFLAGS
14914 save_xe_libs=$xe_libs
14915 LDFLAGS="$xcldf $LDFLAGS"
14918 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14919 cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14927 if { (eval echo configure:14928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14931 echo "configure: failed program was:" >&5
14932 cat conftest.$ac_ext >&5
14937 LDFLAGS=$save_LDFLAGS
14939 xe_libs=$save_xe_libs
14940 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14944 echo "$ac_t""${cc_produces_so}" 1>&6
14947 if test -z "$LTLD"; then
14949 if test "$XEGCC" = yes; then
14950 # Check if gcc -print-prog-name=ld gives a path.
14951 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14952 echo "configure:14953: checking for ld used by GCC" >&5
14953 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14955 # Accept absolute paths.
14957 if test -z "$LTLD"; then
14958 # case "$ac_prog" in
14959 # *gcc-lib*) LTLD="$CC"
14968 # If it fails, then pretend we aren't using GCC.
14972 # If it is relative, then search for the first ld in PATH.
14973 with_gnu_ld=unknown
14977 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14978 echo "configure:14979: checking for GNU ld" >&5
14981 if test -z "$LTLD"; then
14982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14983 for ac_dir in $PATH; do
14984 test -z "$ac_dir" && ac_dir=.
14985 if test -f "$ac_dir/$ac_prog"; then
14986 LTLD="$ac_dir/$ac_prog"
14987 # Check to see if the program is GNU ld. I'd rather use --version,
14988 # but apparently some GNU ld's only accept -v.
14989 # Break only if it was the GNU/non-GNU ld that we prefer.
14990 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15000 if test -n "$LTLD"; then
15001 echo "$ac_t""${LTLD}" 1>&6
15003 echo "$ac_t""no" 1>&6
15006 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15007 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15012 ld_dynamic_link_flags=
15014 # Check to see if it really is or isn't GNU ld.
15015 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15016 echo "configure:15017: checking if the linker is GNU ld" >&5
15017 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15018 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15023 echo "$ac_t""${xe_gnu_ld}" 1>&6
15025 case "$xehost_os" in
15026 amigaos* | sunos4*)
15027 # On these operating systems, we should treat GNU ld like the system ld.
15028 gnu_ld_acts_native=yes
15031 gnu_ld_acts_native=no
15035 if test "$cc_produces_so" = "yes"; then
15038 can_build_shared=yes
15041 # OK - only NOW do we futz about with ld.
15042 # See if the linker supports building shared libraries.
15043 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15044 echo "configure:15045: checking whether the linker supports shared libraries" >&5
15046 dll_ldflags=$LDFLAGS
15048 can_build_shared=yes
15049 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15050 # See if GNU ld supports shared libraries.
15051 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15053 dll_ldflags="-shared"
15059 # PORTME fill in a description of your system's linker (not GNU ld)
15060 case "$xehost_os" in
15070 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15071 # support. Future versions do this automatically, but an explicit c++rt0.o
15072 # doesn't break anything, and helps significantly (at the cost of a little
15077 dll_post="/usr/lib/c++rt0.o"
15080 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15083 dll_ldflags="-Bshareable"
15086 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15088 dll_ldflags="-shared"
15102 # Tested with NetBSD 1.2 ld
15117 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15118 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15121 *gcc*) dll_ldflags="-shared"
15124 *) dll_ldflags="-G"
15130 if test "$XEGCC" = yes; then
15150 can_build_shared=no
15154 echo "$ac_t""${ld_shlibs}" 1>&6
15155 if test "$ld_shlibs" = "no"; then
15156 can_build_shared=no
15158 fi # End of if cc_produces_so = no
15161 if test "$xe_gnu_ld" = yes; then
15162 if test "$ld_shlibs" = yes; then
15163 ld_dynamic_link_flags="${wl}-export-dynamic"
15167 if test -z "$ld_dynamic_link_flags"; then
15168 case "$xehost_os" in
15170 ld_dynamic_link_flags=
15174 ld_dynamic_link_flags=
15178 ld_dynamic_link_flags=
15182 ld_dynamic_link_flags=
15186 ld_dynamic_link_flags="${wl}-E"
15190 ld_dynamic_link_flags=
15194 ld_dynamic_link_flags=
15198 ld_dynamic_link_flags=
15202 ld_dynamic_link_flags=
15205 solaris2* | solaris7*)
15206 ld_dynamic_link_flags=
15209 sco3.2v5* | unixware* | sysv5* | sysv4*)
15210 ld_dynamic_link_flags="${wl}-Bexport"
15214 ld_dynamic_link_flags=
15218 ld_dynamic_link_flags=
15222 ld_dynamic_link_flags=
15226 fi # End of if -z ld_dynamic_link_flags
15227 fi # End of if test "$can_build_shared" = "yes"
15238 if test "$can_build_shared" = "yes"; then
15239 { test "$extra_verbose" = "yes" && cat << \EOF
15240 Defining HAVE_SHLIB
15242 cat >> confdefs.h <<\EOF
15243 #define HAVE_SHLIB 1
15247 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15248 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15250 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15251 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15252 for ac_func in dlerror _dlerror
15254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15255 echo "configure:15256: checking for $ac_func" >&5
15257 cat > conftest.$ac_ext <<EOF
15258 #line 15259 "configure"
15259 #include "confdefs.h"
15260 /* System header to define __stub macros and hopefully few prototypes,
15261 which can conflict with char $ac_func(); below. */
15262 #include <assert.h>
15263 /* Override any gcc2 internal prototype to avoid an error. */
15264 /* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15281 if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15283 eval "ac_cv_func_$ac_func=yes"
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15288 eval "ac_cv_func_$ac_func=no"
15292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15293 echo "$ac_t""yes" 1>&6
15294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15295 { test "$extra_verbose" = "yes" && cat << EOF
15296 Defining $ac_tr_func
15298 cat >> confdefs.h <<EOF
15299 #define $ac_tr_func 1
15304 echo "$ac_t""no" 1>&6
15310 if test "$with_modules" = "yes"; then
15311 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15313 echo "configure: warning: "Module support cannot be provided."" 1>&2
15319 cat > conftest.$ac_ext <<EOF
15320 #line 15321 "configure"
15321 #include "confdefs.h"
15322 int main(int c,char *v[]){return 0;}
15324 if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15334 echo "*** PANIC *** configure forgot how to build working executables!"
15336 echo "*** This is most commonly due to an unforeseen environment, causing"
15337 echo "*** configure to incorrectly compute the sequence of libraries to link."
15338 echo "*** Please examine the tail of config.log for runtime errors."
15339 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15340 echo "*** Often adding or removing explicit options in the configure"
15341 echo "*** invocation can work around this kind of problem. If so, please"
15342 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15344 echo "*** Other possible causes are inability to write to the file system"
15345 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15346 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15347 echo "*** necessary. On other systems, try telling configure where to find"
15348 echo "*** the shared libraries using the --site-runtime-libraries option."
15350 echo "*** Another way to shoot yourself in the foot is to specify"
15351 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15352 echo "*** system. Don't do that."
15357 if test "$win32_processes" = "yes"; then
15358 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15359 echo " xemacs will be linked with \"process-nt.o\""
15362 { test "$extra_verbose" = "yes" && cat << \EOF
15363 Defining HAVE_UNIX_PROCESSES
15365 cat >> confdefs.h <<\EOF
15366 #define HAVE_UNIX_PROCESSES 1
15370 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15371 echo " xemacs will be linked with \"process-unix.o\""
15378 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15383 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15388 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
15389 c_switch_general="$T"
15393 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15394 c_switch_window_system="$T"
15398 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15403 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
15404 ld_switch_general="$T"
15408 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15409 ld_switch_window_system="$T"
15413 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15418 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15419 ld_libs_general="$T"
15423 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15424 ld_libs_window_system="$T"
15428 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15433 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15434 internal_makefile_list="Makefile.in"
15435 SUBDIR_MAKEFILES=''
15436 test -d lock || mkdir lock
15437 for dir in $MAKE_SUBDIR; do
15438 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15439 test -d "$d" || mkdir "$d"; cd "$d"
15441 * ) test -d "$dir" || mkdir "$dir" ;;
15445 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15446 SUBDIR_MAKEFILES="$T"
15450 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15451 internal_makefile_list="$T"
15458 for dir in src/s src/m; do
15459 if test ! -d "$dir" ; then
15460 echo Making symbolic link to "$srcdir/$dir"
15461 ${LN_S} "$srcdir/$dir" "$dir"
15465 if test "$extra_verbose" = "yes"; then
15467 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
15472 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15473 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15474 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15477 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15478 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15479 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15482 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15483 test "$extra_verbose" = "yes" && echo "creating TAGS"
15485 $srcdir/TAGS,include" > "TAGS"
15488 if test "$__SUNPRO_C" = "yes"; then
15489 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15490 ( echo "# For use with Sun WorkShop's Source browser."
15491 echo "# See sbquery(1) and sbinit(4) for more information"
15492 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15520 *\$* ) eval "PREFIX=$PREFIX" ;;
15528 EXEC_PREFIX=$exec_prefix
15530 case "$EXEC_PREFIX" in
15531 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15542 *\$* ) eval "INFODIR=$INFODIR" ;;
15552 case "$INFOPATH" in
15553 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15561 PACKAGE_PATH=$package_path
15563 case "$PACKAGE_PATH" in
15564 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15575 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15583 MODULEDIR=$moduledir
15585 case "$MODULEDIR" in
15586 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15594 SITELISPDIR=$sitelispdir
15596 case "$SITELISPDIR" in
15597 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15605 SITEMODULEDIR=$sitemoduledir
15607 case "$SITEMODULEDIR" in
15608 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15619 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15630 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15638 ARCHLIBDIR=$archlibdir
15640 case "$ARCHLIBDIR" in
15641 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15665 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15673 : ${XEMACS_CC:=$CC}
15676 if test "$with_prefix" = "yes"; then
15677 { test "$extra_verbose" = "yes" && cat << \EOF
15678 Defining PREFIX_USER_DEFINED
15680 cat >> confdefs.h <<\EOF
15681 #define PREFIX_USER_DEFINED 1
15687 if test "$with_site_lisp" = "no"; then
15688 { test "$extra_verbose" = "yes" && cat << \EOF
15689 Defining INHIBIT_SITE_LISP
15691 cat >> confdefs.h <<\EOF
15692 #define INHIBIT_SITE_LISP 1
15697 if test "$with_site_modules" = "no"; then
15698 { test "$extra_verbose" = "yes" && cat << \EOF
15699 Defining INHIBIT_SITE_MODULES
15701 cat >> confdefs.h <<\EOF
15702 #define INHIBIT_SITE_MODULES 1
15710 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15711 ac_configure_args="$T"
15713 { test "$extra_verbose" = "yes" && cat << EOF
15714 Defining EMACS_CONFIGURATION = "$configuration"
15716 cat >> confdefs.h <<EOF
15717 #define EMACS_CONFIGURATION "$configuration"
15721 { test "$extra_verbose" = "yes" && cat << EOF
15722 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15724 cat >> confdefs.h <<EOF
15725 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15732 { test "$extra_verbose" = "yes" && cat << EOF
15733 Defining LD_SWITCH_X_SITE = $null_string
15735 cat >> confdefs.h <<EOF
15736 #define LD_SWITCH_X_SITE $null_string
15740 { test "$extra_verbose" = "yes" && cat << EOF
15741 Defining LD_SWITCH_X_SITE_AUX = $null_string
15743 cat >> confdefs.h <<EOF
15744 #define LD_SWITCH_X_SITE_AUX $null_string
15748 { test "$extra_verbose" = "yes" && cat << EOF
15749 Defining C_SWITCH_X_SITE = $null_string
15751 cat >> confdefs.h <<EOF
15752 #define C_SWITCH_X_SITE $null_string
15756 { test "$extra_verbose" = "yes" && cat << EOF
15757 Defining LD_SWITCH_SITE = $null_string
15759 cat >> confdefs.h <<EOF
15760 #define LD_SWITCH_SITE $null_string
15764 { test "$extra_verbose" = "yes" && cat << EOF
15765 Defining C_SWITCH_SITE = $null_string
15767 cat >> confdefs.h <<EOF
15768 #define C_SWITCH_SITE $null_string
15774 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15775 Defining GNU_MALLOC
15777 cat >> confdefs.h <<\EOF
15778 #define GNU_MALLOC 1
15782 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15783 Defining USE_SYSTEM_MALLOC
15785 cat >> confdefs.h <<\EOF
15786 #define USE_SYSTEM_MALLOC 1
15790 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15791 Defining USE_DEBUG_MALLOC
15793 cat >> confdefs.h <<\EOF
15794 #define USE_DEBUG_MALLOC 1
15798 { test "$extra_verbose" = "yes" && cat << \EOF
15799 Defining USE_SYSTEM_MALLOC
15801 cat >> confdefs.h <<\EOF
15802 #define USE_SYSTEM_MALLOC 1
15807 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15810 cat >> confdefs.h <<\EOF
15815 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15818 cat >> confdefs.h <<\EOF
15823 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15824 Defining EXTERNAL_WIDGET
15826 cat >> confdefs.h <<\EOF
15827 #define EXTERNAL_WIDGET 1
15831 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15832 Defining QUICK_BUILD
15834 cat >> confdefs.h <<\EOF
15835 #define QUICK_BUILD 1
15839 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15842 cat >> confdefs.h <<\EOF
15847 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15850 cat >> confdefs.h <<\EOF
15855 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15856 Defining MAIL_USE_POP
15858 cat >> confdefs.h <<\EOF
15859 #define MAIL_USE_POP 1
15863 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15866 cat >> confdefs.h <<\EOF
15871 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15874 cat >> confdefs.h <<\EOF
15879 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15880 Defining USE_UNION_TYPE
15882 cat >> confdefs.h <<\EOF
15883 #define USE_UNION_TYPE 1
15887 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15890 cat >> confdefs.h <<\EOF
15895 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15896 Defining IPV6_CANONICALIZE
15898 cat >> confdefs.h <<\EOF
15899 #define IPV6_CANONICALIZE 1
15906 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15908 echo "uname -a: `uname -a`"
15911 echo "$0 $quoted_arguments"
15914 if test ! -z ${emacs_beta_version} ; then
15915 if test -z "${emacs_is_beta}" ; then
15916 xemacs_betaname=".${emacs_beta_version}"
15918 xemacs_betaname="-b${emacs_beta_version}"
15927 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15930 Compilation / Installation:"
15931 echo " Source code location: $srcdir"
15932 echo " Installation prefix: $prefix"
15933 if test -n "$site_includes"; then
15934 echo " Additional header files: $site_includes"
15936 if test -n "$site_libraries"; then
15937 echo " Additional libraries: $site_libraries"
15939 if test -n "$site_prefixes"; then
15940 echo " Additional prefixes: $site_prefixes"
15942 if test -n "$runpath"; then
15943 echo " Runtime library search path: $runpath"
15946 if test -n "$opsysfile"
15947 then echo " Operating system description file: \`$opsysfile'"
15948 else echo " Not using any operating system description file"
15950 if test -n "$machfile"
15951 then echo " Machine description file: \`$machfile'"
15952 else echo " Not using any machine description file"
15955 echo " Compiler: $CC $CFLAGS"
15956 echo " Relocating allocator for buffers: $rel_alloc"
15957 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15958 case "$ld_switch_site" in
15959 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15960 - Consider configuring with --pdump." ;;
15965 if test "$with_msw" = "yes"; then
15966 echo " Compiling in support for the Microsoft window system."
15968 if test "$with_x11" = "yes"; then
15969 echo " Compiling in support for the X window system:"
15970 echo " - X Windows headers location: $x_includes"
15971 echo " - X Windows libraries location: $x_libraries"
15972 if test "$with_xauth" != yes; then
15973 echo " - Xau (X authority) not available."
15975 if test "$with_xmu" != yes; then
15976 echo " - Xmu library not available; substituting equivalent routines."
15978 if test "$with_wmcommand" != no; then
15979 echo " - Handling WM_COMMAND properly."
15982 if test "$need_athena" = "yes"; then
15983 echo " Compiling in support for the Athena widget set:"
15984 echo " - Athena headers location: $athena_h_path"
15985 echo " - Athena library to link: $athena_lib"
15987 case "$with_menubars" in
15988 gtk ) echo " Using GTK menubars." ;;
15989 lucid ) echo " Using Lucid menubars." ;;
15990 motif ) echo " Using Motif menubars."
15991 echo " *WARNING* The Motif menubar implementation is currently buggy."
15992 echo " We recommend using the Lucid menubar instead."
15993 echo " Re-run configure with --with-menubars='lucid'." ;;
15994 msw ) echo " Using MS-Windows menubars." ;;
15996 case "$with_scrollbars" in
15997 gtk ) echo " Using GTK scrollbars." ;;
15998 lucid ) echo " Using Lucid scrollbars." ;;
15999 motif ) echo " Using Motif scrollbars." ;;
16000 athena ) echo " Using Athena scrollbars." ;;
16001 msw ) echo " Using MS-Windows scrollbars." ;;
16003 case "$with_dialogs" in
16004 gtk ) echo " Using GTK dialog boxes." ;;
16005 motif ) echo " Using Motif dialog boxes."
16006 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16007 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16008 echo " We recommend using the Athena dialog boxes instead."
16009 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16010 echo " Read the PROBLEMS file for more information."
16012 athena ) echo " Using Athena dialog boxes." ;;
16013 msw ) echo " Using MS-Windows dialog boxes." ;;
16015 case "$with_widgets" in
16016 gtk ) echo " Using GTK native widgets." ;;
16017 motif ) echo " Using Motif native widgets." ;;
16018 athena ) echo " Using Athena native widgets." ;;
16019 msw ) echo " Using MS-Windows native widgets." ;;
16021 if test "$with_dragndrop" = yes; then
16022 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16023 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16028 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16029 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16033 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16034 if test "$with_xpm" = yes; then
16035 echo " Compiling in support for XPM images."
16036 elif test "$with_x11" = yes; then
16037 echo " WARNING: -----------------------------------------------------------"
16038 echo " WARNING: Compiling without XPM image support."
16039 if test "$xpm_problem" != ""; then
16040 echo " Reason: $xpm_problem"
16042 echo " WARNING: You should strongly consider installing XPM."
16043 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16044 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16045 echo " WARNING: -----------------------------------------------------------"
16047 if test "$with_png" = yes; then
16048 echo " Compiling in support for PNG images."
16049 elif test "$window_system" != "none"; then
16050 echo " WARNING: -----------------------------------------------------------"
16051 echo " WARNING: Compiling without PNG image support."
16052 if test "$png_problem" != ""; then
16053 echo " Reason: $png_problem"
16055 echo " WARNING: You should strongly consider installing the PNG libraries."
16056 echo " WARNING: Otherwise certain images and glyphs may not display."
16057 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16058 echo " WARNING: -----------------------------------------------------------"
16060 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16061 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16062 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16066 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16067 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16068 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16069 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16073 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16074 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16075 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16076 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16077 if test "$with_postgresql" = yes; then
16078 echo " Compiling in support for PostgreSQL."
16079 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16080 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16084 Internationalization:"
16085 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16086 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16087 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16088 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16089 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16090 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16091 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16092 if test "$with_wnn" = yes; then
16093 echo " Compiling in support for the WNN input method on Mule."
16094 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16096 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16100 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16101 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16102 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16103 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16107 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16108 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16109 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16110 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16111 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16112 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16113 if test "$use_union_type" = yes; then
16114 echo " WARNING: ---------------------------------------------------------"
16115 echo " Using the union type for Lisp_Objects."
16116 echo " Union type has been implicated in hard-to-debug runtime crashes."
16117 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16118 echo " WARNING: ---------------------------------------------------------"
16120 test "$pdump" = yes && echo " Using the new portable dumper."
16121 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16122 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16123 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16124 != "no no no no no no"; then
16125 echo " WARNING: ---------------------------------------------------------"
16126 echo " WARNING: Compiling in support for runtime error checking."
16127 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16128 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16129 echo " WARNING: ---------------------------------------------------------"
16132 ) | tee -a Installation
16136 # Remove any trailing slashes in these variables.
16137 test -n "$prefix" &&
16138 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16139 test -n "$exec_prefix" &&
16140 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16143 for file in $internal_makefile_list; do
16144 test "$file" = src/Makefile.in && \
16145 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16146 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16148 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16149 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
16153 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16156 # Let make expand exec_prefix.
16157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16159 # Any assignment to VPATH causes Sun make to only execute
16160 # the first set of double-colon rules, so remove it if not needed.
16161 # If there is a colon in the path, we need to keep it.
16162 if test "x$srcdir" = x.; then
16163 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16166 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16168 DEFS=-DHAVE_CONFIG_H
16170 # Without the "./", some shells look in PATH for config.status.
16171 : ${CONFIG_STATUS=./config.status}
16173 echo creating $CONFIG_STATUS
16174 rm -f $CONFIG_STATUS
16175 cat > $CONFIG_STATUS <<EOF
16177 # Generated automatically by configure.
16178 # Run this file to recreate the current configuration.
16179 # This directory was configured as follows,
16180 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16182 # $0 $ac_configure_args
16184 # Compiler output produced by configure, useful for debugging
16185 # configure, is in ./config.log if it exists.
16187 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16190 case "\$ac_option" in
16191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16192 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16193 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16194 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16195 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16197 -help | --help | --hel | --he | --h)
16198 echo "\$ac_cs_usage"; exit 0 ;;
16199 *) echo "\$ac_cs_usage"; exit 1 ;;
16203 ac_given_srcdir=$srcdir
16204 ac_given_INSTALL="$INSTALL"
16206 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16208 cat >> $CONFIG_STATUS <<EOF
16210 # Protect against being on the right side of a sed subst in config.status.
16211 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16212 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16216 s%@CFLAGS@%$CFLAGS%g
16217 s%@CPPFLAGS@%$CPPFLAGS%g
16218 s%@CXXFLAGS@%$CXXFLAGS%g
16219 s%@FFLAGS@%$FFLAGS%g
16221 s%@LDFLAGS@%$LDFLAGS%g
16223 s%@exec_prefix@%$exec_prefix%g
16224 s%@prefix@%$prefix%g
16225 s%@program_transform_name@%$program_transform_name%g
16226 s%@bindir@%$bindir%g
16227 s%@sbindir@%$sbindir%g
16228 s%@libexecdir@%$libexecdir%g
16229 s%@datadir@%$datadir%g
16230 s%@sysconfdir@%$sysconfdir%g
16231 s%@sharedstatedir@%$sharedstatedir%g
16232 s%@localstatedir@%$localstatedir%g
16233 s%@libdir@%$libdir%g
16234 s%@includedir@%$includedir%g
16235 s%@oldincludedir@%$oldincludedir%g
16236 s%@infodir@%$infodir%g
16237 s%@mandir@%$mandir%g
16239 s%@blddir@%$blddir%g
16242 s%@start_flags@%$start_flags%g
16243 s%@ld_switch_shared@%$ld_switch_shared%g
16244 s%@start_files@%$start_files%g
16246 s%@lib_gcc@%$lib_gcc%g
16247 s%@RANLIB@%$RANLIB%g
16248 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16249 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16250 s%@INSTALL_DATA@%$INSTALL_DATA%g
16252 s%@SET_MAKE@%$SET_MAKE%g
16253 s%@GTK_CONFIG@%$GTK_CONFIG%g
16254 s%@X_CFLAGS@%$X_CFLAGS%g
16255 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16256 s%@X_LIBS@%$X_LIBS%g
16257 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16258 s%@install_pp@%$install_pp%g
16259 s%@libs_xauth@%$libs_xauth%g
16260 s%@dnd_objs@%$dnd_objs%g
16261 s%@lwlib_objs@%$lwlib_objs%g
16262 s%@ALLOCA@%$ALLOCA%g
16263 s%@have_esd_config@%$have_esd_config%g
16264 s%@dll_ld@%$dll_ld%g
16265 s%@dll_cflags@%$dll_cflags%g
16266 s%@dll_ldflags@%$dll_ldflags%g
16267 s%@dll_post@%$dll_post%g
16268 s%@dll_ldo@%$dll_ldo%g
16269 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16270 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16271 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16272 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16273 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16274 s%@PROGNAME@%$PROGNAME%g
16275 s%@version@%$version%g
16276 s%@configuration@%$configuration%g
16277 s%@canonical@%$canonical%g
16278 s%@inststaticdir@%$inststaticdir%g
16279 s%@instvardir@%$instvardir%g
16280 s%@srcdir@%$srcdir%g
16281 s%@pkgdir@%$pkgdir%g
16282 s%@statedir@%$statedir%g
16283 s%@extra_includes@%$extra_includes%g
16284 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16285 s%@PREFIX@%$PREFIX%g
16286 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16287 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16288 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16289 s%@INFODIR@%$INFODIR%g
16290 s%@infopath@%$infopath%g
16291 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16292 s%@INFOPATH@%$INFOPATH%g
16293 s%@package_path@%$package_path%g
16294 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16295 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16296 s%@lispdir@%$lispdir%g
16297 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16298 s%@LISPDIR@%$LISPDIR%g
16299 s%@moduledir@%$moduledir%g
16300 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16301 s%@MODULEDIR@%$MODULEDIR%g
16302 s%@sitelispdir@%$sitelispdir%g
16303 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16304 s%@SITELISPDIR@%$SITELISPDIR%g
16305 s%@sitemoduledir@%$sitemoduledir%g
16306 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16307 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16308 s%@etcdir@%$etcdir%g
16309 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16310 s%@ETCDIR@%$ETCDIR%g
16311 s%@docdir@%$docdir%g
16312 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16313 s%@DOCDIR@%$DOCDIR%g
16314 s%@archlibdir@%$archlibdir%g
16315 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16316 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16317 s%@bitmapdir@%$bitmapdir%g
16318 s%@extra_objs@%$extra_objs%g
16319 s%@machfile@%$machfile%g
16320 s%@opsysfile@%$opsysfile%g
16321 s%@c_switch_general@%$c_switch_general%g
16322 s%@c_switch_window_system@%$c_switch_window_system%g
16323 s%@c_switch_all@%$c_switch_all%g
16324 s%@ld_switch_general@%$ld_switch_general%g
16325 s%@ld_switch_window_system@%$ld_switch_window_system%g
16326 s%@ld_switch_all@%$ld_switch_all%g
16327 s%@ld_libs_general@%$ld_libs_general%g
16328 s%@ld_libs_window_system@%$ld_libs_window_system%g
16329 s%@ld_libs_all@%$ld_libs_all%g
16330 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16331 s%@native_sound_lib@%$native_sound_lib%g
16332 s%@sound_cflags@%$sound_cflags%g
16333 s%@dynodump_arch@%$dynodump_arch%g
16334 s%@XEMACS_CC@%$XEMACS_CC%g
16335 s%@internal_makefile_list@%$internal_makefile_list%g
16340 cat >> $CONFIG_STATUS <<\EOF
16342 # Split the substitutions into bite-sized pieces for seds with
16343 # small command number limits, like on Digital OSF/1 and HP-UX.
16344 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16345 ac_file=1 # Number of current file.
16346 ac_beg=1 # First line for current file.
16347 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16350 while $ac_more_lines; do
16351 if test $ac_beg -gt 1; then
16352 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16354 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16356 if test ! -s conftest.s$ac_file; then
16357 ac_more_lines=false
16358 rm -f conftest.s$ac_file
16360 if test -z "$ac_sed_cmds"; then
16361 ac_sed_cmds="sed -f conftest.s$ac_file"
16363 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16365 ac_file=`expr $ac_file + 1`
16367 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16370 if test -z "$ac_sed_cmds"; then
16375 cat >> $CONFIG_STATUS <<EOF
16377 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16379 cat >> $CONFIG_STATUS <<\EOF
16380 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16383 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16384 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16385 *) ac_file_in="${ac_file}.in" ;;
16388 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16390 # Remove last slash and all that follows it. Not all systems have dirname.
16391 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16393 # The file is in a subdirectory.
16394 test ! -d "$ac_dir" && mkdir "$ac_dir"
16395 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16396 # A "../" for each directory in $ac_dir_suffix.
16397 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16399 ac_dir_suffix= ac_dots=
16402 case "$ac_given_srcdir" in
16404 if test -z "$ac_dots"; then top_srcdir=.
16405 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16406 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16407 *) # Relative path.
16408 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16409 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16412 case "$ac_given_INSTALL" in
16413 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16414 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16417 echo creating "$ac_file"
16419 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16421 *Makefile*) ac_comsub="1i\\
16422 # $configure_input" ;;
16426 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16428 s%@configure_input@%$configure_input%g
16429 s%@srcdir@%$srcdir%g
16430 s%@top_srcdir@%$top_srcdir%g
16431 s%@INSTALL@%$INSTALL%g
16432 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16436 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16437 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16439 # ac_d sets the value in "#define NAME VALUE" lines.
16440 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16441 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16444 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16445 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16446 ac_uB='\([ ]\)%\1#\2define\3'
16449 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16450 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16451 ac_eB='$%\1#\2define\3'
16455 if test "${CONFIG_HEADERS+set}" != set; then
16457 cat >> $CONFIG_STATUS <<EOF
16458 CONFIG_HEADERS="src/config.h lwlib/config.h"
16460 cat >> $CONFIG_STATUS <<\EOF
16462 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16465 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16466 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16467 *) ac_file_in="${ac_file}.in" ;;
16470 echo creating $ac_file
16472 rm -f conftest.frag conftest.in conftest.out
16473 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16474 cat $ac_file_inputs > conftest.in
16478 # Transform confdefs.h into a sed script conftest.vals that substitutes
16479 # the proper values into config.h.in to produce config.h. And first:
16480 # Protect against being on the right side of a sed subst in config.status.
16481 # Protect against being in an unquoted here document in config.status.
16482 rm -f conftest.vals
16483 cat > conftest.hdr <<\EOF
16486 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16490 sed -n -f conftest.hdr confdefs.h > conftest.vals
16493 # This sed command replaces #undef with comments. This is necessary, for
16494 # example, in the case of _POSIX_SOURCE, which is predefined and required
16495 # on some systems where configure will not decide to define it.
16496 cat >> conftest.vals <<\EOF
16497 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16500 # Break up conftest.vals because some shells have a limit on
16501 # the size of here documents, and old seds have small limits too.
16503 rm -f conftest.tail
16506 ac_lines=`grep -c . conftest.vals`
16507 # grep -c gives empty output for an empty file on some AIX systems.
16508 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16509 # Write a limited-size here document to conftest.frag.
16510 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16511 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16513 sed -f conftest.frag conftest.in > conftest.out
16515 mv conftest.out conftest.in
16516 ' >> $CONFIG_STATUS
16517 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16518 rm -f conftest.vals
16519 mv conftest.tail conftest.vals
16521 rm -f conftest.vals
16523 cat >> $CONFIG_STATUS <<\EOF
16524 rm -f conftest.frag conftest.h
16525 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16526 cat conftest.in >> conftest.h
16528 if cmp -s $ac_file conftest.h 2>/dev/null; then
16529 echo "$ac_file is unchanged"
16532 # Remove last slash and all that follows it. Not all systems have dirname.
16533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16535 # The file is in a subdirectory.
16536 test ! -d "$ac_dir" && mkdir "$ac_dir"
16539 mv conftest.h $ac_file
16544 cat >> $CONFIG_STATUS <<EOF
16546 top_srcdir="$srcdir"
16547 MAKE_SUBDIR="$MAKE_SUBDIR"
16550 cat >> $CONFIG_STATUS <<\EOF
16551 for dir in . $MAKE_SUBDIR; do
16556 sed -e '/^# Generated/d' \
16557 -e 's%/\*\*/#.*%%' \
16572 echo creating $dir/Makefile
16573 $CPP -I. -I${top_srcdir}/src junk.c \
16574 | sed -e 's/^\#.*//' \
16575 -e 's/^[ ][ ]*$//'\
16583 chmod 444 Makefile.new
16584 mv -f Makefile.new Makefile
16586 echo creating $dir/GNUmakefile
16587 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16588 | sed -e 's/^\#.*//' \
16589 -e 's/^[ ][ ]*$//'\
16597 chmod 444 Makefile.new
16598 mv -f Makefile.new GNUmakefile
16604 sed < config.status >> lib-src/config.values \
16605 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16606 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16607 -e 's/^\([^ ]*\) $/\1 ""/' \
16613 chmod +x $CONFIG_STATUS
16614 rm -fr confdefs* $ac_clean_files
16615 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1