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'
251 use_regex_malloc='yes'
270 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c) ;;
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
279 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
280 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
284 while test $# != 0; do
287 --no-create|--no-recursion) ;;
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
292 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
296 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
297 val="yes" valomitted=yes
302 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
304 case "${valomitted}-${opt}" in yes-without_* )
305 opt=`echo $opt | sed 's/without/with/'`
306 valomitted="no" val="no" ;;
313 with_site_modules | \
368 memory_usage_stats | \
369 with_clash_detection | \
373 y | ye | yes ) val=yes ;;
375 * ) (echo "$progname: Usage error:"
376 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
377 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
379 eval "$opt=\"$val\"" ;;
397 site_runtime_libraries )
398 if test "$valomitted" = "yes" ; then
399 if test "$#" = 0 ; then
400 (echo "$progname: Usage error:"
401 echo " " "The \`--$optname' option requires a value."
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
411 with_debug_malloc | use_debug_malloc | \
412 with_system_malloc | use_system_malloc )
414 y | ye | yes ) val=yes ;;
416 d | de | def | defa | defau | defaul | default ) val=default ;;
417 * ) (echo "$progname: Usage error:"
418 echo " " "The \`--$optname' option requires one of these values:
419 \`yes', \`no', or \`default'."
420 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
422 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
427 with_database_berkdb=no
429 with_database_gdbm=no
430 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
433 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
434 d | db | dbm ) with_database_dbm=yes ;;
435 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
436 * ) (echo "$progname: Usage error:"
437 echo " " "The \`--$optname' option value
438 must be either \`no' or a comma-separated list
439 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
440 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
443 if test "$with_database_dbm" = "yes" -a \
444 "$with_database_gdbm" = "yes"; then
445 (echo "$progname: Usage error:"
446 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
447 with the \`--$optname' option."
448 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
453 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
455 n | no | non | none ) new_sdefault=no ;;
456 a | al | all | both ) new_sdefault=yes ;;
458 native ) with_native_sound=yes ;;
459 nonative ) with_native_sound=no ;;
461 nas ) with_nas_sound=yes ;;
462 nonas ) with_nas_sound=no ;;
464 esd ) with_esd_sound=yes ;;
465 noesd ) with_esd_sound=no ;;
467 * ) bogus_sound=yes ;;
469 if test "$bogus_sound" -o \
470 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
471 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
472 (echo "$progname: Usage error:"
473 echo " " "Valid types for the \`--$optname' option are:
475 Option \`all' or \`none' must be first in the list.
476 The default is to autodetect native and NAS sound support."
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
478 elif test -n "$new_sdefault" ; then
479 with_native_sound=$new_sdefault
480 with_nas_sound=$new_sdefault
481 with_esd_sound=$new_sdefault
482 new_sdefault= # reset this
490 xa | xaw ) val=xaw ;;
491 3 | 3d | xaw3d ) val=3d ;;
492 ne | nex | next | naxtaw) val=next ;;
493 9 | 95 | xaw95 ) val=95 ;;
494 xp | xpm | xawxpm ) val=xpm ;;
495 * ) (echo "$progname: Usage error:"
496 echo " " "The \`--$optname' option must have one of these values:
497 \`xaw', \`3d', \`next', \`95', or \`xpm'."
498 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
505 y | ye | yes ) val=yes ;;
506 n | no | non | none ) val=no ;;
507 x | xl | xli | xlib ) val=xlib ;;
508 m | mo | mot | moti | motif ) val=motif ;;
509 * ) (echo "$progname: Usage error:"
510 echo " " "The \`--$optname' option must have one of these values:
511 \`motif', \`xlib', \`yes', or \`no'."
512 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
521 file | dot ) val=file ;;
522 locking ) val=locking ;;
523 * ) (echo "$progname: Usage error:"
524 echo " " "The \`--$optname' option must have one of these values:
525 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
526 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
533 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
535 n | no | non | none ) new_default=no ;;
536 a | al | all ) new_default=yes ;;
538 extents ) error_check_extents=yes ;;
539 noextents ) error_check_extents=no ;;
541 typecheck ) error_check_typecheck=yes ;;
542 notypecheck ) error_check_typecheck=no ;;
544 bufpos ) error_check_bufpos=yes ;;
545 nobufpos ) error_check_bufpos=no ;;
547 gc ) error_check_gc=yes ;;
548 nogc ) error_check_gc=no ;;
550 malloc ) error_check_malloc=yes ;;
551 nomalloc ) error_check_malloc=no ;;
553 byte_code ) error_check_byte_code=yes ;;
554 nobyte_code ) error_check_byte_code=no ;;
556 glyphs ) error_check_glyphs=yes ;;
557 noglyphs ) error_check_glyphs=no ;;
559 * ) bogus_error_check=yes ;;
561 if test "$bogus_error_check" -o \
562 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
563 if test "$error_check_default" = yes ; then
564 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
566 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
568 (echo "$progname: Usage error:"
569 echo " " "Valid types for the \`--$optname' option are:
571 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
572 elif test -n "$new_default" ; then
573 error_check_extents=$new_default
574 error_check_typecheck=$new_default
575 error_check_bufpos=$new_default
576 error_check_gc=$new_default
577 error_check_malloc=$new_default
578 error_check_byte_code=$new_default
579 error_check_glyphs=$new_default
580 new_default= # reset this
587 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
588 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
589 archlibdir | docdir | package_path | moduledir )
590 if test "$valomitted" = "yes"; then
591 if test "$#" = 0; then
592 (echo "$progname: Usage error:"
593 echo " " "The \`--$optname' option requires a value."
594 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
601 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
602 Defining EXEC_PREFIX_USER_DEFINED
604 cat >> confdefs.h <<\EOF
605 #define EXEC_PREFIX_USER_DEFINED 1
609 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
610 Defining LISPDIR_USER_DEFINED
612 cat >> confdefs.h <<\EOF
613 #define LISPDIR_USER_DEFINED 1
617 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
618 Defining SITELISPDIR_USER_DEFINED
620 cat >> confdefs.h <<\EOF
621 #define SITELISPDIR_USER_DEFINED 1
625 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
626 Defining MODULEDIR_USER_DEFINED
628 cat >> confdefs.h <<\EOF
629 #define MODULEDIR_USER_DEFINED 1
633 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
634 Defining ETCDIR_USER_DEFINED
636 cat >> confdefs.h <<\EOF
637 #define ETCDIR_USER_DEFINED 1
641 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
642 Defining INFODIR_USER_DEFINED
644 cat >> confdefs.h <<\EOF
645 #define INFODIR_USER_DEFINED 1
649 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
650 Defining INFOPATH_USER_DEFINED
652 cat >> confdefs.h <<\EOF
653 #define INFOPATH_USER_DEFINED 1
657 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
658 Defining PACKAGE_PATH_USER_DEFINED
660 cat >> confdefs.h <<\EOF
661 #define PACKAGE_PATH_USER_DEFINED 1
666 { test "$extra_verbose" = "yes" && cat << \EOF
667 Defining INFODIR_USER_DEFINED
669 cat >> confdefs.h <<\EOF
670 #define INFODIR_USER_DEFINED 1
674 { test "$extra_verbose" = "yes" && cat << \EOF
675 Defining LISPDIR_USER_DEFINED
677 cat >> confdefs.h <<\EOF
678 #define LISPDIR_USER_DEFINED 1
682 { test "$extra_verbose" = "yes" && cat << \EOF
683 Defining MODULEDIR_USER_DEFINED
685 cat >> confdefs.h <<\EOF
686 #define MODULEDIR_USER_DEFINED 1
690 { test "$extra_verbose" = "yes" && cat << \EOF
691 Defining ETCDIR_USER_DEFINED
693 cat >> confdefs.h <<\EOF
694 #define ETCDIR_USER_DEFINED 1
698 { test "$extra_verbose" = "yes" && cat << \EOF
699 Defining DOCDIR_USER_DEFINED
701 cat >> confdefs.h <<\EOF
702 #define DOCDIR_USER_DEFINED 1
706 { test "$extra_verbose" = "yes" && cat << \EOF
707 Defining ARCHLIBDIR_USER_DEFINED
709 cat >> confdefs.h <<\EOF
710 #define ARCHLIBDIR_USER_DEFINED 1
714 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
715 Defining DOCDIR_USER_DEFINED
717 cat >> confdefs.h <<\EOF
718 #define DOCDIR_USER_DEFINED 1
722 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
723 Defining ARCHLIBDIR_USER_DEFINED
725 cat >> confdefs.h <<\EOF
726 #define ARCHLIBDIR_USER_DEFINED 1
735 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
738 "with_scrollbars" | \
742 l | lu | luc | luci | lucid ) val=lucid ;;
743 mo | mot | moti | motif ) val=motif ;;
744 a | at | ath | athe | athen | athena ) val=athena ;;
745 n | no | non | none ) val=no ;;
746 y | ye | yes ) val=yes ;;
748 g | gt | gtk ) val=gtk ;;
749 ms | msw ) val=msw ;;
750 * ) (echo "$progname: Usage error:"
751 echo " " "The \`--$optname' option must have one of these values:
752 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
753 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
758 "use_minimal_tagbits" | \
759 "use_indexed_lrecord_implementation" | \
761 "const_is_losing" | \
763 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
766 * ) (echo "$progname: Usage error:"
767 echo " " "Unrecognized option: $arg"
768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
773 *-*-*) configuration="$arg" ;;
775 *) (echo "$progname: Usage error:"
776 echo " " "Unrecognized argument: $arg"
777 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
783 test -n "$cpp" && CPP="$cpp"
784 test -n "$cppflags" && CPPFLAGS="$cppflags"
785 test -n "$libs" && LIBS="$libs"
786 test -n "$ldflags" && LDFLAGS="$ldflags"
788 eval set x "$quoted_arguments"; shift
790 test "$extra_verbose" = "yes" && verbose=yes
792 test -n "$with_x" && with_x11="$with_x"
794 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
795 test "$with_system_malloc" = "default" && with_system_malloc=yes
800 if test "$with_cde $with_tooltalk" = "yes no"; then
801 (echo "$progname: Usage error:"
802 echo " " "--with-cde requires --with-tooltalk"
803 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
804 elif test "$with_tooltalk" = "no" ; then with_cde=no
805 elif test "$with_cde" = "yes"; then with_tooltalk=yes
812 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
813 if test -f "$dir/src/lisp.h" -a \
814 -f "$dir/lisp/version.el" ; then
819 if test -z "$srcdir" ; then
820 (echo "$progname: Usage error:"
821 echo " " "Neither the current directory nor its parent seem to
822 contain the XEmacs sources. If you do not want to build XEmacs in its
823 source tree, you should run \`$progname' in the directory in which
824 you wish to build XEmacs, using the \`--srcdir' option to say where the
825 sources may be found."
826 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
831 if test ! -f "$srcdir/src/lisp.h" -o \
832 ! -f "$srcdir/lisp/version.el" ; then
833 (echo "$progname: Usage error:"
834 echo " " "The directory specified with the \`--srcdir' option,
835 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
836 either run the \`$progname' script at the top of the XEmacs source
837 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
843 if test -z "$configuration"; then
844 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
845 if test -z "$configuration"; then
846 (echo "$progname: Usage error:"
847 echo " " "XEmacs has not been ported to this host type.
848 Try explicitly specifying the CONFIGURATION when rerunning configure."
849 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
853 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
854 echo "configure:855: checking whether ln -s works" >&5
857 if ln -s X conftestdata 2>/dev/null
860 ac_cv_prog_LN_S="ln -s"
864 LN_S="$ac_cv_prog_LN_S"
865 if test "$ac_cv_prog_LN_S" = "ln -s"; then
866 echo "$ac_t""yes" 1>&6
868 echo "$ac_t""no" 1>&6
872 for dir in lisp etc man info tests; do
873 if test ! -d "$dir" ; then
874 echo Making symbolic link to "$srcdir/$dir"
875 ${LN_S} "$srcdir/$dir" "$dir"
880 absolute_pwd="`pwd`";
881 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
883 else blddir="$absolute_pwd"; if test -d "/net"; then
884 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
885 blddir=`echo "$blddir" | \
886 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
893 . ) srcdir="$blddir" ;;
894 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
895 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
896 srcdir=`echo "$srcdir" | \
897 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
901 if test `pwd` != `sh -c cd $srcdir && pwd` \
902 && test -f "$srcdir/src/config.h"; then
903 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
904 echo " as a build directory right now; it has been configured in its own"
905 echo " right. To configure in another directory as well, you MUST"
906 echo " use GNU make. If you do not have GNU make, then you must"
907 echo " now do \`make distclean' in $srcdir,"
908 echo " and then run $progname again.") >&2
909 extrasub='/^VPATH[ ]*=/c\
915 vpath %.in $(srcdir)'
918 . "$srcdir/version.sh" || exit 1;
919 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
920 : "${extra_verbose=$beta}"
921 version="${emacs_major_version}.${emacs_minor_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
923 Defining EMACS_MAJOR_VERSION = $emacs_major_version
925 cat >> confdefs.h <<EOF
926 #define EMACS_MAJOR_VERSION $emacs_major_version
930 { test "$extra_verbose" = "yes" && cat << EOF
931 Defining EMACS_MINOR_VERSION = $emacs_minor_version
933 cat >> confdefs.h <<EOF
934 #define EMACS_MINOR_VERSION $emacs_minor_version
938 if test -n "$emacs_beta_version" ; then
939 if test "$beta" = "yes"; then
940 version="${version}-b${emacs_beta_version}"
941 { test "$extra_verbose" = "yes" && cat << EOF
942 Defining EMACS_BETA_VERSION = $emacs_beta_version
944 cat >> confdefs.h <<EOF
945 #define EMACS_BETA_VERSION $emacs_beta_version
950 version="${version}.${emacs_beta_version}"
951 { test "$extra_verbose" = "yes" && cat << EOF
952 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
954 cat >> confdefs.h <<EOF
955 #define EMACS_PATCH_LEVEL $emacs_beta_version
961 { test "$extra_verbose" = "yes" && cat << EOF
962 Defining XEMACS_CODENAME = "$xemacs_codename"
964 cat >> confdefs.h <<EOF
965 #define XEMACS_CODENAME "$xemacs_codename"
969 { test "$extra_verbose" = "yes" && cat << EOF
970 Defining EMACS_VERSION = "$version"
972 cat >> confdefs.h <<EOF
973 #define EMACS_VERSION "$version"
978 if test "$with_infodock" = "yes"; then
979 if test ! -f ../../ID-INSTALL; then
980 echo "Cannot build InfoDock without InfoDock sources"
985 if test "$with_infodock" = "yes"; then
986 { test "$extra_verbose" = "yes" && cat << EOF
987 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
989 cat >> confdefs.h <<EOF
990 #define INFODOCK_MAJOR_VERSION $infodock_major_version
994 { test "$extra_verbose" = "yes" && cat << EOF
995 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
997 cat >> confdefs.h <<EOF
998 #define INFODOCK_MINOR_VERSION $infodock_minor_version
1002 { test "$extra_verbose" = "yes" && cat << EOF
1003 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
1005 cat >> confdefs.h <<EOF
1006 #define INFODOCK_BUILD_VERSION $infodock_build_version
1010 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
1012 CPPFLAGS="$CPPFLAGS -DINFODOCK"
1017 { test "$extra_verbose" = "yes" && cat << EOF
1018 Defining EMACS_PROGNAME = "$PROGNAME"
1020 cat >> confdefs.h <<EOF
1021 #define EMACS_PROGNAME "$PROGNAME"
1026 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
1027 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1028 Defining ERROR_CHECK_EXTENTS
1030 cat >> confdefs.h <<\EOF
1031 #define ERROR_CHECK_EXTENTS 1
1035 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1036 Defining ERROR_CHECK_TYPECHECK
1038 cat >> confdefs.h <<\EOF
1039 #define ERROR_CHECK_TYPECHECK 1
1043 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1044 Defining ERROR_CHECK_BUFPOS
1046 cat >> confdefs.h <<\EOF
1047 #define ERROR_CHECK_BUFPOS 1
1051 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining ERROR_CHECK_GC
1054 cat >> confdefs.h <<\EOF
1055 #define ERROR_CHECK_GC 1
1059 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1060 Defining ERROR_CHECK_MALLOC
1062 cat >> confdefs.h <<\EOF
1063 #define ERROR_CHECK_MALLOC 1
1067 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1068 Defining ERROR_CHECK_BYTE_CODE
1070 cat >> confdefs.h <<\EOF
1071 #define ERROR_CHECK_BYTE_CODE 1
1075 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1076 Defining ERROR_CHECK_GLYPHS
1078 cat >> confdefs.h <<\EOF
1079 #define ERROR_CHECK_GLYPHS 1
1083 if test "${debug:=$beta}" = "yes"; then
1084 use_assertions=yes memory_usage_stats=yes
1085 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1086 echo " xemacs will be linked with \"debug.o\""
1088 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1089 echo " xemacs will be linked with \"tests.o\""
1091 { test "$extra_verbose" = "yes" && cat << \EOF
1092 Defining DEBUG_XEMACS
1094 cat >> confdefs.h <<\EOF
1095 #define DEBUG_XEMACS 1
1100 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1101 Defining USE_ASSERTIONS
1103 cat >> confdefs.h <<\EOF
1104 #define USE_ASSERTIONS 1
1108 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1109 Defining MEMORY_USAGE_STATS
1111 cat >> confdefs.h <<\EOF
1112 #define MEMORY_USAGE_STATS 1
1118 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1119 echo "configure:1120: checking "host system type"" >&5
1120 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1121 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1122 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1123 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1124 echo "$ac_t""$configuration" 1>&6
1132 case "$canonical" in
1133 sparc-*-* ) machine=sparc ;;
1134 alpha*-*-* ) machine=alpha ;;
1135 vax-*-* ) machine=vax ;;
1136 mips-dec-* ) machine=pmax ;;
1137 mips-sgi-irix6* ) machine=iris6d ;;
1138 mips-sgi-* ) machine=iris4d ;;
1139 mips*-linux ) machine=mips ;;
1140 romp-ibm-* ) machine=ibmrt ;;
1141 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1142 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1143 powerpc*-* ) machine=powerpc ;;
1144 hppa-*-* ) machine=hp800 ;;
1145 m88k-dg-* ) machine=aviion ;;
1146 m68*-sony-* ) machine=news ;;
1147 mips-sony-* ) machine=news-risc ;;
1148 clipper-* ) machine=clipper ;;
1149 arm* ) machine=arm ;;
1150 ns32k-* ) machine=ns32000 ;;
1153 case "$canonical" in
1154 *-*-linux* ) opsys=linux ;;
1155 *-*-netbsd* ) opsys=netbsd ;;
1156 *-*-openbsd* ) opsys=openbsd ;;
1157 *-*-nextstep* ) opsys=nextstep ;;
1158 *-*-vms ) opsys=vms ;;
1160 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1161 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1162 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
1163 *-dec-osf3* ) opsys=decosf3-1 ;;
1164 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
1166 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1167 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
1168 *-*-ultrix* ) opsys=ultrix4-3 ;;
1170 *-*-aix3.1* ) opsys=aix3-1 ;;
1171 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1172 *-*-aix3* ) opsys=aix3-2 ;;
1173 *-*-aix4.0* ) opsys=aix4 ;;
1174 *-*-aix4.1* ) opsys=aix4-1 ;;
1175 *-*-aix[4-9]* ) opsys=aix4-2 ;;
1177 *-gnu* ) opsys=gnu ;;
1178 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1179 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1180 *-*-bsd4.3 ) opsys=bsd4-3 ;;
1181 *-*-aos4.2 ) opsys=bsd4-2 ;;
1182 *-*-aos* ) opsys=bsd4-3 ;;
1183 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
1184 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
1185 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
1186 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
1187 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
1188 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1189 if test -z "$NON_GNU_CPP" ; then
1190 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
1191 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
1195 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1196 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
1199 case "$canonical" in
1202 case "$canonical" in
1203 i[3-9]86-*-netbsd*) machine=intel386 ;;
1204 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
1205 machine=hp9000s300 ;;
1206 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
1207 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
1212 case "${canonical}" in
1213 i386-*-openbsd*) machine=intel386 ;;
1214 m68k-*-openbsd*) machine=hp9000s300 ;;
1215 mipsel-*-openbsd*) machine=pmax ;;
1219 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
1220 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
1222 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
1223 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
1225 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
1227 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
1229 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
1231 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
1233 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
1235 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
1236 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
1237 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
1240 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
1242 *-convex-bsd* | *-convex-convexos* )
1243 machine=convex opsys=bsd4-3
1244 NON_GNU_CPP="cc -E -P"
1247 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1251 RANLIB="ranlib -c" ;;
1253 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1254 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1255 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1256 m88k-dg-dgux* ) opsys=dgux ;;
1258 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
1259 m88k-motorola-sysv4* )
1260 machine=delta88k opsys=usg5-4-2
1262 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1264 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1265 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1267 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1269 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1270 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1271 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
1274 case "`uname -r`" in
1275 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1276 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1278 NON_GNU_CPP="/lib/cpp"
1280 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
1281 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
1283 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
1285 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
1288 case "$canonical" in
1289 m68* ) machine=hp9000s300 ;;
1290 hppa* ) machine=hp800 ;;
1293 case "$canonical" in
1294 *-hp-hpux7* ) opsys=hpux ;;
1295 *-hp-hpux8* ) opsys=hpux8 ;;
1296 *-hp-hpux9* ) opsys=hpux9 ;;
1297 *-hp-hpux10* ) opsys=hpux10 ;;
1298 *-hp-hpux11* ) opsys=hpux11 ;;
1302 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
1303 echo " xemacs will be linked with \"strcat.o\""
1306 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
1307 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
1308 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
1310 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
1313 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
1314 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
1316 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
1317 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
1318 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
1319 romp-ibm-aos* ) opsys=bsd4-3 ;;
1320 romp-ibm-bsd* ) opsys=bsd4-3 ;;
1321 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
1323 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
1324 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
1326 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
1328 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
1330 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
1332 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
1334 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
1336 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
1338 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
1340 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
1342 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
1344 mips-mips-usg* ) machine=mips4 ;;
1347 NON_GNU_CC="cc -systype bsd43"
1348 NON_GNU_CPP="cc -systype bsd43 -E"
1349 case "$canonical" in
1350 mips-mips-riscos4* ) opsys=bsd4-3 ;;
1351 mips-mips-riscos5* ) opsys=riscos5 ;;
1354 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
1355 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
1357 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
1359 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
1361 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
1362 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
1364 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
1366 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
1368 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
1370 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
1372 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
1373 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
1375 mips-siemens-sysv* | mips-sni-sysv*)
1376 machine=mips-siemens opsys=usg5-4
1377 NON_GNU_CC=/usr/ccs/bin/cc
1378 NON_GNU_CPP=/usr/ccs/lib/cpp
1383 NON_GNU_CC=/usr/ccs/bin/cc
1384 NON_GNU_CPP=/usr/ccs/lib/cpp
1387 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
1388 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
1389 mips-sgi-irix3.* ) opsys=irix3-3 ;;
1390 mips-sgi-irix4.* ) opsys=irix4-0 ;;
1391 mips-sgi-irix6* ) opsys=irix6-0 ;;
1392 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
1393 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
1394 mips-sgi-irix5.* ) opsys=irix5-3 ;;
1395 mips-sgi-irix* ) opsys=irix5-0 ;;
1397 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
1398 *-sony-news* ) opsys=newsos5 ;;
1400 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
1402 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1403 case "$canonical" in
1404 m68*-sunos1* ) machine=sun1 ;;
1405 m68*-sunos2* ) machine=sun2 ;;
1406 m68* ) machine=sun3 ;;
1407 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1408 i*86-*-* ) machine=intel386 ;;
1409 rs6000* ) machine=rs6000 ;;
1412 case "$canonical" in *-sunos5*)
1413 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1416 case "$canonical" in
1418 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1421 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1425 case "$canonical" in
1428 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1429 { test "$extra_verbose" = "yes" && cat << EOF
1430 Defining OS_RELEASE = $os_release
1432 cat >> confdefs.h <<EOF
1433 #define OS_RELEASE $os_release
1438 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1439 *-sunos4.0* ) opsys=sunos4-0 ;;
1440 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1441 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1442 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1443 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1444 *-mach* ) opsys=mach-bsd4-3 ;;
1448 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1450 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1453 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1455 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1456 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
1458 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
1460 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
1462 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
1463 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
1465 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
1467 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
1470 case "$canonical" in
1471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1473 *-mach* ) opsys=mach-bsd4-3 ;;
1477 ns16k-whitechapel-* ) machine=mg1 ;;
1479 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
1483 case "$canonical" in
1484 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1485 *-isc2.2* ) opsys=isc2-2 ;;
1486 *-isc4.0* ) opsys=isc4-0 ;;
1487 *-isc4.* ) opsys=isc4-1
1488 GCC_TEST_OPTIONS=-posix
1489 NON_GCC_TEST_OPTIONS=-Xp
1491 *-isc* ) opsys=isc3-0 ;;
1492 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
1493 *-esix* ) opsys=esix ;;
1494 *-mach* ) opsys=mach-bsd4-3 ;;
1495 *-xenix* ) opsys=xenix ;;
1496 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
1497 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
1498 *-bsdi4* ) opsys=bsdos4 ;;
1499 *-bsdi3* ) opsys=bsdos3 ;;
1500 *-bsdi2.1* ) opsys=bsdos2-1 ;;
1501 *-bsdi2* ) opsys=bsdos2 ;;
1502 *-sco3.2v5* ) opsys=sco5 ;;
1503 *-sysv5* ) opsys=sco7 ;;
1504 *-386bsd* ) opsys=386bsd ;;
1505 *-freebsd* ) opsys=freebsd ;;
1506 *-nextstep* ) opsys=nextstep ;;
1507 *-pc-cygwin* ) opsys=cygwin32 ;;
1508 *-pc-mingw* ) opsys=mingw32 ;
1509 test -z "$with_tty" && with_tty="no";;
1513 m68k-*-linux* ) machine=m68k opsys=linux ;;
1517 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
1519 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
1521 if test -r "${srcdir}/src/m/${machine}.h"; then
1522 machfile="m/${machine}.h"
1523 { test "$extra_verbose" = "yes" && cat << EOF
1524 Defining config_machfile = "$machfile"
1526 cat >> confdefs.h <<EOF
1527 #define config_machfile "$machfile"
1532 echo "XEmacs has no builtin knowledge of \`$machine' machines."
1533 echo "Using configure-time autodetection only."
1536 if test -r "${srcdir}/src/s/${opsys}.h"; then
1537 opsysfile="s/${opsys}.h"
1538 { test "$extra_verbose" = "yes" && cat << EOF
1539 Defining config_opsysfile = "$opsysfile"
1541 cat >> confdefs.h <<EOF
1542 #define config_opsysfile "$opsysfile"
1547 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1548 echo "Using configure-time autodetection only."
1552 if test -z "$pdump"; then
1554 linux* ) pdump=yes ;; darwin ) pdump=yes ;; *) pdump=no ;;
1558 if test -z "$dynamic"; then
1560 hpux* | sunos4* ) dynamic=no ;;
1564 if test "$dynamic" = "yes"; then
1566 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1567 decosf* ) ld_call_shared="-call_shared" ;;
1568 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
1569 Defining DLSYM_NEEDS_UNDERSCORE
1571 cat >> confdefs.h <<\EOF
1572 #define DLSYM_NEEDS_UNDERSCORE 1
1577 else case "$opsys" in
1579 echo "Static linking is not supported on Solaris 2."
1580 echo "Rerun configure without specifying --dynamic=no."
1582 linux ) ld_call_shared="-Bstatic" ;;
1583 decosf* ) ld_call_shared="-non_shared" ;;
1587 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
1589 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1590 { test "$extra_verbose" = "yes" && cat << EOF
1591 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
1593 cat >> confdefs.h <<EOF
1594 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
1600 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1601 if test "$with_workshop $with_tooltalk" = "yes no"; then
1602 (echo "$progname: Usage error:"
1603 echo " " "--with-workshop requires --with-tooltalk"
1604 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
1605 elif test "$with_tooltalk" = "no" ; then with_workshop=no
1606 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
1609 if test "$with_workshop" = "yes"; then
1610 { test "$extra_verbose" = "yes" && cat << \EOF
1613 cat >> confdefs.h <<\EOF
1618 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
1619 echo " xemacs will be linked with \"sunpro.o\""
1623 if test "$with_clash_detection" != "no"; then
1624 { test "$extra_verbose" = "yes" && cat << \EOF
1625 Defining CLASH_DETECTION
1627 cat >> confdefs.h <<\EOF
1628 #define CLASH_DETECTION 1
1632 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1633 echo " xemacs will be linked with \"filelock.o\""
1637 test -n "$compiler" && CC="$compiler"
1638 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1641 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1642 if test "${CFLAGS-unset}" != unset
1643 then cflags_specified=yes;
1644 else cflags_specified=no;
1647 xe_save_CFLAGS="$CFLAGS"
1649 # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1659 for ac_dir in $ac_dummy; do
1660 test -z "$ac_dir" && ac_dir=.
1661 if test -f $ac_dir/$ac_word; then
1669 if test -n "$CC"; then
1670 echo "$ac_t""$CC" 1>&6
1672 echo "$ac_t""no" 1>&6
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1681 if test -n "$CC"; then
1682 ac_cv_prog_CC="$CC" # Let the user override the test.
1684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1687 for ac_dir in $ac_dummy; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1691 ac_prog_rejected=yes
1699 if test $ac_prog_rejected = yes; then
1700 # We found a bogon in the path, so make sure we never use it.
1701 set dummy $ac_cv_prog_CC
1703 if test $# -gt 0; then
1704 # We chose a different compiler from the bogus one.
1705 # However, it has the same basename, so the bogon will be chosen
1706 # first if we set CC to just the basename; use the full file name.
1708 set dummy "$ac_dir/$ac_word" "$@"
1715 if test -n "$CC"; then
1716 echo "$ac_t""$CC" 1>&6
1718 echo "$ac_t""no" 1>&6
1721 if test -z "$CC"; then
1722 case "`uname -s`" in
1724 # Extract the first word of "cl", so it can be a program name with args.
1725 set dummy cl; ac_word=$2
1726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_word" >&5
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1744 if test -n "$CC"; then
1745 echo "$ac_t""$CC" 1>&6
1747 echo "$ac_t""no" 1>&6
1752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1756 echo "configure:1757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1759 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1760 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1761 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'
1762 ac_cpp='$CPP '"$xe_cppflags"
1763 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1764 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1767 cat > conftest.$ac_ext << EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775 ac_cv_prog_cc_works=yes
1776 # If we can't run a trivial program, we are probably using a cross compiler.
1777 if (./conftest; exit) 2>/dev/null; then
1778 ac_cv_prog_cc_cross=no
1780 ac_cv_prog_cc_cross=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1785 ac_cv_prog_cc_works=no
1789 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1790 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1791 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'
1792 ac_cpp='$CPP '"$xe_cppflags"
1793 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1794 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1797 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1798 if test $ac_cv_prog_cc_works = no; then
1799 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1801 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1803 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1804 cross_compiling=$ac_cv_prog_cc_cross
1806 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether we are using GNU C" >&5
1809 cat > conftest.c <<EOF
1814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1820 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1822 if test $ac_cv_prog_gcc = yes; then
1828 ac_test_CFLAGS="${CFLAGS+set}"
1829 ac_save_CFLAGS="$CFLAGS"
1831 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1832 echo "configure:1833: checking whether ${CC-cc} accepts -g" >&5
1834 echo 'void f(){}' > conftest.c
1835 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1844 if test "$ac_test_CFLAGS" = set; then
1845 CFLAGS="$ac_save_CFLAGS"
1846 elif test $ac_cv_prog_cc_g = yes; then
1847 if test "$GCC" = yes; then
1853 if test "$GCC" = yes; then
1860 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1862 # Extract the first word of "gcc", so it can be a program name with args.
1863 set dummy gcc; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1872 for ac_dir in $ac_dummy; do
1873 test -z "$ac_dir" && ac_dir=.
1874 if test -f $ac_dir/$ac_word; then
1882 if test -n "$CC"; then
1883 echo "$ac_t""$CC" 1>&6
1885 echo "$ac_t""no" 1>&6
1888 if test -z "$CC"; then
1889 # Extract the first word of "cc", so it can be a program name with args.
1890 set dummy cc; ac_word=$2
1891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_word" >&5
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1900 for ac_dir in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir=.
1902 if test -f $ac_dir/$ac_word; then
1903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1904 ac_prog_rejected=yes
1912 if test $ac_prog_rejected = yes; then
1913 # We found a bogon in the path, so make sure we never use it.
1914 set dummy $ac_cv_prog_CC
1916 if test $# -gt 0; then
1917 # We chose a different compiler from the bogus one.
1918 # However, it has the same basename, so the bogon will be chosen
1919 # first if we set CC to just the basename; use the full file name.
1921 set dummy "$ac_dir/$ac_word" "$@"
1928 if test -n "$CC"; then
1929 echo "$ac_t""$CC" 1>&6
1931 echo "$ac_t""no" 1>&6
1934 if test -z "$CC"; then
1935 case "`uname -s`" in
1937 # Extract the first word of "cl", so it can be a program name with args.
1938 set dummy cl; ac_word=$2
1939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_word" >&5
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 for ac_dir in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir=.
1949 if test -f $ac_dir/$ac_word; then
1957 if test -n "$CC"; then
1958 echo "$ac_t""$CC" 1>&6
1960 echo "$ac_t""no" 1>&6
1965 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1968 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1969 echo "configure:1970: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1972 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1973 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1974 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'
1975 ac_cpp='$CPP '"$xe_cppflags"
1976 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1977 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1980 cat > conftest.$ac_ext << EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1987 if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1988 ac_cv_prog_cc_works=yes
1989 # If we can't run a trivial program, we are probably using a cross compiler.
1990 if (./conftest; exit) 2>/dev/null; then
1991 ac_cv_prog_cc_cross=no
1993 ac_cv_prog_cc_cross=yes
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1998 ac_cv_prog_cc_works=no
2002 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2003 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2004 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'
2005 ac_cpp='$CPP '"$xe_cppflags"
2006 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2007 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2010 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2011 if test $ac_cv_prog_cc_works = no; then
2012 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2016 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2017 cross_compiling=$ac_cv_prog_cc_cross
2019 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether we are using GNU C" >&5
2022 cat > conftest.c <<EOF
2027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2033 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2035 if test $ac_cv_prog_gcc = yes; then
2041 ac_test_CFLAGS="${CFLAGS+set}"
2042 ac_save_CFLAGS="$CFLAGS"
2044 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether ${CC-cc} accepts -g" >&5
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2057 if test "$ac_test_CFLAGS" = set; then
2058 CFLAGS="$ac_save_CFLAGS"
2059 elif test $ac_cv_prog_cc_g = yes; then
2060 if test "$GCC" = yes; then
2066 if test "$GCC" = yes; then
2073 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2085 for ac_dir in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2095 if test -n "$CC"; then
2096 echo "$ac_t""$CC" 1>&6
2098 echo "$ac_t""no" 1>&6
2101 if test -z "$CC"; then
2102 # Extract the first word of "cc", so it can be a program name with args.
2103 set dummy cc; ac_word=$2
2104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_word" >&5
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/$ac_word; then
2116 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2117 ac_prog_rejected=yes
2125 if test $ac_prog_rejected = yes; then
2126 # We found a bogon in the path, so make sure we never use it.
2127 set dummy $ac_cv_prog_CC
2129 if test $# -gt 0; then
2130 # We chose a different compiler from the bogus one.
2131 # However, it has the same basename, so the bogon will be chosen
2132 # first if we set CC to just the basename; use the full file name.
2134 set dummy "$ac_dir/$ac_word" "$@"
2141 if test -n "$CC"; then
2142 echo "$ac_t""$CC" 1>&6
2144 echo "$ac_t""no" 1>&6
2147 if test -z "$CC"; then
2148 case "`uname -s`" in
2150 # Extract the first word of "cl", so it can be a program name with args.
2151 set dummy cl; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2160 for ac_dir in $ac_dummy; do
2161 test -z "$ac_dir" && ac_dir=.
2162 if test -f $ac_dir/$ac_word; then
2170 if test -n "$CC"; then
2171 echo "$ac_t""$CC" 1>&6
2173 echo "$ac_t""no" 1>&6
2178 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2182 echo "configure:2183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2185 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2186 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2187 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'
2188 ac_cpp='$CPP '"$xe_cppflags"
2189 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2190 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2193 cat > conftest.$ac_ext << EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 ac_cv_prog_cc_works=yes
2202 # If we can't run a trivial program, we are probably using a cross compiler.
2203 if (./conftest; exit) 2>/dev/null; then
2204 ac_cv_prog_cc_cross=no
2206 ac_cv_prog_cc_cross=yes
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 ac_cv_prog_cc_works=no
2215 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2216 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2217 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'
2218 ac_cpp='$CPP '"$xe_cppflags"
2219 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2220 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2223 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2224 if test $ac_cv_prog_cc_works = no; then
2225 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2227 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2228 echo "configure:2229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2229 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2230 cross_compiling=$ac_cv_prog_cc_cross
2232 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether we are using GNU C" >&5
2235 cat > conftest.c <<EOF
2240 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2246 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2248 if test $ac_cv_prog_gcc = yes; then
2254 ac_test_CFLAGS="${CFLAGS+set}"
2255 ac_save_CFLAGS="$CFLAGS"
2257 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2258 echo "configure:2259: checking whether ${CC-cc} accepts -g" >&5
2260 echo 'void f(){}' > conftest.c
2261 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2269 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS="$ac_save_CFLAGS"
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2287 CFLAGS="$xe_save_CFLAGS"
2290 test -n "$CPP" -a -d "$CPP" && CPP=
2292 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2294 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2295 echo "configure:2296: checking how to run the C preprocessor" >&5
2296 # On Suns, sometimes $CPP names a directory.
2297 if test -n "$CPP" && test -d "$CPP"; then
2300 if test -z "$CPP"; then
2302 # This must be in double quotes, not single quotes, because CPP may get
2303 # substituted into the Makefile and "${CC-cc}" will confuse make.
2305 # On the NeXT, cc -E runs the code through the compiler's parser,
2306 # not just through cpp.
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 CPP="${CC-cc} -E -traditional-cpp"
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2331 { (eval echo configure:2332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2333 if test -z "$ac_err"; then
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 CPP="${CC-cc} -nologo -E"
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2348 { (eval echo configure:2349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2350 if test -z "$ac_err"; then
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2364 ac_cv_prog_CPP="$CPP"
2365 CPP="$ac_cv_prog_CPP"
2367 ac_cv_prog_CPP="$CPP"
2369 echo "$ac_t""$CPP" 1>&6
2373 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2374 echo "configure:2375: checking for AIX" >&5
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2384 egrep "yes" >/dev/null 2>&1; then
2386 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2387 Defining _ALL_SOURCE
2389 cat >> confdefs.h <<\EOF
2390 #define _ALL_SOURCE 1
2396 echo "$ac_t""no" 1>&6
2402 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2403 echo "configure:2404: checking for GNU libc" >&5
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 #include <features.h>
2410 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2411 #error Not a GNU libc system :-(
2412 ******* ======= ******** &&&&&&&&
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2427 echo "$ac_t""$have_glibc" 1>&6
2428 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
2429 Defining _GNU_SOURCE
2431 cat >> confdefs.h <<\EOF
2432 #define _GNU_SOURCE 1
2439 { test "$extra_verbose" = "yes" && cat << \EOF
2440 Defining __EXTENSIONS__
2442 cat >> confdefs.h <<\EOF
2443 #define __EXTENSIONS__ 1
2447 if test "$os_release" -ge 55; then
2448 { test "$extra_verbose" = "yes" && cat << \EOF
2449 Defining _XOPEN_SOURCE = 500
2451 cat >> confdefs.h <<\EOF
2452 #define _XOPEN_SOURCE 500
2456 { test "$extra_verbose" = "yes" && cat << \EOF
2457 Defining _XOPEN_SOURCE_EXTENDED
2459 cat >> confdefs.h <<\EOF
2460 #define _XOPEN_SOURCE_EXTENDED 1
2466 { test "$extra_verbose" = "yes" && cat << \EOF
2467 Defining _POSIX_C_SOURCE = 199506L
2469 cat >> confdefs.h <<\EOF
2470 #define _POSIX_C_SOURCE 199506L
2474 { test "$extra_verbose" = "yes" && cat << \EOF
2475 Defining _XOPEN_SOURCE = 500
2477 cat >> confdefs.h <<\EOF
2478 #define _XOPEN_SOURCE 500
2482 { test "$extra_verbose" = "yes" && cat << \EOF
2483 Defining _XOPEN_SOURCE_EXTENDED
2485 cat >> confdefs.h <<\EOF
2486 #define _XOPEN_SOURCE_EXTENDED 1
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2497 #if defined __SUNPRO_C
2499 #elif defined __DECC
2501 #elif defined __USLC__ && defined __SCO_VERSION__
2508 if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 case "$conftest_rc" in
2517 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2518 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2519 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
2527 echo "Extracting information from the machine- and system-dependent headers..."
2529 tempcname="conftest.c"
2533 cat > $tempcname < confdefs.h
2534 cat >> $tempcname <<EOF
2536 #define C_SWITCH_SITE
2537 #define C_SWITCH_X_SITE
2538 #define LD_SWITCH_SITE
2539 #define LD_SWITCH_X_SITE
2540 #define LD_SWITCH_X_SITE_AUX
2541 #define OS_RELEASE $os_release
2543 #ifdef config_opsysfile
2544 #include "$srcdir/src/$opsysfile"
2547 #ifdef config_machfile
2548 #include "$srcdir/src/$machfile"
2551 #ifndef LIBS_MACHINE
2552 #define LIBS_MACHINE
2554 configure___ libs_machine=LIBS_MACHINE
2559 configure___ libs_system=LIBS_SYSTEM
2561 #ifndef LIBS_TERMCAP
2562 #define LIBS_TERMCAP
2564 configure___ libs_termcap=LIBS_TERMCAP
2566 #ifndef LIB_STANDARD
2567 #define LIB_STANDARD
2569 configure___ libs_standard=LIB_STANDARD
2572 #ifndef OBJECTS_MACHINE
2573 #define OBJECTS_MACHINE
2575 configure___ objects_machine=OBJECTS_MACHINE
2577 #ifndef OBJECTS_SYSTEM
2578 #define OBJECTS_SYSTEM
2580 configure___ objects_system=OBJECTS_SYSTEM
2583 #ifndef C_SWITCH_MACHINE
2584 #define C_SWITCH_MACHINE
2586 configure___ c_switch_machine=C_SWITCH_MACHINE
2588 #ifndef C_SWITCH_SYSTEM
2589 #define C_SWITCH_SYSTEM
2591 configure___ c_switch_system=C_SWITCH_SYSTEM
2594 #ifndef LD_SWITCH_MACHINE
2595 #define LD_SWITCH_MACHINE
2597 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2599 #ifndef LD_SWITCH_SYSTEM
2600 #define LD_SWITCH_SYSTEM
2602 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2606 #define UNEXEC "unexec.o"
2608 configure___ unexec=UNEXEC
2611 #ifndef LD_SWITCH_SHARED
2612 #define LD_SWITCH_SHARED "-c"
2614 configure___ ld_switch_shared=LD_SWITCH_SHARED
2617 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
2618 configure___ ordinary_ld=ORDINARY_LD
2620 #ifdef ORDINARY_LINK
2621 #define LD ORDINARY_LD
2622 #else /* no ORDINARY LINK */
2623 #ifdef COFF_ENCAPSULATE
2624 #define LD "\$(CC) -nostdlib"
2625 #else /* not COFF_ENCAPSULATE */
2628 #else /* ! defined (LINKER) */
2630 #endif /* ! defined (LINKER) */
2631 #endif /* ! defined (COFF_ENCAPSULATE) */
2632 #endif /* not ORDINARY_LINK */
2638 configure___ lib_gcc=LIB_GCC
2640 #ifndef LD_TEXT_START_ADDR
2641 #define LD_TEXT_START_ADDR
2643 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2646 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2648 #ifdef COFF_ENCAPSULATE
2649 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2650 #else /* ! defined (COFF_ENCAPSULATE) */
2651 #define START_FILES "pre-crt0.o /lib/crt0.o"
2652 #endif /* ! defined (COFF_ENCAPSULATE) */
2653 #else /* ! defined (NO_REMAP) */
2654 #define START_FILES "ecrt0.o"
2655 #endif /* ! defined (NO_REMAP) */
2656 #endif /* no ORDINARY_LINK */
2660 configure___ start_files=START_FILES
2662 #ifdef ORDINARY_LINK
2663 configure___ ordinary_link=yes
2665 configure___ ordinary_link=no
2668 #ifdef SYSTEM_MALLOC
2669 configure___ system_malloc=yes
2671 configure___ system_malloc=no
2675 configure___ have_terminfo=yes
2677 configure___ have_terminfo=no
2680 #ifdef MAIL_USE_FLOCK
2681 configure___ mail_use_flock=yes
2683 configure___ mail_use_flock=no
2686 #ifdef MAIL_USE_LOCKF
2687 configure___ mail_use_lockf=yes
2689 configure___ mail_use_lockf=no
2692 #ifdef MAIL_USE_LOCKING
2693 configure___ mail_use_locking=yes
2695 configure___ mail_use_locking=no
2698 #ifdef HAVE_WIN32_PROCESSES
2699 configure___ win32_processes=yes
2701 configure___ win32_processes=no
2706 CPP=`eval "echo $CPP $CPPFLAGS"`
2707 eval `$CPP -Isrc $tempcname \
2708 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2712 if test "$pdump" = "yes"; then
2721 test "$extra_verbose" = "yes" && \
2722 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 ""
2724 case "$opsys" in mingw* | cygwin*)
2725 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2726 cygwin_include=`eval "dirname $cygwin_include"` ;
2727 cygwin_include="-I$cygwin_include/../include" ;
2728 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2729 case "$opsys" in mingw*)
2730 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2735 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2738 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2740 if test "$__USLC__" = yes; then
2741 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2742 echo "configure:2743: checking for whether the -Kalloca compiler flag is needed" >&5
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2749 void *x = alloca(4);
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2760 xe_save_c_switch_system="$c_switch_system"
2761 c_switch_system="$c_switch_system -Kalloca"
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2767 void *x = alloca(4);
2770 if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2778 c_switch_system="$xe_save_c_switch_system"
2781 echo "$ac_t""$need_kalloca" 1>&6
2782 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
2785 if test "$cflags_specified" = "no"; then
2786 if test "$GCC" = "yes"; then
2787 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2788 CFLAGS="$CFLAGS -Wsign-compare"
2789 case "`gcc -v --help 2>&1`" in
2790 *-fstrict-aliasing* ) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
2792 if test "$xemacs_compiler" != "g++"; then
2793 CFLAGS="$CFLAGS -Wshadow"
2795 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2796 elif test "$__SUNPRO_C" = "yes"; then
2798 sol2 ) CFLAGS="-v -xO4" ;;
2799 sunos4* ) CFLAGS="-xO2";;
2801 elif test "$__DECC" = "yes"; then
2803 elif test "$CC" = "xlc"; then
2804 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2809 if test "$GCC" = "yes"; then
2810 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2811 echo "configure:2812: checking for buggy gcc versions" >&5
2812 GCC_VERSION=`$CC --version`
2813 case `uname -s`:`uname -m`:$GCC_VERSION in
2814 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2818 *-fno-schedule-insns*) ;;
2820 echo "$ac_t""yes" 1>&6
2821 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2822 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2823 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2829 Linux:alpha:egcs-2.91.*)
2830 echo "$ac_t""yes" 1>&6
2831 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2832 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2833 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2838 case "$GCC_VERSION" in
2841 *-fno-strength-reduce*) ;;
2843 echo "$ac_t""yes" 1>&6
2844 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2845 echo "configure: warning: -fno-strength-reduce." 1>&2
2846 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2852 *-fno-caller-saves*) ;;
2854 echo "$ac_t""yes" 1>&6
2855 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2856 echo "configure: warning: -fno-caller-saves." 1>&2
2857 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2864 echo "$ac_t""no" 1>&6
2867 if test "$pdump" != "yes"; then
2868 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2869 echo "configure:2870: checking for \"-z nocombreloc\" linker flag" >&5
2870 case "`ld --help 2>&1`" in
2871 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2872 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2873 *) echo "$ac_t""no" 1>&6 ;;
2879 if test "$GCC" = "yes"; then
2880 set x $ld_switch_system; shift; ld_switch_system=""
2881 while test -n "$1"; do
2883 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2884 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
2886 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2892 if test "$GCC" = "yes"; then
2893 set x $ld_switch_machine; shift; ld_switch_machine=""
2894 while test -n "$1"; do
2896 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2897 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
2899 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2905 if test "$GCC" = "yes"; then
2906 set x $ld_switch_site; shift; ld_switch_site=""
2907 while test -n "$1"; do
2909 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2910 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2912 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2918 if test "$GCC" = "yes"; then
2919 set x $LDFLAGS; shift; LDFLAGS=""
2920 while test -n "$1"; do
2922 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2923 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
2925 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2931 if test "$GCC" = "yes"; then
2932 set x $ld_call_shared; shift; ld_call_shared=""
2933 while test -n "$1"; do
2935 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2936 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
2938 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2944 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2945 echo " xemacs will be linked with \"$objects_machine\""
2947 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2948 echo " xemacs will be linked with \"$objects_system\""
2950 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2951 echo " xemacs will be linked with \"$unexec\""
2953 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2954 echo " xemacs will be linked with \"dumper.o\""
2957 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2958 echo "configure:2959: checking for dynodump" >&5
2959 if test "$unexec" != "unexsol2.o"; then
2960 echo "$ac_t""no" 1>&6
2962 echo "$ac_t""yes" 1>&6
2963 { test "$extra_verbose" = "yes" && cat << \EOF
2966 cat >> confdefs.h <<\EOF
2971 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2972 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
2974 sparc ) dynodump_arch=sparc ;;
2975 *86* ) dynodump_arch=i386 ;;
2976 powerpc ) dynodump_arch=ppc ;;
2978 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
2982 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
2984 if test "$unexec" = "unexaix.o"; then
2985 if test "$dynamic" = "no"; then
2986 start_flags="-Wl,-bnso,-bnodelcsect"
2987 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2988 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2989 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2991 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2992 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2995 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2996 echo "configure:2997: checking for terminateAndUnload in -lC" >&5
2997 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2999 xe_check_libs=" -lC "
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3006 char terminateAndUnload();
3009 terminateAndUnload()
3012 if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3014 eval "ac_cv_lib_$ac_lib_var=yes"
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3019 eval "ac_cv_lib_$ac_lib_var=no"
3024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3025 echo "$ac_t""yes" 1>&6
3026 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
3028 echo "$ac_t""no" 1>&6
3033 elif test -n "$ld_text_start_addr"; then
3034 start_flags="-T $ld_text_start_addr -e __start"
3040 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
3041 test -z "$linker" && linker='$(CC) -nostdlib'
3042 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
3044 test "$GCC" != "yes" && lib_gcc=
3050 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3051 if test -n "$site_libraries"; then
3052 for arg in $site_libraries; do
3055 * ) test -d "$arg" || \
3056 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
3059 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
3063 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3064 if test -n "$site_includes"; then
3065 for arg in $site_includes; do
3068 * ) test -d "$arg" || \
3069 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
3072 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
3076 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3077 if test -n "$site_prefixes"; then
3078 for dir in $site_prefixes; do
3079 lib_dir="${dir}/lib"
3080 inc_dir="${dir}/include"
3081 if test ! -d "$dir"; then
3082 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
3083 elif test ! -d "$lib_dir"; then
3084 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
3086 if test -d "$inc_dir"; then
3087 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
3089 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
3095 for dir in "/usr/ccs/lib"; do
3096 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
3099 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
3100 if test -n "$site_runtime_libraries"; then
3101 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
3109 if test -n "$add_runtime_path"; then :;
3110 elif test "$dynamic" = "no"; then add_runtime_path=no
3111 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
3112 else case "$opsys" in
3113 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
3114 * ) add_runtime_path=no ;;
3118 if test "$add_runtime_path" = "yes"; then
3119 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3120 echo "configure:3121: checking "for runtime libraries flag"" >&5
3122 sol2 ) dash_r="-R" ;;
3123 decosf* | linux* | irix*) dash_r="-rpath " ;;
3126 for try_dash_r in "-R" "-R " "-rpath "; do
3127 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
3129 if test "$GCC" = "yes"; then
3130 set x $xe_check_libs; shift; xe_check_libs=""
3131 while test -n "$1"; do
3133 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
3134 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
3136 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3149 if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3151 dash_r="$try_dash_r"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3158 test -n "$dash_r" && break
3161 if test -n "$dash_r";
3162 then echo "$ac_t"""\"${dash_r}\""" 1>&6
3163 else echo "$ac_t""NONE" 1>&6
3167 xe_add_unique_runpath_dir='
3169 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
3171 if test "$xe_add_p" = "yes"; then
3172 test -n "$runpath" && runpath="${runpath}:"
3173 runpath="${runpath}${xe_runpath_dir}"
3174 runpath_dirs="$runpath_dirs $xe_runpath_dir"
3180 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
3181 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3182 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
3184 runpath="" runpath_dirs=""
3185 if test -n "$LD_RUN_PATH"; then
3186 runpath="$LD_RUN_PATH"
3187 elif test "$GCC" = "yes"; then
3188 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
3189 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
3190 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
3191 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
3192 case "$arg" in P,* | -L* | -R* )
3193 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
3195 xe_runpath_dir="$dir"
3196 test "$xe_runpath_dir" != "/lib" -a \
3197 "$xe_runpath_dir" != "/usr/lib" -a \
3198 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3199 eval "$xe_add_unique_runpath_dir"
3204 ld_switch_run="$ld_switch_run_save"
3207 for arg in $ld_switch_site $ld_switch_x_site; do
3208 case "$arg" in -L*) {
3209 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
3210 test "$xe_runpath_dir" != "/lib" -a \
3211 "$xe_runpath_dir" != "/usr/lib" -a \
3212 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
3213 eval "$xe_add_unique_runpath_dir"
3216 if test "$opsys $need_motif" = "sol2 yes"; then
3217 xe_runpath_dir="/opt/SUNWdt/lib";
3218 eval "$xe_add_unique_runpath_dir";
3221 if test -n "$runpath"; then
3222 ld_switch_run="${dash_r}${runpath}"
3224 if test "$GCC" = "yes"; then
3225 set x $ld_switch_run; shift; ld_switch_run=""
3226 while test -n "$1"; do
3228 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
3229 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
3231 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
3236 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
3243 if test "$with_dlmalloc" != "no"; then
3248 after_morecore_hook_exists=yes
3249 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3250 echo "configure:3251: checking for malloc_set_state" >&5
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char malloc_set_state(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3261 char malloc_set_state();
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_func_malloc_set_state=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_func_malloc_set_state=no"
3287 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3291 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3296 echo "configure:3297: checking whether __after_morecore_hook exists" >&5
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 extern void (* __after_morecore_hook)();
3302 __after_morecore_hook = 0
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3307 echo "$ac_t""yes" 1>&6
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 echo "$ac_t""no" 1>&6
3313 after_morecore_hook_exists=no
3316 if test "$system_malloc" = "yes" ; then
3319 - The GNU allocators don't work with this system configuration."
3320 elif test "$with_system_malloc" = "yes" ; then
3323 - User chose not to use GNU allocators."
3324 elif test "$with_debug_malloc" = "yes" ; then
3327 - User chose to use Debugging Malloc."
3330 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
3332 - Using Doug Lea's new malloc from the GNU C Library."
3333 { test "$extra_verbose" = "yes" && cat << \EOF
3334 Defining DOUG_LEA_MALLOC
3336 cat >> confdefs.h <<\EOF
3337 #define DOUG_LEA_MALLOC 1
3341 if test "$after_morecore_hook_exists" = "no" ; then
3343 - Using Doug Lea's new malloc from the Linux C Library."
3344 { test "$extra_verbose" = "yes" && cat << \EOF
3345 Defining _NO_MALLOC_WARNING_
3347 cat >> confdefs.h <<\EOF
3348 #define _NO_MALLOC_WARNING_ 1
3358 # Extract the first word of "ranlib", so it can be a program name with args.
3359 set dummy ranlib; ac_word=$2
3360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_word" >&5
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3371 ac_cv_prog_RANLIB="ranlib"
3376 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3378 RANLIB="$ac_cv_prog_RANLIB"
3379 if test -n "$RANLIB"; then
3380 echo "$ac_t""$RANLIB" 1>&6
3382 echo "$ac_t""no" 1>&6
3386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3387 if test -f $ac_dir/install-sh; then
3389 ac_install_sh="$ac_aux_dir/install-sh -c"
3391 elif test -f $ac_dir/install.sh; then
3393 ac_install_sh="$ac_aux_dir/install.sh -c"
3397 if test -z "$ac_aux_dir"; then
3398 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3400 ac_config_guess=$ac_aux_dir/config.guess
3401 ac_config_sub=$ac_aux_dir/config.sub
3402 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3404 # Find a good install program. We prefer a C program (faster),
3405 # so one script is as good as another. But avoid the broken or
3406 # incompatible versions:
3407 # SysV /etc/install, /usr/sbin/install
3408 # SunOS /usr/etc/install
3409 # IRIX /sbin/install
3411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3414 # ./install, which can be erroneously created by make from ./install.sh.
3415 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3416 echo "configure:3417: checking for a BSD compatible install" >&5
3417 if test -z "$INSTALL"; then
3419 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3420 for ac_dir in $PATH; do
3421 # Account for people who put trailing slashes in PATH elements.
3423 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3425 # OSF1 and SCO ODT 3.0 have their own names for install.
3426 # Don't use installbsd from OSF since it installs stuff as root
3428 for ac_prog in ginstall scoinst install; do
3429 if test -f $ac_dir/$ac_prog; then
3430 if test $ac_prog = install &&
3431 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3432 # AIX install. It has an incompatible calling convention.
3435 ac_cv_path_install="$ac_dir/$ac_prog -c"
3445 if test "${ac_cv_path_install+set}" = set; then
3446 INSTALL="$ac_cv_path_install"
3448 # As a last resort, use the slow shell script. We don't cache a
3449 # path for INSTALL within a source directory, because that will
3450 # break other packages using the cache if that directory is
3451 # removed, or if the path is relative.
3452 INSTALL="$ac_install_sh"
3455 echo "$ac_t""$INSTALL" 1>&6
3457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3458 # It thinks the first close brace ends the variable substitution.
3459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3465 for ac_prog in 'bison -y' byacc
3467 # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3470 echo "configure:3471: checking for $ac_word" >&5
3472 if test -n "$YACC"; then
3473 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3477 for ac_dir in $ac_dummy; do
3478 test -z "$ac_dir" && ac_dir=.
3479 if test -f $ac_dir/$ac_word; then
3480 ac_cv_prog_YACC="$ac_prog"
3486 YACC="$ac_cv_prog_YACC"
3487 if test -n "$YACC"; then
3488 echo "$ac_t""$YACC" 1>&6
3490 echo "$ac_t""no" 1>&6
3493 test -n "$YACC" && break
3495 test -n "$YACC" || YACC="yacc"
3498 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
3500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_hdr" >&5
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3510 { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3512 if test -z "$ac_err"; then
3514 eval "ac_cv_header_$ac_safe=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_header_$ac_safe=no"
3523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3526 { test "$extra_verbose" = "yes" && cat << EOF
3529 cat >> confdefs.h <<EOF
3530 #define $ac_tr_hdr 1
3535 echo "$ac_t""no" 1>&6
3539 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3540 echo "configure:3541: checking for sys/wait.h that is POSIX.1 compatible" >&5
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <sys/types.h>
3546 #include <sys/wait.h>
3548 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3551 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3556 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3559 if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 ac_cv_header_sys_wait_h=yes
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3566 ac_cv_header_sys_wait_h=no
3570 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3571 if test $ac_cv_header_sys_wait_h = yes; then
3572 { test "$extra_verbose" = "yes" && cat << \EOF
3573 Defining HAVE_SYS_WAIT_H
3575 cat >> confdefs.h <<\EOF
3576 #define HAVE_SYS_WAIT_H 1
3582 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3583 echo "configure:3584: checking for ANSI C header files" >&5
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3594 { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3596 if test -z "$ac_err"; then
3598 ac_cv_header_stdc=yes
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 ac_cv_header_stdc=no
3608 if test $ac_cv_header_stdc = yes; then
3609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "memchr" >/dev/null 2>&1; then
3620 ac_cv_header_stdc=no
3626 if test $ac_cv_header_stdc = yes; then
3627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 egrep "free" >/dev/null 2>&1; then
3638 ac_cv_header_stdc=no
3644 if test $ac_cv_header_stdc = yes; then
3645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3650 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3651 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3653 int main () { int i; for (i = 0; i < 256; i++)
3654 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 ac_cv_header_stdc=no
3671 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3672 if test $ac_cv_header_stdc = yes; then
3673 { test "$extra_verbose" = "yes" && cat << \EOF
3674 Defining STDC_HEADERS
3676 cat >> confdefs.h <<\EOF
3677 #define STDC_HEADERS 1
3683 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3684 echo "configure:3685: checking whether time.h and sys/time.h may both be included" >&5
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 #include <sys/types.h>
3690 #include <sys/time.h>
3696 if { (eval echo configure:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 ac_cv_header_time=yes
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 ac_cv_header_time=no
3707 echo "$ac_t""$ac_cv_header_time" 1>&6
3708 if test $ac_cv_header_time = yes; then
3709 { test "$extra_verbose" = "yes" && cat << \EOF
3710 Defining TIME_WITH_SYS_TIME
3712 cat >> confdefs.h <<\EOF
3713 #define TIME_WITH_SYS_TIME 1
3719 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3720 echo "configure:3721: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 #include <sys/types.h>
3727 /* NetBSD declares sys_siglist in unistd.h. */
3728 #ifdef HAVE_UNISTD_H
3732 char *msg = *(sys_siglist + 1);
3735 if { (eval echo configure:3736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3737 ac_cv_decl_sys_siglist=yes
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3742 ac_cv_decl_sys_siglist=no
3746 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3747 if test $ac_cv_decl_sys_siglist = yes; then
3748 { test "$extra_verbose" = "yes" && cat << \EOF
3749 Defining SYS_SIGLIST_DECLARED
3751 cat >> confdefs.h <<\EOF
3752 #define SYS_SIGLIST_DECLARED 1
3760 echo $ac_n "checking for utime""... $ac_c" 1>&6
3761 echo "configure:3762: checking for utime" >&5
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3768 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3771 if { (eval echo configure:3772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773 echo "$ac_t""yes" 1>&6
3774 { test "$extra_verbose" = "yes" && cat << \EOF
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_UTIME 1
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 echo "$ac_t""no" 1>&6
3787 for ac_func in utimes
3789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_func" >&5
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 /* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char $ac_func(); below. */
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3805 /* The GNU C library defines this for functions which it implements
3806 to always fail with ENOSYS. Some functions are actually named
3807 something starting with __ and the normal name is an alias. */
3808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818 eval "ac_cv_func_$ac_func=yes"
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 eval "ac_cv_func_$ac_func=no"
3827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3828 echo "$ac_t""yes" 1>&6
3829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3830 { test "$extra_verbose" = "yes" && cat << EOF
3831 Defining $ac_tr_func
3833 cat >> confdefs.h <<EOF
3834 #define $ac_tr_func 1
3839 echo "$ac_t""no" 1>&6
3847 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3848 echo "configure:3849: checking return type of signal handlers" >&5
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 #include <sys/types.h>
3859 extern "C" void (*signal (int, void (*)(int)))(int);
3861 void (*signal ()) ();
3868 if { (eval echo configure:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3870 ac_cv_type_signal=void
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3875 ac_cv_type_signal=int
3879 echo "$ac_t""$ac_cv_type_signal" 1>&6
3880 { test "$extra_verbose" = "yes" && cat << EOF
3881 Defining RETSIGTYPE = $ac_cv_type_signal
3883 cat >> confdefs.h <<EOF
3884 #define RETSIGTYPE $ac_cv_type_signal
3889 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3890 echo "configure:3891: checking for size_t" >&5
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 #include <sys/types.h>
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3904 ac_cv_type_size_t=yes
3907 ac_cv_type_size_t=no
3911 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3912 if test $ac_cv_type_size_t = no; then
3913 { test "$extra_verbose" = "yes" && cat << \EOF
3914 Defining size_t = unsigned
3916 cat >> confdefs.h <<\EOF
3917 #define size_t unsigned
3923 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3924 echo "configure:3925: checking for pid_t" >&5
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 #include <sys/types.h>
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3938 ac_cv_type_pid_t=yes
3945 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3946 if test $ac_cv_type_pid_t = no; then
3947 { test "$extra_verbose" = "yes" && cat << \EOF
3948 Defining pid_t = int
3950 cat >> confdefs.h <<\EOF
3957 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3958 echo "configure:3959: checking for uid_t in sys/types.h" >&5
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 #include <sys/types.h>
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "uid_t" >/dev/null 2>&1; then
3968 ac_cv_type_uid_t=yes
3976 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3977 if test $ac_cv_type_uid_t = no; then
3978 { test "$extra_verbose" = "yes" && cat << \EOF
3979 Defining uid_t = int
3981 cat >> confdefs.h <<\EOF
3986 { test "$extra_verbose" = "yes" && cat << \EOF
3987 Defining gid_t = int
3989 cat >> confdefs.h <<\EOF
3996 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3997 echo "configure:3998: checking for mode_t" >&5
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 #include <sys/types.h>
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4011 ac_cv_type_mode_t=yes
4014 ac_cv_type_mode_t=no
4018 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4019 if test $ac_cv_type_mode_t = no; then
4020 { test "$extra_verbose" = "yes" && cat << \EOF
4021 Defining mode_t = int
4023 cat >> confdefs.h <<\EOF
4030 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4031 echo "configure:4032: checking for off_t" >&5
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 #include <sys/types.h>
4042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4045 ac_cv_type_off_t=yes
4052 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4053 if test $ac_cv_type_off_t = no; then
4054 { test "$extra_verbose" = "yes" && cat << \EOF
4055 Defining off_t = long
4057 cat >> confdefs.h <<\EOF
4064 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4065 echo "configure:4066: checking for ssize_t" >&5
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <sys/types.h>
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4079 ac_cv_type_ssize_t=yes
4082 ac_cv_type_ssize_t=no
4086 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4087 if test $ac_cv_type_ssize_t = no; then
4088 { test "$extra_verbose" = "yes" && cat << \EOF
4089 Defining ssize_t = int
4091 cat >> confdefs.h <<\EOF
4099 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4100 echo "configure:4101: checking for socklen_t" >&5
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #include <sys/socket.h>
4112 if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4114 echo "$ac_t""yes" 1>&6
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 #include <sys/types.h>
4124 #include <sys/socket.h>
4125 int accept (int, struct sockaddr *, size_t *);
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 echo "$ac_t""size_t" 1>&6
4135 { test "$extra_verbose" = "yes" && cat << \EOF
4136 Defining socklen_t = size_t
4138 cat >> confdefs.h <<\EOF
4139 #define socklen_t size_t
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4148 echo "$ac_t""int" 1>&6
4149 { test "$extra_verbose" = "yes" && cat << \EOF
4150 Defining socklen_t = int
4152 cat >> confdefs.h <<\EOF
4153 #define socklen_t int
4162 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4163 echo "configure:4164: checking for struct timeval" >&5
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 #ifdef TIME_WITH_SYS_TIME
4168 #include <sys/time.h>
4171 #ifdef HAVE_SYS_TIME_H
4172 #include <sys/time.h>
4178 static struct timeval x; x.tv_sec = x.tv_usec;
4181 if { (eval echo configure:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4183 echo "$ac_t""yes" 1>&6
4185 { test "$extra_verbose" = "yes" && cat << \EOF
4186 Defining HAVE_TIMEVAL
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_TIMEVAL 1
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 echo "$ac_t""no" 1>&6
4202 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4203 echo "configure:4204: checking whether struct tm is in sys/time.h or time.h" >&5
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 #include <sys/types.h>
4211 struct tm *tp; tp->tm_sec;
4214 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 ac_cv_struct_tm=time.h
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 ac_cv_struct_tm=sys/time.h
4225 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4226 if test $ac_cv_struct_tm = sys/time.h; then
4227 { test "$extra_verbose" = "yes" && cat << \EOF
4228 Defining TM_IN_SYS_TIME
4230 cat >> confdefs.h <<\EOF
4231 #define TM_IN_SYS_TIME 1
4237 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4238 echo "configure:4239: checking for tm_zone in struct tm" >&5
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 #include <sys/types.h>
4244 #include <$ac_cv_struct_tm>
4246 struct tm tm; tm.tm_zone;
4249 if { (eval echo configure:4250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4251 ac_cv_struct_tm_zone=yes
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 ac_cv_struct_tm_zone=no
4260 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4261 if test "$ac_cv_struct_tm_zone" = yes; then
4262 { test "$extra_verbose" = "yes" && cat << \EOF
4263 Defining HAVE_TM_ZONE
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_TM_ZONE 1
4271 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4272 echo "configure:4273: checking for tzname" >&5
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4278 #ifndef tzname /* For SGI. */
4279 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4287 ac_cv_var_tzname=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4296 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4297 if test $ac_cv_var_tzname = yes; then
4298 { test "$extra_verbose" = "yes" && cat << \EOF
4299 Defining HAVE_TZNAME
4301 cat >> confdefs.h <<\EOF
4302 #define HAVE_TZNAME 1
4310 echo $ac_n "checking for working const""... $ac_c" 1>&6
4311 echo "configure:4312: checking for working const" >&5
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4319 /* Ultrix mips cc rejects this. */
4320 typedef int charset[2]; const charset x;
4321 /* SunOS 4.1.1 cc rejects this. */
4322 char const *const *ccp;
4324 /* NEC SVR4.0.2 mips cc rejects this. */
4325 struct point {int x, y;};
4326 static struct point const zero = {0,0};
4327 /* AIX XL C 1.02.0.0 rejects this.
4328 It does not let you subtract one const X* pointer from another in an arm
4329 of an if-expression whose if-part is not a constant expression */
4330 const char *g = "string";
4331 ccp = &g + (g ? g-g : 0);
4332 /* HPUX 7.0 cc rejects these. */
4335 ccp = (char const *const *) p;
4336 { /* SCO 3.2v4 cc rejects this. */
4338 char const *s = 0 ? (char *) 0 : (char const *) 0;
4342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4344 const int *foo = &x[0];
4347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4348 typedef const int *iptr;
4352 { /* AIX XL C 1.02.0.0 rejects this saying
4353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4354 struct s { int j; const int *ap[3]; };
4355 struct s *b; b->j = 5;
4357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4363 if { (eval echo configure:4364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4374 echo "$ac_t""$ac_cv_c_const" 1>&6
4375 if test $ac_cv_c_const = no; then
4376 { test "$extra_verbose" = "yes" && cat << \EOF
4379 cat >> confdefs.h <<\EOF
4387 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4388 echo "configure:4389: checking whether ${MAKE-make} sets \${MAKE}" >&5
4389 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4391 cat > conftestmake <<\EOF
4393 @echo 'ac_maketemp="${MAKE}"'
4395 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4396 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4397 if test -n "$ac_maketemp"; then
4398 eval ac_cv_prog_make_${ac_make}_set=yes
4400 eval ac_cv_prog_make_${ac_make}_set=no
4403 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4407 echo "$ac_t""no" 1>&6
4408 SET_MAKE="MAKE=${MAKE-make}"
4412 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4413 echo "configure:4414: checking whether byte ordering is bigendian" >&5
4415 ac_cv_c_bigendian=unknown
4416 # See if sys/param.h defines the BYTE_ORDER macro.
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <sys/types.h>
4421 #include <sys/param.h>
4424 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4429 if { (eval echo configure:4430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4431 # It does; now see whether it defined to BIG_ENDIAN or not.
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 #include <sys/types.h>
4436 #include <sys/param.h>
4439 #if BYTE_ORDER != BIG_ENDIAN
4444 if { (eval echo configure:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4446 ac_cv_c_bigendian=yes
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4451 ac_cv_c_bigendian=no
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4459 if test $ac_cv_c_bigendian = unknown; then
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4464 /* Are we little or big endian? From Harbison&Steele. */
4468 char c[sizeof (long)];
4471 exit (u.c[sizeof (long) - 1] == 1);
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4476 ac_cv_c_bigendian=no
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 ac_cv_c_bigendian=yes
4487 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4488 if test $ac_cv_c_bigendian = yes; then
4489 { test "$extra_verbose" = "yes" && cat << \EOF
4490 Defining WORDS_BIGENDIAN
4492 cat >> confdefs.h <<\EOF
4493 #define WORDS_BIGENDIAN 1
4500 echo $ac_n "checking size of short""... $ac_c" 1>&6
4501 echo "configure:4502: checking size of short" >&5
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4509 FILE *f=fopen("conftestval", "w");
4511 fprintf(f, "%d\n", sizeof(short));
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4517 ac_cv_sizeof_short=`cat conftestval`
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 ac_cv_sizeof_short=0
4526 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4527 { test "$extra_verbose" = "yes" && cat << EOF
4528 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
4530 cat >> confdefs.h <<EOF
4531 #define SIZEOF_SHORT $ac_cv_sizeof_short
4536 if test "$ac_cv_sizeof_short" = 0; then
4538 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4539 echo "*** PANIC *** Please examine config.log for compilation errors."
4542 echo $ac_n "checking size of int""... $ac_c" 1>&6
4543 echo "configure:4544: checking size of int" >&5
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4551 FILE *f=fopen("conftestval", "w");
4553 fprintf(f, "%d\n", sizeof(int));
4557 if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4559 ac_cv_sizeof_int=`cat conftestval`
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4568 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4569 { test "$extra_verbose" = "yes" && cat << EOF
4570 Defining SIZEOF_INT = $ac_cv_sizeof_int
4572 cat >> confdefs.h <<EOF
4573 #define SIZEOF_INT $ac_cv_sizeof_int
4578 echo $ac_n "checking size of long""... $ac_c" 1>&6
4579 echo "configure:4580: checking size of long" >&5
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4587 FILE *f=fopen("conftestval", "w");
4589 fprintf(f, "%d\n", sizeof(long));
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4595 ac_cv_sizeof_long=`cat conftestval`
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4604 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4605 { test "$extra_verbose" = "yes" && cat << EOF
4606 Defining SIZEOF_LONG = $ac_cv_sizeof_long
4608 cat >> confdefs.h <<EOF
4609 #define SIZEOF_LONG $ac_cv_sizeof_long
4614 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4615 echo "configure:4616: checking size of long long" >&5
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4623 FILE *f=fopen("conftestval", "w");
4625 fprintf(f, "%d\n", sizeof(long long));
4629 if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4631 ac_cv_sizeof_long_long=`cat conftestval`
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 ac_cv_sizeof_long_long=0
4640 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4641 { test "$extra_verbose" = "yes" && cat << EOF
4642 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
4644 cat >> confdefs.h <<EOF
4645 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4650 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4651 echo "configure:4652: checking size of void *" >&5
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4659 FILE *f=fopen("conftestval", "w");
4661 fprintf(f, "%d\n", sizeof(void *));
4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4667 ac_cv_sizeof_void_p=`cat conftestval`
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 ac_cv_sizeof_void_p=0
4676 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4677 { test "$extra_verbose" = "yes" && cat << EOF
4678 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
4680 cat >> confdefs.h <<EOF
4681 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4688 cygwin* ) cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <cygwin/types.h>
4693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 egrep "typedef.*intptr_t;" >/dev/null 2>&1; then
4696 echo "$ac_t""yes" 1>&6
4697 { test "$extra_verbose" = "yes" && cat << \EOF
4698 Defining INTPTR_T_IN_CYGWIN_TYPES_H = 1
4700 cat >> confdefs.h <<\EOF
4701 #define INTPTR_T_IN_CYGWIN_TYPES_H 1
4707 echo "$ac_t""no" 1>&6
4713 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4714 echo "configure:4715: checking for long file names" >&5
4716 ac_cv_sys_long_file_names=yes
4717 # Test for long file names in all the places we know might matter:
4718 # . the current directory, where building will happen
4719 # $prefix/lib where we will be installing things
4720 # $exec_prefix/lib likewise
4721 # eval it to expand exec_prefix.
4722 # $TMPDIR if set, where it might want to write temporary files
4723 # if $TMPDIR is not set:
4724 # /tmp where it might want to write temporary files
4727 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4728 ac_tmpdirs="$TMPDIR"
4730 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4732 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4733 test -d $ac_dir || continue
4734 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4735 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4736 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4737 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4738 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4739 ac_cv_sys_long_file_names=no
4740 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4743 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4746 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4747 if test $ac_cv_sys_long_file_names = yes; then
4748 { test "$extra_verbose" = "yes" && cat << \EOF
4749 Defining HAVE_LONG_FILE_NAMES
4751 cat >> confdefs.h <<\EOF
4752 #define HAVE_LONG_FILE_NAMES 1
4759 echo $ac_n "checking for sin""... $ac_c" 1>&6
4760 echo "configure:4761: checking for sin" >&5
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* System header to define __stub macros and hopefully few prototypes,
4766 which can conflict with char sin(); below. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4775 /* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778 #if defined (__stub_sin) || defined (__stub___sin)
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4788 eval "ac_cv_func_sin=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_func_sin=no"
4797 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4801 echo "$ac_t""no" 1>&6
4803 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4804 echo "configure:4805: checking for sin in -lm" >&5
4805 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4807 xe_check_libs=" -lm "
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 /* Override any gcc2 internal prototype to avoid an error. */
4812 /* We use char because int might match the return type of a gcc2
4813 builtin and then its argument prototype would still apply. */
4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4822 eval "ac_cv_lib_$ac_lib_var=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 eval "ac_cv_lib_$ac_lib_var=no"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4836 { test "$extra_verbose" = "yes" && cat << EOF
4839 cat >> confdefs.h <<EOF
4840 #define $ac_tr_lib 1
4844 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
4847 echo "$ac_t""no" 1>&6
4854 { test "$extra_verbose" = "yes" && cat << \EOF
4855 Defining LISP_FLOAT_TYPE
4857 cat >> confdefs.h <<\EOF
4858 #define LISP_FLOAT_TYPE 1
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 { test "$extra_verbose" = "yes" && cat << \EOF
4874 Defining HAVE_INVERSE_HYPERBOLIC
4876 cat >> confdefs.h <<\EOF
4877 #define HAVE_INVERSE_HYPERBOLIC 1
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4887 echo "checking type of mail spool file locking" 1>&6
4888 echo "configure:4889: checking type of mail spool file locking" >&5
4889 for ac_func in lockf flock
4891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4892 echo "configure:4893: checking for $ac_func" >&5
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes,
4898 which can conflict with char $ac_func(); below. */
4900 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4907 /* The GNU C library defines this for functions which it implements
4908 to always fail with ENOSYS. Some functions are actually named
4909 something starting with __ and the normal name is an alias. */
4910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 eval "ac_cv_func_$ac_func=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 eval "ac_cv_func_$ac_func=no"
4929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4932 { test "$extra_verbose" = "yes" && cat << EOF
4933 Defining $ac_tr_func
4935 cat >> confdefs.h <<EOF
4936 #define $ac_tr_func 1
4941 echo "$ac_t""no" 1>&6
4945 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4946 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4947 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4948 if test -z "$mail_locking"; then
4949 case "$opsys" in cygwin* | mingw*)
4954 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4955 Defining MAIL_LOCK_LOCKF
4957 cat >> confdefs.h <<\EOF
4958 #define MAIL_LOCK_LOCKF 1
4962 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4963 Defining MAIL_LOCK_FLOCK
4965 cat >> confdefs.h <<\EOF
4966 #define MAIL_LOCK_FLOCK 1
4970 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4971 Defining MAIL_LOCK_LOCKING
4973 cat >> confdefs.h <<\EOF
4974 #define MAIL_LOCK_LOCKING 1
4978 elif test "$mail_locking" = "pop"; then
4981 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4982 Defining MAIL_LOCK_DOT
4984 cat >> confdefs.h <<\EOF
4985 #define MAIL_LOCK_DOT 1
4990 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4991 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4992 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4993 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4994 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4995 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4997 case "$opsys" in decosf*)
4999 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5000 echo "configure:5001: checking for cma_open in -lpthreads" >&5
5001 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5003 xe_check_libs=" -lpthreads "
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 eval "ac_cv_lib_$ac_lib_var=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_lib_$ac_lib_var=no"
5028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5029 echo "$ac_t""yes" 1>&6
5030 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5031 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5032 { test "$extra_verbose" = "yes" && cat << EOF
5035 cat >> confdefs.h <<EOF
5036 #define $ac_tr_lib 1
5040 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
5043 echo "$ac_t""no" 1>&6
5047 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5048 c_switch_site="$c_switch_site -threads" ;;
5052 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5053 echo "configure:5054: checking whether the -xildoff compiler flag is required" >&5
5054 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5055 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5056 then echo "$ac_t""no" 1>&6;
5057 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
5059 else echo "$ac_t""no" 1>&6
5062 if test "$opsys" = "sol2"; then
5063 if test "$os_release" -ge 56; then
5064 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5065 echo "configure:5066: checking for \"-z ignore\" linker flag" >&5
5066 case "`ld -h 2>&1`" in
5067 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5068 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5069 *) echo "$ac_t""no" 1>&6 ;;
5075 echo "checking "for specified window system"" 1>&6
5076 echo "configure:5077: checking "for specified window system"" >&5
5082 if test "$with_gnome" != "no"; then
5083 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5084 echo "configure:5085: checking for GNOME configuration script" >&5
5085 for possible in gnome-config
5087 possible_version=`${possible} --version 2> /dev/null`
5088 if test "x${possible_version}" != "x"; then
5089 GNOME_CONFIG="${possible}"
5095 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5098 if test "${GNOME_CONFIG}" != "no"; then
5099 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5100 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5101 { test "$extra_verbose" = "yes" && cat << \EOF
5104 cat >> confdefs.h <<\EOF
5105 #define HAVE_GNOME 1
5109 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5110 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5113 if test "$with_gtk" != "no";then
5114 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5115 echo "configure:5116: checking for GTK configuration script" >&5
5116 for possible in gtk12-config gtk14-config gtk-config
5118 possible_version=`${possible} --version 2> /dev/null`
5119 if test "x${possible_version}" != "x"; then
5120 GTK_CONFIG="${possible}"
5122 case "${possible_version}" in
5123 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5124 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5129 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5132 echo "$ac_t""${GTK_CONFIG}" 1>&6
5135 if test "${GTK_CONFIG}" != "no"; then
5136 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5137 echo "configure:5138: checking gtk version" >&5
5138 GTK_VERSION=`${GTK_CONFIG} --version`
5139 echo "$ac_t""${GTK_VERSION}" 1>&6
5141 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5142 echo "configure:5143: checking gtk libs" >&5
5143 GTK_LIBS=`${GTK_CONFIG} --libs`
5144 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5145 echo "$ac_t""${GTK_LIBS}" 1>&6
5147 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5148 echo "configure:5149: checking gtk cflags" >&5
5149 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5150 if test "$GCC" = "yes"; then
5151 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5153 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5154 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5157 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5158 echo "configure:5159: checking for main in -lgdk_imlib" >&5
5159 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5161 xe_check_libs=" -lgdk_imlib "
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 eval "ac_cv_lib_$ac_lib_var=yes"
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 eval "ac_cv_lib_$ac_lib_var=no"
5182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5183 echo "$ac_t""yes" 1>&6
5184 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5186 echo "$ac_t""no" 1>&6
5191 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5192 echo "configure:5193: checking for Imlib_init in -lImlib" >&5
5193 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5195 xe_check_libs=" -lImlib "
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 eval "ac_cv_lib_$ac_lib_var=yes"
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 eval "ac_cv_lib_$ac_lib_var=no"
5220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5221 echo "$ac_t""yes" 1>&6
5222 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5224 echo "$ac_t""no" 1>&6
5228 for ac_func in gdk_imlib_init
5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5231 echo "configure:5232: checking for $ac_func" >&5
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* System header to define __stub macros and hopefully few prototypes,
5237 which can conflict with char $ac_func(); below. */
5239 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5246 /* The GNU C library defines this for functions which it implements
5247 to always fail with ENOSYS. Some functions are actually named
5248 something starting with __ and the normal name is an alias. */
5249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5259 eval "ac_cv_func_$ac_func=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_func_$ac_func=no"
5268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5271 { test "$extra_verbose" = "yes" && cat << EOF
5272 Defining $ac_tr_func
5274 cat >> confdefs.h <<EOF
5275 #define $ac_tr_func 1
5280 echo "$ac_t""no" 1>&6
5285 { test "$extra_verbose" = "yes" && cat << \EOF
5288 cat >> confdefs.h <<\EOF
5293 { test "$extra_verbose" = "yes" && cat << \EOF
5296 cat >> confdefs.h <<\EOF
5307 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5308 test "${with_toolbars}" != no && with_toolbars=gtk
5309 test "${with_menubars}" != "no" && with_menubars=gtk
5310 test "${with_dialogs}" != "no" && with_dialogs=gtk
5311 test "${with_widgets}" != "no" && with_widgets=gtk
5313 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5314 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5316 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5317 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5319 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5320 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5322 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5323 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5326 OLD_CFLAGS="${CFLAGS}"
5327 OLD_CPPFLAGS="${CPPFLAGS}"
5328 OLD_LDFLAGS="${LDFLAGS}"
5329 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5330 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5331 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5332 for ac_hdr in glade/glade.h glade.h
5334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_hdr" >&5
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5344 { (eval echo configure:5345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5346 if test -z "$ac_err"; then
5348 eval "ac_cv_header_$ac_safe=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 eval "ac_cv_header_$ac_safe=no"
5357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5360 { test "$extra_verbose" = "yes" && cat << EOF
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_hdr 1
5369 echo "$ac_t""no" 1>&6
5374 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5375 echo "configure:5376: checking for main in -lxml" >&5
5376 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5378 xe_check_libs=" -lxml "
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_lib_$ac_lib_var=no"
5399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5400 echo "$ac_t""yes" 1>&6
5401 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5403 echo "$ac_t""no" 1>&6
5408 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5409 echo "configure:5410: checking for main in -lglade" >&5
5410 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5412 xe_check_libs=" -lglade "
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5428 eval "ac_cv_lib_$ac_lib_var=no"
5433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5434 echo "$ac_t""yes" 1>&6
5435 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5437 echo "$ac_t""no" 1>&6
5442 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5443 echo "configure:5444: checking for main in -lglade-gnome" >&5
5444 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5446 xe_check_libs=" -lglade-gnome "
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5457 eval "ac_cv_lib_$ac_lib_var=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 eval "ac_cv_lib_$ac_lib_var=no"
5467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5468 echo "$ac_t""yes" 1>&6
5469 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5471 echo "$ac_t""no" 1>&6
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 #include <glade/glade-xml.h>
5480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5481 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5483 echo "$ac_t""yes" 1>&6
5484 { test "$extra_verbose" = "yes" && cat << \EOF
5485 Defining LIBGLADE_XML_TXTDOMAIN = 1
5487 cat >> confdefs.h <<\EOF
5488 #define LIBGLADE_XML_TXTDOMAIN 1
5494 echo "$ac_t""no" 1>&6
5498 CFLAGS="${OLD_CFLAGS}"
5499 CPPFLAGS="${OLD_CPPFLAGS}"
5500 LDFLAGS="${OLD_LDFLAGS}"
5504 if test "$with_x11" != "no"; then
5505 test "$x_includes $x_libraries" != "NONE NONE" && \
5506 window_system=x11 with_x11=yes
5509 if test "$x_includes $x_libraries" = "NONE NONE" \
5510 -a -n "$OPENWINHOME" \
5511 -a "$OPENWINHOME" != "/usr/openwin" \
5512 -a -d "$OPENWINHOME"; then
5513 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
5514 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
5515 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
5518 if test "$x_includes" = "NONE"; then
5519 for dir in "/usr/X11" "/usr/X11R6"; do
5520 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
5524 if test "$x_libraries" = "NONE"; then
5525 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
5526 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
5530 # If we find X, set shell vars x_includes and x_libraries to the
5531 # paths, otherwise set no_x=yes.
5532 # Uses ac_ vars as temps to allow command line to override cache and checks.
5533 # --without-x overrides everything else, but does not touch the cache.
5534 echo $ac_n "checking for X""... $ac_c" 1>&6
5535 echo "configure:5536: checking for X" >&5
5537 # Check whether --with-x or --without-x was given.
5538 if test "${with_x+set}" = set; then
5543 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5544 if test "x$with_x" = xno; then
5545 # The user explicitly disabled X.
5548 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5549 # Both variables are already set.
5553 # One or both of the vars are not set, and there is no cached value.
5554 ac_x_includes=NO ac_x_libraries=NO
5556 if mkdir conftestdir; then
5558 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5559 cat > Imakefile <<'EOF'
5561 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5563 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5565 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5566 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5567 for ac_extension in a so sl; do
5568 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5569 test -f $ac_im_libdir/libX11.$ac_extension; then
5570 ac_im_usrlibdir=$ac_im_libdir; break
5573 # Screen out bogus values from the imake configuration. They are
5574 # bogus both because they are the default anyway, and because
5575 # using them would break gcc on systems where it needs fixed includes.
5576 case "$ac_im_incroot" in
5578 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5580 case "$ac_im_usrlibdir" in
5582 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5589 if test "$ac_x_includes" = NO; then
5590 # Guess where to find include files, by looking for this one X11 .h file.
5591 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5593 # First, try using that file with no special directory specified.
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 #include <$x_direct_test_include>
5599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5600 { (eval echo configure:5601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5602 if test -z "$ac_err"; then
5604 # We can compile using X headers with no special include directory.
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 # Look for the header file in a standard set of common directories.
5612 # Check X11 before X11Rn because it is often a symlink to the current release.
5615 /usr/X11R6/include \
5616 /usr/X11R5/include \
5617 /usr/X11R4/include \
5620 /usr/include/X11R6 \
5621 /usr/include/X11R5 \
5622 /usr/include/X11R4 \
5624 /usr/local/X11/include \
5625 /usr/local/X11R6/include \
5626 /usr/local/X11R5/include \
5627 /usr/local/X11R4/include \
5629 /usr/local/include/X11 \
5630 /usr/local/include/X11R6 \
5631 /usr/local/include/X11R5 \
5632 /usr/local/include/X11R4 \
5636 /usr/XFree86/include/X11 \
5639 /usr/local/include \
5640 /usr/unsupported/include \
5641 /usr/athena/include \
5642 /usr/local/x11r5/include \
5643 /usr/lpp/Xamples/include \
5645 /usr/openwin/include \
5646 /usr/openwin/share/include \
5649 if test -r "$ac_dir/$x_direct_test_include"; then
5650 ac_x_includes=$ac_dir
5656 fi # $ac_x_includes = NO
5658 if test "$ac_x_libraries" = NO; then
5659 # Check for the libraries.
5661 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5662 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5664 # See if we find them without any special options.
5665 # Don't add to $LIBS permanently.
5666 ac_save_LIBS="$LIBS"
5667 LIBS="-l$x_direct_test_library $LIBS"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5673 ${x_direct_test_function}()
5676 if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 LIBS="$ac_save_LIBS"
5679 # We can link X programs with no special library path.
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 LIBS="$ac_save_LIBS"
5686 # First see if replacing the include by lib works.
5687 # Check X11 before X11Rn because it is often a symlink to the current release.
5688 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5699 /usr/local/X11/lib \
5700 /usr/local/X11R6/lib \
5701 /usr/local/X11R5/lib \
5702 /usr/local/X11R4/lib \
5704 /usr/local/lib/X11 \
5705 /usr/local/lib/X11R6 \
5706 /usr/local/lib/X11R5 \
5707 /usr/local/lib/X11R4 \
5711 /usr/XFree86/lib/X11 \
5715 /usr/unsupported/lib \
5717 /usr/local/x11r5/lib \
5718 /usr/lpp/Xamples/lib \
5722 /usr/openwin/share/lib \
5725 for ac_extension in a so sl; do
5726 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5727 ac_x_libraries=$ac_dir
5734 fi # $ac_x_libraries = NO
5736 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5737 # Didn't find X anywhere. Cache the known absence of X.
5738 ac_cv_have_x="have_x=no"
5740 # Record where we found X for the cache.
5741 ac_cv_have_x="have_x=yes \
5742 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5745 eval "$ac_cv_have_x"
5748 if test "$have_x" != yes; then
5749 echo "$ac_t""$have_x" 1>&6
5752 # If each of the values was on the command line, it overrides each guess.
5753 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5754 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5755 # Update the cache value to reflect the command line values.
5756 ac_cv_have_x="have_x=yes \
5757 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5758 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5761 if test "$no_x" = yes; then
5762 # Not all programs may use this symbol, but it does not hurt to define it.
5763 { test "$extra_verbose" = "yes" && cat << \EOF
5764 Defining X_DISPLAY_MISSING
5766 cat >> confdefs.h <<\EOF
5767 #define X_DISPLAY_MISSING 1
5771 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5773 if test -n "$x_includes"; then
5774 X_CFLAGS="$X_CFLAGS -I$x_includes"
5777 # It would also be nice to do this for all -L options, not just this one.
5778 if test -n "$x_libraries"; then
5779 X_LIBS="$X_LIBS -L$x_libraries"
5780 # For Solaris; some versions of Sun CC require a space after -R and
5781 # others require no space. Words are not sufficient . . . .
5782 case "`(uname -sr) 2>/dev/null`" in
5784 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5785 echo "configure:5786: checking whether -R must be followed by a space" >&5
5786 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5805 if test $ac_R_nospace = yes; then
5806 echo "$ac_t""no" 1>&6
5807 X_LIBS="$X_LIBS -R$x_libraries"
5809 LIBS="$ac_xsave_LIBS -R $x_libraries"
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5828 if test $ac_R_space = yes; then
5829 echo "$ac_t""yes" 1>&6
5830 X_LIBS="$X_LIBS -R $x_libraries"
5832 echo "$ac_t""neither works" 1>&6
5835 LIBS="$ac_xsave_LIBS"
5839 # Check for system-dependent libraries X programs must link with.
5840 # Do this before checking for the system-independent R6 libraries
5841 # (-lICE), since we may need -lsocket or whatever for X linking.
5843 if test "$ISC" = yes; then
5844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5846 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5847 # libraries were built with DECnet support. And karl@cs.umb.edu says
5848 # the Alpha needs dnet_stub (dnet does not exist).
5849 if test "$with_dnet" = "no" ; then
5850 ac_cv_lib_dnet_dnet_ntoa=no
5853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5854 echo "configure:5855: checking for dnet_ntoa in -ldnet" >&5
5855 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5857 xe_check_libs=" -ldnet "
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5872 eval "ac_cv_lib_$ac_lib_var=yes"
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 eval "ac_cv_lib_$ac_lib_var=no"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5883 echo "$ac_t""yes" 1>&6
5884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5886 echo "$ac_t""no" 1>&6
5891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5893 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5894 echo "configure:5895: checking for dnet_ntoa in -ldnet_stub" >&5
5895 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5897 xe_check_libs=" -ldnet_stub "
5898 cat > conftest.$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5912 eval "ac_cv_lib_$ac_lib_var=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_lib_$ac_lib_var=no"
5922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5923 echo "$ac_t""yes" 1>&6
5924 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5926 echo "$ac_t""no" 1>&6
5932 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5933 # to get the SysV transport functions.
5934 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5936 # The nsl library prevents programs from opening the X display
5937 # on Irix 5.2, according to dickey@clark.net.
5938 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5939 echo "configure:5940: checking for gethostbyname" >&5
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char gethostbyname(); below. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5950 char gethostbyname();
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 eval "ac_cv_func_gethostbyname=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_func_gethostbyname=no"
5976 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5977 echo "$ac_t""yes" 1>&6
5980 echo "$ac_t""no" 1>&6
5983 if test $ac_cv_func_gethostbyname = no; then
5985 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5986 echo "configure:5987: checking for gethostbyname in -lnsl" >&5
5987 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5989 xe_check_libs=" -lnsl "
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char gethostbyname();
6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 eval "ac_cv_lib_$ac_lib_var=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_lib_$ac_lib_var=no"
6014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6015 echo "$ac_t""yes" 1>&6
6016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6018 echo "$ac_t""no" 1>&6
6024 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6025 # socket/setsockopt and other routines are undefined under SCO ODT
6026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6027 # on later versions), says simon@lia.di.epfl.ch: it contains
6028 # gethostby* variants that don't use the nameserver (or something).
6029 # -lsocket must be given before -lnsl if both are needed.
6030 # We assume that if connect needs -lnsl, so does gethostbyname.
6031 echo $ac_n "checking for connect""... $ac_c" 1>&6
6032 echo "configure:6033: checking for connect" >&5
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char connect(); below. */
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined (__stub_connect) || defined (__stub___connect)
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 eval "ac_cv_func_connect=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 eval "ac_cv_func_connect=no"
6069 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6073 echo "$ac_t""no" 1>&6
6076 if test $ac_cv_func_connect = no; then
6078 xe_msg_checking="for connect in -lsocket"
6079 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6080 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6081 echo "configure:6082: checking "$xe_msg_checking"" >&5
6082 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6084 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 eval "ac_cv_lib_$ac_lib_var=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6104 eval "ac_cv_lib_$ac_lib_var=no"
6109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6110 echo "$ac_t""yes" 1>&6
6111 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6113 echo "$ac_t""no" 1>&6
6119 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6120 echo $ac_n "checking for remove""... $ac_c" 1>&6
6121 echo "configure:6122: checking for remove" >&5
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 /* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char remove(); below. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_remove) || defined (__stub___remove)
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 eval "ac_cv_func_remove=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 eval "ac_cv_func_remove=no"
6158 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6162 echo "$ac_t""no" 1>&6
6165 if test $ac_cv_func_remove = no; then
6167 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6168 echo "configure:6169: checking for remove in -lposix" >&5
6169 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6171 xe_check_libs=" -lposix "
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_lib_$ac_lib_var=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_lib_$ac_lib_var=no"
6196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6197 echo "$ac_t""yes" 1>&6
6198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6200 echo "$ac_t""no" 1>&6
6206 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6207 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6208 echo "configure:6209: checking for shmat" >&5
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char shmat(); below. */
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6223 /* The GNU C library defines this for functions which it implements
6224 to always fail with ENOSYS. Some functions are actually named
6225 something starting with __ and the normal name is an alias. */
6226 #if defined (__stub_shmat) || defined (__stub___shmat)
6234 if { (eval echo configure:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6236 eval "ac_cv_func_shmat=yes"
6238 echo "configure: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6241 eval "ac_cv_func_shmat=no"
6245 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6249 echo "$ac_t""no" 1>&6
6252 if test $ac_cv_func_shmat = no; then
6254 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6255 echo "configure:6256: checking for shmat in -lipc" >&5
6256 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6258 xe_check_libs=" -lipc "
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 eval "ac_cv_lib_$ac_lib_var=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_lib_$ac_lib_var=no"
6283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6284 echo "$ac_t""yes" 1>&6
6285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6287 echo "$ac_t""no" 1>&6
6294 # Check for libraries that X11R6 Xt/Xaw programs need.
6295 ac_save_LDFLAGS="$LDFLAGS"
6296 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6297 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6298 # check for ICE first), but we must link in the order -lSM -lICE or
6299 # we get undefined symbols. So assume we have SM if we have ICE.
6300 # These have to be linked with before -lX11, unlike the other
6301 # libraries we check for below, so use a different variable.
6302 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6304 xe_msg_checking="for IceConnectionNumber in -lICE"
6305 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6306 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6307 echo "configure:6308: checking "$xe_msg_checking"" >&5
6308 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6310 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6317 char IceConnectionNumber();
6320 IceConnectionNumber()
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_lib_$ac_lib_var=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_lib_$ac_lib_var=no"
6335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6336 echo "$ac_t""yes" 1>&6
6337 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6339 echo "$ac_t""no" 1>&6
6343 LDFLAGS="$ac_save_LDFLAGS"
6346 # Autoconf claims to find X library and include dirs for us.
6347 if test "$no_x" = "yes"
6348 then with_x11=no window_system=none HAVE_X_WINDOWS=no
6349 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
6354 if test "$with_x11" = "yes"; then
6355 { test "$extra_verbose" = "yes" && cat << \EOF
6356 Defining HAVE_X_WINDOWS
6358 cat >> confdefs.h <<\EOF
6359 #define HAVE_X_WINDOWS 1
6363 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
6364 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6367 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6368 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6369 echo "configure:6370: checking for Xm/Xm.h" >&5
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6377 { (eval echo configure:6378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6379 if test -z "$ac_err"; then
6381 eval "ac_cv_header_$ac_safe=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_header_$ac_safe=no"
6390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6393 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6394 echo "configure:6395: checking for XmStringFree in -lXm" >&5
6395 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6397 xe_check_libs=" -lXm "
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6404 char XmStringFree();
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6412 eval "ac_cv_lib_$ac_lib_var=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_lib_$ac_lib_var=no"
6422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6423 echo "$ac_t""yes" 1>&6
6426 echo "$ac_t""no" 1>&6
6431 echo "$ac_t""no" 1>&6
6435 if test "$got_motif" != "yes"; then
6436 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
6437 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
6438 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
6439 if test -d "$lib_dir" -a -d "$inc_dir"; then
6440 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6441 x_libraries="$lib_dir $x_libraries"
6442 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
6444 case "$x_includes" in "$inc_dir"* ) ;; *)
6445 x_includes="$inc_dir $x_includes"
6446 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
6452 for rel in "X11R6" "X11R5" "X11R4"; do
6453 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
6454 if test -d "$lib_dir" -a -d "$inc_dir"; then
6455 case "$x_libraries" in *"$lib_dir"* ) ;; *)
6456 x_libraries="$x_libraries $lib_dir"
6457 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
6459 case "$x_includes" in "$inc_dir"* ) ;; *)
6460 x_includes="$x_includes $inc_dir"
6461 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
6467 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 ;;
6470 ld_switch_x_site="$X_LIBS"
6473 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6474 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6475 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
6477 runpath="" runpath_dirs=""
6478 if test -n "$LD_RUN_PATH"; then
6479 runpath="$LD_RUN_PATH"
6480 elif test "$GCC" = "yes"; then
6481 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6482 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6483 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6484 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6485 case "$arg" in P,* | -L* | -R* )
6486 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6488 xe_runpath_dir="$dir"
6489 test "$xe_runpath_dir" != "/lib" -a \
6490 "$xe_runpath_dir" != "/usr/lib" -a \
6491 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6492 eval "$xe_add_unique_runpath_dir"
6497 ld_switch_run="$ld_switch_run_save"
6500 for arg in $ld_switch_site $ld_switch_x_site; do
6501 case "$arg" in -L*) {
6502 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6503 test "$xe_runpath_dir" != "/lib" -a \
6504 "$xe_runpath_dir" != "/usr/lib" -a \
6505 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6506 eval "$xe_add_unique_runpath_dir"
6509 if test "$opsys $need_motif" = "sol2 yes"; then
6510 xe_runpath_dir="/opt/SUNWdt/lib";
6511 eval "$xe_add_unique_runpath_dir";
6514 if test -n "$runpath"; then
6515 ld_switch_run="${dash_r}${runpath}"
6517 if test "$GCC" = "yes"; then
6518 set x $ld_switch_run; shift; ld_switch_run=""
6519 while test -n "$1"; do
6521 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
6522 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
6524 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
6529 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6534 if test "$extra_verbose" = "yes"; then
6535 echo; echo "X11 compilation variables:"
6536 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
6541 if test "$x_includes" != NONE; then
6542 for i in $x_includes; do
6543 if test -d "$i/bitmaps"; then
6544 bitmapdirs="$i/bitmaps:$bitmapdirs"
6546 if test -d "$i/X11/bitmaps"; then
6547 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
6550 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
6552 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
6553 Defining BITMAPDIR = "$bitmapdirs"
6555 cat >> confdefs.h <<EOF
6556 #define BITMAPDIR "$bitmapdirs"
6561 echo "checking for X defines extracted by xmkmf" 1>&6
6562 echo "configure:6563: checking for X defines extracted by xmkmf" >&5
6564 if mkdir conftestdir; then
6566 cat > Imakefile <<'EOF'
6568 @echo ${PROTO_DEFINES} ${STD_DEFINES}
6570 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6572 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
6576 for word in $xmkmf_defines; do
6580 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
6582 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
6585 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
6586 if test "$val" = "1"
6587 then { test "$extra_verbose" = "yes" && cat << EOF
6590 cat >> confdefs.h <<EOF
6595 else { test "$extra_verbose" = "yes" && cat << EOF
6596 Defining $sym = $val
6598 cat >> confdefs.h <<EOF
6609 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6610 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6611 echo "configure:6612: checking for X11/Intrinsic.h" >&5
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 #include <X11/Intrinsic.h>
6618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6619 { (eval echo configure:6620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6621 if test -z "$ac_err"; then
6623 eval "ac_cv_header_$ac_safe=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_header_$ac_safe=no"
6632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6633 echo "$ac_t""yes" 1>&6
6636 echo "$ac_t""no" 1>&6
6637 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
6642 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6643 echo "configure:6644: checking for XOpenDisplay in -lX11" >&5
6644 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6646 xe_check_libs=" -lX11 "
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char XOpenDisplay();
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 eval "ac_cv_lib_$ac_lib_var=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_lib_$ac_lib_var=no"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6672 echo "$ac_t""yes" 1>&6
6675 echo "$ac_t""no" 1>&6
6679 if test "$have_lib_x11" != "yes"; then
6681 xe_msg_checking="for XGetFontProperty in -lX11"
6682 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6683 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6684 echo "configure:6685: checking "$xe_msg_checking"" >&5
6685 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6687 xe_check_libs=" -lX11 -b i486-linuxaout"
6688 cat > conftest.$ac_ext <<EOF
6689 #line 6690 "configure"
6690 #include "confdefs.h"
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char XGetFontProperty();
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6702 eval "ac_cv_lib_$ac_lib_var=yes"
6704 echo "configure: failed program was:" >&5
6705 cat conftest.$ac_ext >&5
6707 eval "ac_cv_lib_$ac_lib_var=no"
6712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6713 echo "$ac_t""yes" 1>&6
6714 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
6716 echo "$ac_t""no" 1>&6
6717 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6723 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6726 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6727 echo "configure:6728: checking for XShapeSelectInput in -lXext" >&5
6728 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6730 xe_check_libs=" -lXext "
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* Override any gcc2 internal prototype to avoid an error. */
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6737 char XShapeSelectInput();
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_lib_$ac_lib_var=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_lib_$ac_lib_var=no"
6755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6756 echo "$ac_t""yes" 1>&6
6757 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
6759 echo "$ac_t""no" 1>&6
6765 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6766 echo "configure:6767: checking for XtOpenDisplay in -lXt" >&5
6767 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6769 xe_check_libs=" -lXt "
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char XtOpenDisplay();
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784 eval "ac_cv_lib_$ac_lib_var=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_lib_$ac_lib_var=no"
6794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6795 echo "$ac_t""yes" 1>&6
6796 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
6798 echo "$ac_t""no" 1>&6
6799 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
6804 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6805 echo "configure:6806: checking the version of X11 being used" >&5
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 #include <X11/Intrinsic.h>
6810 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6814 ./conftest foobar; x11_release=$?
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6823 echo "$ac_t""R${x11_release}" 1>&6
6824 { test "$extra_verbose" = "yes" && cat << EOF
6825 Defining THIS_IS_X11R${x11_release}
6827 cat >> confdefs.h <<EOF
6828 #define THIS_IS_X11R${x11_release} 1
6833 if test "${x11_release}" = "4"; then
6834 case "$with_widgets" in
6835 "" | "no") with_widgets=no ;;
6836 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
6840 for ac_func in XConvertCase
6842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_func" >&5
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_func_$ac_func=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_func_$ac_func=no"
6880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6881 echo "$ac_t""yes" 1>&6
6882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6883 { test "$extra_verbose" = "yes" && cat << EOF
6884 Defining $ac_tr_func
6886 cat >> confdefs.h <<EOF
6887 #define $ac_tr_func 1
6892 echo "$ac_t""no" 1>&6
6897 for ac_hdr in X11/Xlocale.h
6899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6901 echo "configure:6902: checking for $ac_hdr" >&5
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6909 { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6911 if test -z "$ac_err"; then
6913 eval "ac_cv_header_$ac_safe=yes"
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 eval "ac_cv_header_$ac_safe=no"
6922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6925 { test "$extra_verbose" = "yes" && cat << EOF
6928 cat >> confdefs.h <<EOF
6929 #define $ac_tr_hdr 1
6934 echo "$ac_t""no" 1>&6
6939 for ac_func in XRegisterIMInstantiateCallback
6941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6942 echo "configure:6943: checking for $ac_func" >&5
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6947 /* System header to define __stub macros and hopefully few prototypes,
6948 which can conflict with char $ac_func(); below. */
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6957 /* The GNU C library defines this for functions which it implements
6958 to always fail with ENOSYS. Some functions are actually named
6959 something starting with __ and the normal name is an alias. */
6960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970 eval "ac_cv_func_$ac_func=yes"
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6975 eval "ac_cv_func_$ac_func=no"
6979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6980 echo "$ac_t""yes" 1>&6
6981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6982 { test "$extra_verbose" = "yes" && cat << EOF
6983 Defining $ac_tr_func
6985 cat >> confdefs.h <<EOF
6986 #define $ac_tr_func 1
6991 echo "$ac_t""no" 1>&6
6995 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6996 echo "configure:6997: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7001 #define NeedFunctionPrototypes 1
7002 #include <X11/Xlib.h>
7003 extern Bool XRegisterIMInstantiateCallback(
7004 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
7010 if { (eval echo configure:7011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7012 echo "$ac_t""yes" 1>&6
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 echo "$ac_t""no" 1>&6
7018 { test "$extra_verbose" = "yes" && cat << \EOF
7019 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
7021 cat >> confdefs.h <<\EOF
7022 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
7029 test -z "$with_xmu" && {
7030 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7031 echo "configure:7032: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7032 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7034 xe_check_libs=" -lXmu "
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7038 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7041 char XmuReadBitmapDataFromFile();
7044 XmuReadBitmapDataFromFile()
7047 if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049 eval "ac_cv_lib_$ac_lib_var=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 eval "ac_cv_lib_$ac_lib_var=no"
7059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7060 echo "$ac_t""yes" 1>&6
7063 echo "$ac_t""no" 1>&6
7068 if test "$with_xmu" = "no"; then
7069 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
7070 echo " xemacs will be linked with \"xmu.o\""
7073 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
7074 { test "$extra_verbose" = "yes" && cat << \EOF
7077 cat >> confdefs.h <<\EOF
7085 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7086 echo "configure:7087: checking for main in -lXbsd" >&5
7087 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7089 xe_check_libs=" -lXbsd "
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7100 eval "ac_cv_lib_$ac_lib_var=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 eval "ac_cv_lib_$ac_lib_var=no"
7110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7111 echo "$ac_t""yes" 1>&6
7112 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
7114 echo "$ac_t""no" 1>&6
7119 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
7120 if test "$GCC" = "yes"; then
7121 echo $ac_n "checking for name of AIX gcc threads option""... $ac_c" 1>&6
7122 echo "configure:7123: checking for name of AIX gcc threads option" >&5
7123 case `$CC -v --help 2>&1` in
7124 *-mthreads*) aix_threads=-mthreads ;;
7125 *) aix_threads=-pthread ;;
7127 echo "$ac_t""$aix_threads" 1>&6
7128 X_CFLAGS="$aix_threads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$X_CFLAGS"; fi
7129 libs_x="$aix_threads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$aix_threads\" to \$libs_x"; fi
7131 case "$CC" in *_r) : ;;
7135 echo $ac_n "checking size of short""... $ac_c" 1>&6
7136 echo "configure:7137: checking size of short" >&5
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7144 FILE *f=fopen("conftestval", "w");
7146 fprintf(f, "%d\n", sizeof(short));
7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7152 ac_cv_sizeof_short=`cat conftestval`
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7158 ac_cv_sizeof_short=0
7161 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7162 { test "$extra_verbose" = "yes" && cat << EOF
7163 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
7165 cat >> confdefs.h <<EOF
7166 #define SIZEOF_SHORT $ac_cv_sizeof_short
7171 test "$ac_cv_sizeof_short" = 0 && CC="$xe_save_CC" ;;
7177 if test "$with_msw" != "no"; then
7178 echo "checking for MS-Windows" 1>&6
7179 echo "configure:7180: checking for MS-Windows" >&5
7181 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7182 echo "configure:7183: checking for main in -lgdi32" >&5
7183 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7185 xe_check_libs=" -lgdi32 "
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_lib_$ac_lib_var=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_lib_$ac_lib_var=no"
7206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7207 echo "$ac_t""yes" 1>&6
7210 echo "$ac_t""no" 1>&6
7214 if test "$with_msw" = "yes"; then
7215 { test "$extra_verbose" = "yes" && cat << \EOF
7216 Defining HAVE_MS_WINDOWS
7218 cat >> confdefs.h <<\EOF
7219 #define HAVE_MS_WINDOWS 1
7224 if test "$with_netinstall" = "yes"; then
7225 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
7226 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7227 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7230 install_pp="$blddir/lib-src/installexe.sh"
7231 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
7232 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
7233 if test "$window_system" != x11; then
7235 test "$with_scrollbars" != "no" && with_scrollbars=msw \
7236 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7237 echo " xemacs will be linked with \"scrollbar-msw.o\""
7239 test "$with_menubars" != "no" && with_menubars=msw \
7240 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7241 echo " xemacs will be linked with \"menubar-msw.o\""
7243 test "$with_toolbars" != "no" && with_toolbars=msw \
7244 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7245 echo " xemacs will be linked with \"toolbar-msw.o\""
7247 test "$with_dialogs" != "no" && with_dialogs=msw \
7248 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7249 echo " xemacs will be linked with \"dialog-msw.o\""
7251 test "$with_widgets" != "no" && with_widgets=msw
7253 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
7254 echo " xemacs will be linked with \"scrollbar-msw.o\""
7256 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
7257 echo " xemacs will be linked with \"menubar-msw.o\""
7259 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
7260 echo " xemacs will be linked with \"toolbar-msw.o\""
7262 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7263 echo " xemacs will be linked with \"dialog-msw.o\""
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7270 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7274 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7275 Defining HAVE_MSG_SELECT
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_MSG_SELECT 1
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7288 with_file_coding=yes
7289 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
7290 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\""
7297 test -z "$window_system" && window_system="none"
7299 if test "$window_system" = "none"; then
7300 for feature in menubars scrollbars toolbars dialogs dragndrop xface
7302 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7303 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
7305 eval "with_${feature}=no"
7308 test -z "$with_toolbars" && with_toolbars=yes
7311 if test "$with_msw" != "yes"; then
7312 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
7314 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7315 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
7317 eval "with_${feature}=no"
7323 if test "$with_x11" != "yes"; then
7324 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
7326 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7327 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
7329 eval "with_${feature}=no"
7333 if test "$with_x11" = "yes"; then
7334 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7335 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7336 echo "configure:7337: checking for X11/extensions/shape.h" >&5
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 #include <X11/extensions/shape.h>
7343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7344 { (eval echo configure:7345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7346 if test -z "$ac_err"; then
7348 eval "ac_cv_header_$ac_safe=yes"
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7354 eval "ac_cv_header_$ac_safe=no"
7357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7358 echo "$ac_t""yes" 1>&6
7360 { test "$extra_verbose" = "yes" && cat << \EOF
7361 Defining HAVE_BALLOON_HELP
7363 cat >> confdefs.h <<\EOF
7364 #define HAVE_BALLOON_HELP 1
7368 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
7369 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
7372 echo "$ac_t""no" 1>&6
7379 case "$window_system" in
7380 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
7381 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7384 test "$with_gnome" = "yes" && echo " Using GNOME."
7385 test "$with_gnome" = "no" && echo " Using GTK."
7387 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
7390 case "$x_libraries" in *X11R4* )
7391 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7392 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7395 echo "checking for WM_COMMAND option" 1>&6
7396 echo "configure:7397: checking for WM_COMMAND option" >&5;
7397 if test "$with_wmcommand" != "no"; then
7398 { test "$extra_verbose" = "yes" && cat << \EOF
7399 Defining HAVE_WMCOMMAND
7401 cat >> confdefs.h <<\EOF
7402 #define HAVE_WMCOMMAND 1
7408 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7409 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7410 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7411 echo "configure:7412: checking for X11/Xauth.h" >&5
7413 cat > conftest.$ac_ext <<EOF
7414 #line 7415 "configure"
7415 #include "confdefs.h"
7416 #include <X11/Xauth.h>
7418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7419 { (eval echo configure:7420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7421 if test -z "$ac_err"; then
7423 eval "ac_cv_header_$ac_safe=yes"
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7429 eval "ac_cv_header_$ac_safe=no"
7432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7436 echo "$ac_t""no" 1>&6
7440 test -z "$with_xauth" && {
7441 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7442 echo "configure:7443: checking for XauGetAuthByAddr in -lXau" >&5
7443 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7445 xe_check_libs=" -lXau "
7446 cat > conftest.$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char XauGetAuthByAddr();
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 eval "ac_cv_lib_$ac_lib_var=yes"
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 eval "ac_cv_lib_$ac_lib_var=no"
7470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7471 echo "$ac_t""yes" 1>&6
7474 echo "$ac_t""no" 1>&6
7479 test -z "$with_xauth" && with_xauth=yes
7480 if test "$with_xauth" = "yes"; then
7481 { test "$extra_verbose" = "yes" && cat << \EOF
7484 cat >> confdefs.h <<\EOF
7485 #define HAVE_XAUTH 1
7491 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
7499 if test "$with_tooltalk" != "no" ; then
7500 for dir in "" "Tt/" "desktop/" ; do
7501 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7502 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7503 echo "configure:7504: checking for ${dir}tt_c.h" >&5
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 #include <${dir}tt_c.h>
7510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7511 { (eval echo configure:7512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7513 if test -z "$ac_err"; then
7515 eval "ac_cv_header_$ac_safe=yes"
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 eval "ac_cv_header_$ac_safe=no"
7524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7526 tt_c_h_file="${dir}tt_c.h"; break
7528 echo "$ac_t""no" 1>&6
7532 if test -z "$tt_c_h_file"; then
7533 if test "$with_tooltalk" = "yes"; then
7534 (echo "$progname: Usage error:"
7535 echo " " "Unable to find required tooltalk header files."
7536 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7541 if test "$with_tooltalk" != "no" ; then
7542 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7544 xe_msg_checking="for tt_message_create in -ltt"
7545 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7546 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7547 echo "configure:7548: checking "$xe_msg_checking"" >&5
7548 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7550 xe_check_libs=" -ltt $extra_libs"
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* Override any gcc2 internal prototype to avoid an error. */
7555 /* We use char because int might match the return type of a gcc2
7556 builtin and then its argument prototype would still apply. */
7557 char tt_message_create();
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7565 eval "ac_cv_lib_$ac_lib_var=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7570 eval "ac_cv_lib_$ac_lib_var=no"
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7576 echo "$ac_t""yes" 1>&6
7577 tt_libs="-ltt $extra_libs"; break
7579 echo "$ac_t""no" 1>&6
7585 if test -z "$tt_libs"; then
7586 if test "$with_tooltalk" = "yes"; then
7587 (echo "$progname: Usage error:"
7588 echo " " "Unable to find required tooltalk libraries."
7589 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
7594 test -z "$with_tooltalk" && with_tooltalk=yes
7595 if test "$with_tooltalk" = "yes"; then
7596 { test "$extra_verbose" = "yes" && cat << \EOF
7599 cat >> confdefs.h <<\EOF
7604 { test "$extra_verbose" = "yes" && cat << EOF
7605 Defining TT_C_H_FILE = "$tt_c_h_file"
7607 cat >> confdefs.h <<EOF
7608 #define TT_C_H_FILE "$tt_c_h_file"
7612 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7613 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
7614 echo " xemacs will be linked with \"tooltalk.o\""
7618 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7619 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7620 echo "configure:7621: checking for Dt/Dt.h" >&5
7622 cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7628 { (eval echo configure:7629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7630 if test -z "$ac_err"; then
7632 eval "ac_cv_header_$ac_safe=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 eval "ac_cv_header_$ac_safe=no"
7641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7645 echo "$ac_t""no" 1>&6
7649 test -z "$with_cde" && {
7650 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7651 echo "configure:7652: checking for DtDndDragStart in -lDtSvc" >&5
7652 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7654 xe_check_libs=" -lDtSvc "
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7661 char DtDndDragStart();
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7669 eval "ac_cv_lib_$ac_lib_var=yes"
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 eval "ac_cv_lib_$ac_lib_var=no"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7680 echo "$ac_t""yes" 1>&6
7683 echo "$ac_t""no" 1>&6
7688 test -z "$with_cde" && with_cde=yes
7689 if test "$with_dragndrop" = no; then
7690 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
7693 if test "$with_cde" = "yes" ; then
7694 { test "$extra_verbose" = "yes" && cat << \EOF
7697 cat >> confdefs.h <<\EOF
7702 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
7703 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
7704 with_tooltalk=yes # CDE requires Tooltalk
7705 need_motif=yes # CDE requires Motif
7708 test "$window_system" != "x11" && with_offix=no
7709 if test "$with_xmu" != yes -a "$with_x11" = yes; then
7710 echo "configure: warning: No OffiX without real Xmu support" 1>&2
7713 if test "$with_dragndrop" = no; then
7714 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
7717 if test "$with_cde" = yes; then
7718 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
7721 test -z "$with_offix" && with_offix=no
7722 if test "$with_offix" = "yes"; then
7723 { test "$extra_verbose" = "yes" && cat << \EOF
7724 Defining HAVE_OFFIX_DND
7726 cat >> confdefs.h <<\EOF
7727 #define HAVE_OFFIX_DND 1
7731 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7732 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7734 if test "$with_gtk" = "yes"; then
7735 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7738 if test "$with_dragndrop" != "no" ; then
7739 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7740 echo "configure:7741: checking if drag and drop API is needed" >&5
7741 if test -n "$dragndrop_proto" ; then
7743 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7744 { test "$extra_verbose" = "yes" && cat << \EOF
7745 Defining HAVE_DRAGNDROP
7747 cat >> confdefs.h <<\EOF
7748 #define HAVE_DRAGNDROP 1
7752 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
7755 echo "$ac_t""no" 1>&6
7759 echo "checking for LDAP" 1>&6
7760 echo "configure:7761: checking for LDAP" >&5
7761 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7762 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7763 echo "configure:7764: checking for ldap.h" >&5
7765 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7771 { (eval echo configure:7772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7773 if test -z "$ac_err"; then
7775 eval "ac_cv_header_$ac_safe=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_header_$ac_safe=no"
7784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7788 echo "$ac_t""no" 1>&6
7792 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7793 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7794 echo "configure:7795: checking for lber.h" >&5
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7802 { (eval echo configure:7803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7804 if test -z "$ac_err"; then
7806 eval "ac_cv_header_$ac_safe=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 eval "ac_cv_header_$ac_safe=no"
7815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7819 echo "$ac_t""no" 1>&6
7823 if test "$with_ldap" != "no"; then
7825 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7826 echo "configure:7827: checking for ldap_search in -lldap" >&5
7827 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7829 xe_check_libs=" -lldap "
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844 eval "ac_cv_lib_$ac_lib_var=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 eval "ac_cv_lib_$ac_lib_var=no"
7854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7855 echo "$ac_t""yes" 1>&6
7856 with_ldap_nolber=yes
7858 echo "$ac_t""no" 1>&6
7863 test "$with_ldap_nolber" = "no" && {
7864 xe_msg_checking="for ldap_open in -lldap"
7865 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7866 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7867 echo "configure:7868: checking "$xe_msg_checking"" >&5
7868 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7870 xe_check_libs=" -lldap -llber"
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 /* Override any gcc2 internal prototype to avoid an error. */
7875 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7883 if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7885 eval "ac_cv_lib_$ac_lib_var=yes"
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7890 eval "ac_cv_lib_$ac_lib_var=no"
7895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7896 echo "$ac_t""yes" 1>&6
7899 echo "$ac_t""no" 1>&6
7904 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7905 xe_msg_checking="for ldap_open in -lldap"
7906 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7907 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7908 echo "configure:7909: checking "$xe_msg_checking"" >&5
7909 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7911 xe_check_libs=" -lldap -llber -lkrb"
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7926 eval "ac_cv_lib_$ac_lib_var=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_lib_$ac_lib_var=no"
7936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7937 echo "$ac_t""yes" 1>&6
7940 echo "$ac_t""no" 1>&6
7945 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7946 xe_msg_checking="for ldap_open in -lldap"
7947 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7948 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7949 echo "configure:7950: checking "$xe_msg_checking"" >&5
7950 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7952 xe_check_libs=" -lldap -llber -lkrb -ldes"
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 /* Override any gcc2 internal prototype to avoid an error. */
7957 /* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7965 if { (eval echo configure:7966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7967 eval "ac_cv_lib_$ac_lib_var=yes"
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7972 eval "ac_cv_lib_$ac_lib_var=no"
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7978 echo "$ac_t""yes" 1>&6
7979 with_ldap_krbdes=yes
7981 echo "$ac_t""no" 1>&6
7986 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
7988 if test "$with_ldap" = "yes"; then
7989 { test "$extra_verbose" = "yes" && cat << \EOF
7992 cat >> confdefs.h <<\EOF
7997 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
7998 echo " xemacs will be linked with \"eldap.o\""
8000 if test "$with_ldap_nolber" = "yes" ; then
8001 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8003 if test "$with_ldap_krb" = "yes" ; then
8004 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8006 if test "$with_ldap_krbdes" = "yes" ; then
8007 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
8008 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
8010 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
8011 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
8013 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_func" >&5
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func(); below. */
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8031 /* The GNU C library defines this for functions which it implements
8032 to always fail with ENOSYS. Some functions are actually named
8033 something starting with __ and the normal name is an alias. */
8034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8044 eval "ac_cv_func_$ac_func=yes"
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8049 eval "ac_cv_func_$ac_func=no"
8053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8056 { test "$extra_verbose" = "yes" && cat << EOF
8057 Defining $ac_tr_func
8059 cat >> confdefs.h <<EOF
8060 #define $ac_tr_func 1
8065 echo "$ac_t""no" 1>&6
8071 if test "$with_postgresql" != "no"; then
8072 echo "checking for PostgreSQL" 1>&6
8073 echo "configure:8074: checking for PostgreSQL" >&5
8075 for header_dir in "" "pgsql/" "postgresql/"; do
8076 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8077 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8078 echo "configure:8079: checking for ${header_dir}libpq-fe.h" >&5
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include <${header_dir}libpq-fe.h>
8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8088 if test -z "$ac_err"; then
8090 eval "ac_cv_header_$ac_safe=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_header_$ac_safe=no"
8099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 libpq_fe_h_file=${header_dir}libpq-fe.h; break
8103 echo "$ac_t""no" 1>&6
8108 test -n "$libpq_fe_h_file" && {
8109 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8110 echo "configure:8111: checking for PQconnectdb in -lpq" >&5
8111 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8113 xe_check_libs=" -lpq "
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 eval "ac_cv_lib_$ac_lib_var=yes"
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 eval "ac_cv_lib_$ac_lib_var=no"
8138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8139 echo "$ac_t""yes" 1>&6
8142 echo "$ac_t""no" 1>&6
8147 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
8149 { test "$extra_verbose" = "yes" && cat << \EOF
8150 Defining HAVE_POSTGRESQL
8152 cat >> confdefs.h <<\EOF
8153 #define HAVE_POSTGRESQL 1
8158 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8159 echo "configure:8160: checking for PQconnectStart in -lpq" >&5
8160 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8162 xe_check_libs=" -lpq "
8163 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8166 /* Override any gcc2 internal prototype to avoid an error. */
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char PQconnectStart();
8175 if { (eval echo configure:8176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8177 eval "ac_cv_lib_$ac_lib_var=yes"
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 eval "ac_cv_lib_$ac_lib_var=no"
8187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8188 echo "$ac_t""yes" 1>&6
8189 with_postgresqlv7=yes;
8190 { test "$extra_verbose" = "yes" && cat << \EOF
8191 Defining HAVE_POSTGRESQLV7
8193 cat >> confdefs.h <<\EOF
8194 #define HAVE_POSTGRESQLV7 1
8199 echo "$ac_t""no" 1>&6
8203 { test "$extra_verbose" = "yes" && cat << EOF
8204 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
8206 cat >> confdefs.h <<EOF
8207 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
8211 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
8212 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
8213 echo " xemacs will be linked with \"postgresql.o\""
8215 elif test "$with_postgresql" = "yes"; then
8216 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8221 if test "$window_system" != "none"; then
8222 echo "checking for graphics libraries" 1>&6
8223 echo "configure:8224: checking for graphics libraries" >&5
8229 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
8230 cygwin_top=`eval "dirname ${cygwin_top}"`;
8231 cygwin_top="${cygwin_top}/..";
8232 case "$window_system" in
8234 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
8235 incpath_xpm="-I${cygwin_top}/include/noX"
8245 if test -z "$with_xpm"; then
8246 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8247 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8248 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8249 echo "configure:8250: checking for Xpm - no older than 3.4f" >&5
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8255 #include <X11/xpm.h>
8256 int main(int c, char **v) {
8258 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8259 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8263 ./conftest dummy_arg; xpm_status=$?;
8264 if test "$xpm_status" = "0"; then
8268 if test "$xpm_status" = "1"; then
8269 xpm_problem="Xpm library version and header file version don't match!"
8270 elif test "$xpm_status" = "2"; then
8271 xpm_problem="Xpm library version is too old!"
8273 xpm_problem="Internal xpm detection logic error!"
8276 *** WARNING *** $xpm_problem
8277 I'm not touching that with a 10-foot pole!
8278 If you really want to use the installed version of Xpm, rerun
8279 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8290 echo "$ac_t""$with_xpm" 1>&6
8292 if test "$with_xpm" = "yes"; then
8293 { test "$extra_verbose" = "yes" && cat << \EOF
8296 cat >> confdefs.h <<\EOF
8301 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8302 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8303 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8304 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8305 echo "configure:8306: checking for \"FOR_MSW\" xpm" >&5
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8312 XpmCreatePixmapFromData()
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8326 echo "$ac_t""$xpm_for_msw" 1>&6
8327 if test "$xpm_for_msw" = "yes"; then
8328 { test "$extra_verbose" = "yes" && cat << \EOF
8331 cat >> confdefs.h <<\EOF
8339 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8340 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8341 echo "configure:8342: checking for compface.h" >&5
8343 cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346 #include <compface.h>
8348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8349 { (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8351 if test -z "$ac_err"; then
8353 eval "ac_cv_header_$ac_safe=yes"
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8359 eval "ac_cv_header_$ac_safe=no"
8362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8366 echo "$ac_t""no" 1>&6
8370 test -z "$with_xface" && {
8371 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8372 echo "configure:8373: checking for UnGenFace in -lcompface" >&5
8373 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8375 xe_check_libs=" -lcompface "
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 eval "ac_cv_lib_$ac_lib_var=yes"
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 eval "ac_cv_lib_$ac_lib_var=no"
8400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8401 echo "$ac_t""yes" 1>&6
8404 echo "$ac_t""no" 1>&6
8409 test -z "$with_xface" && with_xface=yes
8410 if test "$with_xface" = "yes"; then
8411 { test "$extra_verbose" = "yes" && cat << \EOF
8414 cat >> confdefs.h <<\EOF
8415 #define HAVE_XFACE 1
8419 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
8422 if test "$with_gif" != "no"; then
8424 { test "$extra_verbose" = "yes" && cat << \EOF
8427 cat >> confdefs.h <<\EOF
8432 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
8433 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
8437 if test "$with_png $with_tiff" != "no no"; then
8439 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8440 echo "configure:8441: checking for inflate in -lc" >&5
8441 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8443 xe_check_libs=" -lc "
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8458 eval "ac_cv_lib_$ac_lib_var=yes"
8460 echo "configure: failed program was:" >&5
8461 cat conftest.$ac_ext >&5
8463 eval "ac_cv_lib_$ac_lib_var=no"
8468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8469 echo "$ac_t""yes" 1>&6
8472 echo "$ac_t""no" 1>&6
8474 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8475 echo "configure:8476: checking for inflate in -lz" >&5
8476 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8478 xe_check_libs=" -lz "
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8491 if { (eval echo configure:8492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493 eval "ac_cv_lib_$ac_lib_var=yes"
8495 echo "configure: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8498 eval "ac_cv_lib_$ac_lib_var=no"
8503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8504 echo "$ac_t""yes" 1>&6
8505 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8507 echo "$ac_t""no" 1>&6
8509 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8510 echo "configure:8511: checking for inflate in -lgz" >&5
8511 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8513 xe_check_libs=" -lgz "
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8517 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8528 eval "ac_cv_lib_$ac_lib_var=yes"
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 eval "ac_cv_lib_$ac_lib_var=no"
8538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8539 echo "$ac_t""yes" 1>&6
8540 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
8542 echo "$ac_t""no" 1>&6
8554 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8555 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8556 echo "configure:8557: checking for jpeglib.h" >&5
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <jpeglib.h>
8563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8564 { (eval echo configure:8565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8566 if test -z "$ac_err"; then
8568 eval "ac_cv_header_$ac_safe=yes"
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 eval "ac_cv_header_$ac_safe=no"
8577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8581 echo "$ac_t""no" 1>&6
8585 test -z "$with_jpeg" && {
8586 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8587 echo "configure:8588: checking for jpeg_destroy_decompress in -ljpeg" >&5
8588 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8590 xe_check_libs=" -ljpeg "
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597 char jpeg_destroy_decompress();
8600 jpeg_destroy_decompress()
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 eval "ac_cv_lib_$ac_lib_var=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_lib_$ac_lib_var=no"
8615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8616 echo "$ac_t""yes" 1>&6
8619 echo "$ac_t""no" 1>&6
8624 test -z "$with_jpeg" && with_jpeg=yes
8625 if test "$with_jpeg" = "yes"; then
8626 { test "$extra_verbose" = "yes" && cat << \EOF
8629 cat >> confdefs.h <<\EOF
8634 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8638 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8639 echo "configure:8640: checking for pow" >&5
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 /* System header to define __stub macros and hopefully few prototypes,
8645 which can conflict with char pow(); below. */
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8654 /* The GNU C library defines this for functions which it implements
8655 to always fail with ENOSYS. Some functions are actually named
8656 something starting with __ and the normal name is an alias. */
8657 #if defined (__stub_pow) || defined (__stub___pow)
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667 eval "ac_cv_func_pow=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_func_pow=no"
8676 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8680 echo "$ac_t""no" 1>&6
8684 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8685 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8686 echo "configure:8687: checking for png.h" >&5
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8694 { (eval echo configure:8695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8696 if test -z "$ac_err"; then
8698 eval "ac_cv_header_$ac_safe=yes"
8701 echo "configure: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8704 eval "ac_cv_header_$ac_safe=no"
8707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8711 echo "$ac_t""no" 1>&6
8715 test -z "$with_png" && {
8716 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8717 echo "configure:8718: checking for png_read_image in -lpng" >&5
8718 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8720 xe_check_libs=" -lpng "
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8727 char png_read_image();
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8735 eval "ac_cv_lib_$ac_lib_var=yes"
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 eval "ac_cv_lib_$ac_lib_var=no"
8745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8746 echo "$ac_t""yes" 1>&6
8749 echo "$ac_t""no" 1>&6
8754 if test -z "$with_png"; then
8755 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8756 echo "configure:8757: checking for workable png version information" >&5
8757 xe_check_libs="-lpng -lz"
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8762 int main(int c, char **v) {
8763 if (c == 1) return 0;
8764 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8765 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8767 if { (eval echo configure:8768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8769 ./conftest dummy_arg; png_status=$?;
8770 if test "$png_status" = "0"; then
8774 if test "$png_status" = "1"; then
8775 png_problem="PNG library version and header file don't match!"
8776 elif test "$png_status" = "2"; then
8777 png_problem="PNG library version too old (pre 1.0.2)!"
8780 *** WARNING *** $png_problem
8781 I'm not touching that with a 10-foot pole!
8782 If you really want to use the installed version of libPNG, rerun
8783 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
8787 echo "configure: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8794 echo "$ac_t""$with_png" 1>&6
8796 if test "$with_png" = "yes"; then
8797 { test "$extra_verbose" = "yes" && cat << \EOF
8800 cat >> confdefs.h <<\EOF
8805 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8808 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8809 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8810 echo "configure:8811: checking for tiffio.h" >&5
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8818 { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8820 if test -z "$ac_err"; then
8822 eval "ac_cv_header_$ac_safe=yes"
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 eval "ac_cv_header_$ac_safe=no"
8831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8832 echo "$ac_t""yes" 1>&6
8835 echo "$ac_t""no" 1>&6
8839 test -z "$with_tiff" && {
8840 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8841 echo "configure:8842: checking for TIFFClientOpen in -ltiff" >&5
8842 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8844 xe_check_libs=" -ltiff "
8845 cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure"
8847 #include "confdefs.h"
8848 /* Override any gcc2 internal prototype to avoid an error. */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851 char TIFFClientOpen();
8857 if { (eval echo configure:8858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8859 eval "ac_cv_lib_$ac_lib_var=yes"
8861 echo "configure: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8864 eval "ac_cv_lib_$ac_lib_var=no"
8869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8870 echo "$ac_t""yes" 1>&6
8873 echo "$ac_t""no" 1>&6
8878 test -z "$with_tiff" && with_tiff=yes
8879 if test "$with_tiff" = "yes"; then
8880 { test "$extra_verbose" = "yes" && cat << \EOF
8883 cat >> confdefs.h <<\EOF
8888 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8893 if test "$with_gtk" = "yes"; then
8894 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8895 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8896 echo "configure:8897: checking for compface.h" >&5
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <compface.h>
8903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8904 { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906 if test -z "$ac_err"; then
8908 eval "ac_cv_header_$ac_safe=yes"
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 eval "ac_cv_header_$ac_safe=no"
8917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8918 echo "$ac_t""yes" 1>&6
8921 echo "$ac_t""no" 1>&6
8925 test -z "$with_xface" && {
8926 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8927 echo "configure:8928: checking for UnGenFace in -lcompface" >&5
8928 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8930 xe_check_libs=" -lcompface "
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8934 /* Override any gcc2 internal prototype to avoid an error. */
8935 /* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8943 if { (eval echo configure:8944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8945 eval "ac_cv_lib_$ac_lib_var=yes"
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 eval "ac_cv_lib_$ac_lib_var=no"
8955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8956 echo "$ac_t""yes" 1>&6
8959 echo "$ac_t""no" 1>&6
8964 test -z "$with_xface" && with_xface=yes
8965 if test "$with_xface" = "yes"; then
8966 { test "$extra_verbose" = "yes" && cat << \EOF
8969 cat >> confdefs.h <<\EOF
8970 #define HAVE_XFACE 1
8974 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8980 if test "$with_x11" = "yes"; then
8981 echo "checking for X11 graphics libraries" 1>&6
8982 echo "configure:8983: checking for X11 graphics libraries" >&5
8985 if test "$with_x11" = "yes"; then
8986 echo "checking for the Athena widgets" 1>&6
8987 echo "configure:8988: checking for the Athena widgets" >&5
8989 case "$with_athena" in
8990 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8991 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8992 "next") athena_variant=neXtaw athena_3d=yes ;;
8993 "95") athena_variant=Xaw95 athena_3d=yes ;;
8994 "xpm") athena_variant=XawXpm athena_3d=yes ;;
8995 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
8998 athena_3d_function=Xaw3dComputeBottomShadowRGB
9000 if test "$athena_3d" = "no"; then
9002 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9003 echo "configure:9004: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9004 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9006 xe_check_libs=" -l$athena_variant "
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9013 char XawScrollbarSetThumb();
9016 XawScrollbarSetThumb()
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 eval "ac_cv_lib_$ac_lib_var=yes"
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 eval "ac_cv_lib_$ac_lib_var=no"
9031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9032 echo "$ac_t""yes" 1>&6
9034 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9035 echo "configure:9036: checking for $athena_3d_function in -l$athena_variant" >&5
9036 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9038 xe_check_libs=" -l$athena_variant "
9039 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9042 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char $athena_3d_function();
9048 $athena_3d_function()
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053 eval "ac_cv_lib_$ac_lib_var=yes"
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 eval "ac_cv_lib_$ac_lib_var=no"
9063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9064 echo "$ac_t""yes" 1>&6
9065 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
9067 echo "$ac_t""no" 1>&6
9068 athena_lib=$athena_variant
9074 echo "$ac_t""no" 1>&6
9075 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
9081 echo $ac_n "checking for $athena_3d_function in -l$athena_variant""... $ac_c" 1>&6
9082 echo "configure:9083: checking for $athena_3d_function in -l$athena_variant" >&5
9083 ac_lib_var=`echo $athena_variant'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9085 xe_check_libs=" -l$athena_variant "
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9092 char $athena_3d_function();
9095 $athena_3d_function()
9098 if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9100 eval "ac_cv_lib_$ac_lib_var=yes"
9102 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9105 eval "ac_cv_lib_$ac_lib_var=no"
9110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9111 echo "$ac_t""yes" 1>&6
9112 athena_lib=$athena_variant
9114 echo "$ac_t""no" 1>&6
9115 echo $ac_n "checking for $athena_3d_function in -lXaw""... $ac_c" 1>&6
9116 echo "configure:9117: checking for $athena_3d_function in -lXaw" >&5
9117 ac_lib_var=`echo Xaw'_'$athena_3d_function | sed 'y%./+-%__p_%'`
9119 xe_check_libs=" -lXaw "
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9122 "configure"
9122 #include "confdefs.h"
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char $athena_3d_function();
9129 $athena_3d_function()
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 eval "ac_cv_lib_$ac_lib_var=yes"
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 eval "ac_cv_lib_$ac_lib_var=no"
9144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9145 echo "$ac_t""yes" 1>&6
9147 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
9150 echo "$ac_t""no" 1>&6
9151 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
9160 if test "$athena_3d" = "no"; then
9161 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9162 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9163 echo "configure:9164: checking for X11/Xaw/ThreeD.h" >&5
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <X11/Xaw/ThreeD.h>
9170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9171 { (eval echo configure:9172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9173 if test -z "$ac_err"; then
9175 eval "ac_cv_header_$ac_safe=yes"
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 eval "ac_cv_header_$ac_safe=no"
9184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9185 echo "$ac_t""yes" 1>&6
9186 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9188 echo "$ac_t""no" 1>&6
9189 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9190 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9191 echo "configure:9192: checking for X11/Xaw/XawInit.h" >&5
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 #include <X11/Xaw/XawInit.h>
9198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9199 { (eval echo configure:9200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9201 if test -z "$ac_err"; then
9203 eval "ac_cv_header_$ac_safe=yes"
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 eval "ac_cv_header_$ac_safe=no"
9212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 athena_h_path=X11/Xaw
9216 echo "$ac_t""no" 1>&6
9217 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
9223 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9224 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9225 echo "configure:9226: checking for X11/$athena_variant/XawInit.h" >&5
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 #include <X11/$athena_variant/XawInit.h>
9232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9233 { (eval echo configure:9234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9235 if test -z "$ac_err"; then
9237 eval "ac_cv_header_$ac_safe=yes"
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 eval "ac_cv_header_$ac_safe=no"
9246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9249 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9250 echo "configure:9251: checking for X11/$athena_variant/ThreeD.h" >&5
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <X11/$athena_variant/ThreeD.h>
9257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9258 { (eval echo configure:9259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9260 if test -z "$ac_err"; then
9262 eval "ac_cv_header_$ac_safe=yes"
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9268 eval "ac_cv_header_$ac_safe=no"
9271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9272 echo "$ac_t""yes" 1>&6
9273 athena_h_path=X11/$athena_variant
9275 echo "$ac_t""no" 1>&6
9279 echo "$ac_t""no" 1>&6
9283 if test -z "$athena_h_path"; then
9284 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9285 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9286 echo "configure:9287: checking for $athena_variant/XawInit.h" >&5
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 #include <$athena_variant/XawInit.h>
9293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9294 { (eval echo configure:9295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9296 if test -z "$ac_err"; then
9298 eval "ac_cv_header_$ac_safe=yes"
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 eval "ac_cv_header_$ac_safe=no"
9307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9308 echo "$ac_t""yes" 1>&6
9309 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9310 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9311 echo "configure:9312: checking for $athena_variant/ThreeD.h" >&5
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9316 #include <$athena_variant/ThreeD.h>
9318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9319 { (eval echo configure:9320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9321 if test -z "$ac_err"; then
9323 eval "ac_cv_header_$ac_safe=yes"
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9329 eval "ac_cv_header_$ac_safe=no"
9332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9333 echo "$ac_t""yes" 1>&6
9334 athena_h_path=$athena_variant
9336 echo "$ac_t""no" 1>&6
9340 echo "$ac_t""no" 1>&6
9345 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9346 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9347 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9348 echo "configure:9349: checking for X11/Xaw3d/XawInit.h" >&5
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9353 #include <X11/Xaw3d/XawInit.h>
9355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9356 { (eval echo configure:9357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9358 if test -z "$ac_err"; then
9360 eval "ac_cv_header_$ac_safe=yes"
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9366 eval "ac_cv_header_$ac_safe=no"
9369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9372 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9373 echo "configure:9374: checking for X11/Xaw3d/ThreeD.h" >&5
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 #include <X11/Xaw3d/ThreeD.h>
9380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9381 { (eval echo configure:9382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9383 if test -z "$ac_err"; then
9385 eval "ac_cv_header_$ac_safe=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 eval "ac_cv_header_$ac_safe=no"
9394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9397 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
9398 athena_h_path=X11/Xaw3d
9401 echo "$ac_t""no" 1>&6
9405 echo "$ac_t""no" 1>&6
9410 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9411 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9412 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9413 echo "configure:9414: checking for Xaw3d/XawInit.h" >&5
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 #include <Xaw3d/XawInit.h>
9420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9421 { (eval echo configure:9422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9423 if test -z "$ac_err"; then
9425 eval "ac_cv_header_$ac_safe=yes"
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 eval "ac_cv_header_$ac_safe=no"
9434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9436 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9437 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9438 echo "configure:9439: checking for Xaw3d/ThreeD.h" >&5
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 #include <Xaw3d/ThreeD.h>
9445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9446 { (eval echo configure:9447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9448 if test -z "$ac_err"; then
9450 eval "ac_cv_header_$ac_safe=yes"
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 eval "ac_cv_header_$ac_safe=no"
9459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9460 echo "$ac_t""yes" 1>&6
9462 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
9466 echo "$ac_t""no" 1>&6
9470 echo "$ac_t""no" 1>&6
9475 if test -z "$athena_h_path"; then
9476 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9477 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9478 echo "configure:9479: checking for X11/Xaw/ThreeD.h" >&5
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 #include <X11/Xaw/ThreeD.h>
9485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9486 { (eval echo configure:9487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9488 if test -z "$ac_err"; then
9490 eval "ac_cv_header_$ac_safe=yes"
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 eval "ac_cv_header_$ac_safe=no"
9499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9502 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
9503 athena_h_path=X11/Xaw
9506 echo "$ac_t""no" 1>&6
9507 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
9513 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9522 if test "$with_x11" = "yes"; then
9523 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9524 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9525 echo "configure:9526: checking for Xm/Xm.h" >&5
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9533 { (eval echo configure:9534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9535 if test -z "$ac_err"; then
9537 eval "ac_cv_header_$ac_safe=yes"
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 eval "ac_cv_header_$ac_safe=no"
9546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9547 echo "$ac_t""yes" 1>&6
9549 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9550 echo "configure:9551: checking for XmStringFree in -lXm" >&5
9551 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9553 xe_check_libs=" -lXm "
9554 cat > conftest.$ac_ext <<EOF
9555 #line 9556 "configure"
9556 #include "confdefs.h"
9557 /* Override any gcc2 internal prototype to avoid an error. */
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char XmStringFree();
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 eval "ac_cv_lib_$ac_lib_var=yes"
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 eval "ac_cv_lib_$ac_lib_var=no"
9578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9579 echo "$ac_t""yes" 1>&6
9582 echo "$ac_t""no" 1>&6
9588 echo "$ac_t""no" 1>&6
9593 if test "$have_motif" = "yes"; then
9594 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9595 echo "configure:9596: checking for Lesstif" >&5
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9600 #ifdef LESSTIF_VERSION
9605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9606 egrep "yes" >/dev/null 2>&1; then
9615 echo "$ac_t""$have_lesstif" 1>&6
9620 case "$with_menubars" in "" | "yes" | "athena" )
9621 with_menubars="lucid" ;;
9623 case "$with_dialogs" in "" | "yes" | "lucid" )
9624 if test "$have_motif" = "yes"; then with_dialogs="motif"
9625 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
9626 else with_dialogs=no
9629 case "$with_scrollbars" in "" | "yes" )
9630 with_scrollbars="lucid" ;;
9632 case "$with_widgets" in
9634 if test "$have_motif" = "yes"; then with_widgets="motif"
9635 elif test "$have_xaw" = "yes"; then with_widgets="athena"
9636 else with_widgets=no
9642 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
9644 case "$all_widgets" in
9646 if test "$have_xaw" != "yes"; then
9647 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9650 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9652 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9654 { test "$extra_verbose" = "yes" && cat << EOF
9655 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
9657 cat >> confdefs.h <<EOF
9658 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
9662 { test "$extra_verbose" = "yes" && cat << EOF
9663 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
9665 cat >> confdefs.h <<EOF
9666 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
9670 { test "$extra_verbose" = "yes" && cat << EOF
9671 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
9673 cat >> confdefs.h <<EOF
9674 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
9678 { test "$extra_verbose" = "yes" && cat << EOF
9679 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
9681 cat >> confdefs.h <<EOF
9682 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
9686 { test "$extra_verbose" = "yes" && cat << EOF
9687 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
9689 cat >> confdefs.h <<EOF
9690 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
9694 { test "$extra_verbose" = "yes" && cat << EOF
9695 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
9697 cat >> confdefs.h <<EOF
9698 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
9702 { test "$extra_verbose" = "yes" && cat << EOF
9703 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
9705 cat >> confdefs.h <<EOF
9706 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
9710 { test "$extra_verbose" = "yes" && cat << EOF
9711 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
9713 cat >> confdefs.h <<EOF
9714 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
9718 { test "$extra_verbose" = "yes" && cat << EOF
9719 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
9721 cat >> confdefs.h <<EOF
9722 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
9726 { test "$extra_verbose" = "yes" && cat << EOF
9727 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
9729 cat >> confdefs.h <<EOF
9730 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
9735 { test "$extra_verbose" = "yes" && cat << \EOF
9736 Defining LWLIB_USES_ATHENA
9738 cat >> confdefs.h <<\EOF
9739 #define LWLIB_USES_ATHENA 1
9743 { test "$extra_verbose" = "yes" && cat << \EOF
9744 Defining NEED_ATHENA
9746 cat >> confdefs.h <<\EOF
9747 #define NEED_ATHENA 1
9753 if test "$athena_3d" = "yes"; then
9754 { test "$extra_verbose" = "yes" && cat << \EOF
9755 Defining HAVE_ATHENA_3D
9757 cat >> confdefs.h <<\EOF
9758 #define HAVE_ATHENA_3D 1
9766 case "$all_widgets" in *motif* )
9767 { test "$extra_verbose" = "yes" && cat << \EOF
9768 Defining LWLIB_USES_MOTIF
9770 cat >> confdefs.h <<\EOF
9771 #define LWLIB_USES_MOTIF 1
9775 { test "$extra_verbose" = "yes" && cat << \EOF
9778 cat >> confdefs.h <<\EOF
9779 #define NEED_MOTIF 1
9783 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
9787 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9788 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
9789 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
9790 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9791 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
9792 case "$with_widgets" in athena* )
9793 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;;
9795 case "$all_widgets" in *lucid* )
9796 { test "$extra_verbose" = "yes" && cat << \EOF
9799 cat >> confdefs.h <<\EOF
9800 #define NEED_LUCID 1
9804 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
9809 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9810 Defining LWLIB_SCROLLBARS_ATHENA
9812 cat >> confdefs.h <<\EOF
9813 #define LWLIB_SCROLLBARS_ATHENA 1
9817 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9818 Defining LWLIB_DIALOGS_ATHENA
9820 cat >> confdefs.h <<\EOF
9821 #define LWLIB_DIALOGS_ATHENA 1
9826 if test "$athena_3d" = "yes"; then
9827 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9828 Defining LWLIB_SCROLLBARS_ATHENA3D
9830 cat >> confdefs.h <<\EOF
9831 #define LWLIB_SCROLLBARS_ATHENA3D 1
9835 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
9836 Defining LWLIB_DIALOGS_ATHENA3D
9838 cat >> confdefs.h <<\EOF
9839 #define LWLIB_DIALOGS_ATHENA3D 1
9845 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
9846 Defining LWLIB_WIDGETS_ATHENA
9848 cat >> confdefs.h <<\EOF
9849 #define LWLIB_WIDGETS_ATHENA 1
9853 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
9854 { test "$extra_verbose" = "yes" && cat << \EOF
9855 Defining LWLIB_TABS_LUCID
9857 cat >> confdefs.h <<\EOF
9858 #define LWLIB_TABS_LUCID 1
9863 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9864 Defining HAVE_MENUBARS
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_MENUBARS 1
9871 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9872 Defining HAVE_SCROLLBARS
9874 cat >> confdefs.h <<\EOF
9875 #define HAVE_SCROLLBARS 1
9879 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9880 Defining HAVE_DIALOGS
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_DIALOGS 1
9887 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9888 Defining HAVE_TOOLBARS
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_TOOLBARS 1
9895 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
9896 Defining HAVE_WIDGETS
9898 cat >> confdefs.h <<\EOF
9899 #define HAVE_WIDGETS 1
9904 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9905 Defining LWLIB_MENUBARS_LUCID
9907 cat >> confdefs.h <<\EOF
9908 #define LWLIB_MENUBARS_LUCID 1
9912 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
9913 Defining LWLIB_SCROLLBARS_LUCID
9915 cat >> confdefs.h <<\EOF
9916 #define LWLIB_SCROLLBARS_LUCID 1
9921 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9922 Defining LWLIB_MENUBARS_MOTIF
9924 cat >> confdefs.h <<\EOF
9925 #define LWLIB_MENUBARS_MOTIF 1
9929 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9930 Defining LWLIB_SCROLLBARS_MOTIF
9932 cat >> confdefs.h <<\EOF
9933 #define LWLIB_SCROLLBARS_MOTIF 1
9937 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9938 Defining LWLIB_DIALOGS_MOTIF
9940 cat >> confdefs.h <<\EOF
9941 #define LWLIB_DIALOGS_MOTIF 1
9945 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
9946 Defining LWLIB_WIDGETS_MOTIF
9948 cat >> confdefs.h <<\EOF
9949 #define LWLIB_WIDGETS_MOTIF 1
9954 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
9955 echo " xemacs will be linked with \"menubar.o\""
9957 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
9958 echo " xemacs will be linked with \"scrollbar.o\""
9960 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
9961 echo " xemacs will be linked with \"dialog.o\""
9963 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9964 echo " xemacs will be linked with \"toolbar.o\""
9967 if test "$with_gtk" = "yes"; then
9968 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9969 echo " xemacs will be linked with \"menubar-gtk.o\""
9971 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9972 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9974 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9975 echo " xemacs will be linked with \"dialog-gtk.o\""
9977 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9978 echo " xemacs will be linked with \"toolbar-gtk.o\""
9980 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9981 echo " xemacs will be linked with \"gui-gtk.o\""
9985 if test "$with_x11" = "yes"; then
9986 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9987 echo " xemacs will be linked with \"menubar-x.o\""
9989 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9990 echo " xemacs will be linked with \"scrollbar-x.o\""
9992 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
9993 echo " xemacs will be linked with \"dialog-x.o\""
9995 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
9996 echo " xemacs will be linked with \"toolbar-x.o\""
9998 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
9999 echo " xemacs will be linked with \"gui-x.o\""
10004 test -z "$with_mule" && with_mule=no
10005 test -z "$with_file_coding" && with_file_coding=no
10008 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
10009 { test "$extra_verbose" = "yes" && cat << \EOF
10010 Defining FILE_CODING
10012 cat >> confdefs.h <<\EOF
10013 #define FILE_CODING 1
10017 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
10018 echo " xemacs will be linked with \"file-coding.o\""
10022 if test "$with_mule" = "yes" ; then
10023 echo "checking for Mule-related features" 1>&6
10024 echo "configure:10025: checking for Mule-related features" >&5
10025 { test "$extra_verbose" = "yes" && cat << \EOF
10028 cat >> confdefs.h <<\EOF
10033 { test "$extra_verbose" = "yes" && cat << \EOF
10034 Defining FILE_CODING
10036 cat >> confdefs.h <<\EOF
10037 #define FILE_CODING 1
10041 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
10042 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
10045 for ac_hdr in libintl.h
10047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10049 echo "configure:10050: checking for $ac_hdr" >&5
10051 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10057 { (eval echo configure:10058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10059 if test -z "$ac_err"; then
10061 eval "ac_cv_header_$ac_safe=yes"
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10067 eval "ac_cv_header_$ac_safe=no"
10070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10071 echo "$ac_t""yes" 1>&6
10072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10073 { test "$extra_verbose" = "yes" && cat << EOF
10074 Defining $ac_tr_hdr
10076 cat >> confdefs.h <<EOF
10077 #define $ac_tr_hdr 1
10082 echo "$ac_t""no" 1>&6
10087 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10088 echo "configure:10089: checking for strerror in -lintl" >&5
10089 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10091 xe_check_libs=" -lintl "
10092 cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10094 #include "confdefs.h"
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 /* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10106 eval "ac_cv_lib_$ac_lib_var=yes"
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10111 eval "ac_cv_lib_$ac_lib_var=no"
10116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10117 echo "$ac_t""yes" 1>&6
10118 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10119 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10120 { test "$extra_verbose" = "yes" && cat << EOF
10121 Defining $ac_tr_lib
10123 cat >> confdefs.h <<EOF
10124 #define $ac_tr_lib 1
10128 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
10131 echo "$ac_t""no" 1>&6
10136 echo "checking for Mule input methods" 1>&6
10137 echo "configure:10138: checking for Mule input methods" >&5
10138 case "$with_xim" in "" | "yes" )
10139 echo "checking for XIM" 1>&6
10140 echo "configure:10141: checking for XIM" >&5
10142 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10143 echo "configure:10144: checking for XOpenIM in -lX11" >&5
10144 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10146 xe_check_libs=" -lX11 "
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10159 if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10161 eval "ac_cv_lib_$ac_lib_var=yes"
10163 echo "configure: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10166 eval "ac_cv_lib_$ac_lib_var=no"
10171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10172 echo "$ac_t""yes" 1>&6
10175 echo "$ac_t""no" 1>&6
10180 if test "$have_motif $have_lesstif" = "yes no"; then
10182 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10183 echo "configure:10184: checking for XmImMbLookupString in -lXm" >&5
10184 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10186 xe_check_libs=" -lXm "
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* Override any gcc2 internal prototype to avoid an error. */
10191 /* We use char because int might match the return type of a gcc2
10192 builtin and then its argument prototype would still apply. */
10193 char XmImMbLookupString();
10196 XmImMbLookupString()
10199 if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 eval "ac_cv_lib_$ac_lib_var=yes"
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10206 eval "ac_cv_lib_$ac_lib_var=no"
10211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10212 echo "$ac_t""yes" 1>&6
10215 echo "$ac_t""no" 1>&6
10221 if test "$with_xim" != "no"; then
10222 { test "$extra_verbose" = "yes" && cat << \EOF
10225 cat >> confdefs.h <<\EOF
10230 if test "$with_xim" = "xlib"; then
10231 { test "$extra_verbose" = "yes" && cat << \EOF
10234 cat >> confdefs.h <<\EOF
10239 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10240 echo " xemacs will be linked with \"input-method-xlib.o\""
10243 if test "$with_xim" = "motif"; then
10244 { test "$extra_verbose" = "yes" && cat << \EOF
10247 cat >> confdefs.h <<\EOF
10248 #define XIM_MOTIF 1
10253 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
10254 echo " xemacs will be linked with \"input-method-motif.o\""
10257 if test "$with_xim" = "motif"; then
10262 if test "$with_xfs" = "yes" ; then
10263 echo "checking for XFontSet" 1>&6
10264 echo "configure:10265: checking for XFontSet" >&5
10266 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10267 echo "configure:10268: checking for XmbDrawString in -lX11" >&5
10268 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10270 xe_check_libs=" -lX11 "
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 /* Override any gcc2 internal prototype to avoid an error. */
10275 /* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10277 char XmbDrawString();
10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285 eval "ac_cv_lib_$ac_lib_var=yes"
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 eval "ac_cv_lib_$ac_lib_var=no"
10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10296 echo "$ac_t""yes" 1>&6
10299 echo "$ac_t""no" 1>&6
10304 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
10305 { test "$extra_verbose" = "yes" && cat << \EOF
10306 Defining USE_XFONTSET
10308 cat >> confdefs.h <<\EOF
10309 #define USE_XFONTSET 1
10313 if test "$with_xim" = "no" ; then
10314 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
10315 echo " xemacs will be linked with \"input-method-xlib.o\""
10320 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10321 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10322 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10323 echo "configure:10324: checking for wnn/jllib.h" >&5
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 #include <wnn/jllib.h>
10330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10331 { (eval echo configure:10332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10333 if test -z "$ac_err"; then
10335 eval "ac_cv_header_$ac_safe=yes"
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 eval "ac_cv_header_$ac_safe=no"
10344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10345 echo "$ac_t""yes" 1>&6
10348 echo "$ac_t""no" 1>&6
10352 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10353 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10354 echo "configure:10355: checking for wnn/commonhd.h" >&5
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 #include <wnn/commonhd.h>
10361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10362 { (eval echo configure:10363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10364 if test -z "$ac_err"; then
10366 eval "ac_cv_header_$ac_safe=yes"
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10372 eval "ac_cv_header_$ac_safe=no"
10375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10376 echo "$ac_t""yes" 1>&6
10379 echo "$ac_t""no" 1>&6
10383 if test "$with_wnn" != "no"; then
10384 for ac_func in crypt
10386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10387 echo "configure:10388: checking for $ac_func" >&5
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 /* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func(); below. */
10394 #include <assert.h>
10395 /* Override any gcc2 internal prototype to avoid an error. */
10396 /* We use char because int might match the return type of a gcc2
10397 builtin and then its argument prototype would still apply. */
10402 /* The GNU C library defines this for functions which it implements
10403 to always fail with ENOSYS. Some functions are actually named
10404 something starting with __ and the normal name is an alias. */
10405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10413 if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10415 eval "ac_cv_func_$ac_func=yes"
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10420 eval "ac_cv_func_$ac_func=no"
10424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10425 echo "$ac_t""yes" 1>&6
10426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10427 { test "$extra_verbose" = "yes" && cat << EOF
10428 Defining $ac_tr_func
10430 cat >> confdefs.h <<EOF
10431 #define $ac_tr_func 1
10436 echo "$ac_t""no" 1>&6
10440 test "$ac_cv_func_crypt" != "yes" && {
10441 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10442 echo "configure:10443: checking for crypt in -lcrypt" >&5
10443 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10445 xe_check_libs=" -lcrypt "
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 /* Override any gcc2 internal prototype to avoid an error. */
10450 /* We use char because int might match the return type of a gcc2
10451 builtin and then its argument prototype would still apply. */
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10460 eval "ac_cv_lib_$ac_lib_var=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_lib_$ac_lib_var=no"
10470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10471 echo "$ac_t""yes" 1>&6
10472 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10473 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10474 { test "$extra_verbose" = "yes" && cat << EOF
10475 Defining $ac_tr_lib
10477 cat >> confdefs.h <<EOF
10478 #define $ac_tr_lib 1
10482 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
10485 echo "$ac_t""no" 1>&6
10490 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10492 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10493 echo "configure:10494: checking for jl_dic_list_e in -lwnn" >&5
10494 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10496 xe_check_libs=" -lwnn "
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 /* Override any gcc2 internal prototype to avoid an error. */
10501 /* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10503 char jl_dic_list_e();
10509 if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10511 eval "ac_cv_lib_$ac_lib_var=yes"
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10516 eval "ac_cv_lib_$ac_lib_var=no"
10521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10522 echo "$ac_t""yes" 1>&6
10525 echo "$ac_t""no" 1>&6
10526 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10527 echo "configure:10528: checking for jl_dic_list_e in -lwnn4" >&5
10528 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10530 xe_check_libs=" -lwnn4 "
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 /* Override any gcc2 internal prototype to avoid an error. */
10535 /* We use char because int might match the return type of a gcc2
10536 builtin and then its argument prototype would still apply. */
10537 char jl_dic_list_e();
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10545 eval "ac_cv_lib_$ac_lib_var=yes"
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 eval "ac_cv_lib_$ac_lib_var=no"
10555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10556 echo "$ac_t""yes" 1>&6
10559 echo "$ac_t""no" 1>&6
10560 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10561 echo "configure:10562: checking for jl_dic_list_e in -lwnn6" >&5
10562 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10564 xe_check_libs=" -lwnn6 "
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568 /* Override any gcc2 internal prototype to avoid an error. */
10569 /* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10571 char jl_dic_list_e();
10577 if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10579 eval "ac_cv_lib_$ac_lib_var=yes"
10581 echo "configure: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10584 eval "ac_cv_lib_$ac_lib_var=no"
10589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10590 echo "$ac_t""yes" 1>&6
10593 echo "$ac_t""no" 1>&6
10594 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10595 echo "configure:10596: checking for dic_list_e in -lwnn6_fromsrc" >&5
10596 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10598 xe_check_libs=" -lwnn6_fromsrc "
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 /* Override any gcc2 internal prototype to avoid an error. */
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10611 if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10613 eval "ac_cv_lib_$ac_lib_var=yes"
10615 echo "configure: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10618 eval "ac_cv_lib_$ac_lib_var=no"
10623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10624 echo "$ac_t""yes" 1>&6
10625 libwnn=wnn6_fromsrc
10627 echo "$ac_t""no" 1>&6
10642 test -z "$with_wnn" && with_wnn=yes
10643 if test "$with_wnn" = "yes"; then
10644 { test "$extra_verbose" = "yes" && cat << \EOF
10647 cat >> confdefs.h <<\EOF
10652 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10653 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
10654 echo " xemacs will be linked with \"mule-wnnfns.o\""
10656 if test "$with_wnn6" != "no"; then
10658 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10659 echo "configure:10660: checking for jl_fi_dic_list in -l$libwnn" >&5
10660 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10662 xe_check_libs=" -l$libwnn "
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char jl_fi_dic_list();
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_lib_$ac_lib_var=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_lib_$ac_lib_var=no"
10687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10688 echo "$ac_t""yes" 1>&6
10691 echo "$ac_t""no" 1>&6
10695 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10698 cat >> confdefs.h <<\EOF
10706 canna_includes_found=no
10707 if test "$with_canna" != "no"; then
10708 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10709 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10710 echo "configure:10711: checking for canna/jrkanji.h" >&5
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 #include <canna/jrkanji.h>
10717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10718 { (eval echo configure:10719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10720 if test -z "$ac_err"; then
10722 eval "ac_cv_header_$ac_safe=yes"
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10728 eval "ac_cv_header_$ac_safe=no"
10731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10732 echo "$ac_t""yes" 1>&6
10733 canna_includes_found=yes
10735 echo "$ac_t""no" 1>&6
10739 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
10740 -d "/usr/local/canna/include"; then
10741 save_c_switch_site="$c_switch_site"
10742 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10743 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10744 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10745 echo "configure:10746: checking for canna/jrkanji.h" >&5
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10750 #include <canna/jrkanji.h>
10752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10753 { (eval echo configure:10754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10755 if test -z "$ac_err"; then
10757 eval "ac_cv_header_$ac_safe=yes"
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 eval "ac_cv_header_$ac_safe=no"
10766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10767 echo "$ac_t""yes" 1>&6
10768 canna_includes_found=yes
10770 echo "$ac_t""no" 1>&6
10773 if test "$canna_includes_found" != "yes"; then
10774 c_switch_site="$save_c_switch_site"
10779 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10780 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10781 echo "configure:10782: checking for canna/RK.h" >&5
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 #include <canna/RK.h>
10788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10789 { (eval echo configure:10790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10791 if test -z "$ac_err"; then
10793 eval "ac_cv_header_$ac_safe=yes"
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10799 eval "ac_cv_header_$ac_safe=no"
10802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10803 echo "$ac_t""yes" 1>&6
10806 echo "$ac_t""no" 1>&6
10810 test -z "$with_canna" && {
10811 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10812 echo "configure:10813: checking for RkBgnBun in -lRKC" >&5
10813 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10815 xe_check_libs=" -lRKC "
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 /* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10830 eval "ac_cv_lib_$ac_lib_var=yes"
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10835 eval "ac_cv_lib_$ac_lib_var=no"
10840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10841 echo "$ac_t""yes" 1>&6
10844 echo "$ac_t""no" 1>&6
10849 test -z "$with_canna" && {
10850 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10851 echo "configure:10852: checking for jrKanjiControl in -lcanna" >&5
10852 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10854 xe_check_libs=" -lcanna "
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10861 char jrKanjiControl();
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10869 eval "ac_cv_lib_$ac_lib_var=yes"
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10874 eval "ac_cv_lib_$ac_lib_var=no"
10879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10880 echo "$ac_t""yes" 1>&6
10883 echo "$ac_t""no" 1>&6
10888 test -z "$with_canna" && with_canna=yes
10889 if test "$with_canna" = "yes"; then
10890 { test "$extra_verbose" = "yes" && cat << \EOF
10891 Defining HAVE_CANNA
10893 cat >> confdefs.h <<\EOF
10894 #define HAVE_CANNA 1
10898 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
10899 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
10900 echo " xemacs will be linked with \"mule-canna.o\""
10904 else for feature in xim canna wnn; do
10905 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
10906 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
10908 eval "with_${feature}=no"
10912 if test "$need_motif" = "yes" ; then
10913 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10915 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10916 echo "configure:10917: checking for layout_object_getvalue in -li18n" >&5
10917 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10919 xe_check_libs=" -li18n "
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 /* Override any gcc2 internal prototype to avoid an error. */
10924 /* We use char because int might match the return type of a gcc2
10925 builtin and then its argument prototype would still apply. */
10926 char layout_object_getvalue();
10929 layout_object_getvalue()
10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 eval "ac_cv_lib_$ac_lib_var=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_lib_$ac_lib_var=no"
10944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10945 echo "$ac_t""yes" 1>&6
10946 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
10948 echo "$ac_t""no" 1>&6
10953 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
10954 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10955 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
10957 runpath="" runpath_dirs=""
10958 if test -n "$LD_RUN_PATH"; then
10959 runpath="$LD_RUN_PATH"
10960 elif test "$GCC" = "yes"; then
10961 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
10962 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
10963 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
10964 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
10965 case "$arg" in P,* | -L* | -R* )
10966 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
10968 xe_runpath_dir="$dir"
10969 test "$xe_runpath_dir" != "/lib" -a \
10970 "$xe_runpath_dir" != "/usr/lib" -a \
10971 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10972 eval "$xe_add_unique_runpath_dir"
10977 ld_switch_run="$ld_switch_run_save"
10980 for arg in $ld_switch_site $ld_switch_x_site; do
10981 case "$arg" in -L*) {
10982 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
10983 test "$xe_runpath_dir" != "/lib" -a \
10984 "$xe_runpath_dir" != "/usr/lib" -a \
10985 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
10986 eval "$xe_add_unique_runpath_dir"
10989 if test "$opsys $need_motif" = "sol2 yes"; then
10990 xe_runpath_dir="/opt/SUNWdt/lib";
10991 eval "$xe_add_unique_runpath_dir";
10994 if test -n "$runpath"; then
10995 ld_switch_run="${dash_r}${runpath}"
10997 if test "$GCC" = "yes"; then
10998 set x $ld_switch_run; shift; ld_switch_run=""
10999 while test -n "$1"; do
11001 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
11002 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
11004 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
11009 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
11016 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
11018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11019 echo "configure:11020: checking for $ac_func" >&5
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11024 /* System header to define __stub macros and hopefully few prototypes,
11025 which can conflict with char $ac_func(); below. */
11026 #include <assert.h>
11027 /* Override any gcc2 internal prototype to avoid an error. */
11028 /* We use char because int might match the return type of a gcc2
11029 builtin and then its argument prototype would still apply. */
11034 /* The GNU C library defines this for functions which it implements
11035 to always fail with ENOSYS. Some functions are actually named
11036 something starting with __ and the normal name is an alias. */
11037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11045 if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 eval "ac_cv_func_$ac_func=yes"
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 eval "ac_cv_func_$ac_func=no"
11056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11059 { test "$extra_verbose" = "yes" && cat << EOF
11060 Defining $ac_tr_func
11062 cat >> confdefs.h <<EOF
11063 #define $ac_tr_func 1
11068 echo "$ac_t""no" 1>&6
11073 if test "$ac_cv_func_getaddrinfo" != "no" ; then
11076 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
11077 ac_cv_func_getaddrinfo=no
11083 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11086 echo "configure:11087: checking for $ac_func" >&5
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char $ac_func(); below. */
11093 #include <assert.h>
11094 /* Override any gcc2 internal prototype to avoid an error. */
11095 /* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */
11101 /* The GNU C library defines this for functions which it implements
11102 to always fail with ENOSYS. Some functions are actually named
11103 something starting with __ and the normal name is an alias. */
11104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11112 if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11114 eval "ac_cv_func_$ac_func=yes"
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11119 eval "ac_cv_func_$ac_func=no"
11123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11124 echo "$ac_t""yes" 1>&6
11125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11126 { test "$extra_verbose" = "yes" && cat << EOF
11127 Defining $ac_tr_func
11129 cat >> confdefs.h <<EOF
11130 #define $ac_tr_func 1
11135 echo "$ac_t""no" 1>&6
11140 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11141 echo "configure:11142: checking for openpty" >&5
11143 cat > conftest.$ac_ext <<EOF
11144 #line 11145 "configure"
11145 #include "confdefs.h"
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char openpty(); below. */
11148 #include <assert.h>
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined (__stub_openpty) || defined (__stub___openpty)
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11169 eval "ac_cv_func_openpty=yes"
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 eval "ac_cv_func_openpty=no"
11178 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
11179 echo "$ac_t""yes" 1>&6
11182 echo "$ac_t""no" 1>&6
11185 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11186 echo "configure:11187: checking for openpty in -lutil" >&5
11187 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11189 xe_check_libs=" -lutil "
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11193 /* Override any gcc2 internal prototype to avoid an error. */
11194 /* We use char because int might match the return type of a gcc2
11195 builtin and then its argument prototype would still apply. */
11202 if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11204 eval "ac_cv_lib_$ac_lib_var=yes"
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 eval "ac_cv_lib_$ac_lib_var=no"
11214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11215 echo "$ac_t""yes" 1>&6
11216 have_openpty=yes need_libutil=yes
11218 echo "$ac_t""no" 1>&6
11224 if test "$have_openpty" = "yes"; then
11225 { test "$extra_verbose" = "yes" && cat << \EOF
11226 Defining HAVE_OPENPTY
11228 cat >> confdefs.h <<\EOF
11229 #define HAVE_OPENPTY 1
11233 for ac_hdr in pty.h libutil.h util.h
11235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11237 echo "configure:11238: checking for $ac_hdr" >&5
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11245 { (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11247 if test -z "$ac_err"; then
11249 eval "ac_cv_header_$ac_safe=yes"
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11255 eval "ac_cv_header_$ac_safe=no"
11258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11259 echo "$ac_t""yes" 1>&6
11260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11261 { test "$extra_verbose" = "yes" && cat << EOF
11262 Defining $ac_tr_hdr
11264 cat >> confdefs.h <<EOF
11265 #define $ac_tr_hdr 1
11270 echo "$ac_t""no" 1>&6
11274 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
11277 for ac_hdr in stropts.h
11279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11281 echo "configure:11282: checking for $ac_hdr" >&5
11283 cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11289 { (eval echo configure:11290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11291 if test -z "$ac_err"; then
11293 eval "ac_cv_header_$ac_safe=yes"
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11299 eval "ac_cv_header_$ac_safe=no"
11302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11303 echo "$ac_t""yes" 1>&6
11304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11305 { test "$extra_verbose" = "yes" && cat << EOF
11306 Defining $ac_tr_hdr
11308 cat >> confdefs.h <<EOF
11309 #define $ac_tr_hdr 1
11314 echo "$ac_t""no" 1>&6
11318 if test "$ac_cv_header_stropts_h" = "yes"; then
11319 for ac_func in isastream
11321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11322 echo "configure:11323: checking for $ac_func" >&5
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func(); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11350 eval "ac_cv_func_$ac_func=yes"
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11355 eval "ac_cv_func_$ac_func=no"
11359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11360 echo "$ac_t""yes" 1>&6
11361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11362 { test "$extra_verbose" = "yes" && cat << EOF
11363 Defining $ac_tr_func
11365 cat >> confdefs.h <<EOF
11366 #define $ac_tr_func 1
11371 echo "$ac_t""no" 1>&6
11375 for ac_hdr in strtio.h
11377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11379 echo "configure:11380: checking for $ac_hdr" >&5
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11387 { (eval echo configure:11388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11389 if test -z "$ac_err"; then
11391 eval "ac_cv_header_$ac_safe=yes"
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 eval "ac_cv_header_$ac_safe=no"
11400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11401 echo "$ac_t""yes" 1>&6
11402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11403 { test "$extra_verbose" = "yes" && cat << EOF
11404 Defining $ac_tr_hdr
11406 cat >> confdefs.h <<EOF
11407 #define $ac_tr_hdr 1
11412 echo "$ac_t""no" 1>&6
11417 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
11418 echo " xemacs will be linked with \"realpath.o\""
11421 for ac_func in getloadavg
11423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11424 echo "configure:11425: checking for $ac_func" >&5
11426 cat > conftest.$ac_ext <<EOF
11427 #line 11428 "configure"
11428 #include "confdefs.h"
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func(); below. */
11431 #include <assert.h>
11432 /* Override any gcc2 internal prototype to avoid an error. */
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11439 /* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11450 if { (eval echo configure:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11452 eval "ac_cv_func_$ac_func=yes"
11454 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11457 eval "ac_cv_func_$ac_func=no"
11461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11464 { test "$extra_verbose" = "yes" && cat << EOF
11465 Defining $ac_tr_func
11467 cat >> confdefs.h <<EOF
11468 #define $ac_tr_func 1
11473 echo "$ac_t""no" 1>&6
11478 if test "$ac_cv_func_getloadavg" = "yes"; then
11479 for ac_hdr in sys/loadavg.h
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11485 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure"
11487 #include "confdefs.h"
11490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11491 { (eval echo configure:11492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11493 if test -z "$ac_err"; then
11495 eval "ac_cv_header_$ac_safe=yes"
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 eval "ac_cv_header_$ac_safe=no"
11504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11505 echo "$ac_t""yes" 1>&6
11506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11507 { test "$extra_verbose" = "yes" && cat << EOF
11508 Defining $ac_tr_hdr
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11516 echo "$ac_t""no" 1>&6
11521 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
11522 echo " xemacs will be linked with \"getloadavg.o\""
11526 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11527 echo "configure:11528: checking for kstat_open in -lkstat" >&5
11528 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11530 xe_check_libs=" -lkstat "
11531 cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure"
11533 #include "confdefs.h"
11534 /* Override any gcc2 internal prototype to avoid an error. */
11535 /* We use char because int might match the return type of a gcc2
11536 builtin and then its argument prototype would still apply. */
11543 if { (eval echo configure:11544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11545 eval "ac_cv_lib_$ac_lib_var=yes"
11547 echo "configure: failed program was:" >&5
11548 cat conftest.$ac_ext >&5
11550 eval "ac_cv_lib_$ac_lib_var=no"
11555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11556 echo "$ac_t""yes" 1>&6
11557 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11559 { test "$extra_verbose" = "yes" && cat << EOF
11560 Defining $ac_tr_lib
11562 cat >> confdefs.h <<EOF
11563 #define $ac_tr_lib 1
11567 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
11570 echo "$ac_t""no" 1>&6
11574 for ac_hdr in kstat.h
11576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11578 echo "configure:11579: checking for $ac_hdr" >&5
11580 cat > conftest.$ac_ext <<EOF
11581 #line 11582 "configure"
11582 #include "confdefs.h"
11585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11586 { (eval echo configure:11587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11588 if test -z "$ac_err"; then
11590 eval "ac_cv_header_$ac_safe=yes"
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11596 eval "ac_cv_header_$ac_safe=no"
11599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11600 echo "$ac_t""yes" 1>&6
11601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11602 { test "$extra_verbose" = "yes" && cat << EOF
11603 Defining $ac_tr_hdr
11605 cat >> confdefs.h <<EOF
11606 #define $ac_tr_hdr 1
11611 echo "$ac_t""no" 1>&6
11617 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11618 echo "configure:11619: checking for kvm_read in -lkvm" >&5
11619 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11621 xe_check_libs=" -lkvm "
11622 cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11625 /* Override any gcc2 internal prototype to avoid an error. */
11626 /* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11634 if { (eval echo configure:11635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11636 eval "ac_cv_lib_$ac_lib_var=yes"
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11641 eval "ac_cv_lib_$ac_lib_var=no"
11646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11647 echo "$ac_t""yes" 1>&6
11648 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11650 { test "$extra_verbose" = "yes" && cat << EOF
11651 Defining $ac_tr_lib
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_lib 1
11658 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
11661 echo "$ac_t""no" 1>&6
11667 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11668 echo "configure:11669: checking whether netdb declares h_errno" >&5
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11679 echo "$ac_t""yes" 1>&6
11680 { test "$extra_verbose" = "yes" && cat << \EOF
11681 Defining HAVE_H_ERRNO
11683 cat >> confdefs.h <<\EOF
11684 #define HAVE_H_ERRNO 1
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 echo "$ac_t""no" 1>&6
11696 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11697 echo "configure:11698: checking for sigsetjmp" >&5
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11701 #include <setjmp.h>
11703 sigjmp_buf bar; sigsetjmp (bar, 0);
11706 if { (eval echo configure:11707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11708 echo "$ac_t""yes" 1>&6
11709 { test "$extra_verbose" = "yes" && cat << \EOF
11710 Defining HAVE_SIGSETJMP
11712 cat >> confdefs.h <<\EOF
11713 #define HAVE_SIGSETJMP 1
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11721 echo "$ac_t""no" 1>&6
11725 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11726 echo "configure:11727: checking whether localtime caches TZ" >&5
11728 if test "$ac_cv_func_tzset" = "yes"; then
11729 cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11734 # include <stdlib.h>
11736 extern char **environ;
11740 for (to = from = environ; (*to = *from); from++)
11741 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11744 char TZ_GMT0[] = "TZ=GMT0";
11745 char TZ_PST8[] = "TZ=PST8";
11748 time_t now = time ((time_t *) 0);
11749 int hour_GMT0, hour_unset;
11750 if (putenv (TZ_GMT0) != 0)
11752 hour_GMT0 = localtime (&now)->tm_hour;
11754 hour_unset = localtime (&now)->tm_hour;
11755 if (putenv (TZ_PST8) != 0)
11757 if (localtime (&now)->tm_hour == hour_GMT0)
11760 if (localtime (&now)->tm_hour != hour_unset)
11765 if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11767 emacs_cv_localtime_cache=no
11770 echo "configure: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11773 emacs_cv_localtime_cache=yes
11777 # If we lack tzset, report that localtime does not cache TZ,
11778 # since we can't invalidate the cache if we don't have tzset.
11779 emacs_cv_localtime_cache=no
11781 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
11782 if test $emacs_cv_localtime_cache = yes; then
11783 { test "$extra_verbose" = "yes" && cat << \EOF
11784 Defining LOCALTIME_CACHE
11786 cat >> confdefs.h <<\EOF
11787 #define LOCALTIME_CACHE 1
11793 if test "$HAVE_TIMEVAL" = "yes"; then
11794 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11795 echo "configure:11796: checking whether gettimeofday accepts one or two arguments" >&5
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11800 #ifdef TIME_WITH_SYS_TIME
11801 #include <sys/time.h>
11804 #ifdef HAVE_SYS_TIME_H
11805 #include <sys/time.h>
11813 struct timeval time;
11814 gettimeofday (&time, 0);
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11820 echo "$ac_t""two" 1>&6
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 echo "$ac_t""one" 1>&6
11826 { test "$extra_verbose" = "yes" && cat << \EOF
11827 Defining GETTIMEOFDAY_ONE_ARGUMENT
11829 cat >> confdefs.h <<\EOF
11830 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11839 echo $ac_n "checking for inline""... $ac_c" 1>&6
11840 echo "configure:11841: checking for inline" >&5
11843 for ac_kw in inline __inline__ __inline; do
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11852 if { (eval echo configure:11853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11854 ac_cv_c_inline=$ac_kw; break
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11863 echo "$ac_t""$ac_cv_c_inline" 1>&6
11864 case "$ac_cv_c_inline" in
11866 no) { test "$extra_verbose" = "yes" && cat << \EOF
11869 cat >> confdefs.h <<\EOF
11874 *) { test "$extra_verbose" = "yes" && cat << EOF
11875 Defining inline = $ac_cv_c_inline
11877 cat >> confdefs.h <<EOF
11878 #define inline $ac_cv_c_inline
11884 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
11885 echo " xemacs will be linked with \"inline.o\""
11889 if test "$__DECC" != "yes"; then
11890 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11891 # for constant arguments. Useless!
11892 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11893 echo "configure:11894: checking for working alloca.h" >&5
11895 cat > conftest.$ac_ext <<EOF
11896 #line 11897 "configure"
11897 #include "confdefs.h"
11898 #include <alloca.h>
11900 char *p = alloca(2 * sizeof(int));
11903 if { (eval echo configure:11904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11905 ac_cv_header_alloca_h=yes
11907 echo "configure: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11910 ac_cv_header_alloca_h=no
11914 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11915 if test $ac_cv_header_alloca_h = yes; then
11916 { test "$extra_verbose" = "yes" && cat << \EOF
11917 Defining HAVE_ALLOCA_H
11919 cat >> confdefs.h <<\EOF
11920 #define HAVE_ALLOCA_H 1
11926 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11927 echo "configure:11928: checking for alloca" >&5
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11934 # define alloca __builtin_alloca
11937 # include <malloc.h>
11938 # define alloca _alloca
11941 # include <alloca.h>
11946 # ifndef alloca /* predefined by HP cc +Olibcalls */
11955 char *p = (char *) alloca(1);
11958 if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 ac_cv_func_alloca_works=yes
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11965 ac_cv_func_alloca_works=no
11969 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11970 if test $ac_cv_func_alloca_works = yes; then
11971 { test "$extra_verbose" = "yes" && cat << \EOF
11972 Defining HAVE_ALLOCA
11974 cat >> confdefs.h <<\EOF
11975 #define HAVE_ALLOCA 1
11981 if test $ac_cv_func_alloca_works = no; then
11982 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11983 # that cause trouble. Some versions do not even contain alloca or
11984 # contain a buggy version. If you still want to use their alloca,
11985 # use ar to extract alloca.o from them instead of compiling alloca.c.
11986 ALLOCA=alloca.${ac_objext}
11987 { test "$extra_verbose" = "yes" && cat << \EOF
11990 cat >> confdefs.h <<\EOF
11996 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11997 echo "configure:11998: checking whether alloca needs Cray hooks" >&5
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #if defined(CRAY) && ! defined(CRAY2)
12009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12010 egrep "webecray" >/dev/null 2>&1; then
12020 echo "$ac_t""$ac_cv_os_cray" 1>&6
12021 if test $ac_cv_os_cray = yes; then
12022 for ac_func in _getb67 GETB67 getb67; do
12023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12024 echo "configure:12025: checking for $ac_func" >&5
12026 cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 /* System header to define __stub macros and hopefully few prototypes,
12030 which can conflict with char $ac_func(); below. */
12031 #include <assert.h>
12032 /* Override any gcc2 internal prototype to avoid an error. */
12033 /* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12039 /* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12052 eval "ac_cv_func_$ac_func=yes"
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12057 eval "ac_cv_func_$ac_func=no"
12061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12062 echo "$ac_t""yes" 1>&6
12063 { test "$extra_verbose" = "yes" && cat << EOF
12064 Defining CRAY_STACKSEG_END = $ac_func
12066 cat >> confdefs.h <<EOF
12067 #define CRAY_STACKSEG_END $ac_func
12073 echo "$ac_t""no" 1>&6
12079 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12080 echo "configure:12081: checking stack direction for C alloca" >&5
12082 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure"
12084 #include "confdefs.h"
12085 find_stack_direction ()
12087 static char *addr = 0;
12092 return find_stack_direction ();
12095 return (&dummy > addr) ? 1 : -1;
12099 exit (find_stack_direction() < 0);
12102 if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12104 ac_cv_c_stack_direction=1
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 ac_cv_c_stack_direction=-1
12114 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
12115 { test "$extra_verbose" = "yes" && cat << EOF
12116 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
12118 cat >> confdefs.h <<EOF
12119 #define STACK_DIRECTION $ac_cv_c_stack_direction
12125 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
12126 echo " xemacs will be linked with \"$ALLOCA\""
12130 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12131 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12132 echo "configure:12133: checking for vfork.h" >&5
12134 cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12140 { (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12142 if test -z "$ac_err"; then
12144 eval "ac_cv_header_$ac_safe=yes"
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12150 eval "ac_cv_header_$ac_safe=no"
12153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12154 echo "$ac_t""yes" 1>&6
12155 { test "$extra_verbose" = "yes" && cat << \EOF
12156 Defining HAVE_VFORK_H
12158 cat >> confdefs.h <<\EOF
12159 #define HAVE_VFORK_H 1
12164 echo "$ac_t""no" 1>&6
12167 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12168 echo "configure:12169: checking for working vfork" >&5
12170 cat > conftest.$ac_ext <<EOF
12171 #line 12172 "configure"
12172 #include "confdefs.h"
12173 /* Thanks to Paul Eggert for this test. */
12175 #include <sys/types.h>
12176 #include <sys/stat.h>
12177 #ifdef HAVE_UNISTD_H
12178 #include <unistd.h>
12180 #ifdef HAVE_VFORK_H
12183 /* On some sparc systems, changes by the child to local and incoming
12184 argument registers are propagated back to the parent.
12185 The compiler is told about this with #include <vfork.h>,
12186 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
12187 Test for this by using a static variable whose address
12188 is put into a register that is clobbered by the vfork. */
12191 sparc_address_test (int arg)
12193 sparc_address_test (arg) int arg;
12196 static pid_t child;
12211 pid_t parent = getpid ();
12214 sparc_address_test ();
12219 /* Here is another test for sparc vfork register problems.
12220 This test uses lots of local variables, at least
12221 as many local variables as main has allocated so far
12222 including compiler temporaries. 4 locals are enough for
12223 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
12224 A buggy compiler should reuse the register of parent
12225 for one of the local variables, since it will think that
12226 parent can't possibly be used any more in this routine.
12227 Assigning to the local variable will thus munge parent
12228 in the parent process. */
12230 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12231 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12232 /* Convince the compiler that p..p7 are live; otherwise, it might
12233 use the same hardware register for all 8 local variables. */
12234 if (p != p1 || p != p2 || p != p3 || p != p4
12235 || p != p5 || p != p6 || p != p7)
12238 /* On some systems (e.g. IRIX 3.3),
12239 vfork doesn't separate parent from child file descriptors.
12240 If the child closes a descriptor before it execs or exits,
12241 this munges the parent's descriptor as well.
12242 Test for this by closing stdout in the child. */
12243 _exit(close(fileno(stdout)) != 0);
12248 while (wait(&status) != child)
12251 /* Was there some problem with vforking? */
12254 /* Did the child fail? (This shouldn't happen.) */
12257 /* Did the vfork/compiler bug occur? */
12258 || parent != getpid()
12260 /* Did the file descriptor bug occur? */
12261 || fstat(fileno(stdout), &st) != 0
12266 if { (eval echo configure:12267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12268 ac_cv_func_vfork_works=yes
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12274 ac_cv_func_vfork_works=no
12278 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
12279 if test $ac_cv_func_vfork_works = no; then
12280 { test "$extra_verbose" = "yes" && cat << \EOF
12281 Defining vfork = fork
12283 cat >> confdefs.h <<\EOF
12291 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12292 echo "configure:12293: checking for working strcoll" >&5
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12297 #include <string.h>
12300 exit (strcoll ("abc", "def") >= 0 ||
12301 strcoll ("ABC", "DEF") >= 0 ||
12302 strcoll ("123", "456") >= 0);
12305 if { (eval echo configure:12306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12307 ac_cv_func_strcoll_works=yes
12310 echo "configure: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12313 ac_cv_func_strcoll_works=no
12317 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
12318 if test $ac_cv_func_strcoll_works = yes; then
12319 { test "$extra_verbose" = "yes" && cat << \EOF
12320 Defining HAVE_STRCOLL
12322 cat >> confdefs.h <<\EOF
12323 #define HAVE_STRCOLL 1
12330 for ac_func in getpgrp
12332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12333 echo "configure:12334: checking for $ac_func" >&5
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12338 /* System header to define __stub macros and hopefully few prototypes,
12339 which can conflict with char $ac_func(); below. */
12340 #include <assert.h>
12341 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12348 /* The GNU C library defines this for functions which it implements
12349 to always fail with ENOSYS. Some functions are actually named
12350 something starting with __ and the normal name is an alias. */
12351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12361 eval "ac_cv_func_$ac_func=yes"
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12366 eval "ac_cv_func_$ac_func=no"
12370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12371 echo "$ac_t""yes" 1>&6
12372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12373 { test "$extra_verbose" = "yes" && cat << EOF
12374 Defining $ac_tr_func
12376 cat >> confdefs.h <<EOF
12377 #define $ac_tr_func 1
12382 echo "$ac_t""no" 1>&6
12386 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12387 echo "configure:12388: checking whether getpgrp takes no argument" >&5
12389 cat > conftest.$ac_ext <<EOF
12390 #line 12391 "configure"
12391 #include "confdefs.h"
12394 * If this system has a BSD-style getpgrp(),
12395 * which takes a pid argument, exit unsuccessfully.
12397 * Snarfed from Chet Ramey's bash pgrp.c test program
12400 #include <sys/types.h>
12403 int pg1, pg2, pg3, pg4;
12404 int ng, np, s, child;
12411 pg3 = getpgrp(pid);
12415 * If all of these values are the same, it's pretty sure that
12416 * we're on a system that ignores getpgrp's first argument.
12418 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
12424 else if (child == 0) {
12427 * If this is Sys V, this will not work; pgrp will be
12428 * set to np because setpgrp just changes a pgrp to be
12429 * the same as the pid.
12432 ng = getpgrp(0); /* Same result for Sys V and BSD */
12445 if { (eval echo configure:12446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12447 ac_cv_func_getpgrp_void=yes
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12453 ac_cv_func_getpgrp_void=no
12458 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
12459 if test $ac_cv_func_getpgrp_void = yes; then
12460 { test "$extra_verbose" = "yes" && cat << \EOF
12461 Defining GETPGRP_VOID
12463 cat >> confdefs.h <<\EOF
12464 #define GETPGRP_VOID 1
12471 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12472 echo "configure:12473: checking for working mmap" >&5
12473 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12478 #include <unistd.h>
12480 #include <sys/mman.h>
12482 #ifndef MAP_VARIABLE
12483 #define MAP_VARIABLE 0
12487 #define MAP_FAILED -1
12490 int main (int argc, char *argv[])
12494 #ifndef MAP_ANONYMOUS
12495 fd = open ("/dev/zero", O_RDWR);
12498 #define MAP_ANONYMOUS 0
12500 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
12501 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
12502 fd, 0) != (void *) MAP_FAILED)
12504 perror ("conftest: mmap failed");
12508 if { (eval echo configure:12509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12518 rm -fr conftest* ;;
12520 echo "$ac_t""$have_mmap" 1>&6
12521 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12524 cat >> confdefs.h <<\EOF
12525 #define HAVE_MMAP 1
12530 case "$opsys" in cygwin*)
12531 test "$rel_alloc" = "default" && rel_alloc=no ;;
12533 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12534 if test "$rel_alloc $have_mmap" = "default yes"; then
12535 if test "$doug_lea_malloc" = "yes"; then
12536 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12537 echo "configure:12538: checking for M_MMAP_THRESHOLD" >&5
12538 cat > conftest.$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12541 #include <malloc.h>
12544 #ifndef M_MMAP_THRESHOLD
12545 #error No M_MMAP_THRESHOLD :-(
12546 !@+$%^&*_)(_ - unlikely to compile...
12551 if { (eval echo configure:12552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12553 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12558 rel_alloc=yes; echo "$ac_t""no" 1>&6;
12565 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
12568 cat >> confdefs.h <<\EOF
12569 #define REL_ALLOC 1
12574 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12575 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12576 echo "configure:12577: checking for termios.h" >&5
12578 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12581 #include <termios.h>
12583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12584 { (eval echo configure:12585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12586 if test -z "$ac_err"; then
12588 eval "ac_cv_header_$ac_safe=yes"
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12594 eval "ac_cv_header_$ac_safe=no"
12597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12598 echo "$ac_t""yes" 1>&6
12599 { test "$extra_verbose" = "yes" && cat << \EOF
12600 Defining HAVE_TERMIOS
12602 cat >> confdefs.h <<\EOF
12603 #define HAVE_TERMIOS 1
12607 { test "$extra_verbose" = "yes" && cat << \EOF
12608 Defining SIGNALS_VIA_CHARACTERS
12610 cat >> confdefs.h <<\EOF
12611 #define SIGNALS_VIA_CHARACTERS 1
12615 { test "$extra_verbose" = "yes" && cat << \EOF
12618 cat >> confdefs.h <<\EOF
12619 #define NO_TERMIO 1
12624 echo "$ac_t""no" 1>&6
12625 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12626 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12627 echo "configure:12628: checking for termio.h" >&5
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 #include <termio.h>
12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12637 if test -z "$ac_err"; then
12639 eval "ac_cv_header_$ac_safe=yes"
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12645 eval "ac_cv_header_$ac_safe=no"
12648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12649 echo "$ac_t""yes" 1>&6
12650 { test "$extra_verbose" = "yes" && cat << \EOF
12651 Defining HAVE_TERMIO
12653 cat >> confdefs.h <<\EOF
12654 #define HAVE_TERMIO 1
12659 echo "$ac_t""no" 1>&6
12666 echo $ac_n "checking for socket""... $ac_c" 1>&6
12667 echo "configure:12668: checking for socket" >&5
12669 cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12672 /* System header to define __stub macros and hopefully few prototypes,
12673 which can conflict with char socket(); below. */
12674 #include <assert.h>
12675 /* Override any gcc2 internal prototype to avoid an error. */
12676 /* We use char because int might match the return type of a gcc2
12677 builtin and then its argument prototype would still apply. */
12682 /* The GNU C library defines this for functions which it implements
12683 to always fail with ENOSYS. Some functions are actually named
12684 something starting with __ and the normal name is an alias. */
12685 #if defined (__stub_socket) || defined (__stub___socket)
12693 if { (eval echo configure:12694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12695 eval "ac_cv_func_socket=yes"
12697 echo "configure: failed program was:" >&5
12698 cat conftest.$ac_ext >&5
12700 eval "ac_cv_func_socket=no"
12704 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12705 echo "$ac_t""yes" 1>&6
12706 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12707 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12708 echo "configure:12709: checking for netinet/in.h" >&5
12710 cat > conftest.$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12713 #include <netinet/in.h>
12715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12716 { (eval echo configure:12717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12718 if test -z "$ac_err"; then
12720 eval "ac_cv_header_$ac_safe=yes"
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12726 eval "ac_cv_header_$ac_safe=no"
12729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12730 echo "$ac_t""yes" 1>&6
12731 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12732 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12733 echo "configure:12734: checking for arpa/inet.h" >&5
12735 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <arpa/inet.h>
12740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12741 { (eval echo configure:12742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12743 if test -z "$ac_err"; then
12745 eval "ac_cv_header_$ac_safe=yes"
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12751 eval "ac_cv_header_$ac_safe=no"
12754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12757 { test "$extra_verbose" = "yes" && cat << \EOF
12758 Defining HAVE_SOCKETS
12760 cat >> confdefs.h <<\EOF
12761 #define HAVE_SOCKETS 1
12765 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12766 echo "configure:12767: checking "for sun_len member in struct sockaddr_un"" >&5
12767 cat > conftest.$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12771 #include <sys/types.h>
12772 #include <sys/socket.h>
12773 #include <sys/un.h>
12776 static struct sockaddr_un x; x.sun_len = 1;
12779 if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12782 Defining HAVE_SOCKADDR_SUN_LEN
12784 cat >> confdefs.h <<\EOF
12785 #define HAVE_SOCKADDR_SUN_LEN 1
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12793 echo "$ac_t""no" 1>&6
12796 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12797 echo "configure:12798: checking "for ip_mreq struct in netinet/in.h"" >&5
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12802 #include <sys/types.h>
12803 #include <netinet/in.h>
12806 static struct ip_mreq x;
12809 if { (eval echo configure:12810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12811 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12812 Defining HAVE_MULTICAST
12814 cat >> confdefs.h <<\EOF
12815 #define HAVE_MULTICAST 1
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12823 echo "$ac_t""no" 1>&6
12827 echo "$ac_t""no" 1>&6
12831 echo "$ac_t""no" 1>&6
12835 echo "$ac_t""no" 1>&6
12839 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12840 echo "configure:12841: checking for msgget" >&5
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char msgget(); below. */
12847 #include <assert.h>
12848 /* Override any gcc2 internal prototype to avoid an error. */
12849 /* We use char because int might match the return type of a gcc2
12850 builtin and then its argument prototype would still apply. */
12855 /* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858 #if defined (__stub_msgget) || defined (__stub___msgget)
12866 if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12868 eval "ac_cv_func_msgget=yes"
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12873 eval "ac_cv_func_msgget=no"
12877 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12878 echo "$ac_t""yes" 1>&6
12879 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12880 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12881 echo "configure:12882: checking for sys/ipc.h" >&5
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 #include <sys/ipc.h>
12888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12889 { (eval echo configure:12890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12891 if test -z "$ac_err"; then
12893 eval "ac_cv_header_$ac_safe=yes"
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12899 eval "ac_cv_header_$ac_safe=no"
12902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12903 echo "$ac_t""yes" 1>&6
12904 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12905 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12906 echo "configure:12907: checking for sys/msg.h" >&5
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 #include <sys/msg.h>
12913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12914 { (eval echo configure:12915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12916 if test -z "$ac_err"; then
12918 eval "ac_cv_header_$ac_safe=yes"
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 eval "ac_cv_header_$ac_safe=no"
12927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12928 echo "$ac_t""yes" 1>&6
12929 { test "$extra_verbose" = "yes" && cat << \EOF
12930 Defining HAVE_SYSVIPC
12932 cat >> confdefs.h <<\EOF
12933 #define HAVE_SYSVIPC 1
12938 echo "$ac_t""no" 1>&6
12942 echo "$ac_t""no" 1>&6
12946 echo "$ac_t""no" 1>&6
12950 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12951 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12952 echo "configure:12953: checking for dirent.h" >&5
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 #include <dirent.h>
12959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12960 { (eval echo configure:12961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12962 if test -z "$ac_err"; then
12964 eval "ac_cv_header_$ac_safe=yes"
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12970 eval "ac_cv_header_$ac_safe=no"
12973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12974 echo "$ac_t""yes" 1>&6
12975 { test "$extra_verbose" = "yes" && cat << \EOF
12976 Defining SYSV_SYSTEM_DIR
12978 cat >> confdefs.h <<\EOF
12979 #define SYSV_SYSTEM_DIR 1
12984 echo "$ac_t""no" 1>&6
12985 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12986 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12987 echo "configure:12988: checking for sys/dir.h" >&5
12989 cat > conftest.$ac_ext <<EOF
12990 #line 12991 "configure"
12991 #include "confdefs.h"
12992 #include <sys/dir.h>
12994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12995 { (eval echo configure:12996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12997 if test -z "$ac_err"; then
12999 eval "ac_cv_header_$ac_safe=yes"
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13005 eval "ac_cv_header_$ac_safe=no"
13008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13009 echo "$ac_t""yes" 1>&6
13012 echo "$ac_t""no" 1>&6
13013 { test "$extra_verbose" = "yes" && cat << \EOF
13014 Defining NONSYSTEM_DIR_LIBRARY
13016 cat >> confdefs.h <<\EOF
13017 #define NONSYSTEM_DIR_LIBRARY 1
13026 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13027 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13028 echo "configure:13029: checking for nlist.h" >&5
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13036 { (eval echo configure:13037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13038 if test -z "$ac_err"; then
13040 eval "ac_cv_header_$ac_safe=yes"
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13046 eval "ac_cv_header_$ac_safe=no"
13049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13050 echo "$ac_t""yes" 1>&6
13051 { test "$extra_verbose" = "yes" && cat << \EOF
13052 Defining NLIST_STRUCT
13054 cat >> confdefs.h <<\EOF
13055 #define NLIST_STRUCT 1
13060 echo "$ac_t""no" 1>&6
13065 echo "checking "for sound support"" 1>&6
13066 echo "configure:13067: checking "for sound support"" >&5
13067 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13069 if test "$with_native_sound" != "no"; then
13070 if test -n "$native_sound_lib"; then
13071 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13072 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13073 echo "configure:13074: checking for multimedia/audio_device.h" >&5
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 #include <multimedia/audio_device.h>
13080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13081 { (eval echo configure:13082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13083 if test -z "$ac_err"; then
13085 eval "ac_cv_header_$ac_safe=yes"
13088 echo "configure: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13091 eval "ac_cv_header_$ac_safe=no"
13094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13095 echo "$ac_t""yes" 1>&6
13096 sound_found=yes sound_cflags=""
13097 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13098 echo " xemacs will be linked with \"sunplay.o\""
13101 echo "$ac_t""no" 1>&6
13106 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
13108 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
13109 echo " xemacs will be linked with \"sunplay.o\""
13111 if test -d "/usr/demo/SOUND/include"
13112 then sound_cflags="-I/usr/demo/SOUND/include"
13113 else sound_cflags="-I/usr/demo/SOUND"
13115 if test -z "$native_sound_lib" ; then
13116 if test -r "/usr/demo/SOUND/lib/libaudio.a"
13117 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
13118 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
13123 if test -z "$sound_found"; then
13124 case "$canonical" in
13126 if test -z "$native_sound_lib"; then
13128 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13129 echo "configure:13130: checking for ALopenport in -laudio" >&5
13130 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13132 xe_check_libs=" -laudio "
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 /* Override any gcc2 internal prototype to avoid an error. */
13137 /* We use char because int might match the return type of a gcc2
13138 builtin and then its argument prototype would still apply. */
13145 if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13147 eval "ac_cv_lib_$ac_lib_var=yes"
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13152 eval "ac_cv_lib_$ac_lib_var=no"
13157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13158 echo "$ac_t""yes" 1>&6
13159 native_sound_lib="-laudio"
13161 echo "$ac_t""no" 1>&6
13166 if test -n "$native_sound_lib"; then
13167 sound_found=yes sound_cflags=""
13168 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
13169 echo " xemacs will be linked with \"sgiplay.o\""
13173 if test -z "$native_sound_lib"; then
13175 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13176 echo "configure:13177: checking for AOpenAudio in -lAlib" >&5
13177 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13179 xe_check_libs=" -lAlib "
13180 cat > conftest.$ac_ext <<EOF
13181 #line 13182 "configure"
13182 #include "confdefs.h"
13183 /* Override any gcc2 internal prototype to avoid an error. */
13184 /* We use char because int might match the return type of a gcc2
13185 builtin and then its argument prototype would still apply. */
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194 eval "ac_cv_lib_$ac_lib_var=yes"
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13199 eval "ac_cv_lib_$ac_lib_var=no"
13204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13205 echo "$ac_t""yes" 1>&6
13206 native_sound_lib="-lAlib"
13208 echo "$ac_t""no" 1>&6
13213 if test -n "$native_sound_lib"; then
13215 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
13216 echo " xemacs will be linked with \"hpplay.o\""
13218 if test "$GCC" = "yes" # Kludge city
13219 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
13220 else sound_cflags="+e -I/usr/audio/examples"
13226 if test -z "$sound_found"; then
13227 if test "$with_msw" = "yes"; then
13233 if test -z "$sound_found"; then
13234 for dir in "machine" "sys" "linux"; do
13235 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13236 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13237 echo "configure:13238: checking for ${dir}/soundcard.h" >&5
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <${dir}/soundcard.h>
13244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13245 { (eval echo configure:13246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13247 if test -z "$ac_err"; then
13249 eval "ac_cv_header_$ac_safe=yes"
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13255 eval "ac_cv_header_$ac_safe=no"
13258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13259 echo "$ac_t""yes" 1>&6
13262 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
13263 echo " xemacs will be linked with \"linuxplay.o\""
13265 { test "$extra_verbose" = "yes" && cat << EOF
13266 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
13268 cat >> confdefs.h <<EOF
13269 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
13275 echo "$ac_t""no" 1>&6
13281 test "$sound_found" = "yes" && with_native_sound=yes
13284 if test "$with_native_sound" = "yes"; then
13285 { test "$extra_verbose" = "yes" && cat << \EOF
13286 Defining HAVE_NATIVE_SOUND
13288 cat >> confdefs.h <<\EOF
13289 #define HAVE_NATIVE_SOUND 1
13293 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
13296 if test "$with_nas_sound" != "no"; then
13297 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13298 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13299 echo "configure:13300: checking for audio/audiolib.h" >&5
13301 cat > conftest.$ac_ext <<EOF
13302 #line 13303 "configure"
13303 #include "confdefs.h"
13304 #include <audio/audiolib.h>
13306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13307 { (eval echo configure:13308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13309 if test -z "$ac_err"; then
13311 eval "ac_cv_header_$ac_safe=yes"
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13317 eval "ac_cv_header_$ac_safe=no"
13320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13324 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13325 echo "configure:13326: checking for AuOpenServer in -laudio" >&5
13326 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13328 xe_check_libs=" -laudio "
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 /* We use char because int might match the return type of a gcc2
13334 builtin and then its argument prototype would still apply. */
13335 char AuOpenServer();
13341 if { (eval echo configure:13342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13343 eval "ac_cv_lib_$ac_lib_var=yes"
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13348 eval "ac_cv_lib_$ac_lib_var=no"
13353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13354 echo "$ac_t""yes" 1>&6
13357 echo "$ac_t""no" 1>&6
13362 echo "$ac_t""no" 1>&6
13365 if test "$have_nas_sound" = "yes"; then
13367 { test "$extra_verbose" = "yes" && cat << \EOF
13368 Defining HAVE_NAS_SOUND
13370 cat >> confdefs.h <<\EOF
13371 #define HAVE_NAS_SOUND 1
13375 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13376 echo " xemacs will be linked with \"nas.o\""
13378 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13382 #include <audio/Xtutil.h>
13384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13385 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13389 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
13390 Defining NAS_NO_ERROR_JUMP
13392 cat >> confdefs.h <<\EOF
13393 #define NAS_NO_ERROR_JUMP 1
13401 test "$with_nas_sound" = "yes" && \
13402 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
13407 if test "$with_esd_sound" != "no"; then
13408 # Extract the first word of "esd-config", so it can be a program name with args.
13409 set dummy esd-config; ac_word=$2
13410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13411 echo "configure:13412: checking for $ac_word" >&5
13413 if test -n "$have_esd_config"; then
13414 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13418 for ac_dir in $ac_dummy; do
13419 test -z "$ac_dir" && ac_dir=.
13420 if test -f $ac_dir/$ac_word; then
13421 ac_cv_prog_have_esd_config="yes"
13426 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
13428 have_esd_config="$ac_cv_prog_have_esd_config"
13429 if test -n "$have_esd_config"; then
13430 echo "$ac_t""$have_esd_config" 1>&6
13432 echo "$ac_t""no" 1>&6
13435 if test "$have_esd_config" = "yes"; then
13436 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13437 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
13438 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13439 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13440 echo "configure:13441: checking for esd_play_stream" >&5
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 /* System header to define __stub macros and hopefully few prototypes,
13446 which can conflict with char esd_play_stream(); below. */
13447 #include <assert.h>
13448 /* Override any gcc2 internal prototype to avoid an error. */
13449 /* We use char because int might match the return type of a gcc2
13450 builtin and then its argument prototype would still apply. */
13451 char esd_play_stream();
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
13466 if { (eval echo configure:13467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13468 eval "ac_cv_func_esd_play_stream=yes"
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13473 eval "ac_cv_func_esd_play_stream=no"
13477 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
13478 echo "$ac_t""yes" 1>&6
13481 echo "$ac_t""no" 1>&6
13482 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
13487 if test "$have_esd_sound" = "yes"; then
13490 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
13491 echo " xemacs will be linked with \"esd.o\""
13493 { test "$extra_verbose" = "yes" && cat << \EOF
13494 Defining HAVE_ESD_SOUND
13496 cat >> confdefs.h <<\EOF
13497 #define HAVE_ESD_SOUND 1
13502 test "$with_esd_sound" = "yes" && \
13503 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
13508 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
13509 echo " xemacs will be linked with \"miscplay.o\""
13513 test -z "$with_tty" && with_tty=yes
13515 if test "$with_tty" = "yes" ; then
13516 echo "checking for TTY-related features" 1>&6
13517 echo "configure:13518: checking for TTY-related features" >&5
13518 { test "$extra_verbose" = "yes" && cat << \EOF
13521 cat >> confdefs.h <<\EOF
13526 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
13527 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\""
13530 if test -z "$with_ncurses"; then
13532 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13533 echo "configure:13534: checking for tgetent in -lncurses" >&5
13534 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13536 xe_check_libs=" -lncurses "
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13540 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13549 if { (eval echo configure:13550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 eval "ac_cv_lib_$ac_lib_var=yes"
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13556 eval "ac_cv_lib_$ac_lib_var=no"
13561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13562 echo "$ac_t""yes" 1>&6
13565 echo "$ac_t""no" 1>&6
13571 if test "$with_ncurses" = "yes"; then
13572 { test "$extra_verbose" = "yes" && cat << \EOF
13573 Defining HAVE_NCURSES
13575 cat >> confdefs.h <<\EOF
13576 #define HAVE_NCURSES 1
13580 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13581 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13582 echo "configure:13583: checking for ncurses/curses.h" >&5
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 #include <ncurses/curses.h>
13589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13590 { (eval echo configure:13591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13592 if test -z "$ac_err"; then
13594 eval "ac_cv_header_$ac_safe=yes"
13597 echo "configure: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13600 eval "ac_cv_header_$ac_safe=no"
13603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13604 echo "$ac_t""yes" 1>&6
13605 curses_h_file=ncurses/curses.h
13607 echo "$ac_t""no" 1>&6
13610 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13611 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13612 echo "configure:13613: checking for ncurses/term.h" >&5
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 #include <ncurses/term.h>
13619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13620 { (eval echo configure:13621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13622 if test -z "$ac_err"; then
13624 eval "ac_cv_header_$ac_safe=yes"
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 eval "ac_cv_header_$ac_safe=no"
13633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13634 echo "$ac_t""yes" 1>&6
13635 term_h_file=ncurses/term.h
13637 echo "$ac_t""no" 1>&6
13640 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13641 echo " xemacs will be linked with \"terminfo.o\""
13643 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
13645 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13646 save_c_switch_site="$c_switch_site"
13647 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13648 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13649 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13650 echo "configure:13651: checking for ncurses/curses.h" >&5
13652 cat > conftest.$ac_ext <<EOF
13653 #line 13654 "configure"
13654 #include "confdefs.h"
13655 #include <ncurses/curses.h>
13657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13658 { (eval echo configure:13659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13660 if test -z "$ac_err"; then
13662 eval "ac_cv_header_$ac_safe=yes"
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13668 eval "ac_cv_header_$ac_safe=no"
13671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13672 echo "$ac_t""yes" 1>&6
13673 curses_h_file=ncurses/curses.h
13675 echo "$ac_t""no" 1>&6
13678 if test "$ac_cv_header_ncurses_curses_h" = "yes"
13679 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
13680 else c_switch_site="$save_c_switch_site"
13683 else if test "$have_terminfo" = "yes"; then
13684 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
13685 echo " xemacs will be linked with \"terminfo.o\""
13687 if test -n "$libs_termcap"; then
13688 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13690 for lib in curses termlib termcap; do
13692 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13693 echo "configure:13694: checking for tgetent in -l$lib" >&5
13694 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13696 xe_check_libs=" -l$lib "
13697 cat > conftest.$ac_ext <<EOF
13698 #line 13699 "configure"
13699 #include "confdefs.h"
13700 /* Override any gcc2 internal prototype to avoid an error. */
13701 /* We use char because int might match the return type of a gcc2
13702 builtin and then its argument prototype would still apply. */
13709 if { (eval echo configure:13710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13711 eval "ac_cv_lib_$ac_lib_var=yes"
13713 echo "configure: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13716 eval "ac_cv_lib_$ac_lib_var=no"
13721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13722 echo "$ac_t""yes" 1>&6
13723 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
13725 echo "$ac_t""no" 1>&6
13731 else if test -n "$libs_termcap" -a "$opsys" = "openbsd"; then
13733 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
13734 echo "configure:13735: checking for tgoto in -ltermcap" >&5
13735 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
13737 xe_check_libs=" -ltermcap "
13738 cat > conftest.$ac_ext <<EOF
13739 #line 13740 "configure"
13740 #include "confdefs.h"
13741 /* Override any gcc2 internal prototype to avoid an error. */
13742 /* We use char because int might match the return type of a gcc2
13743 builtin and then its argument prototype would still apply. */
13750 if { (eval echo configure:13751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 eval "ac_cv_lib_$ac_lib_var=yes"
13754 echo "configure: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 eval "ac_cv_lib_$ac_lib_var=no"
13762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13763 echo "$ac_t""yes" 1>&6
13764 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13766 { test "$extra_verbose" = "yes" && cat << EOF
13767 Defining $ac_tr_lib
13769 cat >> confdefs.h <<EOF
13770 #define $ac_tr_lib 1
13774 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13777 echo "$ac_t""no" 1>&6
13778 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13779 echo " xemacs will be linked with \"tparam.o\""
13785 extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
13786 echo " xemacs will be linked with \"tparam.o\""
13789 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
13790 if test -n "$libs_termcap"; then
13791 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13794 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13795 echo "configure:13796: checking for tgetent in -lcurses" >&5
13796 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13798 xe_check_libs=" -lcurses "
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813 eval "ac_cv_lib_$ac_lib_var=yes"
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13818 eval "ac_cv_lib_$ac_lib_var=no"
13823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13824 echo "$ac_t""yes" 1>&6
13825 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13827 echo "$ac_t""no" 1>&6
13828 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13829 echo "configure:13830: checking for tgetent in -ltermcap" >&5
13830 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13832 xe_check_libs=" -ltermcap "
13833 cat > conftest.$ac_ext <<EOF
13834 #line 13835 "configure"
13835 #include "confdefs.h"
13836 /* Override any gcc2 internal prototype to avoid an error. */
13837 /* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13845 if { (eval echo configure:13846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13847 eval "ac_cv_lib_$ac_lib_var=yes"
13849 echo "configure: failed program was:" >&5
13850 cat conftest.$ac_ext >&5
13852 eval "ac_cv_lib_$ac_lib_var=no"
13857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13858 echo "$ac_t""yes" 1>&6
13859 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
13861 echo "$ac_t""no" 1>&6
13862 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
13863 echo " xemacs will be linked with \"termcap.o\""
13874 { test "$extra_verbose" = "yes" && cat << EOF
13875 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
13877 cat >> confdefs.h <<EOF
13878 #define CURSES_H_FILE "${curses_h_file-curses.h}"
13882 { test "$extra_verbose" = "yes" && cat << EOF
13883 Defining TERM_H_FILE = "${term_h_file-term.h}"
13885 cat >> confdefs.h <<EOF
13886 #define TERM_H_FILE "${term_h_file-term.h}"
13891 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13892 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13893 echo "configure:13894: checking for gpm.h" >&5
13895 cat > conftest.$ac_ext <<EOF
13896 #line 13897 "configure"
13897 #include "confdefs.h"
13900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13901 { (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13903 if test -z "$ac_err"; then
13905 eval "ac_cv_header_$ac_safe=yes"
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13911 eval "ac_cv_header_$ac_safe=no"
13914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13915 echo "$ac_t""yes" 1>&6
13918 echo "$ac_t""no" 1>&6
13922 test -z "$with_gpm" && {
13923 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13924 echo "configure:13925: checking for Gpm_Open in -lgpm" >&5
13925 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13927 xe_check_libs=" -lgpm "
13928 cat > conftest.$ac_ext <<EOF
13929 #line 13930 "configure"
13930 #include "confdefs.h"
13931 /* Override any gcc2 internal prototype to avoid an error. */
13932 /* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13940 if { (eval echo configure:13941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13942 eval "ac_cv_lib_$ac_lib_var=yes"
13944 echo "configure: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13947 eval "ac_cv_lib_$ac_lib_var=no"
13952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
13953 echo "$ac_t""yes" 1>&6
13956 echo "$ac_t""no" 1>&6
13961 if test "$with_gpm" = "yes"; then
13962 { test "$extra_verbose" = "yes" && cat << \EOF
13965 cat >> confdefs.h <<\EOF
13970 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
13971 echo " xemacs will be linked with \"gpmevent.o\""
13973 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
13976 else for feature in ncurses gpm; do
13977 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
13978 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
13980 eval "with_${feature}=no"
13983 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
13984 echo " xemacs will be linked with \"event-unixoid.o\""
13988 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13989 != "no no no" && echo "checking for database support" 1>&6
13990 echo "configure:13991: checking for database support" >&5
13992 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13993 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13994 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13995 echo "configure:13996: checking for ndbm.h" >&5
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14003 { (eval echo configure:14004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14005 if test -z "$ac_err"; then
14007 eval "ac_cv_header_$ac_safe=yes"
14010 echo "configure: failed program was:" >&5
14011 cat conftest.$ac_ext >&5
14013 eval "ac_cv_header_$ac_safe=no"
14016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
14020 echo "$ac_t""no" 1>&6
14022 test "$with_database_gdbm" = "yes" -o \
14023 "$with_database_dbm" = "yes" && \
14024 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14025 with_database_gdbm=no with_database_dbm=no
14030 if test "$with_database_gdbm" != "no"; then
14032 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14033 echo "configure:14034: checking for dbm_open in -lgdbm" >&5
14034 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14036 xe_check_libs=" -lgdbm "
14037 cat > conftest.$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14049 if { (eval echo configure:14050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14051 eval "ac_cv_lib_$ac_lib_var=yes"
14053 echo "configure: failed program was:" >&5
14054 cat conftest.$ac_ext >&5
14056 eval "ac_cv_lib_$ac_lib_var=no"
14061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14062 echo "$ac_t""yes" 1>&6
14063 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
14065 echo "$ac_t""no" 1>&6
14066 if test "$with_database_gdbm" = "yes"; then
14067 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
14069 with_database_gdbm=no
14075 if test "$with_database_dbm" != "no"; then
14076 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14077 echo "configure:14078: checking for dbm_open" >&5
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 /* System header to define __stub macros and hopefully few prototypes,
14083 which can conflict with char dbm_open(); below. */
14084 #include <assert.h>
14085 /* Override any gcc2 internal prototype to avoid an error. */
14086 /* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14092 /* The GNU C library defines this for functions which it implements
14093 to always fail with ENOSYS. Some functions are actually named
14094 something starting with __ and the normal name is an alias. */
14095 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14103 if { (eval echo configure:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 eval "ac_cv_func_dbm_open=yes"
14107 echo "configure: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14110 eval "ac_cv_func_dbm_open=no"
14114 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 with_database_dbm=yes libdbm=
14118 echo "$ac_t""no" 1>&6
14121 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14122 echo "configure:14123: checking for dbm_open in -ldbm" >&5
14123 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14125 xe_check_libs=" -ldbm "
14126 cat > conftest.$ac_ext <<EOF
14127 #line 14128 "configure"
14128 #include "confdefs.h"
14129 /* Override any gcc2 internal prototype to avoid an error. */
14130 /* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14138 if { (eval echo configure:14139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14140 eval "ac_cv_lib_$ac_lib_var=yes"
14142 echo "configure: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14145 eval "ac_cv_lib_$ac_lib_var=no"
14150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14151 echo "$ac_t""yes" 1>&6
14152 with_database_dbm=yes libdbm=-ldbm
14154 echo "$ac_t""no" 1>&6
14155 test "$with_database_dbm" = "yes" && \
14156 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
14157 with_database_dbm=no
14165 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
14166 test "$with_database_gdbm" = "yes" -o \
14167 "$with_database_dbm" = "yes" && \
14168 { test "$extra_verbose" = "yes" && cat << \EOF
14171 cat >> confdefs.h <<\EOF
14177 if test "$with_database_berkdb" != "no"; then
14178 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14179 echo "configure:14180: checking for Berkeley db.h" >&5
14180 for header in "db/db.h" "db.h"; do
14183 cat > conftest.$ac_ext <<EOF
14184 #line 14185 "configure"
14185 #include "confdefs.h"
14187 #include <stdlib.h>
14188 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14189 #ifdef HAVE_INTTYPES_H
14190 #define __BIT_TYPES_DEFINED__
14191 #include <inttypes.h>
14200 if { (eval echo configure:14201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202 db_h_file="$header"; break
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14214 #include <stdlib.h>
14215 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14216 #ifdef HAVE_INTTYPES_H
14217 #define __BIT_TYPES_DEFINED__
14218 #include <inttypes.h>
14219 typedef uint8_t u_int8_t;
14220 typedef uint16_t u_int16_t;
14221 typedef uint32_t u_int32_t;
14222 #ifdef WE_DONT_NEED_QUADS
14223 typedef uint64_t u_int64_t;
14233 if { (eval echo configure:14234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14235 db_h_file="$header"; break
14237 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14244 if test -z "$db_h_file"
14245 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
14246 else echo "$ac_t""$db_h_file" 1>&6
14249 if test "$with_database_berkdb" != "no"; then
14250 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14251 echo "configure:14252: checking for Berkeley DB version" >&5
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14255 #include <$db_h_file>
14256 #if DB_VERSION_MAJOR > 1
14261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14262 egrep "yes" >/dev/null 2>&1; then
14264 cat > conftest.$ac_ext <<EOF
14265 #line 14266 "configure"
14266 #include "confdefs.h"
14267 #include <$db_h_file>
14268 #if DB_VERSION_MAJOR > 2
14273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14274 egrep "yes" >/dev/null 2>&1; then
14276 echo "$ac_t""3" 1>&6; dbfunc=db_create
14280 echo "$ac_t""2" 1>&6; dbfunc=db_open
14287 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14291 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14292 echo "configure:14293: checking for $dbfunc" >&5
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char $dbfunc(); below. */
14299 #include <assert.h>
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 /* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14307 /* The GNU C library defines this for functions which it implements
14308 to always fail with ENOSYS. Some functions are actually named
14309 something starting with __ and the normal name is an alias. */
14310 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14320 eval "ac_cv_func_$dbfunc=yes"
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14325 eval "ac_cv_func_$dbfunc=no"
14329 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
14330 echo "$ac_t""yes" 1>&6
14331 with_database_berkdb=yes need_libdb=no
14333 echo "$ac_t""no" 1>&6
14336 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14337 echo "configure:14338: checking for $dbfunc in -ldb" >&5
14338 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14340 xe_check_libs=" -ldb "
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 /* Override any gcc2 internal prototype to avoid an error. */
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14353 if { (eval echo configure:14354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14355 eval "ac_cv_lib_$ac_lib_var=yes"
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14360 eval "ac_cv_lib_$ac_lib_var=no"
14365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14366 echo "$ac_t""yes" 1>&6
14367 with_database_berkdb=yes need_libdb=yes
14369 echo "$ac_t""no" 1>&6
14377 if test "$with_database_berkdb" = "yes"; then
14378 { test "$extra_verbose" = "yes" && cat << EOF
14379 Defining DB_H_FILE = "$db_h_file"
14381 cat >> confdefs.h <<EOF
14382 #define DB_H_FILE "$db_h_file"
14386 { test "$extra_verbose" = "yes" && cat << \EOF
14387 Defining HAVE_BERKELEY_DB
14389 cat >> confdefs.h <<\EOF
14390 #define HAVE_BERKELEY_DB 1
14394 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
14395 else with_database_berkdb=no
14399 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14400 != "no no no"; then
14401 { test "$extra_verbose" = "yes" && cat << \EOF
14402 Defining HAVE_DATABASE
14404 cat >> confdefs.h <<\EOF
14405 #define HAVE_DATABASE 1
14409 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
14410 echo " xemacs will be linked with \"database.o\""
14414 if test "$with_socks" = "yes"; then
14416 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14417 echo "configure:14418: checking for SOCKSinit in -lsocks" >&5
14418 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14420 xe_check_libs=" -lsocks "
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14433 if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14435 eval "ac_cv_lib_$ac_lib_var=yes"
14437 echo "configure: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14440 eval "ac_cv_lib_$ac_lib_var=no"
14445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14446 echo "$ac_t""yes" 1>&6
14447 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14449 { test "$extra_verbose" = "yes" && cat << EOF
14450 Defining $ac_tr_lib
14452 cat >> confdefs.h <<EOF
14453 #define $ac_tr_lib 1
14457 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
14460 echo "$ac_t""no" 1>&6
14464 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
14465 Defining HAVE_SOCKS
14467 cat >> confdefs.h <<\EOF
14468 #define HAVE_SOCKS 1
14474 if test "$usage_tracking" = "yes"; then
14475 { test "$extra_verbose" = "yes" && cat << \EOF
14476 Defining USAGE_TRACKING
14478 cat >> confdefs.h <<\EOF
14479 #define USAGE_TRACKING 1
14483 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14486 if test "$with_modules" != "no"; then
14487 echo "checking for module support" 1>&6
14488 echo "configure:14489: checking for module support" >&5
14490 if test "$with_msw" = "yes"; then
14494 darwin) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
14497 cat >> confdefs.h <<\EOF
14498 #define HAVE_DYLD 1
14502 *) ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14503 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14504 echo "configure:14505: checking for dlfcn.h" >&5
14506 cat > conftest.$ac_ext <<EOF
14507 #line 14508 "configure"
14508 #include "confdefs.h"
14511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14512 { (eval echo configure:14513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14514 if test -z "$ac_err"; then
14516 eval "ac_cv_header_$ac_safe=yes"
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14522 eval "ac_cv_header_$ac_safe=no"
14525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14526 echo "$ac_t""yes" 1>&6
14528 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14529 echo "configure:14530: checking for dlopen in -lc" >&5
14530 cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure"
14532 #include "confdefs.h"
14538 if { (eval echo configure:14539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14542 echo "configure: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14546 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14547 echo "configure:14548: checking for dlopen in -ldl" >&5
14548 ac_save_LIBS="$LIBS"
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 LIBS="$ac_save_LIBS"
14572 echo "$ac_t""no" 1>&6
14575 if test -n "$have_dl"; then
14576 { test "$extra_verbose" = "yes" && cat << \EOF
14577 Defining HAVE_DLOPEN
14579 cat >> confdefs.h <<\EOF
14580 #define HAVE_DLOPEN 1
14586 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14587 echo "configure:14588: checking for shl_load in -ldld" >&5
14588 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14590 xe_check_libs=" -ldld "
14591 cat > conftest.$ac_ext <<EOF
14592 #line 14593 "configure"
14593 #include "confdefs.h"
14594 /* Override any gcc2 internal prototype to avoid an error. */
14595 /* We use char because int might match the return type of a gcc2
14596 builtin and then its argument prototype would still apply. */
14603 if { (eval echo configure:14604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 eval "ac_cv_lib_$ac_lib_var=yes"
14607 echo "configure: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14610 eval "ac_cv_lib_$ac_lib_var=no"
14615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14616 echo "$ac_t""yes" 1>&6
14617 libdl=dld have_dl=yes;
14618 { test "$extra_verbose" = "yes" && cat << \EOF
14619 Defining HAVE_SHL_LOAD
14621 cat >> confdefs.h <<\EOF
14622 #define HAVE_SHL_LOAD 1
14627 echo "$ac_t""no" 1>&6
14629 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14630 echo "configure:14631: checking for dld_init in -ldld" >&5
14631 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14633 xe_check_libs=" -ldld "
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 /* Override any gcc2 internal prototype to avoid an error. */
14638 /* We use char because int might match the return type of a gcc2
14639 builtin and then its argument prototype would still apply. */
14646 if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648 eval "ac_cv_lib_$ac_lib_var=yes"
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14653 eval "ac_cv_lib_$ac_lib_var=no"
14658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14659 echo "$ac_t""yes" 1>&6
14660 libdl=dld have_dl=yes;
14661 { test "$extra_verbose" = "yes" && cat << \EOF
14662 Defining HAVE_DLD_INIT
14664 cat >> confdefs.h <<\EOF
14665 #define HAVE_DLD_INIT 1
14670 echo "$ac_t""no" 1>&6
14681 if test -n "$have_dl"; then
14688 ld_dynamic_link_flags=
14690 xealias=$internal_configuration
14692 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14693 echo "configure:14694: checking how to build dynamic libraries for ${xehost}" >&5
14694 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14697 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14700 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14701 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14702 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14704 case "$xehost_os" in
14706 # AIX sometimes has problems with the GCC collect2 program. For some
14707 # reason, if we set the COLLECT_NAMES environment variable, the problems
14708 # vanish in a puff of smoke.
14709 if test "${COLLECT_NAMES+set}" != set; then
14711 export COLLECT_NAMES
14716 # Now see if the compiler is really GCC.
14717 if test "$GCC" = "yes"; then
14720 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14721 echo "configure:14722: checking checking whether we are using GNU C" >&5
14722 cat > conftest.$ac_ext <<EOF
14723 #line 14724 "configure"
14724 #include "confdefs.h"
14731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14732 egrep "yes" >/dev/null 2>&1; then
14741 echo "$ac_t""${XEGCC}" 1>&6
14744 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14745 echo "configure:14746: checking how to produce PIC code" >&5
14748 can_build_shared=yes
14749 if test "$XEGCC" = yes; then
14752 case "$xehost_os" in
14753 aix[3-9]* | irix[5-9]* | osf[3-9])
14754 # PIC is the default for these OSes.
14758 # We can build DLLs from non-PIC.
14761 # FIXME: we need at least 68020 code to build shared libraries, but
14762 # adding the `-m68020' flag to GCC prevents building anything better,
14764 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14766 *cygwin* | *mingw* )
14767 # PIC is the default
14774 # PORTME Check for PIC flags for the system compiler.
14775 case "$xehost_os" in
14776 hpux9* | hpux1[0-9]*)
14777 # Is there a better link_static_flag that works with the bundled CC?
14784 # PIC (with -KPIC) is the default.
14788 # We can build DLLs from non-PIC.
14792 # All OSF/1 code is PIC.
14797 # All AIX code is PIC.
14802 dll_cflags='-belf -Kpic'
14836 can_build_shared=no
14841 if test -n "$dll_cflags"; then
14842 echo "$ac_t""${dll_cflags}" 1>&6
14844 # Check to make sure the dll_cflags actually works.
14845 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14846 echo "configure:14847: checking if PIC flag ${dll_cflags} really works" >&5
14847 save_CFLAGS="$CFLAGS"
14848 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14857 if { (eval echo configure:14858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14860 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14861 # reports no error. So, we need to grep stderr for (Bundled).
14862 if grep '(Bundled)' config.log >/dev/null; then
14863 echo "$ac_t""no" 1>&6
14864 can_build_shared=no
14867 echo "$ac_t""yes" 1>&6
14870 echo "configure: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14873 echo "$ac_t""no" 1>&6
14874 can_build_shared=no
14878 CFLAGS="$save_CFLAGS"
14880 echo "$ac_t""none" 1>&6
14883 if test "$can_build_shared" = "yes"; then
14887 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14888 echo "configure:14889: checking if C compiler can produce shared libraries" >&5
14889 if test "$XEGCC" = yes; then
14892 else # Not using GCC
14893 case "$xehost_os" in
14895 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14896 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14899 freebsd2* | netbsd* | openbsd*)
14901 xcldf="${wl}-Bshareable"
14910 xcldf="${wl}-b ${wl}+s"
14913 irix[5-9]* | osf[3-9]*)
14914 xcldf="${wl}-shared"
14918 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14924 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14925 xldf="-assert pure-text -Bstatic"
14928 fi # End if if we are using gcc
14930 if test -n "$xcldf"; then
14931 save_LDFLAGS=$LDFLAGS
14933 save_xe_libs=$xe_libs
14934 LDFLAGS="$xcldf $LDFLAGS"
14937 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14938 cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14946 if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14950 echo "configure: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14956 LDFLAGS=$save_LDFLAGS
14958 xe_libs=$save_xe_libs
14959 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14963 echo "$ac_t""${cc_produces_so}" 1>&6
14966 if test -z "$LTLD"; then
14968 if test "$XEGCC" = yes; then
14969 # Check if gcc -print-prog-name=ld gives a path.
14970 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14971 echo "configure:14972: checking for ld used by GCC" >&5
14972 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14974 # Accept absolute paths.
14976 if test -z "$LTLD"; then
14977 # case "$ac_prog" in
14978 # *gcc-lib*) LTLD="$CC"
14987 # If it fails, then pretend we aren't using GCC.
14991 # If it is relative, then search for the first ld in PATH.
14992 with_gnu_ld=unknown
14996 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14997 echo "configure:14998: checking for GNU ld" >&5
15000 if test -z "$LTLD"; then
15001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15002 for ac_dir in $PATH; do
15003 test -z "$ac_dir" && ac_dir=.
15004 if test -f "$ac_dir/$ac_prog"; then
15005 LTLD="$ac_dir/$ac_prog"
15006 # Check to see if the program is GNU ld. I'd rather use --version,
15007 # but apparently some GNU ld's only accept -v.
15008 # Break only if it was the GNU/non-GNU ld that we prefer.
15009 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15019 if test -n "$LTLD"; then
15020 echo "$ac_t""${LTLD}" 1>&6
15022 echo "$ac_t""no" 1>&6
15025 if test -z "$LTLD" -a "$cc_produces_so" = no; then
15026 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
15031 ld_dynamic_link_flags=
15033 # Check to see if it really is or isn't GNU ld.
15034 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
15035 echo "configure:15036: checking if the linker is GNU ld" >&5
15036 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15037 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15042 echo "$ac_t""${xe_gnu_ld}" 1>&6
15044 case "$xehost_os" in
15045 amigaos* | sunos4*)
15046 # On these operating systems, we should treat GNU ld like the system ld.
15047 gnu_ld_acts_native=yes
15050 gnu_ld_acts_native=no
15054 if test "$cc_produces_so" = "yes"; then
15057 can_build_shared=yes
15060 # OK - only NOW do we futz about with ld.
15061 # See if the linker supports building shared libraries.
15062 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
15063 echo "configure:15064: checking whether the linker supports shared libraries" >&5
15065 dll_ldflags=$LDFLAGS
15067 can_build_shared=yes
15068 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15069 # See if GNU ld supports shared libraries.
15070 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15072 dll_ldflags="-shared"
15078 # PORTME fill in a description of your system's linker (not GNU ld)
15079 case "$xehost_os" in
15089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15090 # support. Future versions do this automatically, but an explicit c++rt0.o
15091 # doesn't break anything, and helps significantly (at the cost of a little
15096 dll_post="/usr/lib/c++rt0.o"
15099 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
15102 dll_ldflags="-Bshareable"
15105 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
15107 dll_ldflags="-shared"
15121 # Tested with NetBSD 1.2 ld
15136 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
15137 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
15140 *gcc*) dll_ldflags="-shared"
15143 *) dll_ldflags="-G"
15149 if test "$XEGCC" = yes; then
15169 can_build_shared=no
15173 echo "$ac_t""${ld_shlibs}" 1>&6
15174 if test "$ld_shlibs" = "no"; then
15175 can_build_shared=no
15177 fi # End of if cc_produces_so = no
15180 if test "$xe_gnu_ld" = yes; then
15181 if test "$ld_shlibs" = yes; then
15182 ld_dynamic_link_flags="${wl}-export-dynamic"
15186 if test -z "$ld_dynamic_link_flags"; then
15187 case "$xehost_os" in
15189 ld_dynamic_link_flags=
15193 ld_dynamic_link_flags=
15197 ld_dynamic_link_flags=
15201 ld_dynamic_link_flags=
15205 ld_dynamic_link_flags="${wl}-E"
15209 ld_dynamic_link_flags=
15213 ld_dynamic_link_flags=
15217 ld_dynamic_link_flags=
15221 ld_dynamic_link_flags=
15224 solaris2* | solaris7*)
15225 ld_dynamic_link_flags=
15228 sco3.2v5* | unixware* | sysv5* | sysv4*)
15229 ld_dynamic_link_flags="${wl}-Bexport"
15233 ld_dynamic_link_flags=
15237 ld_dynamic_link_flags=
15241 ld_dynamic_link_flags=
15245 fi # End of if -z ld_dynamic_link_flags
15246 fi # End of if test "$can_build_shared" = "yes"
15257 if test "$can_build_shared" = "yes"; then
15258 { test "$extra_verbose" = "yes" && cat << \EOF
15259 Defining HAVE_SHLIB
15261 cat >> confdefs.h <<\EOF
15262 #define HAVE_SHLIB 1
15266 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
15267 echo " xemacs will be linked with \"sysdll.o emodules.o\""
15269 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15270 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15271 for ac_func in dlerror _dlerror
15273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15274 echo "configure:15275: checking for $ac_func" >&5
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func(); below. */
15281 #include <assert.h>
15282 /* Override any gcc2 internal prototype to avoid an error. */
15283 /* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15289 /* The GNU C library defines this for functions which it implements
15290 to always fail with ENOSYS. Some functions are actually named
15291 something starting with __ and the normal name is an alias. */
15292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15300 if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302 eval "ac_cv_func_$ac_func=yes"
15304 echo "configure: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15307 eval "ac_cv_func_$ac_func=no"
15311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15312 echo "$ac_t""yes" 1>&6
15313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15314 { test "$extra_verbose" = "yes" && cat << EOF
15315 Defining $ac_tr_func
15317 cat >> confdefs.h <<EOF
15318 #define $ac_tr_func 1
15323 echo "$ac_t""no" 1>&6
15329 if test "$with_modules" = "yes"; then
15330 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15332 echo "configure: warning: "Module support cannot be provided."" 1>&2
15338 cat > conftest.$ac_ext <<EOF
15339 #line 15340 "configure"
15340 #include "confdefs.h"
15341 int main(int c,char *v[]){return 0;}
15343 if { (eval echo configure:15344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15348 echo "configure: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15353 echo "*** PANIC *** configure forgot how to build working executables!"
15355 echo "*** This is most commonly due to an unforeseen environment, causing"
15356 echo "*** configure to incorrectly compute the sequence of libraries to link."
15357 echo "*** Please examine the tail of config.log for runtime errors."
15358 echo "*** Pay special attention to the -l flags, and perhaps -I and -L."
15359 echo "*** Often adding or removing explicit options in the configure"
15360 echo "*** invocation can work around this kind of problem. If so, please"
15361 echo "*** report it as a bug to xemacs-beta@xemacs.org."
15363 echo "*** Other possible causes are inability to write to the file system"
15364 echo "*** (bogus permissions or disk full) or a misconfiguration of the dynamic"
15365 echo "*** linker. On Linux, check /etc/ld.conf and rerun ldconfig if"
15366 echo "*** necessary. On other systems, try telling configure where to find"
15367 echo "*** the shared libraries using the --site-runtime-libraries option."
15369 echo "*** Another way to shoot yourself in the foot is to specify"
15370 echo "*** --with-FEATURE when FEATURE is not actually installed on your"
15371 echo "*** system. Don't do that."
15376 if test "$win32_processes" = "yes"; then
15377 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
15378 echo " xemacs will be linked with \"process-nt.o\""
15381 { test "$extra_verbose" = "yes" && cat << \EOF
15382 Defining HAVE_UNIX_PROCESSES
15384 cat >> confdefs.h <<\EOF
15385 #define HAVE_UNIX_PROCESSES 1
15389 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
15390 echo " xemacs will be linked with \"process-unix.o\""
15397 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15402 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15407 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
15408 c_switch_general="$T"
15412 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
15413 c_switch_window_system="$T"
15417 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15422 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
15423 ld_switch_general="$T"
15427 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15428 ld_switch_window_system="$T"
15432 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15437 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15438 ld_libs_general="$T"
15442 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
15443 ld_libs_window_system="$T"
15447 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15452 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
15453 internal_makefile_list="Makefile.in"
15454 SUBDIR_MAKEFILES=''
15455 test -d lock || mkdir lock
15456 for dir in $MAKE_SUBDIR; do
15457 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
15458 test -d "$d" || mkdir "$d"; cd "$d"
15460 * ) test -d "$dir" || mkdir "$dir" ;;
15464 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15465 SUBDIR_MAKEFILES="$T"
15469 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15470 internal_makefile_list="$T"
15477 for dir in src/s src/m; do
15478 if test ! -d "$dir" ; then
15479 echo Making symbolic link to "$srcdir/$dir"
15480 ${LN_S} "$srcdir/$dir" "$dir"
15484 if test "$extra_verbose" = "yes"; then
15486 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
15491 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
15492 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
15493 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
15496 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
15497 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
15498 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
15501 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
15502 test "$extra_verbose" = "yes" && echo "creating TAGS"
15504 $srcdir/TAGS,include" > "TAGS"
15507 if test "$__SUNPRO_C" = "yes"; then
15508 test "$extra_verbose" = "yes" && echo "creating .sbinit"
15509 ( echo "# For use with Sun WorkShop's Source browser."
15510 echo "# See sbquery(1) and sbinit(4) for more information"
15511 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
15539 *\$* ) eval "PREFIX=$PREFIX" ;;
15547 EXEC_PREFIX=$exec_prefix
15549 case "$EXEC_PREFIX" in
15550 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
15561 *\$* ) eval "INFODIR=$INFODIR" ;;
15571 case "$INFOPATH" in
15572 *\$* ) eval "INFOPATH=$INFOPATH" ;;
15580 PACKAGE_PATH=$package_path
15582 case "$PACKAGE_PATH" in
15583 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
15594 *\$* ) eval "LISPDIR=$LISPDIR" ;;
15602 MODULEDIR=$moduledir
15604 case "$MODULEDIR" in
15605 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
15613 SITELISPDIR=$sitelispdir
15615 case "$SITELISPDIR" in
15616 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
15624 SITEMODULEDIR=$sitemoduledir
15626 case "$SITEMODULEDIR" in
15627 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
15638 *\$* ) eval "ETCDIR=$ETCDIR" ;;
15649 *\$* ) eval "DOCDIR=$DOCDIR" ;;
15657 ARCHLIBDIR=$archlibdir
15659 case "$ARCHLIBDIR" in
15660 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
15684 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
15692 : ${XEMACS_CC:=$CC}
15695 if test "$with_prefix" = "yes"; then
15696 { test "$extra_verbose" = "yes" && cat << \EOF
15697 Defining PREFIX_USER_DEFINED
15699 cat >> confdefs.h <<\EOF
15700 #define PREFIX_USER_DEFINED 1
15706 if test "$with_site_lisp" = "no"; then
15707 { test "$extra_verbose" = "yes" && cat << \EOF
15708 Defining INHIBIT_SITE_LISP
15710 cat >> confdefs.h <<\EOF
15711 #define INHIBIT_SITE_LISP 1
15716 if test "$with_site_modules" = "no"; then
15717 { test "$extra_verbose" = "yes" && cat << \EOF
15718 Defining INHIBIT_SITE_MODULES
15720 cat >> confdefs.h <<\EOF
15721 #define INHIBIT_SITE_MODULES 1
15729 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15730 ac_configure_args="$T"
15732 { test "$extra_verbose" = "yes" && cat << EOF
15733 Defining EMACS_CONFIGURATION = "$configuration"
15735 cat >> confdefs.h <<EOF
15736 #define EMACS_CONFIGURATION "$configuration"
15740 { test "$extra_verbose" = "yes" && cat << EOF
15741 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
15743 cat >> confdefs.h <<EOF
15744 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
15751 { test "$extra_verbose" = "yes" && cat << EOF
15752 Defining LD_SWITCH_X_SITE = $null_string
15754 cat >> confdefs.h <<EOF
15755 #define LD_SWITCH_X_SITE $null_string
15759 { test "$extra_verbose" = "yes" && cat << EOF
15760 Defining LD_SWITCH_X_SITE_AUX = $null_string
15762 cat >> confdefs.h <<EOF
15763 #define LD_SWITCH_X_SITE_AUX $null_string
15767 { test "$extra_verbose" = "yes" && cat << EOF
15768 Defining C_SWITCH_X_SITE = $null_string
15770 cat >> confdefs.h <<EOF
15771 #define C_SWITCH_X_SITE $null_string
15775 { test "$extra_verbose" = "yes" && cat << EOF
15776 Defining LD_SWITCH_SITE = $null_string
15778 cat >> confdefs.h <<EOF
15779 #define LD_SWITCH_SITE $null_string
15783 { test "$extra_verbose" = "yes" && cat << EOF
15784 Defining C_SWITCH_SITE = $null_string
15786 cat >> confdefs.h <<EOF
15787 #define C_SWITCH_SITE $null_string
15793 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15794 Defining GNU_MALLOC
15796 cat >> confdefs.h <<\EOF
15797 #define GNU_MALLOC 1
15801 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15802 Defining USE_SYSTEM_MALLOC
15804 cat >> confdefs.h <<\EOF
15805 #define USE_SYSTEM_MALLOC 1
15809 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
15810 Defining USE_DEBUG_MALLOC
15812 cat >> confdefs.h <<\EOF
15813 #define USE_DEBUG_MALLOC 1
15817 { test "$extra_verbose" = "yes" && cat << \EOF
15818 Defining USE_SYSTEM_MALLOC
15820 cat >> confdefs.h <<\EOF
15821 #define USE_SYSTEM_MALLOC 1
15826 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15829 cat >> confdefs.h <<\EOF
15834 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15837 cat >> confdefs.h <<\EOF
15842 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15843 Defining EXTERNAL_WIDGET
15845 cat >> confdefs.h <<\EOF
15846 #define EXTERNAL_WIDGET 1
15850 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15851 Defining QUICK_BUILD
15853 cat >> confdefs.h <<\EOF
15854 #define QUICK_BUILD 1
15858 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15861 cat >> confdefs.h <<\EOF
15866 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15869 cat >> confdefs.h <<\EOF
15874 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15875 Defining MAIL_USE_POP
15877 cat >> confdefs.h <<\EOF
15878 #define MAIL_USE_POP 1
15882 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15885 cat >> confdefs.h <<\EOF
15890 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15893 cat >> confdefs.h <<\EOF
15898 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15899 Defining USE_UNION_TYPE
15901 cat >> confdefs.h <<\EOF
15902 #define USE_UNION_TYPE 1
15906 test "$use_regex_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15907 Defining REGEX_MALLOC
15909 cat >> confdefs.h <<\EOF
15910 #define REGEX_MALLOC 1
15914 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15917 cat >> confdefs.h <<\EOF
15922 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
15923 Defining IPV6_CANONICALIZE
15925 cat >> confdefs.h <<\EOF
15926 #define IPV6_CANONICALIZE 1
15933 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
15935 echo "uname -a: `uname -a`"
15938 echo "$0 $quoted_arguments"
15941 if test ! -z ${emacs_beta_version} ; then
15942 if test -z "${emacs_is_beta}" ; then
15943 xemacs_betaname=".${emacs_beta_version}"
15945 xemacs_betaname="-b${emacs_beta_version}"
15954 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
15957 Compilation / Installation:"
15958 echo " Source code location: $srcdir"
15959 echo " Installation prefix: $prefix"
15960 if test -n "$site_includes"; then
15961 echo " Additional header files: $site_includes"
15963 if test -n "$site_libraries"; then
15964 echo " Additional libraries: $site_libraries"
15966 if test -n "$site_prefixes"; then
15967 echo " Additional prefixes: $site_prefixes"
15969 if test -n "$runpath"; then
15970 echo " Runtime library search path: $runpath"
15973 if test -n "$opsysfile"
15974 then echo " Operating system description file: \`$opsysfile'"
15975 else echo " Not using any operating system description file"
15977 if test -n "$machfile"
15978 then echo " Machine description file: \`$machfile'"
15979 else echo " Not using any machine description file"
15982 echo " Compiler: $CC $CFLAGS"
15983 echo " Relocating allocator for buffers: $rel_alloc"
15984 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15985 case "$ld_switch_site" in
15986 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15987 - Consider configuring with --pdump." ;;
15992 if test "$with_msw" = "yes"; then
15993 echo " Compiling in support for the Microsoft window system."
15995 if test "$with_x11" = "yes"; then
15996 echo " Compiling in support for the X window system:"
15997 echo " - X Windows headers location: $x_includes"
15998 echo " - X Windows libraries location: $x_libraries"
15999 if test "$with_xauth" != yes; then
16000 echo " - Xau (X authority) not available."
16002 if test "$with_xmu" != yes; then
16003 echo " - Xmu library not available; substituting equivalent routines."
16005 if test "$with_wmcommand" != no; then
16006 echo " - Handling WM_COMMAND properly."
16009 if test "$need_motif" = "yes" ; then
16010 echo " Compiling in support for Motif."
16011 echo " *WARNING* Many versions of Motif are buggy, requiring workarounds."
16012 echo " You are likely to experience slow redisplay."
16013 echo " You may need to install vendor patches to Motif."
16014 echo " See PROBLEMS for more information."
16016 if test "$need_athena" = "yes"; then
16017 echo " Compiling in support for the Athena widget set:"
16018 echo " - Athena headers location: $athena_h_path"
16019 echo " - Athena library to link: $athena_lib"
16021 case "$with_menubars" in
16022 gtk ) echo " Using GTK menubars." ;;
16023 lucid ) echo " Using Lucid menubars." ;;
16024 motif ) echo " Using Motif menubars."
16025 echo " *WARNING* The Motif menubar implementation is currently buggy."
16026 echo " We recommend using the Lucid menubar instead."
16027 echo " Re-run configure with --with-menubars='lucid'." ;;
16028 msw ) echo " Using MS-Windows menubars." ;;
16030 case "$with_scrollbars" in
16031 gtk ) echo " Using GTK scrollbars." ;;
16032 lucid ) echo " Using Lucid scrollbars." ;;
16033 motif ) echo " Using Motif scrollbars." ;;
16034 athena ) echo " Using Athena scrollbars." ;;
16035 msw ) echo " Using MS-Windows scrollbars." ;;
16037 case "$with_dialogs" in
16038 gtk ) echo " Using GTK dialog boxes." ;;
16039 motif ) echo " Using Motif dialog boxes."
16040 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
16041 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
16042 echo " We recommend using the Athena dialog boxes instead."
16043 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
16044 echo " Read the PROBLEMS file for more information."
16046 athena ) echo " Using Athena dialog boxes." ;;
16047 msw ) echo " Using MS-Windows dialog boxes." ;;
16049 case "$with_widgets" in
16050 gtk ) echo " Using GTK native widgets." ;;
16051 motif ) echo " Using Motif native widgets." ;;
16052 athena ) echo " Using Athena native widgets." ;;
16053 msw ) echo " Using MS-Windows native widgets." ;;
16055 if test "$with_dragndrop" = yes; then
16056 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
16057 echo " - Drag'n'Drop prototype: $dragndrop_proto."
16062 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
16063 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
16067 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
16068 if test "$with_xpm" = yes; then
16069 echo " Compiling in support for XPM images."
16070 elif test "$with_x11" = yes; then
16071 echo " WARNING: -----------------------------------------------------------"
16072 echo " WARNING: Compiling without XPM image support."
16073 if test "$xpm_problem" != ""; then
16074 echo " Reason: $xpm_problem"
16076 echo " WARNING: You should strongly consider installing XPM."
16077 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
16078 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16079 echo " WARNING: -----------------------------------------------------------"
16081 if test "$with_png" = yes; then
16082 echo " Compiling in support for PNG images."
16083 elif test "$window_system" != "none"; then
16084 echo " WARNING: -----------------------------------------------------------"
16085 echo " WARNING: Compiling without PNG image support."
16086 if test "$png_problem" != ""; then
16087 echo " Reason: $png_problem"
16089 echo " WARNING: You should strongly consider installing the PNG libraries."
16090 echo " WARNING: Otherwise certain images and glyphs may not display."
16091 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
16092 echo " WARNING: -----------------------------------------------------------"
16094 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
16095 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
16096 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
16100 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
16101 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
16102 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
16103 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
16107 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
16108 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
16109 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
16110 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
16111 if test "$with_postgresql" = yes; then
16112 echo " Compiling in support for PostgreSQL."
16113 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
16114 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
16118 Internationalization:"
16119 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
16120 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
16121 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
16122 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
16123 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
16124 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
16125 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
16126 if test "$with_wnn" = yes; then
16127 echo " Compiling in support for the WNN input method on Mule."
16128 test "$with_wnn6" = yes && echo " - Using WNN version 6."
16130 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
16134 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
16135 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
16136 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
16137 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
16141 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
16142 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
16143 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
16144 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
16145 test "$with_dnet" = yes && echo " Compiling in support for DNET."
16146 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
16147 if test "$use_union_type" = yes; then
16148 echo " WARNING: ---------------------------------------------------------"
16149 echo " Using the union type for Lisp_Objects."
16150 echo " Union type has been implicated in hard-to-debug runtime crashes."
16151 echo " Do NOT use this build of XEmacs for ordinary work. See PROBLEMS."
16152 echo " WARNING: ---------------------------------------------------------"
16154 if test "$use_regex_malloc" = no; then
16155 echo " WARNING: -----------------------------------------------------------"
16156 echo " Using alloca to allocate the failure stack."
16157 echo " It may be impossible to detect stack exhaustion, and you will crash."
16158 echo " Do NOT use this build of XEmacs for ordinary work."
16159 echo " WARNING: -----------------------------------------------------------"
16161 test "$pdump" = yes && echo " Using the new portable dumper."
16162 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16163 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16164 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
16165 != "no no no no no no"; then
16166 echo " WARNING: ---------------------------------------------------------"
16167 echo " WARNING: Compiling in support for runtime error checking."
16168 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16169 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16170 echo " WARNING: ---------------------------------------------------------"
16173 ) | tee -a Installation
16177 # Remove any trailing slashes in these variables.
16178 test -n "$prefix" &&
16179 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16180 test -n "$exec_prefix" &&
16181 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
16184 for file in $internal_makefile_list; do
16185 test "$file" = src/Makefile.in && \
16186 file="src/Makefile.in:src/Makefile.in.in:src/depend"
16187 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
16189 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
16190 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
16194 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16196 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16197 # Let make expand exec_prefix.
16198 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16200 # Any assignment to VPATH causes Sun make to only execute
16201 # the first set of double-colon rules, so remove it if not needed.
16202 # If there is a colon in the path, we need to keep it.
16203 if test "x$srcdir" = x.; then
16204 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16207 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16209 DEFS=-DHAVE_CONFIG_H
16211 # Without the "./", some shells look in PATH for config.status.
16212 : ${CONFIG_STATUS=./config.status}
16214 echo creating $CONFIG_STATUS
16215 rm -f $CONFIG_STATUS
16216 cat > $CONFIG_STATUS <<EOF
16218 # Generated automatically by configure.
16219 # Run this file to recreate the current configuration.
16220 # This directory was configured as follows,
16221 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16223 # $0 $ac_configure_args
16225 # Compiler output produced by configure, useful for debugging
16226 # configure, is in ./config.log if it exists.
16228 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16231 case "\$ac_option" in
16232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16233 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16234 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16235 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16236 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16238 -help | --help | --hel | --he | --h)
16239 echo "\$ac_cs_usage"; exit 0 ;;
16240 *) echo "\$ac_cs_usage"; exit 1 ;;
16244 ac_given_srcdir=$srcdir
16245 ac_given_INSTALL="$INSTALL"
16247 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16249 cat >> $CONFIG_STATUS <<EOF
16251 # Protect against being on the right side of a sed subst in config.status.
16252 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16253 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16257 s%@CFLAGS@%$CFLAGS%g
16258 s%@CPPFLAGS@%$CPPFLAGS%g
16259 s%@CXXFLAGS@%$CXXFLAGS%g
16260 s%@FFLAGS@%$FFLAGS%g
16262 s%@LDFLAGS@%$LDFLAGS%g
16264 s%@exec_prefix@%$exec_prefix%g
16265 s%@prefix@%$prefix%g
16266 s%@program_transform_name@%$program_transform_name%g
16267 s%@bindir@%$bindir%g
16268 s%@sbindir@%$sbindir%g
16269 s%@libexecdir@%$libexecdir%g
16270 s%@datadir@%$datadir%g
16271 s%@sysconfdir@%$sysconfdir%g
16272 s%@sharedstatedir@%$sharedstatedir%g
16273 s%@localstatedir@%$localstatedir%g
16274 s%@libdir@%$libdir%g
16275 s%@includedir@%$includedir%g
16276 s%@oldincludedir@%$oldincludedir%g
16277 s%@infodir@%$infodir%g
16278 s%@mandir@%$mandir%g
16280 s%@blddir@%$blddir%g
16283 s%@start_flags@%$start_flags%g
16284 s%@ld_switch_shared@%$ld_switch_shared%g
16285 s%@start_files@%$start_files%g
16287 s%@lib_gcc@%$lib_gcc%g
16288 s%@RANLIB@%$RANLIB%g
16289 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16290 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16291 s%@INSTALL_DATA@%$INSTALL_DATA%g
16293 s%@SET_MAKE@%$SET_MAKE%g
16294 s%@GTK_CONFIG@%$GTK_CONFIG%g
16295 s%@X_CFLAGS@%$X_CFLAGS%g
16296 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16297 s%@X_LIBS@%$X_LIBS%g
16298 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16299 s%@install_pp@%$install_pp%g
16300 s%@libs_xauth@%$libs_xauth%g
16301 s%@dnd_objs@%$dnd_objs%g
16302 s%@lwlib_objs@%$lwlib_objs%g
16303 s%@ALLOCA@%$ALLOCA%g
16304 s%@have_esd_config@%$have_esd_config%g
16305 s%@dll_ld@%$dll_ld%g
16306 s%@dll_cflags@%$dll_cflags%g
16307 s%@dll_ldflags@%$dll_ldflags%g
16308 s%@dll_post@%$dll_post%g
16309 s%@dll_ldo@%$dll_ldo%g
16310 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
16311 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16312 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16313 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16314 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16315 s%@PROGNAME@%$PROGNAME%g
16316 s%@version@%$version%g
16317 s%@configuration@%$configuration%g
16318 s%@canonical@%$canonical%g
16319 s%@inststaticdir@%$inststaticdir%g
16320 s%@instvardir@%$instvardir%g
16321 s%@srcdir@%$srcdir%g
16322 s%@pkgdir@%$pkgdir%g
16323 s%@statedir@%$statedir%g
16324 s%@extra_includes@%$extra_includes%g
16325 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
16326 s%@PREFIX@%$PREFIX%g
16327 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
16328 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
16329 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
16330 s%@INFODIR@%$INFODIR%g
16331 s%@infopath@%$infopath%g
16332 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
16333 s%@INFOPATH@%$INFOPATH%g
16334 s%@package_path@%$package_path%g
16335 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
16336 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
16337 s%@lispdir@%$lispdir%g
16338 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
16339 s%@LISPDIR@%$LISPDIR%g
16340 s%@moduledir@%$moduledir%g
16341 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
16342 s%@MODULEDIR@%$MODULEDIR%g
16343 s%@sitelispdir@%$sitelispdir%g
16344 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
16345 s%@SITELISPDIR@%$SITELISPDIR%g
16346 s%@sitemoduledir@%$sitemoduledir%g
16347 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
16348 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
16349 s%@etcdir@%$etcdir%g
16350 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
16351 s%@ETCDIR@%$ETCDIR%g
16352 s%@docdir@%$docdir%g
16353 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
16354 s%@DOCDIR@%$DOCDIR%g
16355 s%@archlibdir@%$archlibdir%g
16356 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
16357 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
16358 s%@bitmapdir@%$bitmapdir%g
16359 s%@extra_objs@%$extra_objs%g
16360 s%@machfile@%$machfile%g
16361 s%@opsysfile@%$opsysfile%g
16362 s%@c_switch_general@%$c_switch_general%g
16363 s%@c_switch_window_system@%$c_switch_window_system%g
16364 s%@c_switch_all@%$c_switch_all%g
16365 s%@ld_switch_general@%$ld_switch_general%g
16366 s%@ld_switch_window_system@%$ld_switch_window_system%g
16367 s%@ld_switch_all@%$ld_switch_all%g
16368 s%@ld_libs_general@%$ld_libs_general%g
16369 s%@ld_libs_window_system@%$ld_libs_window_system%g
16370 s%@ld_libs_all@%$ld_libs_all%g
16371 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
16372 s%@native_sound_lib@%$native_sound_lib%g
16373 s%@sound_cflags@%$sound_cflags%g
16374 s%@dynodump_arch@%$dynodump_arch%g
16375 s%@XEMACS_CC@%$XEMACS_CC%g
16376 s%@internal_makefile_list@%$internal_makefile_list%g
16381 cat >> $CONFIG_STATUS <<\EOF
16383 # Split the substitutions into bite-sized pieces for seds with
16384 # small command number limits, like on Digital OSF/1 and HP-UX.
16385 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16386 ac_file=1 # Number of current file.
16387 ac_beg=1 # First line for current file.
16388 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16391 while $ac_more_lines; do
16392 if test $ac_beg -gt 1; then
16393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16395 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16397 if test ! -s conftest.s$ac_file; then
16398 ac_more_lines=false
16399 rm -f conftest.s$ac_file
16401 if test -z "$ac_sed_cmds"; then
16402 ac_sed_cmds="sed -f conftest.s$ac_file"
16404 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16406 ac_file=`expr $ac_file + 1`
16408 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16411 if test -z "$ac_sed_cmds"; then
16416 cat >> $CONFIG_STATUS <<EOF
16418 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
16420 cat >> $CONFIG_STATUS <<\EOF
16421 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16426 *) ac_file_in="${ac_file}.in" ;;
16429 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16431 # Remove last slash and all that follows it. Not all systems have dirname.
16432 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16433 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16434 # The file is in a subdirectory.
16435 test ! -d "$ac_dir" && mkdir "$ac_dir"
16436 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16437 # A "../" for each directory in $ac_dir_suffix.
16438 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16440 ac_dir_suffix= ac_dots=
16443 case "$ac_given_srcdir" in
16445 if test -z "$ac_dots"; then top_srcdir=.
16446 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16447 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16448 *) # Relative path.
16449 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16450 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16453 case "$ac_given_INSTALL" in
16454 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16455 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16458 echo creating "$ac_file"
16460 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16462 *Makefile*) ac_comsub="1i\\
16463 # $configure_input" ;;
16467 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16469 s%@configure_input@%$configure_input%g
16470 s%@srcdir@%$srcdir%g
16471 s%@top_srcdir@%$top_srcdir%g
16472 s%@INSTALL@%$INSTALL%g
16473 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16477 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16478 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16480 # ac_d sets the value in "#define NAME VALUE" lines.
16481 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16482 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16485 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16486 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16487 ac_uB='\([ ]\)%\1#\2define\3'
16490 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16491 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16492 ac_eB='$%\1#\2define\3'
16496 if test "${CONFIG_HEADERS+set}" != set; then
16498 cat >> $CONFIG_STATUS <<EOF
16499 CONFIG_HEADERS="src/config.h lwlib/config.h"
16501 cat >> $CONFIG_STATUS <<\EOF
16503 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16506 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16507 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16508 *) ac_file_in="${ac_file}.in" ;;
16511 echo creating $ac_file
16513 rm -f conftest.frag conftest.in conftest.out
16514 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16515 cat $ac_file_inputs > conftest.in
16519 # Transform confdefs.h into a sed script conftest.vals that substitutes
16520 # the proper values into config.h.in to produce config.h. And first:
16521 # Protect against being on the right side of a sed subst in config.status.
16522 # Protect against being in an unquoted here document in config.status.
16523 rm -f conftest.vals
16524 cat > conftest.hdr <<\EOF
16527 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16531 sed -n -f conftest.hdr confdefs.h > conftest.vals
16534 # This sed command replaces #undef with comments. This is necessary, for
16535 # example, in the case of _POSIX_SOURCE, which is predefined and required
16536 # on some systems where configure will not decide to define it.
16537 cat >> conftest.vals <<\EOF
16538 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16541 # Break up conftest.vals because some shells have a limit on
16542 # the size of here documents, and old seds have small limits too.
16544 rm -f conftest.tail
16547 ac_lines=`grep -c . conftest.vals`
16548 # grep -c gives empty output for an empty file on some AIX systems.
16549 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16550 # Write a limited-size here document to conftest.frag.
16551 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16552 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16554 sed -f conftest.frag conftest.in > conftest.out
16556 mv conftest.out conftest.in
16557 ' >> $CONFIG_STATUS
16558 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16559 rm -f conftest.vals
16560 mv conftest.tail conftest.vals
16562 rm -f conftest.vals
16564 cat >> $CONFIG_STATUS <<\EOF
16565 rm -f conftest.frag conftest.h
16566 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16567 cat conftest.in >> conftest.h
16569 if cmp -s $ac_file conftest.h 2>/dev/null; then
16570 echo "$ac_file is unchanged"
16573 # Remove last slash and all that follows it. Not all systems have dirname.
16574 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16575 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16576 # The file is in a subdirectory.
16577 test ! -d "$ac_dir" && mkdir "$ac_dir"
16580 mv conftest.h $ac_file
16585 cat >> $CONFIG_STATUS <<EOF
16587 top_srcdir="$srcdir"
16588 MAKE_SUBDIR="$MAKE_SUBDIR"
16591 cat >> $CONFIG_STATUS <<\EOF
16592 for dir in . $MAKE_SUBDIR; do
16597 sed -e '/^# Generated/d' \
16598 -e 's%/\*\*/#.*%%' \
16613 echo creating $dir/Makefile
16614 $CPP -I. -I${top_srcdir}/src junk.c \
16615 | sed -e 's/^\#.*//' \
16616 -e 's/^[ ][ ]*$//'\
16624 chmod 444 Makefile.new
16625 mv -f Makefile.new Makefile
16627 echo creating $dir/GNUmakefile
16628 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
16629 | sed -e 's/^\#.*//' \
16630 -e 's/^[ ][ ]*$//'\
16638 chmod 444 Makefile.new
16639 mv -f Makefile.new GNUmakefile
16645 sed < config.status >> lib-src/config.values \
16646 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
16647 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
16648 -e 's/^\([^ ]*\) $/\1 ""/' \
16654 chmod +x $CONFIG_STATUS
16655 rm -fr confdefs* $ac_clean_files
16656 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1